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