2009-11-27 15:32:24 +08:00
|
|
|
#ifndef __SH_KEYSC_H__
|
|
|
|
#define __SH_KEYSC_H__
|
2008-03-05 07:23:45 +08:00
|
|
|
|
2011-06-18 17:51:52 +08:00
|
|
|
#define SH_KEYSC_MAXKEYS 64
|
2008-03-05 07:23:45 +08:00
|
|
|
|
|
|
|
struct sh_keysc_info {
|
2010-01-21 16:02:36 +08:00
|
|
|
enum { SH_KEYSC_MODE_1, SH_KEYSC_MODE_2, SH_KEYSC_MODE_3,
|
2010-02-11 15:03:22 +08:00
|
|
|
SH_KEYSC_MODE_4, SH_KEYSC_MODE_5, SH_KEYSC_MODE_6 } mode;
|
2008-03-05 07:23:45 +08:00
|
|
|
int scan_timing; /* 0 -> 7, see KYCR1, SCN[2:0] */
|
|
|
|
int delay;
|
2009-09-15 08:21:34 +08:00
|
|
|
int kycr2_delay;
|
2010-02-11 15:03:22 +08:00
|
|
|
int keycodes[SH_KEYSC_MAXKEYS]; /* KEYIN * KEYOUT */
|
2008-03-05 07:23:45 +08:00
|
|
|
};
|
|
|
|
|
2009-11-27 15:32:24 +08:00
|
|
|
#endif /* __SH_KEYSC_H__ */
|