Changes in uspace/srv/devman/devman.h [b72efe8:3ad7b1c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.h
rb72efe8 r3ad7b1c 44 44 #include <fibril_synch.h> 45 45 #include <atomic.h> 46 #include <async.h>47 46 48 47 #include "util.h" … … 88 87 int state; 89 88 90 /** Sessionasociated with this driver. */91 async_sess_t *sess;89 /** Phone asociated with this driver. */ 90 int phone; 92 91 /** Name of the device driver. */ 93 92 char *name; … … 96 95 /** List of device ids for device-to-driver matching. */ 97 96 match_id_list_t match_ids; 98 /** List of devices controlled by this driver. */99 li st_t devices;100 101 /** 102 * Fibril mutex for this driver - driver state, list of devices, session.97 /** Pointer to the linked list of devices controlled by this driver. */ 98 link_t devices; 99 100 /** 101 * Fibril mutex for this driver - driver state, list of devices, phone. 103 102 */ 104 103 fibril_mutex_t driver_mutex; … … 108 107 typedef struct driver_list { 109 108 /** List of drivers */ 110 li st_t drivers;109 link_t drivers; 111 110 /** Fibril mutex for list of drivers. */ 112 111 fibril_mutex_t drivers_mutex; … … 130 129 131 130 /** List of device functions. */ 132 li st_t functions;131 link_t functions; 133 132 /** Driver of this device. */ 134 133 driver_t *drv; … … 170 169 match_id_list_t match_ids; 171 170 172 /** List of device classes to which this device function belongs. */173 li st_t classes;171 /** The list of device classes to which this device function belongs. */ 172 link_t classes; 174 173 /** Devmap handle if the device function is registered by devmap. */ 175 174 devmap_handle_t devmap_handle; … … 228 227 * this class. 229 228 */ 230 li st_t devices;229 link_t devices; 231 230 232 231 /** … … 280 279 typedef struct class_list { 281 280 /** List of classes. */ 282 li st_t classes;281 link_t classes; 283 282 284 283 /** … … 313 312 extern void add_driver(driver_list_t *, driver_t *); 314 313 extern void attach_driver(dev_node_t *, driver_t *); 315 extern void add_device( async_sess_t *, driver_t *, dev_node_t *, dev_tree_t *);314 extern void add_device(int, driver_t *, dev_node_t *, dev_tree_t *); 316 315 extern bool start_driver(driver_t *); 317 316
Note:
See TracChangeset
for help on using the changeset viewer.