Go to the source code of this file.
Data Structures | |
| struct | mouse_status |
Defines | |
| #define | MOUSE_IRQ 5 |
| #define | LOGITECH_BUSMOUSE 0 |
| Minor device # for Logitech. | |
| #define | MICROSOFT_BUSMOUSE 2 |
| Minor device # for Microsoft. | |
| #define | MSE_DATA_PORT 0x23c |
| --------- LOGITECH BUSMOUSE ITEMS ------------- | |
| #define | MSE_SIGNATURE_PORT 0x23d |
| #define | MSE_CONTROL_PORT 0x23e |
| #define | MSE_INTERRUPT_PORT 0x23e |
| #define | MSE_CONFIG_PORT 0x23f |
| #define | MSE_ENABLE_INTERRUPTS 0x00 |
| #define | MSE_DISABLE_INTERRUPTS 0x10 |
| #define | MSE_READ_X_LOW 0x80 |
| #define | MSE_READ_X_HIGH 0xa0 |
| #define | MSE_READ_Y_LOW 0xc0 |
| #define | MSE_READ_Y_HIGH 0xe0 |
| #define | MSE_CONFIG_BYTE 0x91 |
| Magic number used to check if the mouse exists. | |
| #define | MSE_DEFAULT_MODE 0x90 |
| #define | MSE_SIGNATURE_BYTE 0xa5 |
| #define | MSE_INT_OFF() outb(MSE_DISABLE_INTERRUPTS, MSE_CONTROL_PORT) |
| useful Logitech Mouse macros | |
| #define | MSE_INT_ON() outb(MSE_ENABLE_INTERRUPTS, MSE_CONTROL_PORT) |
| #define | MS_MSE_DATA_PORT 0x23d |
| --------- MICROSOFT BUSMOUSE ITEMS ------------- | |
| #define | MS_MSE_SIGNATURE_PORT 0x23e |
| #define | MS_MSE_CONTROL_PORT 0x23c |
| #define | MS_MSE_CONFIG_PORT 0x23f |
| #define | MS_MSE_ENABLE_INTERRUPTS 0x11 |
| #define | MS_MSE_DISABLE_INTERRUPTS 0x10 |
| #define | MS_MSE_READ_BUTTONS 0x00 |
| #define | MS_MSE_READ_X 0x01 |
| #define | MS_MSE_READ_Y 0x02 |
| #define | MS_MSE_START 0x80 |
| #define | MS_MSE_COMMAND_MODE 0x07 |
| #define | MS_MSE_INT_OFF() |
| useful microsoft busmouse macros | |
| #define | MS_MSE_INT_ON() |
Functions | |
| long | mouse_init (long) |
| Function Prototypes. | |
| #define LOGITECH_BUSMOUSE 0 |
| #define MICROSOFT_BUSMOUSE 2 |
| #define MOUSE_IRQ 5 |
linux/include/linux/mouse.h: header file for Logitech Bus Mouse driver by James Banks
based on information gleamed from various mouse drivers on the net
Heavily modified by David giller (rafetmad@oxy.edu)
Minor modifications for Linux 0.96c-pl1 by Nathan Laredo gt7080a@prism.gatech.edu (13JUL92)
Microsoft BusMouse support by Teemu Rantanen (tvr@cs.hut.fi) (02AUG92)
Microsoft Bus Mouse support modified by Derrick Cole (cole@concert.net) 8/28/92
Microsoft Bus Mouse support folded into 0.97pl4 code by Peter Cervasio (peteq106fm.uucp@wupost.wustl.edu) (08SEP92) Changes: Logitech and Microsoft support in the same kernel. Defined new constants in busmouse.h for MS mice. Added int mse_busmouse_type to distinguish busmouse types Added a couple of new functions to handle differences in using MS vs. Logitech (where the int variable wasn't appropriate).
Definition at line 34 of file busmouse.h.
| #define MS_MSE_COMMAND_MODE 0x07 |
Definition at line 79 of file busmouse.h.
| #define MS_MSE_CONFIG_PORT 0x23f |
Definition at line 69 of file busmouse.h.
| #define MS_MSE_CONTROL_PORT 0x23c |
Definition at line 68 of file busmouse.h.
| #define MS_MSE_DATA_PORT 0x23d |
| #define MS_MSE_DISABLE_INTERRUPTS 0x10 |
Definition at line 72 of file busmouse.h.
| #define MS_MSE_ENABLE_INTERRUPTS 0x11 |
Definition at line 71 of file busmouse.h.
| #define MS_MSE_INT_OFF | ( | ) |
Value:
{outb(MS_MSE_COMMAND_MODE, MS_MSE_CONTROL_PORT); \
outb(MS_MSE_DISABLE_INTERRUPTS, MS_MSE_DATA_PORT);}
Definition at line 83 of file busmouse.h.
| #define MS_MSE_INT_ON | ( | ) |
Value:
{outb(MS_MSE_COMMAND_MODE, MS_MSE_CONTROL_PORT); \
outb(MS_MSE_ENABLE_INTERRUPTS, MS_MSE_DATA_PORT);}
Definition at line 85 of file busmouse.h.
| #define MS_MSE_READ_BUTTONS 0x00 |
Definition at line 74 of file busmouse.h.
| #define MS_MSE_READ_X 0x01 |
Definition at line 75 of file busmouse.h.
| #define MS_MSE_READ_Y 0x02 |
Definition at line 76 of file busmouse.h.
| #define MS_MSE_SIGNATURE_PORT 0x23e |
Definition at line 67 of file busmouse.h.
| #define MS_MSE_START 0x80 |
Definition at line 78 of file busmouse.h.
| #define MSE_CONFIG_BYTE 0x91 |
| #define MSE_CONFIG_PORT 0x23f |
Definition at line 44 of file busmouse.h.
| #define MSE_CONTROL_PORT 0x23e |
Definition at line 42 of file busmouse.h.
| #define MSE_DATA_PORT 0x23c |
| #define MSE_DEFAULT_MODE 0x90 |
Definition at line 56 of file busmouse.h.
| #define MSE_DISABLE_INTERRUPTS 0x10 |
Definition at line 47 of file busmouse.h.
| #define MSE_ENABLE_INTERRUPTS 0x00 |
Definition at line 46 of file busmouse.h.
| #define MSE_INT_OFF | ( | ) | outb(MSE_DISABLE_INTERRUPTS, MSE_CONTROL_PORT) |
| #define MSE_INT_ON | ( | ) | outb(MSE_ENABLE_INTERRUPTS, MSE_CONTROL_PORT) |
Definition at line 62 of file busmouse.h.
| #define MSE_INTERRUPT_PORT 0x23e |
Definition at line 43 of file busmouse.h.
| #define MSE_READ_X_HIGH 0xa0 |
Definition at line 50 of file busmouse.h.
| #define MSE_READ_X_LOW 0x80 |
Definition at line 49 of file busmouse.h.
| #define MSE_READ_Y_HIGH 0xe0 |
Definition at line 52 of file busmouse.h.
| #define MSE_READ_Y_LOW 0xc0 |
Definition at line 51 of file busmouse.h.
| #define MSE_SIGNATURE_BYTE 0xa5 |
Definition at line 57 of file busmouse.h.
| #define MSE_SIGNATURE_PORT 0x23d |
Definition at line 41 of file busmouse.h.
| long mouse_init | ( | long | ) |
Function Prototypes.
1.4.6-5