Skip to content

Commit

Permalink
Make external mice work on Tadpole SPARCbook
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hppallan committed Mar 10, 2006
1 parent 469109e commit 468f643
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys/dev/sun/ms.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: ms.c,v 1.30 2005/12/11 12:23:56 christos Exp $ */
/* $NetBSD: ms.c,v 1.31 2006/03/10 20:25:45 macallan Exp $ */

/*
* Copyright (c) 1992, 1993
Expand Down Expand Up @@ -52,7 +52,7 @@
*/

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

#include <sys/param.h>
#include <sys/systm.h>
Expand Down Expand Up @@ -262,7 +262,7 @@ ms_input(ms, c)
ms->ms_byteno = -1;
return;
}
if ((c & ~0x0f) == 0x80) { /* if in 0x80..0x8f */
if ((c & 0xb0) == 0x80) { /* if in 0x80..0x8f of 0xc0..0xcf */
if (c & 8) {
ms->ms_byteno = 1; /* short form (3 bytes) */
} else {
Expand Down

0 comments on commit 468f643

Please sign in to comment.