Changeset c2417bc in mainline for uspace/srv/kbd/port/sun.c
- Timestamp:
- 2009-04-21T12:46:26Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f2d2c7ba
- Parents:
- 44b7783
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/port/sun.c
r44b7783 rc2417bc 40 40 #include <sysinfo.h> 41 41 42 typedef enum {43 KBD_UNKNOWN,44 KBD_Z8530,45 KBD_NS16550,46 KBD_SGCN47 } kbd_type_t;48 49 42 /** Sun keyboard virtual port driver. 50 43 * … … 57 50 int kbd_port_init(void) 58 51 { 59 if (sysinfo_value("kbd.type") == KBD_Z8530) 60 return z8530_port_init(); 61 else if (sysinfo_value("kbd.type") == KBD_NS16550) 62 return ns16550_port_init(); 52 if (sysinfo_value("kbd.type.z8530")) { 53 if (z8530_port_init() == 0) 54 return 0; 55 } 56 57 if (sysinfo_value("kbd.type.ns16550")) { 58 if (ns16550_port_init() == 0) 59 return 0; 60 } 63 61 64 62 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.