From 135f110149347059b4408fbc1ae5477ed5a0a036 Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 14 Oct 1996 22:41:59 +0000 Subject: [PATCH] Added an ioctl acknowledgement bit to the buffer record flags field. Added a new ioctl to select either relative or absolution mouse position reports. --- sys/arch/arm32/include/mouse.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm32/include/mouse.h b/sys/arch/arm32/include/mouse.h index ab48ae35d1c0..1fe0fa2836bd 100644 --- a/sys/arch/arm32/include/mouse.h +++ b/sys/arch/arm32/include/mouse.h @@ -1,4 +1,4 @@ -/* $NetBSD: mouse.h,v 1.2 1996/06/03 22:07:39 mark Exp $ */ +/* $NetBSD: mouse.h,v 1.3 1996/10/14 22:41:59 mark Exp $ */ /* * Copyright (c) Mark Brinicombe 1996 All rights reserved @@ -49,6 +49,7 @@ #define BUT2CHNG 0x10 /* Button 2 changed if set */ #define BUT1CHNG 0x20 /* Button 1 changed if set */ #define MOVEMENT 0x40 /* Mouse movement detected */ +#define IOC_ACK 0x80 /* Acknowledge an ioctl */ /* Define user visible mouse structures */ @@ -76,7 +77,7 @@ struct mouse_origin { int x, y; }; -/* Define mouse ioctls */ +/* Define mouse ioctls + associated data */ #define MOUSEIOC_WRITEX _IO ( 'M', 100 ) #define MOUSEIOC_WRITEY _IO ( 'M', 101 ) @@ -90,4 +91,7 @@ struct mouse_origin { #define MOUSEIOC_GETBOUNDS _IOR ( 'M', 106, struct mouse_boundingbox ) #define MOUSEIOC_GETORIGIN _IOR ( 'M', 107, struct mouse_origin ) +#define MOUSEIOC_SETMODE _IO ( 'M', 108 ) +#define MOUSEMODE_ABS 0x00 +#define MOUSEMODE_REL 0x01 /* End of mouse.h */