drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
[drm/drm-misc.git] / drivers / input / serio / i8042-jazzio.h
blob4c2a96f9128c82b306f7a739e79adc2feffc5606
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _I8042_JAZZ_H
3 #define _I8042_JAZZ_H
5 #include <asm/jazz.h>
8 /*
9 * Names.
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"
17 * IRQs.
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)
29 return jazz_kh->data;
32 static inline int i8042_read_status(void)
34 return jazz_kh->command;
37 static inline void i8042_write_data(int val)
39 jazz_kh->data = val;
42 static inline void i8042_write_command(int val)
44 jazz_kh->command = val;
47 static inline int i8042_platform_init(void)
49 #if 0
50 /* XXX JAZZ_KEYBOARD_ADDRESS is a virtual address */
51 if (!request_mem_region(JAZZ_KEYBOARD_ADDRESS, 2, "i8042"))
52 return -EBUSY;
53 #endif
55 return 0;
58 static inline void i8042_platform_exit(void)
60 #if 0
61 release_mem_region(JAZZ_KEYBOARD_ADDRESS, 2);
62 #endif
65 #endif /* _I8042_JAZZ_H */