From 0ba929925d4a15816f01e48a03e67180c1a4e4f3 Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 3 Jun 1996 22:03:36 +0000 Subject: [PATCH] Added proper definitions of quadrature mouse button register. --- sys/arch/arm32/include/iomd.h | 10 ++++++++-- sys/arch/arm32/iomd/iomdreg.h | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/sys/arch/arm32/include/iomd.h b/sys/arch/arm32/include/iomd.h index 876c6df47495..e51144561910 100644 --- a/sys/arch/arm32/include/iomd.h +++ b/sys/arch/arm32/include/iomd.h @@ -1,4 +1,4 @@ -/* $NetBSD: iomd.h,v 1.3 1996/03/28 21:26:05 mark Exp $ */ +/* $NetBSD: iomd.h,v 1.4 1996/06/03 22:03:36 mark Exp $ */ /* * Copyright (c) 1994 Mark Brinicombe. @@ -145,7 +145,13 @@ #define IOMD_DMARQ (IOMD_BASE + 0x000001f4) #define IOMD_DMAMSK (IOMD_BASE + 0x000001f8) -#define IO_MOUSE_BUTTONS 0xf6010000 +/* + * Ok these mouse buttons are not strickly part of the iomd but + * this register is required if the IOMD supports a quadrature mouse + */ + +#define IO_HW_MOUSE_BUTTONS 0x03210000 +#define IO_MOUSE_BUTTONS 0xf6010000 #define MOUSE_BUTTON_RIGHT 0x10 #define MOUSE_BUTTON_MIDDLE 0x20 diff --git a/sys/arch/arm32/iomd/iomdreg.h b/sys/arch/arm32/iomd/iomdreg.h index 91be7ee03acd..e1abe6c251e3 100644 --- a/sys/arch/arm32/iomd/iomdreg.h +++ b/sys/arch/arm32/iomd/iomdreg.h @@ -1,4 +1,4 @@ -/* $NetBSD: iomdreg.h,v 1.3 1996/03/28 21:26:05 mark Exp $ */ +/* $NetBSD: iomdreg.h,v 1.4 1996/06/03 22:03:36 mark Exp $ */ /* * Copyright (c) 1994 Mark Brinicombe. @@ -145,7 +145,13 @@ #define IOMD_DMARQ (IOMD_BASE + 0x000001f4) #define IOMD_DMAMSK (IOMD_BASE + 0x000001f8) -#define IO_MOUSE_BUTTONS 0xf6010000 +/* + * Ok these mouse buttons are not strickly part of the iomd but + * this register is required if the IOMD supports a quadrature mouse + */ + +#define IO_HW_MOUSE_BUTTONS 0x03210000 +#define IO_MOUSE_BUTTONS 0xf6010000 #define MOUSE_BUTTON_RIGHT 0x10 #define MOUSE_BUTTON_MIDDLE 0x20