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