Changeset 6a44ee4 in mainline for uspace/srv/devman/devman.h
- Timestamp:
- 2011-07-20T15:26:21Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- efcebe1
- Parents:
- 25bef0ff (diff), a701812 (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.h
r25bef0ff r6a44ee4 44 44 #include <fibril_synch.h> 45 45 #include <atomic.h> 46 #include <async.h> 46 47 47 48 #include "util.h" … … 87 88 int state; 88 89 89 /** Phoneasociated with this driver. */90 int phone;90 /** Session asociated with this driver. */ 91 async_sess_t *sess; 91 92 /** Name of the device driver. */ 92 93 char *name; … … 95 96 /** List of device ids for device-to-driver matching. */ 96 97 match_id_list_t match_ids; 97 /** Pointer to the linked list of devices controlled by this driver. */98 li nk_t devices;99 100 /** 101 * Fibril mutex for this driver - driver state, list of devices, phone.98 /** List of devices controlled by this driver. */ 99 list_t devices; 100 101 /** 102 * Fibril mutex for this driver - driver state, list of devices, session. 102 103 */ 103 104 fibril_mutex_t driver_mutex; … … 107 108 typedef struct driver_list { 108 109 /** List of drivers */ 109 li nk_t drivers;110 list_t drivers; 110 111 /** Fibril mutex for list of drivers. */ 111 112 fibril_mutex_t drivers_mutex; … … 129 130 130 131 /** List of device functions. */ 131 li nk_t functions;132 list_t functions; 132 133 /** Driver of this device. */ 133 134 driver_t *drv; … … 169 170 match_id_list_t match_ids; 170 171 171 /** The list of device classes to which this device function belongs. */172 li nk_t classes;172 /** List of device classes to which this device function belongs. */ 173 list_t classes; 173 174 /** Devmap handle if the device function is registered by devmap. */ 174 175 devmap_handle_t devmap_handle; … … 227 228 * this class. 228 229 */ 229 li nk_t devices;230 list_t devices; 230 231 231 232 /** … … 279 280 typedef struct class_list { 280 281 /** List of classes. */ 281 li nk_t classes;282 list_t classes; 282 283 283 284 /** … … 312 313 extern void add_driver(driver_list_t *, driver_t *); 313 314 extern void attach_driver(dev_node_t *, driver_t *); 314 extern void add_device( int, driver_t *, dev_node_t *, dev_tree_t *);315 extern void add_device(async_sess_t *, driver_t *, dev_node_t *, dev_tree_t *); 315 316 extern bool start_driver(driver_t *); 316 317
Note:
See TracChangeset
for help on using the changeset viewer.