Changeset a35b458 in mainline for uspace/srv/devman/devman.h
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.h
r3061bc1 ra35b458 68 68 /** Handle */ 69 69 devman_handle_t handle; 70 70 71 71 /** 72 72 * Specifies whether the driver has been started and wheter is running … … 74 74 */ 75 75 driver_state_t state; 76 76 77 77 /** Session asociated with this driver. */ 78 78 async_sess_t *sess; … … 85 85 /** List of devices controlled by this driver. */ 86 86 list_t devices; 87 87 88 88 /** 89 89 * Fibril mutex for this driver - driver state, list of devices, session. … … 116 116 /** Reference count */ 117 117 atomic_t refcnt; 118 118 119 119 /** The global unique identifier of the device. */ 120 120 devman_handle_t handle; 121 121 122 122 /** (Parent) function the device is attached to. */ 123 123 fun_node_t *pfun; 124 124 125 125 /** List of device functions. */ 126 126 list_t functions; … … 131 131 /** Link to list of devices owned by driver (driver_t.devices) */ 132 132 link_t driver_devices; 133 133 134 134 /** 135 135 * Used by the hash table of devices indexed by devman device handles. 136 136 */ 137 137 ht_link_t devman_dev; 138 138 139 139 /** 140 140 * Whether this device was already passed to the driver. … … 160 160 /** Locked while performing reconfiguration operations */ 161 161 fibril_mutex_t busy_lock; 162 162 163 163 /** The global unique identifier of the function */ 164 164 devman_handle_t handle; … … 167 167 /** Function type */ 168 168 fun_type_t ftype; 169 169 170 170 /** Full path and name of the device in device hierarchy */ 171 171 char *pathname; 172 172 173 173 /** Device which this function belongs to */ 174 174 dev_node_t *dev; 175 175 176 176 /** Link to list of functions in the device (ddf_dev_t.functions) */ 177 177 link_t dev_functions; 178 178 179 179 /** Child device node (if any attached). */ 180 180 dev_node_t *child; 181 181 /** List of device ids for device-to-driver matching. */ 182 182 match_id_list_t match_ids; 183 183 184 184 /** Service ID if the device function is registered with loc. */ 185 185 service_id_t service_id; 186 186 187 187 /** 188 188 * Used by the hash table of functions indexed by devman device handles. 189 189 */ 190 190 ht_link_t devman_fun; 191 191 192 192 /** 193 193 * Used by the hash table of functions indexed by service IDs. … … 200 200 /** Root device node. */ 201 201 fun_node_t *root_node; 202 202 203 203 /** 204 204 * The next available handle - handles are assigned in a sequential … … 206 206 */ 207 207 devman_handle_t current_handle; 208 208 209 209 /** Synchronize access to the device tree. */ 210 210 fibril_rwlock_t rwlock; 211 211 212 212 /** Hash table of all devices indexed by devman handles. */ 213 213 hash_table_t devman_devices; 214 214 215 215 /** Hash table of all devices indexed by devman handles. */ 216 216 hash_table_t devman_functions; 217 217 218 218 /** 219 219 * Hash table of services registered with location service, indexed by
Note:
See TracChangeset
for help on using the changeset viewer.