Changeset 9b56a8dd in mainline for uspace/drv/char/i8042/main.c
- Timestamp:
- 2011-12-26T19:53:31Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4005e37a
- Parents:
- b39eb79
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/i8042/main.c
rb39eb79 r9b56a8dd 97 97 int ret = get_my_registers(device, &io_regs, &io_size, &kbd, &mouse); 98 98 CHECK_RET_RETURN(ret, 99 "Failed to get registers: %s. \n", str_error(ret));99 "Failed to get registers: %s.", str_error(ret)); 100 100 ddf_msg(LVL_DEBUG, 101 "I/O regs at %p (size %zuB), IRQ kbd %d, IRQ mouse %d. \n",101 "I/O regs at %p (size %zuB), IRQ kbd %d, IRQ mouse %d.", 102 102 (void *) io_regs, io_size, kbd, mouse); 103 103 104 104 i8042_t *i8042 = ddf_dev_data_alloc(device, sizeof(i8042_t)); 105 105 ret = (i8042 == NULL) ? ENOMEM : EOK; 106 CHECK_RET_RETURN(ret, "Failed to allocate i8042 driver instance. \n");106 CHECK_RET_RETURN(ret, "Failed to allocate i8042 driver instance."); 107 107 108 108 ret = i8042_init(i8042, (void*)io_regs, io_size, kbd, mouse, device); 109 109 CHECK_RET_RETURN(ret, 110 "Failed to initialize i8042 driver: %s. \n", str_error(ret));110 "Failed to initialize i8042 driver: %s.", str_error(ret)); 111 111 112 ddf_msg(LVL_NOTE, "Controlling '%s' (%" PRIun "). \n",112 ddf_msg(LVL_NOTE, "Controlling '%s' (%" PRIun ").", 113 113 device->name, device->handle); 114 114 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.