Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[firefly-linux-kernel-4.4.55.git] / include / linux / i8042.h
index a986ff588944ae0a5bb1ccc7017150324b488210..0f9bafa17a02dde9af7f4866ca8b9f741c83ddf1 100644 (file)
 #define I8042_CMD_MUX_PFX      0x0090
 #define I8042_CMD_MUX_SEND     0x1090
 
+/*
+ * Status register bits.
+ */
+
+#define I8042_STR_PARITY       0x80
+#define I8042_STR_TIMEOUT      0x40
+#define I8042_STR_AUXDATA      0x20
+#define I8042_STR_KEYLOCK      0x10
+#define I8042_STR_CMDDAT       0x08
+#define I8042_STR_MUXERR       0x04
+#define I8042_STR_IBF          0x02
+#define I8042_STR_OBF          0x01
+
+/*
+ * Control register bits.
+ */
+
+#define I8042_CTR_KBDINT       0x01
+#define I8042_CTR_AUXINT       0x02
+#define I8042_CTR_IGNKEYLOCK   0x08
+#define I8042_CTR_KBDDIS       0x10
+#define I8042_CTR_AUXDIS       0x20
+#define I8042_CTR_XLATE                0x40
+
 struct serio;
 
 #if defined(CONFIG_SERIO_I8042) || defined(CONFIG_SERIO_I8042_MODULE)