Rev 1790 | Rev 1842 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1790 | Rev 1841 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef KERN_sparc64_I8042_H_ |
35 | #ifndef KERN_sparc64_Z8530_H_ |
36 | #define KERN_sparc64_I8042_H_ |
36 | #define KERN_sparc64_Z8530_H_ |
37 | 37 | ||
38 | #include <arch/types.h> |
38 | #include <arch/types.h> |
39 | 39 | ||
40 | #define STATUS_REG 4 |
40 | #define STATUS_REG 4 |
41 | #define COMMAND_REG 4 |
41 | #define COMMAND_REG 4 |
Line 43... | Line 43... | ||
43 | 43 | ||
44 | #define LAST_REG DATA_REG |
44 | #define LAST_REG DATA_REG |
45 | 45 | ||
46 | extern volatile uint8_t *kbd_virt_address; |
46 | extern volatile uint8_t *kbd_virt_address; |
47 | 47 | ||
48 | static inline void i8042_data_write(uint8_t data) |
48 | static inline void z8530_data_write(uint8_t data) |
49 | { |
49 | { |
50 | kbd_virt_address[DATA_REG] = data; |
50 | kbd_virt_address[DATA_REG] = data; |
51 | } |
51 | } |
52 | 52 | ||
53 | static inline uint8_t i8042_data_read(void) |
53 | static inline uint8_t z8530_data_read(void) |
54 | { |
54 | { |
55 | return kbd_virt_address[DATA_REG]; |
55 | return kbd_virt_address[DATA_REG]; |
56 | } |
56 | } |
57 | 57 | ||
58 | static inline uint8_t i8042_status_read(void) |
58 | static inline uint8_t z8530_status_read(void) |
59 | { |
59 | { |
60 | return kbd_virt_address[STATUS_REG]; |
60 | return kbd_virt_address[STATUS_REG]; |
61 | } |
61 | } |
62 | 62 | ||
63 | static inline void i8042_command_write(uint8_t command) |
63 | static inline void z8530_command_write(uint8_t command) |
64 | { |
64 | { |
65 | kbd_virt_address[COMMAND_REG] = command; |
65 | kbd_virt_address[COMMAND_REG] = command; |
66 | } |
66 | } |
67 | 67 | ||
68 | extern void kbd_init(void); |
68 | extern void kbd_init(void); |