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