Rev 1844 | Rev 1888 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1844 | Rev 1880 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | #include <arch.h> |
45 | #include <arch.h> |
46 | #include <typedefs.h> |
46 | #include <typedefs.h> |
47 | #include <console/chardev.h> |
47 | #include <console/chardev.h> |
48 | #include <console/console.h> |
48 | #include <console/console.h> |
49 | #include <interrupt.h> |
49 | #include <interrupt.h> |
- | 50 | #include <sysinfo/sysinfo.h> |
|
50 | 51 | ||
51 | #define LSR_DATA_READY 0x01 |
52 | #define LSR_DATA_READY 0x01 |
52 | 53 | ||
53 | /* |
54 | /* |
54 | * These codes read from ns16550 data register are silently ignored. |
55 | * These codes read from ns16550 data register are silently ignored. |
Line 84... | Line 85... | ||
84 | void ns16550_init(void) |
85 | void ns16550_init(void) |
85 | { |
86 | { |
86 | ns16550_grab(); |
87 | ns16550_grab(); |
87 | chardev_initialize("ns16550_kbd", &kbrd, &ops); |
88 | chardev_initialize("ns16550_kbd", &kbrd, &ops); |
88 | stdin = &kbrd; |
89 | stdin = &kbrd; |
- | 90 | ||
- | 91 | sysinfo_set_item_val("kbd", NULL, true); |
|
- | 92 | sysinfo_set_item_val("kbd.irq", NULL, 0); |
|
- | 93 | sysinfo_set_item_val("kbd.address.virtual", NULL, (uintptr_t) kbd_virt_address); |
|
89 | } |
94 | } |
90 | 95 | ||
91 | /** Process ns16550 interrupt. |
96 | /** Process ns16550 interrupt. |
92 | * |
97 | * |
93 | * @param n Interrupt vector. |
98 | * @param n Interrupt vector. |