Rev 3963 | Rev 3982 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3963 | Rev 3981 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | #include <console/chardev.h> |
48 | #include <console/chardev.h> |
49 | #include <console/console.h> |
49 | #include <console/console.h> |
50 | #include <interrupt.h> |
50 | #include <interrupt.h> |
51 | #include <sysinfo/sysinfo.h> |
51 | #include <sysinfo/sysinfo.h> |
52 | 52 | ||
53 | i8042_instance_t lgcy_i8042_instance = { |
- | |
54 | .i8042 = (i8042_t *) I8042_BASE, |
- | |
55 | }; |
- | |
56 | - | ||
57 | /* Keyboard commands. */ |
53 | /* Keyboard commands. */ |
58 | #define KBD_ENABLE 0xf4 |
54 | #define KBD_ENABLE 0xf4 |
59 | #define KBD_DISABLE 0xf5 |
55 | #define KBD_DISABLE 0xf5 |
60 | #define KBD_ACK 0xfa |
56 | #define KBD_ACK 0xfa |
61 | 57 | ||
Line 76... | Line 72... | ||
76 | 72 | ||
77 | #define i8042_SET_COMMAND 0x60 |
73 | #define i8042_SET_COMMAND 0x60 |
78 | #define i8042_COMMAND 0x69 |
74 | #define i8042_COMMAND 0x69 |
79 | 75 | ||
80 | #define i8042_BUFFER_FULL_MASK 0x01 |
76 | #define i8042_BUFFER_FULL_MASK 0x01 |
81 | #define i8042_WAIT_MASK 0x02 |
77 | #define i8042_WAIT_MASK 0x02 |
82 | #define i8042_MOUSE_DATA 0x20 |
78 | #define i8042_MOUSE_DATA 0x20 |
83 | 79 | ||
84 | static void i8042_suspend(chardev_t *); |
80 | static void i8042_suspend(chardev_t *); |
85 | static void i8042_resume(chardev_t *); |
81 | static void i8042_resume(chardev_t *); |
86 | 82 | ||
87 | static chardev_operations_t ops = { |
83 | static chardev_operations_t ops = { |