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