diff options
-rw-r--r-- | i386/i386at/kd_mouse.c | 1 | ||||
-rw-r--r-- | i386/i386at/kd_mouse.h | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c index afef0e63..7dd1c272 100644 --- a/i386/i386at/kd_mouse.c +++ b/i386/i386at/kd_mouse.c @@ -427,7 +427,6 @@ int lastgitech = 0x40; /* figure whether the first 3 bytes imply */ int fourthgitech = 0; /* look for the 4th byte; we must process it */ int middlegitech = 0; /* what should the middle button be */ -#define MOUSEBUFSIZE 5 /* num bytes def'd by protocol */ static u_char mousebuf[MOUSEBUFSIZE]; /* 5-byte packet from mouse */ void diff --git a/i386/i386at/kd_mouse.h b/i386/i386at/kd_mouse.h index 2d813c4a..a9fb1284 100644 --- a/i386/i386at/kd_mouse.h +++ b/i386/i386at/kd_mouse.h @@ -28,6 +28,8 @@ #include <sys/types.h> +#define MOUSEBUFSIZE 5 /* num bytes def'd by protocol */ + extern void mouse_button (kev_type which, u_char direction); extern void mouse_enqueue (kd_event *ev); @@ -48,11 +50,11 @@ extern void ibm_ps2_mouse_open (dev_t dev); extern void ibm_ps2_mouse_close (dev_t dev); -extern void mouse_packet_microsoft_mouse (u_char *mousebuf); +extern void mouse_packet_microsoft_mouse (u_char mousebuf[MOUSEBUFSIZE]); -extern void mouse_packet_mouse_system_mouse (u_char *mousebuf); +extern void mouse_packet_mouse_system_mouse (u_char mousebuf[MOUSEBUFSIZE]); -extern void mouse_packet_ibm_ps2_mouse (u_char *mousebuf); +extern void mouse_packet_ibm_ps2_mouse (u_char mousebuf[MOUSEBUFSIZE]); extern int mouseopen(dev_t dev, int flags, io_req_t ior); extern void mouseclose(dev_t dev, int flags); |