#include <linux/module.h>
#include <linux/init.h>
#include <linux/serio.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/err.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/ip32/mace.h>
#include <asm/ip32/ip32_ints.h>
Go to the source code of this file.
#define MACE_PS2_TIMEOUT 10000 /* in 50us unit */ |
#define PS2_CONTROL_RESET BIT(5) /* reset */ |
#define PS2_CONTROL_RX_CLOCK_ENABLE BIT(4) /* pause reception if set to 0 */ |
#define PS2_CONTROL_TX_CLOCK_DISABLE BIT(0) /* inhibit clock signal after TX */ |
#define PS2_CONTROL_TX_ENABLE BIT(1) /* transmit enable */ |
#define PS2_STATUS_CLOCK_INHIBIT BIT(1) /* clken output signal */ |
#define PS2_STATUS_ERROR_FRAMING BIT(7) /* framing error */ |
#define PS2_STATUS_RX_INPROGRESS BIT(5) /* reception in progress */ |
#define PS2_STATUS_TX_INPROGRESS BIT(2) /* transmission in progress */ |
module_exit |
( |
maceps2_exit |
| ) |
|
module_init |
( |
maceps2_init |
| ) |
|