Changeset cb569e6 in mainline for uspace/srv/devman
- Timestamp:
- 2010-11-18T21:58:27Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4e5c7ba
- Parents:
- 69e0d6d (diff), 45f04f8 (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. - Location:
- uspace/srv/devman
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
r69e0d6d rcb569e6 52 52 { 53 53 node_t *dev = hash_table_get_instance(item, node_t, devman_link); 54 return (dev->handle == (dev ice_handle_t) key[0]);54 return (dev->handle == (devman_handle_t) key[0]); 55 55 } 56 56 … … 59 59 { 60 60 node_t *dev = hash_table_get_instance(item, node_t, devmap_link); 61 return (dev->devmap_handle == (dev _handle_t) key[0]);61 return (dev->devmap_handle == (devmap_handle_t) key[0]); 62 62 } 63 63 … … 782 782 * @return The device node. 783 783 */ 784 node_t *find_dev_node_no_lock(dev_tree_t *tree, dev ice_handle_t handle)784 node_t *find_dev_node_no_lock(dev_tree_t *tree, devman_handle_t handle) 785 785 { 786 786 unsigned long key = handle; … … 795 795 * @return The device node. 796 796 */ 797 node_t *find_dev_node(dev_tree_t *tree, dev ice_handle_t handle)797 node_t *find_dev_node(dev_tree_t *tree, devman_handle_t handle) 798 798 { 799 799 node_t *node = NULL; … … 1106 1106 /* Devmap devices */ 1107 1107 1108 node_t *find_devmap_tree_device(dev_tree_t *tree, dev _handle_t devmap_handle)1108 node_t *find_devmap_tree_device(dev_tree_t *tree, devmap_handle_t devmap_handle) 1109 1109 { 1110 1110 node_t *dev = NULL; … … 1122 1122 1123 1123 node_t *find_devmap_class_device(class_list_t *classes, 1124 dev _handle_t devmap_handle)1124 devmap_handle_t devmap_handle) 1125 1125 { 1126 1126 node_t *dev = NULL; -
uspace/srv/devman/devman.h
r69e0d6d rcb569e6 121 121 struct node { 122 122 /** The global unique identifier of the device. */ 123 dev ice_handle_t handle;123 devman_handle_t handle; 124 124 /** The name of the device specified by its parent. */ 125 125 char *name; … … 157 157 link_t classes; 158 158 /** Devmap handle if the device is registered by devmapper. */ 159 dev _handle_t devmap_handle;159 devmap_handle_t devmap_handle; 160 160 161 161 /** … … 179 179 * manner. 180 180 */ 181 dev ice_handle_t current_handle;181 devman_handle_t current_handle; 182 182 183 183 /** Synchronize access to the device tree. */ … … 248 248 char *dev_name; 249 249 /** The handle of the device by device mapper in the class namespace. */ 250 dev _handle_t devmap_handle;250 devmap_handle_t devmap_handle; 251 251 252 252 /** … … 309 309 extern void delete_dev_node(node_t *node); 310 310 extern node_t *find_dev_node_no_lock(dev_tree_t *tree, 311 dev ice_handle_t handle);312 extern node_t *find_dev_node(dev_tree_t *tree, dev ice_handle_t handle);311 devman_handle_t handle); 312 extern node_t *find_dev_node(dev_tree_t *tree, devman_handle_t handle); 313 313 extern node_t *find_dev_node_by_path(dev_tree_t *, char *); 314 314 extern node_t *find_node_child(node_t *, const char *); … … 337 337 /* Devmap devices */ 338 338 339 extern node_t *find_devmap_tree_device(dev_tree_t *, dev _handle_t);340 extern node_t *find_devmap_class_device(class_list_t *, dev _handle_t);339 extern node_t *find_devmap_tree_device(dev_tree_t *, devmap_handle_t); 340 extern node_t *find_devmap_class_device(class_list_t *, devmap_handle_t); 341 341 342 342 extern void class_add_devmap_device(class_list_t *, dev_class_info_t *); -
uspace/srv/devman/main.c
r69e0d6d rcb569e6 202 202 static void devman_add_child(ipc_callid_t callid, ipc_call_t *call) 203 203 { 204 dev ice_handle_t parent_handle = IPC_GET_ARG1(*call);204 devman_handle_t parent_handle = IPC_GET_ARG1(*call); 205 205 ipcarg_t match_count = IPC_GET_ARG2(*call); 206 206 dev_tree_t *tree = &device_tree; … … 271 271 static void devman_add_device_to_class(ipc_callid_t callid, ipc_call_t *call) 272 272 { 273 dev ice_handle_t handle = IPC_GET_ARG1(*call);273 devman_handle_t handle = IPC_GET_ARG1(*call); 274 274 275 275 /* Get class name. */ … … 414 414 bool drv_to_parent) 415 415 { 416 dev ice_handle_t handle = IPC_GET_ARG2(*icall);416 devman_handle_t handle = IPC_GET_ARG2(*icall); 417 417 418 418 node_t *dev = find_dev_node(&device_tree, handle); … … 464 464 static void devman_connection_devmapper(ipc_callid_t iid, ipc_call_t *icall) 465 465 { 466 dev _handle_t devmap_handle = IPC_GET_METHOD(*icall);466 devmap_handle_t devmap_handle = IPC_GET_METHOD(*icall); 467 467 node_t *dev; 468 468
Note:
See TracChangeset
for help on using the changeset viewer.
