1 /* SPDX-License-Identifier: GPL-2.0-only */
12 #define I8042_KBD_PHYS_DESC "R4030/serio0"
13 #define I8042_AUX_PHYS_DESC "R4030/serio1"
14 #define I8042_MUX_PHYS_DESC "R4030/serio%d"
20 #define I8042_KBD_IRQ JAZZ_KEYBOARD_IRQ
21 #define I8042_AUX_IRQ JAZZ_MOUSE_IRQ
23 #define I8042_COMMAND_REG ((unsigned long)&jazz_kh->command)
24 #define I8042_STATUS_REG ((unsigned long)&jazz_kh->command)
25 #define I8042_DATA_REG ((unsigned long)&jazz_kh->data)
27 static inline int i8042_read_data(void)
32 static inline int i8042_read_status(void)
34 return jazz_kh
->command
;
37 static inline void i8042_write_data(int val
)
42 static inline void i8042_write_command(int val
)
44 jazz_kh
->command
= val
;
47 static inline int i8042_platform_init(void)
50 /* XXX JAZZ_KEYBOARD_ADDRESS is a virtual address */
51 if (!request_mem_region(JAZZ_KEYBOARD_ADDRESS
, 2, "i8042"))
58 static inline void i8042_platform_exit(void)
61 release_mem_region(JAZZ_KEYBOARD_ADDRESS
, 2);
65 #endif /* _I8042_JAZZ_H */