diff options
author | bde <bde@FreeBSD.org> | 1996-11-11 17:11:08 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-11-11 17:11:08 +0000 |
commit | cec56fb682f2b6f835f39950ff1eaee6d2bac204 (patch) | |
tree | 9c298019432e0d49f8747e82e4f8eee4e043f687 /sys/i386/isa/ctx.c | |
parent | 94f72a8124c5e9451ffa605f69fbbab413325e75 (diff) | |
download | FreeBSD-src-cec56fb682f2b6f835f39950ff1eaee6d2bac204.zip FreeBSD-src-cec56fb682f2b6f835f39950ff1eaee6d2bac204.tar.gz |
Fixed pessimized (short) i/o port type.
The change in if_epreg.h affects if_epreg.o and 3c5x9.o.
These changes are probably harmless, but I can't test them.
Diffstat (limited to 'sys/i386/isa/ctx.c')
-rw-r--r-- | sys/i386/isa/ctx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/isa/ctx.c b/sys/i386/isa/ctx.c index b35f2a3..20b9d82 100644 --- a/sys/i386/isa/ctx.c +++ b/sys/i386/isa/ctx.c @@ -8,7 +8,7 @@ * of this software, nor does the author assume any responsibility * for damages incurred with its use. * - * $Id: ctx.c,v 1.19 1996/06/25 20:29:52 bde Exp $ + * $Id: ctx.c,v 1.20 1996/09/06 23:07:14 phk Exp $ */ /* @@ -129,7 +129,7 @@ #include <machine/ioctl_ctx.h> #include <machine/md_var.h> -static int waitvb(short); +static int waitvb(int port); /* state flags */ #define OPEN (0x01) /* device is open */ @@ -165,7 +165,7 @@ static struct ctx_soft_registers { u_char cp0; u_char cp1; u_char flag; - short iobase; + int iobase; caddr_t maddr; int msize; void *devfs_token; @@ -424,7 +424,7 @@ ctxioctl(dev_t dev, int cmd, caddr_t data, int flags, struct proc *p) } static int -waitvb(short port) +waitvb(int port) { /* wait for a vertical blank, */ if (inb(port) == 0xff) /* 0xff means no board present */ return (1); |