Rev 3343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3343 | Rev 3665 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | #include <ddi/irq.h> |
42 | #include <ddi/irq.h> |
43 | #include <ipc/irq.h> |
43 | #include <ipc/irq.h> |
44 | #include <proc/thread.h> |
44 | #include <proc/thread.h> |
45 | #include <synch/spinlock.h> |
45 | #include <synch/spinlock.h> |
46 | #include <arch/asm.h> |
46 | #include <arch/asm.h> |
- | 47 | #include <arch/drivers/kbd.h> |
|
47 | 48 | ||
48 | #define SKI_KBD_INR 0 |
49 | #define SKI_KBD_INR 0 |
49 | 50 | ||
50 | static irq_t ski_kbd_irq; |
51 | static irq_t ski_kbd_irq; |
51 | static devno_t ski_kbd_devno; |
52 | static devno_t ski_kbd_devno; |
Line 225... | Line 226... | ||
225 | irq_register(&ski_kbd_irq); |
226 | irq_register(&ski_kbd_irq); |
226 | 227 | ||
227 | sysinfo_set_item_val("kbd", NULL, true); |
228 | sysinfo_set_item_val("kbd", NULL, true); |
228 | sysinfo_set_item_val("kbd.inr", NULL, SKI_KBD_INR); |
229 | sysinfo_set_item_val("kbd.inr", NULL, SKI_KBD_INR); |
229 | sysinfo_set_item_val("kbd.devno", NULL, ski_kbd_devno); |
230 | sysinfo_set_item_val("kbd.devno", NULL, ski_kbd_devno); |
- | 231 | sysinfo_set_item_val("kbd.type", NULL, KBD_SKI); |
|
230 | } |
232 | } |
231 | 233 | ||
232 | void ski_kbd_grab(void) |
234 | void ski_kbd_grab(void) |
233 | { |
235 | { |
234 | ipl_t ipl = interrupts_disable(); |
236 | ipl_t ipl = interrupts_disable(); |