Skip to content

Commit 468f643

Browse files
committed
Make external mice work on Tadpole SPARCbook
The tadpole microcontroller sets an additional bit in frame headers from an external mouse which caused our driver to discard the frame - now we just ignore the bit.
1 parent 469109e commit 468f643

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sys/dev/sun/ms.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: ms.c,v 1.30 2005/12/11 12:23:56 christos Exp $ */
1+
/* $NetBSD: ms.c,v 1.31 2006/03/10 20:25:45 macallan Exp $ */
22

33
/*
44
* Copyright (c) 1992, 1993
@@ -52,7 +52,7 @@
5252
*/
5353

5454
#include <sys/cdefs.h>
55-
__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.30 2005/12/11 12:23:56 christos Exp $");
55+
__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.31 2006/03/10 20:25:45 macallan Exp $");
5656

5757
#include <sys/param.h>
5858
#include <sys/systm.h>
@@ -262,7 +262,7 @@ ms_input(ms, c)
262262
ms->ms_byteno = -1;
263263
return;
264264
}
265-
if ((c & ~0x0f) == 0x80) { /* if in 0x80..0x8f */
265+
if ((c & 0xb0) == 0x80) { /* if in 0x80..0x8f of 0xc0..0xcf */
266266
if (c & 8) {
267267
ms->ms_byteno = 1; /* short form (3 bytes) */
268268
} else {

0 commit comments

Comments
 (0)