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