Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Magnus Damm | fc1d003 | 2009-11-27 07:32:24 +0000 | [diff] [blame] | 2 | #ifndef __SH_KEYSC_H__ |
| 3 | #define __SH_KEYSC_H__ |
Magnus Damm | 795e6bf | 2008-03-04 15:23:45 -0800 | [diff] [blame] | 4 | |
Magnus Damm | cca23d0 | 2011-06-18 02:51:52 -0700 | [diff] [blame] | 5 | #define SH_KEYSC_MAXKEYS 64 |
Magnus Damm | 795e6bf | 2008-03-04 15:23:45 -0800 | [diff] [blame] | 6 | |
| 7 | struct sh_keysc_info { |
Magnus Damm | 3bf1276 | 2010-01-21 00:02:36 -0800 | [diff] [blame] | 8 | enum { SH_KEYSC_MODE_1, SH_KEYSC_MODE_2, SH_KEYSC_MODE_3, |
Magnus Damm | 8f8be24 | 2010-02-10 23:03:22 -0800 | [diff] [blame] | 9 | SH_KEYSC_MODE_4, SH_KEYSC_MODE_5, SH_KEYSC_MODE_6 } mode; |
Magnus Damm | 795e6bf | 2008-03-04 15:23:45 -0800 | [diff] [blame] | 10 | int scan_timing; /* 0 -> 7, see KYCR1, SCN[2:0] */ |
| 11 | int delay; |
Kuninori Morimoto | 1f85d38 | 2009-09-15 00:21:34 +0000 | [diff] [blame] | 12 | int kycr2_delay; |
Magnus Damm | 8f8be24 | 2010-02-10 23:03:22 -0800 | [diff] [blame] | 13 | int keycodes[SH_KEYSC_MAXKEYS]; /* KEYIN * KEYOUT */ |
Magnus Damm | 795e6bf | 2008-03-04 15:23:45 -0800 | [diff] [blame] | 14 | }; |
| 15 | |
Magnus Damm | fc1d003 | 2009-11-27 07:32:24 +0000 | [diff] [blame] | 16 | #endif /* __SH_KEYSC_H__ */ |