diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-07-20 14:56:40 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-07-20 14:56:40 +0000 |
commit | e308faf24f68e262d92d294a01ddca7a17e76762 (patch) | |
tree | 22c47cb315811834861f013067878ff664e95abd /drivers/char/pc110pad.h | |
parent | 30c6397ce63178fcb3e7963ac247f0a03132aca9 (diff) |
Sync with Linux 2.1.46.
Diffstat (limited to 'drivers/char/pc110pad.h')
-rw-r--r-- | drivers/char/pc110pad.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/char/pc110pad.h b/drivers/char/pc110pad.h new file mode 100644 index 000000000..56d8d82e0 --- /dev/null +++ b/drivers/char/pc110pad.h @@ -0,0 +1,31 @@ +#ifndef _PC110PAD_H +#define _PC110PAD_H + +#include <linux/ioctl.h> + +enum pc110pad_mode { + PC110PAD_RAW, /* bytes as they come out of the hardware */ + PC110PAD_RARE, /* debounced up/down and absolute x,y */ + PC110PAD_DEBUG, /* up/down, debounced, transitions, button */ + PC110PAD_PS2, /* ps2 relative (default) */ +}; + + +struct pc110pad_params { + enum pc110pad_mode mode; + int bounce_interval; + int tap_interval; + int irq; + int io; +}; + +#define MS *HZ/1000 + +/* Appears as device major=10 (MISC), minor=PC110_PAD */ + +#define PC110PAD_IOCTL_TYPE 0x9a + +#define PC110PADIOCGETP _IOR(PC110PAD_IOCTL_TYPE, 0, struct pc110pad_params) +#define PC110PADIOCSETP _IOR(PC110PAD_IOCTL_TYPE, 1, struct pc110pad_params) + +#endif /* _PC110PAD_H */ |