Changes in uspace/srv/hid/input/port/pl050.c [21063c2:1875a0c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/pl050.c
r21063c2 r1875a0c 61 61 static kbd_dev_t *kbd_dev; 62 62 63 #define PL050_STAT 464 #define PL050_DATA 865 66 63 #define PL050_STAT_RXFULL (1 << 4) 67 68 static irq_pio_range_t pl050_ranges[] = {69 {70 .base = 0,71 .size = 9,72 }73 };74 64 75 65 static irq_cmd_t pl050_cmds[] = { … … 101 91 102 92 static irq_code_t pl050_kbd = { 103 sizeof(pl050_ranges) / sizeof(irq_pio_range_t),104 pl050_ranges,105 93 sizeof(pl050_cmds) / sizeof(irq_cmd_t), 106 94 pl050_cmds … … 114 102 115 103 sysarg_t addr; 116 if (sysinfo_get_value("kbd.address. physical", &addr) != EOK)104 if (sysinfo_get_value("kbd.address.status", &addr) != EOK) 117 105 return -1; 118 106 119 pl050_kbd.ranges[0].base = addr; 120 pl050_kbd.cmds[0].addr = (void *) addr + PL050_STAT; 121 pl050_kbd.cmds[3].addr = (void *) addr + PL050_DATA; 107 pl050_kbd.cmds[0].addr = (void *) addr; 108 109 if (sysinfo_get_value("kbd.address.data", &addr) != EOK) 110 return -1; 111 112 pl050_kbd.cmds[3].addr = (void *) addr; 122 113 123 114 sysarg_t inr; … … 126 117 127 118 async_set_interrupt_received(pl050_irq_handler); 128 irq_register(inr, device_assign_devno(), 0, &pl050_kbd);119 register_irq(inr, device_assign_devno(), 0, &pl050_kbd); 129 120 130 121 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.