diff options
Diffstat (limited to 'sys/i386/isa/psm.c')
-rw-r--r-- | sys/i386/isa/psm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/i386/isa/psm.c b/sys/i386/isa/psm.c index 975e95f..2026a45 100644 --- a/sys/i386/isa/psm.c +++ b/sys/i386/isa/psm.c @@ -21,22 +21,22 @@ */ /* - * Ported to 386bsd Oct 17, 1992 + * Ported to 386bsd Oct 17, 1992 * Sandi Donno, Computer Science, University of Cape Town, South Africa * Please send bug reports to sandi@cs.uct.ac.za * * Thanks are also due to Rick Macklem, rick@snowhite.cis.uoguelph.ca - * although I was only partially successful in getting the alpha release - * of his "driver for the Logitech and ATI Inport Bus mice for use with - * 386bsd and the X386 port" to work with my Microsoft mouse, I nevertheless - * found his code to be an invaluable reference when porting this driver + * of his "driver for the Logitech and ATI Inport Bus mice for use with + * 386bsd and the X386 port" to work with my Microsoft mouse, I nevertheless + * found his code to be an invaluable reference when porting this driver * to 386bsd. * * Further modifications for latest 386BSD+patchkit and port to NetBSD, * Andrew Herbert <andrew@werple.apana.org.au> - 8 June 1993 * * Cloned from the Microsoft Bus Mouse driver, also by Erik Forsberg, by - * Andrew Herbert - 12 June 1993 + * Andrew Herbert - 12 June 1993 * * Modified for PS/2 mouse by Charles Hannum <mycroft@ai.mit.edu> * - 13 June 1993 @@ -261,7 +261,7 @@ void psm_poll_status(void) inb(AUX_PORT+DATA);} return; } - + int psmclose(dev_t dev, int flag, int fmt, struct proc *p) { @@ -328,14 +328,14 @@ int psmread(dev_t dev, struct uio *uio, int flag) /* Remove a small chunk from input queue */ if (sc->inq.first + length >= MSBSZ) { - bcopy(&sc->inq.queue[sc->inq.first], + bcopy(&sc->inq.queue[sc->inq.first], buffer, MSBSZ - sc->inq.first); - bcopy(sc->inq.queue, &buffer[MSBSZ-sc->inq.first], + bcopy(sc->inq.queue, &buffer[MSBSZ-sc->inq.first], length - (MSBSZ - sc->inq.first)); } else bcopy(&sc->inq.queue[sc->inq.first], buffer, length); - + sc->inq.first = (sc->inq.first + length) % MSBSZ; sc->inq.count -= length; |