Changes in uspace/lib/drv/include/ddf/driver.h [80a96d2:d0dd7b5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/ddf/driver.h
r80a96d2 rd0dd7b5 81 81 */ 82 82 devman_handle_t handle; 83 /** Reference count */84 atomic_t refcnt;85 83 86 84 /** … … 106 104 /** Function indentifier (asigned by device manager) */ 107 105 devman_handle_t handle; 108 /** Reference count */109 atomic_t refcnt;110 106 111 107 /** Device which this function belogs to */ … … 136 132 typedef struct driver_ops { 137 133 /** Callback method for passing a new device to the device driver */ 138 int (*add_device)(ddf_dev_t *); 139 /** Ask driver to remove a device */ 140 int (*dev_remove)(ddf_dev_t *); 141 /** Inform driver a device disappeared */ 142 int (*dev_gone)(ddf_dev_t *); 143 /** Ask driver to online a specific function */ 144 int (*fun_online)(ddf_fun_t *); 145 /** Ask driver to offline a specific function */ 146 int (*fun_offline)(ddf_fun_t *); 134 int (*add_device)(ddf_dev_t *dev); 135 /* TODO: add other generic driver operations */ 147 136 } driver_ops_t; 148 137 … … 157 146 extern int ddf_driver_main(driver_t *); 158 147 159 extern void *ddf_dev_data_alloc(ddf_dev_t *, size_t);160 148 extern ddf_fun_t *ddf_fun_create(ddf_dev_t *, fun_type_t, const char *); 161 149 extern void ddf_fun_destroy(ddf_fun_t *); 162 extern void *ddf_fun_data_alloc(ddf_fun_t *, size_t);163 150 extern int ddf_fun_bind(ddf_fun_t *); 164 151 extern int ddf_fun_unbind(ddf_fun_t *); 165 extern int ddf_fun_online(ddf_fun_t *);166 extern int ddf_fun_offline(ddf_fun_t *);167 152 extern int ddf_fun_add_match_id(ddf_fun_t *, const char *, int); 168 153
Note:
See TracChangeset
for help on using the changeset viewer.