imx: drop CONFIG_MXC_UART_BASE
[platform/kernel/u-boot.git] / include / i8042.h
index e0afce1..6876320 100644 (file)
@@ -1,8 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2002 ELTEC Elektronik AG
  * Frank Gottschling <fgottschling@eltec.de>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /* i8042.h - Intel 8042 keyboard driver header */
 #define STATUS_IBF     (1 << 1)
 
 /* Configuration byte bit defines */
-#define CONFIG_KIRQ_EN (1 << 0)
-#define CONFIG_MIRQ_EN (1 << 1)
-#define CONFIG_SET_BIST        (1 << 2)
-#define CONFIG_KCLK_DIS        (1 << 4)
-#define CONFIG_MCLK_DIS        (1 << 5)
-#define CONFIG_AT_TRANS        (1 << 6)
+#define CFG_KIRQ_EN    (1 << 0)
+#define CFG_MIRQ_EN    (1 << 1)
+#define CFG_SET_BIST   (1 << 2)
+#define CFG_KCLK_DIS   (1 << 4)
+#define CFG_MCLK_DIS   (1 << 5)
+#define CFG_AT_TRANS   (1 << 6)
 
 /* i8042 commands */
 #define CMD_RD_CONFIG  0x20    /* read configuration byte */
@@ -35,6 +34,7 @@
 #define CMD_KBD_DIS    0xad    /* keyboard disable */
 #define CMD_KBD_EN     0xae    /* keyboard enable */
 #define CMD_SET_KBD_LED        0xed    /* set keyboard led */
+#define CMD_DRAIN_OUTPUT 0xf4   /* drain output buffer */
 #define CMD_RESET_KBD  0xff    /* reset keyboard */
 
 /* i8042 command result */
 #define BRK            0x0100  /* make break flag for keyboard */
 #define ALT            0x0200  /* right alt */
 
-/* exports */
-
-/**
- * Flush all buffer from keyboard controller to host.
- */
-void i8042_flush(void);
-
-/**
- * Disables the keyboard so that key strokes no longer generate scancodes to
- * the host.
- *
- * @return 0 if ok, -1 if keyboard input was found while disabling
- */
-int i8042_disable(void);
-
-struct stdio_dev;
-
-int i8042_kbd_init(void);
-int i8042_tstc(struct stdio_dev *dev);
-int i8042_getc(struct stdio_dev *dev);
-
 #endif /* _I8042_H_ */