Whoops, brain-o's with the previous commit. Fix up quite a few typos.

This commit is contained in:
Nate Williams 1996-05-07 19:40:47 +00:00
parent 03749d174f
commit 83cc6d6bdd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15663

View File

@ -277,7 +277,8 @@ psm_poll_status(void)
while(inb(AUX_PORT+PSM_STATUS) & 0x03) {
if(inb(AUX_PORT+PSM_STATUS) & 0x2 == 0x2)
inb(AUX_PORT+PSM_DATA);}
inb(AUX_PORT+PSM_DATA);
}
return;
}
@ -315,11 +316,9 @@ psmread(dev_t dev, struct uio *uio, int flag)
unsigned char buffer[100];
/* Get device information */
sc = &psm_softc[PSMUNIT(dev)];
/* Block until mouse activity occured */
s = spltty();
while (sc->inq.count == 0) {
if (minor(dev) & 0x1) {
@ -421,10 +420,9 @@ psmioctl(dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p)
return (error);
}
void psmintr(unit)
int unit;
void
psmintr(int unit)
{
struct psm_softc *sc = &psm_softc[unit];
int ioport = psmaddr[unit];
sc->inq.queue[sc->inq.last++ % MSBSZ] = inb(ioport+PSM_DATA);
@ -463,7 +461,7 @@ psmselect(dev_t dev, int rw, struct proc *p)
static psm_devsw_installed = 0;
static void
(void *unused)
psm_drvinit(void *unused)
{
dev_t dev;
@ -476,5 +474,4 @@ static void
SYSINIT(psmdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,psm_drvinit,NULL)
#endif
#endif /* NPSM > 0 */