Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

mxc_keyb.h File Reference


Detailed Description

MXC keypad header file.

Definition in file mxc_keyb.h.

Go to the source code of this file.

Classes

struct  keypad_priv

Defines

#define BITRESET(c, n)   ((c) & ~(1 << (n)))
#define BITSET(c, n)   ((c) | (1 << (n)))
#define KBD_STAT_KDIE   0x100
#define KBD_STAT_KDSC   0x04
#define KBD_STAT_KPKD   0x01
#define KBD_STAT_KPKR   0x02
#define KBD_STAT_KPPEN   0x400
#define KBD_STAT_KRIE   0x200
#define KBD_STAT_KRSS   0x08
#define KDDR   IO_ADDRESS(KPP_BASE_ADDR + 0x04)
#define KEYPAD_RAW   1
#define KEYPAD_XLATE   0
#define KPCR   IO_ADDRESS(KPP_BASE_ADDR + 0x00)
#define KPDR   IO_ADDRESS(KPP_BASE_ADDR + 0x06)
#define KPP_BUF_SIZE   128
#define KPP_IRQ   MXC_INT_KPP
#define KPSR   IO_ADDRESS(KPP_BASE_ADDR + 0x02)
#define MAXCOL   8
#define MAXROW   8
#define MOD_NAME   "mxckpd"
#define MXC_KEYRELEASE   128
#define MXC_MAXKEY   (MAXROW * MAXCOL)
#define TEST_BIT(c, n)   ((c) & (0x1 << (n)))

Enumerations

enum  KeyState { KStateUp, KStateFirstDown, KStateDown, KStateFirstUp }


Generated by  Doxygen 1.6.0   Back to index