mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Add definitions for Interlink VersaPad.
This commit is contained in:
parent
cd31900403
commit
64eed277c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49964
@ -20,7 +20,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mouse.h,v 1.12 1998/11/22 11:57:59 yokota Exp $
|
||||
* $Id: mouse.h,v 1.13 1999/07/12 15:16:13 yokota Exp $
|
||||
* from: i386/include mouse.h,v 1.10
|
||||
*/
|
||||
|
||||
@ -115,6 +115,7 @@ typedef struct mousehw {
|
||||
#define MOUSE_MODEL_EASYSCROLL 6
|
||||
#define MOUSE_MODEL_MOUSEMANPLUS 7
|
||||
#define MOUSE_MODEL_KIDSPAD 8
|
||||
#define MOUSE_MODEL_VERSAPAD 9
|
||||
|
||||
typedef struct mousemode {
|
||||
int protocol; /* MOUSE_PROTO_XXX */
|
||||
@ -143,6 +144,7 @@ typedef struct mousemode {
|
||||
#define MOUSE_PROTO_SYSMOUSE 12 /* /dev/sysmouse */
|
||||
#define MOUSE_PROTO_X10MOUSEREM 13 /* X10 MouseRemote, 3 bytes */
|
||||
#define MOUSE_PROTO_KIDSPAD 14 /* Genius Kidspad */
|
||||
#define MOUSE_PROTO_VERSAPAD 15 /* Interlink VersaPad, 6 bytes */
|
||||
|
||||
#define MOUSE_RES_UNKNOWN (-1)
|
||||
#define MOUSE_RES_DEFAULT 0
|
||||
@ -236,6 +238,28 @@ typedef struct mousevar {
|
||||
#define MOUSE_PS2PLUS_SYNCMASK 0x48
|
||||
#define MOUSE_PS2PLUS_SYNC 0x48
|
||||
|
||||
/* Interlink VersaPad (serial I/F) data packet */
|
||||
#define MOUSE_VERSA_PACKETSIZE 6
|
||||
#define MOUSE_VERSA_IN_USE 0x04
|
||||
#define MOUSE_VERSA_SYNCMASK 0xc3
|
||||
#define MOUSE_VERSA_SYNC 0xc0
|
||||
#define MOUSE_VERSA_BUTTONS 0x30
|
||||
#define MOUSE_VERSA_BUTTON1DOWN 0x20 /* left */
|
||||
#define MOUSE_VERSA_BUTTON2DOWN 0x00 /* middle */
|
||||
#define MOUSE_VERSA_BUTTON3DOWN 0x10 /* right */
|
||||
#define MOUSE_VERSA_TAP 0x08
|
||||
|
||||
/* Interlink VersaPad (PS/2 I/F) data packet */
|
||||
#define MOUSE_PS2VERSA_PACKETSIZE 6
|
||||
#define MOUSE_PS2VERSA_IN_USE 0x10
|
||||
#define MOUSE_PS2VERSA_SYNCMASK 0xe8
|
||||
#define MOUSE_PS2VERSA_SYNC 0xc8
|
||||
#define MOUSE_PS2VERSA_BUTTONS 0x05
|
||||
#define MOUSE_PS2VERSA_BUTTON1DOWN 0x04 /* left */
|
||||
#define MOUSE_PS2VERSA_BUTTON2DOWN 0x00 /* middle */
|
||||
#define MOUSE_PS2VERSA_BUTTON3DOWN 0x01 /* right */
|
||||
#define MOUSE_PS2VERSA_TAP 0x02
|
||||
|
||||
/* sysmouse extended data packet */
|
||||
/*
|
||||
* /dev/sysmouse sends data in two formats, depending on the protocol
|
||||
|
@ -20,7 +20,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mouse.h,v 1.12 1999/02/21 16:08:43 n_hibma Exp $
|
||||
* $Id: mouse.h,v 1.13 1999/07/12 15:16:12 yokota Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_MOUSE_H_
|
||||
@ -115,6 +115,7 @@ typedef struct mousehw {
|
||||
#define MOUSE_MODEL_EASYSCROLL 6
|
||||
#define MOUSE_MODEL_MOUSEMANPLUS 7
|
||||
#define MOUSE_MODEL_KIDSPAD 8
|
||||
#define MOUSE_MODEL_VERSAPAD 9
|
||||
|
||||
typedef struct mousemode {
|
||||
int protocol; /* MOUSE_PROTO_XXX */
|
||||
@ -143,6 +144,7 @@ typedef struct mousemode {
|
||||
#define MOUSE_PROTO_SYSMOUSE 12 /* /dev/sysmouse */
|
||||
#define MOUSE_PROTO_X10MOUSEREM 13 /* X10 MouseRemote, 3 bytes */
|
||||
#define MOUSE_PROTO_KIDSPAD 14 /* Genius Kidspad */
|
||||
#define MOUSE_PROTO_VERSAPAD 15 /* Interlink VersaPad, 6 bytes */
|
||||
|
||||
#define MOUSE_RES_UNKNOWN (-1)
|
||||
#define MOUSE_RES_DEFAULT 0
|
||||
@ -237,6 +239,28 @@ typedef struct mousevar {
|
||||
#define MOUSE_PS2PLUS_SYNCMASK 0x48
|
||||
#define MOUSE_PS2PLUS_SYNC 0x48
|
||||
|
||||
/* Interlink VersaPad (serial I/F) data packet */
|
||||
#define MOUSE_VERSA_PACKETSIZE 6
|
||||
#define MOUSE_VERSA_IN_USE 0x04
|
||||
#define MOUSE_VERSA_SYNCMASK 0xc3
|
||||
#define MOUSE_VERSA_SYNC 0xc0
|
||||
#define MOUSE_VERSA_BUTTONS 0x30
|
||||
#define MOUSE_VERSA_BUTTON1DOWN 0x20 /* left */
|
||||
#define MOUSE_VERSA_BUTTON2DOWN 0x00 /* middle */
|
||||
#define MOUSE_VERSA_BUTTON3DOWN 0x10 /* right */
|
||||
#define MOUSE_VERSA_TAP 0x08
|
||||
|
||||
/* Interlink VersaPad (PS/2 I/F) data packet */
|
||||
#define MOUSE_PS2VERSA_PACKETSIZE 6
|
||||
#define MOUSE_PS2VERSA_IN_USE 0x10
|
||||
#define MOUSE_PS2VERSA_SYNCMASK 0xe8
|
||||
#define MOUSE_PS2VERSA_SYNC 0xc8
|
||||
#define MOUSE_PS2VERSA_BUTTONS 0x05
|
||||
#define MOUSE_PS2VERSA_BUTTON1DOWN 0x04 /* left */
|
||||
#define MOUSE_PS2VERSA_BUTTON2DOWN 0x00 /* middle */
|
||||
#define MOUSE_PS2VERSA_BUTTON3DOWN 0x01 /* right */
|
||||
#define MOUSE_PS2VERSA_TAP 0x02
|
||||
|
||||
/* sysmouse extended data packet */
|
||||
/*
|
||||
* /dev/sysmouse sends data in two formats, depending on the protocol
|
||||
|
@ -20,7 +20,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mouse.h,v 1.12 1999/02/21 16:08:43 n_hibma Exp $
|
||||
* $Id: mouse.h,v 1.13 1999/07/12 15:16:12 yokota Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_MOUSE_H_
|
||||
@ -115,6 +115,7 @@ typedef struct mousehw {
|
||||
#define MOUSE_MODEL_EASYSCROLL 6
|
||||
#define MOUSE_MODEL_MOUSEMANPLUS 7
|
||||
#define MOUSE_MODEL_KIDSPAD 8
|
||||
#define MOUSE_MODEL_VERSAPAD 9
|
||||
|
||||
typedef struct mousemode {
|
||||
int protocol; /* MOUSE_PROTO_XXX */
|
||||
@ -143,6 +144,7 @@ typedef struct mousemode {
|
||||
#define MOUSE_PROTO_SYSMOUSE 12 /* /dev/sysmouse */
|
||||
#define MOUSE_PROTO_X10MOUSEREM 13 /* X10 MouseRemote, 3 bytes */
|
||||
#define MOUSE_PROTO_KIDSPAD 14 /* Genius Kidspad */
|
||||
#define MOUSE_PROTO_VERSAPAD 15 /* Interlink VersaPad, 6 bytes */
|
||||
|
||||
#define MOUSE_RES_UNKNOWN (-1)
|
||||
#define MOUSE_RES_DEFAULT 0
|
||||
@ -237,6 +239,28 @@ typedef struct mousevar {
|
||||
#define MOUSE_PS2PLUS_SYNCMASK 0x48
|
||||
#define MOUSE_PS2PLUS_SYNC 0x48
|
||||
|
||||
/* Interlink VersaPad (serial I/F) data packet */
|
||||
#define MOUSE_VERSA_PACKETSIZE 6
|
||||
#define MOUSE_VERSA_IN_USE 0x04
|
||||
#define MOUSE_VERSA_SYNCMASK 0xc3
|
||||
#define MOUSE_VERSA_SYNC 0xc0
|
||||
#define MOUSE_VERSA_BUTTONS 0x30
|
||||
#define MOUSE_VERSA_BUTTON1DOWN 0x20 /* left */
|
||||
#define MOUSE_VERSA_BUTTON2DOWN 0x00 /* middle */
|
||||
#define MOUSE_VERSA_BUTTON3DOWN 0x10 /* right */
|
||||
#define MOUSE_VERSA_TAP 0x08
|
||||
|
||||
/* Interlink VersaPad (PS/2 I/F) data packet */
|
||||
#define MOUSE_PS2VERSA_PACKETSIZE 6
|
||||
#define MOUSE_PS2VERSA_IN_USE 0x10
|
||||
#define MOUSE_PS2VERSA_SYNCMASK 0xe8
|
||||
#define MOUSE_PS2VERSA_SYNC 0xc8
|
||||
#define MOUSE_PS2VERSA_BUTTONS 0x05
|
||||
#define MOUSE_PS2VERSA_BUTTON1DOWN 0x04 /* left */
|
||||
#define MOUSE_PS2VERSA_BUTTON2DOWN 0x00 /* middle */
|
||||
#define MOUSE_PS2VERSA_BUTTON3DOWN 0x01 /* right */
|
||||
#define MOUSE_PS2VERSA_TAP 0x02
|
||||
|
||||
/* sysmouse extended data packet */
|
||||
/*
|
||||
* /dev/sysmouse sends data in two formats, depending on the protocol
|
||||
|
Loading…
Reference in New Issue
Block a user