Magnus Damm | fc1d003 | 2009-11-27 07:32:24 +0000 | [diff] [blame^] | 1 | #ifndef __SH_KEYSC_H__ |
| 2 | #define __SH_KEYSC_H__ |
Magnus Damm | 795e6bf | 2008-03-04 15:23:45 -0800 | [diff] [blame] | 3 | |
| 4 | #define SH_KEYSC_MAXKEYS 30 |
| 5 | |
| 6 | struct sh_keysc_info { |
| 7 | enum { SH_KEYSC_MODE_1, SH_KEYSC_MODE_2, SH_KEYSC_MODE_3 } mode; |
| 8 | int scan_timing; /* 0 -> 7, see KYCR1, SCN[2:0] */ |
| 9 | int delay; |
Kuninori Morimoto | 1f85d38 | 2009-09-15 00:21:34 +0000 | [diff] [blame] | 10 | int kycr2_delay; |
Magnus Damm | 795e6bf | 2008-03-04 15:23:45 -0800 | [diff] [blame] | 11 | int keycodes[SH_KEYSC_MAXKEYS]; |
| 12 | }; |
| 13 | |
Magnus Damm | fc1d003 | 2009-11-27 07:32:24 +0000 | [diff] [blame^] | 14 | #endif /* __SH_KEYSC_H__ */ |