#include <linux/pci_ids.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/input.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/hil.h>
#include <linux/io.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <asm/irq.h>
Go to the source code of this file.
#define hil_busy |
( |
| ) |
(hil_readb(HILBASE + HIL_CMD) & HIL_BUSY) |
#define HIL_CNMT 0xB2 /* clear nmi */ |
#define hil_command |
( |
|
x | ) |
do { hil_writeb((x), HILBASE + HIL_CMD); } while (0) |
#define hil_data_available |
( |
| ) |
(hil_readb(HILBASE + HIL_CMD) & HIL_DATA_RDY) |
#define HIL_DATA_RDY 0x01 |
#define HIL_INTOFF 0x5D /* Turn off interrupts. */ |
#define HIL_INTON 0x5C /* Turn on interrupts. */ |
#define hil_read_data |
( |
| ) |
(hil_readb(HILBASE + HIL_DATA)) |
#define HIL_READKBDSADR 0xF9 |
#define HIL_SETARD 0xA0 /* set auto-repeat delay */ |
#define HIL_SETARR 0xA2 /* set auto-repeat rate */ |
#define HIL_SETTONE 0xA3 /* set tone generator */ |
#define hil_status |
( |
| ) |
(hil_readb(HILBASE + HIL_CMD)) |
#define hil_write_data |
( |
|
x | ) |
do { hil_writeb((x), HILBASE + HIL_DATA); } while (0) |
#define HIL_WRITEKBDSADR 0xE9 |
MODULE_AUTHOR |
( |
"Philip |
Blundell, |
|
|
Matthew |
Wilcox, |
|
|
Helge Deller" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"HIL keyboard driver (basic functionality)" |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|