Changeset d9fae235 in mainline for uspace/srv/hid/kbd/port/pl050.c
- Timestamp:
- 2010-04-17T01:28:38Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9d6bfa5
- Parents:
- 9256ad29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/port/pl050.c
r9256ad29 rd9fae235 83 83 int kbd_port_init(void) 84 84 { 85 86 pl050_kbd.cmds[0].addr = (void *) sysinfo_value("kbd.address.status"); 87 pl050_kbd.cmds[3].addr = (void *) sysinfo_value("kbd.address.data"); 88 85 if (sysinfo_get_value("kbd.address.status", &pl050_kbd.cmds[0].addr) != EOK) 86 return -1; 87 88 if (sysinfo_get_value("kbd.address.data", &pl050_kbd.cmds[3].addr) != EOK) 89 return -1; 90 91 sysarg_t inr; 92 if (sysinfo_get_value("kbd.inr", &inr) != EOK) 93 return -1; 94 89 95 async_set_interrupt_received(pl050_irq_handler); 90 91 ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(), 0, &pl050_kbd); 92 96 ipc_register_irq(inr, device_assign_devno(), 0, &pl050_kbd); 97 93 98 return 0; 94 99 }
Note:
See TracChangeset
for help on using the changeset viewer.