Changeset 0b5a4131 in mainline for uspace/lib/c
- Timestamp:
- 2010-11-18T18:10:11Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c63e70c
- Parents:
- 991f645
- Location:
- uspace/lib/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/devman.c
r991f645 r0b5a4131 141 141 142 142 int devman_child_device_register( 143 const char *name, match_id_list_t *match_ids, dev ice_handle_t parent_handle, device_handle_t *handle)143 const char *name, match_id_list_t *match_ids, devman_handle_t parent_handle, devman_handle_t *handle) 144 144 { 145 145 int phone = devman_get_phone(DEVMAN_DRIVER, IPC_FLAG_BLOCKING); … … 180 180 } 181 181 182 int devman_add_device_to_class(dev ice_handle_t dev_handle, const char *class_name)182 int devman_add_device_to_class(devman_handle_t devman_handle, const char *class_name) 183 183 { 184 184 int phone = devman_get_phone(DEVMAN_DRIVER, IPC_FLAG_BLOCKING); … … 189 189 async_serialize_start(); 190 190 ipc_call_t answer; 191 aid_t req = async_send_1(phone, DEVMAN_ADD_DEVICE_TO_CLASS, dev _handle, &answer);191 aid_t req = async_send_1(phone, DEVMAN_ADD_DEVICE_TO_CLASS, devman_handle, &answer); 192 192 193 193 ipcarg_t retval = async_data_write_start(phone, class_name, str_size(class_name)); … … 224 224 } 225 225 226 int devman_device_connect(dev ice_handle_t handle, unsigned int flags)226 int devman_device_connect(devman_handle_t handle, unsigned int flags) 227 227 { 228 228 int phone; … … 239 239 } 240 240 241 int devman_parent_device_connect(dev ice_handle_t handle, unsigned int flags)241 int devman_parent_device_connect(devman_handle_t handle, unsigned int flags) 242 242 { 243 243 int phone; … … 254 254 } 255 255 256 int devman_device_get_handle(const char *pathname, dev ice_handle_t *handle, unsigned int flags)256 int devman_device_get_handle(const char *pathname, devman_handle_t *handle, unsigned int flags) 257 257 { 258 258 int phone = devman_get_phone(DEVMAN_CLIENT, flags); … … 280 280 if (retval != EOK) { 281 281 if (handle != NULL) 282 *handle = (dev ice_handle_t) -1;282 *handle = (devman_handle_t) -1; 283 283 return retval; 284 284 } 285 285 286 286 if (handle != NULL) 287 *handle = (dev ice_handle_t) IPC_GET_ARG1(answer);287 *handle = (devman_handle_t) IPC_GET_ARG1(answer); 288 288 289 289 return retval; -
uspace/lib/c/include/devman.h
r991f645 r0b5a4131 46 46 47 47 int devman_driver_register(const char *, async_client_conn_t); 48 int devman_child_device_register(const char *, match_id_list_t *, dev ice_handle_t, device_handle_t *);48 int devman_child_device_register(const char *, match_id_list_t *, devman_handle_t, devman_handle_t *); 49 49 50 int devman_device_connect(dev ice_handle_t handle, unsigned int flags);51 int devman_parent_device_connect(dev ice_handle_t handle, unsigned int flags);50 int devman_device_connect(devman_handle_t handle, unsigned int flags); 51 int devman_parent_device_connect(devman_handle_t handle, unsigned int flags); 52 52 53 int devman_device_get_handle(const char *pathname, dev ice_handle_t *handle, unsigned int flags);53 int devman_device_get_handle(const char *pathname, devman_handle_t *handle, unsigned int flags); 54 54 55 int devman_add_device_to_class(dev ice_handle_t dev_handle, const char *class_name);55 int devman_add_device_to_class(devman_handle_t devman_handle, const char *class_name); 56 56 57 57 #endif -
uspace/lib/c/include/ipc/devman.h
r991f645 r0b5a4131 42 42 #define DEVMAN_NAME_MAXLEN 256 43 43 44 typedef ipcarg_t dev ice_handle_t;44 typedef ipcarg_t devman_handle_t; 45 45 46 46 /** Ids of device models used for device-to-driver matching.
Note:
See TracChangeset
for help on using the changeset viewer.