Changeset 81b9d3e in mainline for uspace/drv/bus/adb/cuda_adb/cuda_adb.h
- Timestamp:
- 2017-10-05T19:09:34Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 82cbf8c6
- Parents:
- 84eb4edd (diff), c188c62 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/adb/cuda_adb/cuda_adb.h
r84eb4edd r81b9d3e 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 #include < stddef.h>43 #include <loc.h> 42 44 #include <stdint.h> 43 45 #include "cuda_hw.h" … … 56 58 57 59 typedef struct { 58 service_id_t service_id; 60 uintptr_t base; 61 int irq; 62 } cuda_res_t; 63 64 /** ADB bus device */ 65 typedef struct { 66 ddf_fun_t *fun; 59 67 async_sess_t *client_sess; 68 link_t lcuda; 69 struct cuda *cuda; 60 70 } adb_dev_t; 61 71 62 typedef struct { 63 struct cuda *regs; 64 uintptr_t cuda_physical; 72 /** CUDA ADB bus */ 73 typedef struct cude { 74 struct cuda_regs *regs; 75 uintptr_t phys_base; 76 ddf_dev_t *dev; 65 77 66 78 uint8_t rcv_buf[CUDA_RCV_BUF_SIZE]; … … 71 83 fibril_mutex_t dev_lock; 72 84 73 adb_dev_t adb_dev[ADB_MAX_ADDR]; 74 } cuda_instance_t; 85 list_t devs; 86 adb_dev_t *addr_dev[ADB_MAX_ADDR]; 87 } cuda_t; 88 89 extern int cuda_add(cuda_t *, cuda_res_t *); 90 extern int cuda_remove(cuda_t *); 91 extern int cuda_gone(cuda_t *); 75 92 76 93 #endif
Note:
See TracChangeset
for help on using the changeset viewer.