Changeset d347b53 in mainline for uspace/lib
- Timestamp:
- 2010-03-21T19:33:58Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 66babbd
- Parents:
- bda60d9
- Location:
- uspace/lib
- Files:
-
- 2 edited
-
libc/generic/devman.c (modified) (1 diff)
-
libdrv/generic/driver.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/devman.c
rbda60d9 rd347b53 108 108 int devman_child_device_register( 109 109 const char *name, match_id_list_t *match_ids, device_handle_t parent_handle, device_handle_t *handle) 110 { 110 { 111 111 int phone = devman_get_phone(DEVMAN_DRIVER, IPC_FLAG_BLOCKING); 112 112 -
uspace/lib/libdrv/generic/driver.c
rbda60d9 rd347b53 72 72 // result of the operation - device was added, device is not present etc. 73 73 ipcarg_t ret = 0; 74 device_handle_t dev_handle = IPC_GET_ARG1(*icall); 75 76 printf("%s: adding device with handle = %x \n", driver->name, dev_handle); 77 74 device_handle_t dev_handle = IPC_GET_ARG1(*icall); 78 75 device_t *dev = driver_create_device(); 79 76 dev->handle = dev_handle; … … 82 79 // TODO set return value 83 80 } 81 printf("%s: new device with handle = %x was added.\n", driver->name, dev_handle); 84 82 85 ipc _answer_1(iid, EOK, ret);83 ipcarg_t r = ipc_answer_1(iid, EOK, ret); 86 84 } 87 85 … … 168 166 169 167 // register driver by device manager with generic handler for incoming connections 170 printf("%s: sending registration request to devman.\n", driver->name);171 168 devman_driver_register(driver->name, driver_connection); 172 169
Note:
See TracChangeset
for help on using the changeset viewer.
