Changeset 3bdf3d3 in mainline for uspace/srv/hid/kbd/port/pl050.c
- Timestamp:
- 2010-04-19T13:33:18Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- caad59a
- Parents:
- bd01a4e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/port/pl050.c
rbd01a4e r3bdf3d3 45 45 #include <ddi.h> 46 46 #include <stdio.h> 47 #include <errno.h> 47 48 48 #define PL050_STAT_RXFULL (1 << 4) 49 #define PL050_STAT_RXFULL (1 << 4) 50 49 51 static irq_cmd_t pl050_cmds[] = { 50 52 { … … 66 68 { 67 69 .cmd = CMD_PIO_READ_8, 68 .addr = NULL, /* will be patched in run-time */70 .addr = NULL, /* Will be patched in run-time */ 69 71 .dstarg = 2 70 72 }, … … 83 85 int kbd_port_init(void) 84 86 { 85 if (sysinfo_get_value("kbd.address.status", &pl050_kbd.cmds[0].addr) != EOK) 87 sysarg_t addr; 88 if (sysinfo_get_value("kbd.address.status", &addr) != EOK) 86 89 return -1; 87 90 88 if (sysinfo_get_value("kbd.address.data", &pl050_kbd.cmds[3].addr) != EOK) 91 pl050_kbd.cmds[0].addr = (void *) addr; 92 93 if (sysinfo_get_value("kbd.address.data", &addr) != EOK) 89 94 return -1; 95 96 pl050_kbd.cmds[3].addr = (void *) addr; 90 97 91 98 sysarg_t inr;
Note:
See TracChangeset
for help on using the changeset viewer.