diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1996-12-19 18:33:13 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1996-12-19 18:33:13 +0000 |
| commit | 741d5385e8c99c44c779ba557478f1ed194ef773 (patch) | |
| tree | 59c565aff99ceabdce2ecdaea4cc1b3603b15b24 /sys/dev/mse | |
| parent | 2cec12807d3dbba935ef3f0266de062e5fd5eae1 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mse')
| -rw-r--r-- | sys/dev/mse/mse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c index b54417e024d5..50f04be3041b 100644 --- a/sys/dev/mse/mse.c +++ b/sys/dev/mse/mse.c @@ -11,7 +11,7 @@ * this software for any purpose. It is provided "as is" * without express or implied warranty. * - * $Id: mse.c,v 1.27 1996/06/08 09:37:51 bde Exp $ + * $Id: mse.c,v 1.28 1996/09/06 23:07:51 phk Exp $ */ /* * Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and @@ -111,6 +111,7 @@ static struct mse_softc { #define MSESC_WANT 0x2 /* and Mouse Types */ +#define MSE_NONE 0 /* don't move this! */ #define MSE_LOGITECH 0x1 #define MSE_ATIINPORT 0x2 #define MSE_LOGI_SIG 0xA5 @@ -263,6 +264,8 @@ mseopen(dev, flags, fmt, p) if (MSE_UNIT(dev) >= NMSE) return (ENXIO); sc = &mse_sc[MSE_UNIT(dev)]; + if (sc->sc_mousetype == MSE_NONE) + return (ENXIO); if (sc->sc_flags & MSESC_OPEN) return (EBUSY); sc->sc_flags |= MSESC_OPEN; |
