Changes in uspace/lib/drv/include/ddf/driver.h [609243f4:77ad86c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/ddf/driver.h
r609243f4 r77ad86c 81 81 */ 82 82 devman_handle_t handle; 83 83 84 /** Reference count */ 84 85 atomic_t refcnt; … … 104 105 /** True if bound to the device manager */ 105 106 bool bound; 107 106 108 /** Function indentifier (asigned by device manager) */ 107 109 devman_handle_t handle; 110 108 111 /** Reference count */ 109 112 atomic_t refcnt; … … 114 117 /** Function type */ 115 118 fun_type_t ftype; 119 116 120 /** Function name */ 117 121 const char *name; 122 118 123 /** List of device ids for driver matching */ 119 124 match_id_list_t match_ids; 125 120 126 /** Driver-specific data associated with this function */ 121 127 void *driver_data; 128 122 129 /** Implementation of operations provided by this function */ 123 130 ddf_dev_ops_t *ops; 131 124 132 /** Connection handler or @c NULL to use the DDF default handler. */ 125 133 async_client_conn_t conn_handler; … … 136 144 typedef struct driver_ops { 137 145 /** Callback method for passing a new device to the device driver */ 138 int (*add_device)(ddf_dev_t *); 139 /** 140 * Notification that the device was succesfully added. 141 * The driver can do any blocking operation without 142 * blocking the device manager. 143 */ 144 void (*device_added)(ddf_dev_t *dev); 146 int (*dev_add)(ddf_dev_t *); 147 145 148 /** Ask driver to remove a device */ 146 149 int (*dev_remove)(ddf_dev_t *); 150 147 151 /** Inform driver a device disappeared */ 148 152 int (*dev_gone)(ddf_dev_t *); 153 149 154 /** Ask driver to online a specific function */ 150 155 int (*fun_online)(ddf_fun_t *); 156 151 157 /** Ask driver to offline a specific function */ 152 158 int (*fun_offline)(ddf_fun_t *);
Note:
See TracChangeset
for help on using the changeset viewer.