Changeset d347b53 in mainline for uspace/lib/libdrv/generic/driver.c
- Timestamp:
- 2010-03-21T19:33:58Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 66babbd
- Parents:
- bda60d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.