xref: /linux/include/linux/input/sh_keysc.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __SH_KEYSC_H__
3 #define __SH_KEYSC_H__
4 
5 #define SH_KEYSC_MAXKEYS 64
6 
7 struct sh_keysc_info {
8 	enum { SH_KEYSC_MODE_1, SH_KEYSC_MODE_2, SH_KEYSC_MODE_3,
9 	       SH_KEYSC_MODE_4, SH_KEYSC_MODE_5, SH_KEYSC_MODE_6 } mode;
10 	int scan_timing; /* 0 -> 7, see KYCR1, SCN[2:0] */
11 	int delay;
12 	int kycr2_delay;
13 	int keycodes[SH_KEYSC_MAXKEYS]; /* KEYIN * KEYOUT */
14 };
15 
16 #endif /* __SH_KEYSC_H__ */
17