Changeset e27e36e in mainline for uspace/drv/bus/adb/cuda_adb/cuda_adb.h
- Timestamp:
- 2017-10-04T17:39:48Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c188c62
- Parents:
- 7e55bed7
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/adb/cuda_adb/cuda_adb.h
r7e55bed7 re27e36e 37 37 #define CUDA_ADB_H_ 38 38 39 #include <adt/list.h> 39 40 #include <async.h> 41 #include <ddf/driver.h> 40 42 #include <fibril_synch.h> 41 43 #include <loc.h> … … 55 57 }; 56 58 59 /** ADB bus device */ 57 60 typedef struct { 58 service_id_t service_id;61 ddf_fun_t *fun; 59 62 async_sess_t *client_sess; 63 link_t lcuda; 64 struct cuda *cuda; 60 65 } adb_dev_t; 61 66 62 typedef struct { 67 /** CUDA ADB bus */ 68 typedef struct cude { 63 69 struct cuda_regs *regs; 64 70 uintptr_t cuda_physical; 71 ddf_dev_t *dev; 65 72 66 73 uint8_t rcv_buf[CUDA_RCV_BUF_SIZE]; … … 71 78 fibril_mutex_t dev_lock; 72 79 73 adb_dev_t adb_dev[ADB_MAX_ADDR]; 80 list_t devs; 81 adb_dev_t *addr_dev[ADB_MAX_ADDR]; 74 82 } cuda_t; 83 84 extern int cuda_add(cuda_t *); 85 extern int cuda_remove(cuda_t *); 86 extern int cuda_gone(cuda_t *); 75 87 76 88 #endif
Note:
See TracChangeset
for help on using the changeset viewer.