Rev 1843 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1843 | Rev 1896 | ||
---|---|---|---|
Line 78... | Line 78... | ||
78 | #define i8042_MOUSE_DATA 0x20 |
78 | #define i8042_MOUSE_DATA 0x20 |
79 | 79 | ||
80 | static void i8042_suspend(chardev_t *); |
80 | static void i8042_suspend(chardev_t *); |
81 | static void i8042_resume(chardev_t *); |
81 | static void i8042_resume(chardev_t *); |
82 | 82 | ||
83 | chardev_t kbrd; |
- | |
84 | static chardev_operations_t ops = { |
83 | static chardev_operations_t ops = { |
85 | .suspend = i8042_suspend, |
84 | .suspend = i8042_suspend, |
86 | .resume = i8042_resume, |
85 | .resume = i8042_resume, |
87 | .read = key_read |
86 | .read = i8042_key_read |
88 | }; |
87 | }; |
89 | 88 | ||
90 | static void i8042_interrupt(int n, istate_t *istate); |
89 | static void i8042_interrupt(int n, istate_t *istate); |
91 | static void i8042_wait(void); |
90 | static void i8042_wait(void); |
92 | 91 | ||
Line 171... | Line 170... | ||
171 | /* Called from getc(). */ |
170 | /* Called from getc(). */ |
172 | void i8042_suspend(chardev_t *d) |
171 | void i8042_suspend(chardev_t *d) |
173 | { |
172 | { |
174 | } |
173 | } |
175 | 174 | ||
176 | char key_read(chardev_t *d) |
175 | char i8042_key_read(chardev_t *d) |
177 | { |
176 | { |
178 | char ch; |
177 | char ch; |
179 | 178 | ||
180 | while(!(ch = active_read_buff_read())) { |
179 | while(!(ch = active_read_buff_read())) { |
181 | uint8_t x; |
180 | uint8_t x; |