Changes in uspace/drv/char/i8042/main.c [56fd7cf:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/i8042/main.c
r56fd7cf r9d58539 37 37 #include <libarch/inttypes.h> 38 38 #include <ddf/driver.h> 39 #include <devman.h> 39 40 #include <device/hw_res_parsed.h> 40 41 #include <errno.h> … … 63 64 * 64 65 */ 65 static int get_my_registers( ddf_dev_t *dev, uintptr_t *io_reg_address,66 static int get_my_registers(const ddf_dev_t *dev, uintptr_t *io_reg_address, 66 67 size_t *io_reg_size, int *kbd_irq, int *mouse_irq) 67 68 { 68 69 assert(dev); 69 70 70 async_sess_t *parent_sess = ddf_dev_parent_sess_create( 71 dev, EXCHANGE_SERIALIZE); 72 if (parent_sess == NULL) 71 async_sess_t *parent_sess = 72 devman_parent_device_connect(EXCHANGE_SERIALIZE, dev->handle, 73 IPC_FLAG_BLOCKING); 74 if (!parent_sess) 73 75 return ENOMEM; 74 76 … … 76 78 hw_res_list_parsed_init(&hw_resources); 77 79 const int ret = hw_res_get_list_parsed(parent_sess, &hw_resources, 0); 80 async_hangup(parent_sess); 78 81 if (ret != EOK) 79 82 return ret; … … 133 136 134 137 ddf_msg(LVL_NOTE, "Controlling '%s' (%" PRIun ").", 135 d df_dev_get_name(device), ddf_dev_get_handle(device));138 device->name, device->handle); 136 139 return EOK; 137 140 }
Note:
See TracChangeset
for help on using the changeset viewer.