diff options
author | phk <phk@FreeBSD.org> | 1995-10-28 15:39:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-10-28 15:39:31 +0000 |
commit | 7fd61cfafdd6b3dee4d468626c6ddb0cfac19d66 (patch) | |
tree | 7a650b2ba047df3a24edf181fde8921e94889edc /sys/i386/isa/gpib.c | |
parent | 7b27d202bdb399f2adcb28bf30b22344b83fddc1 (diff) | |
download | FreeBSD-src-7fd61cfafdd6b3dee4d468626c6ddb0cfac19d66.zip FreeBSD-src-7fd61cfafdd6b3dee4d468626c6ddb0cfac19d66.tar.gz |
Remove unused functions and variables, make things static, and other cleanups.
Diffstat (limited to 'sys/i386/isa/gpib.c')
-rw-r--r-- | sys/i386/isa/gpib.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/sys/i386/isa/gpib.c b/sys/i386/isa/gpib.c index 82e86c8..00a23f1 100644 --- a/sys/i386/isa/gpib.c +++ b/sys/i386/isa/gpib.c @@ -91,10 +91,6 @@ int gpprobe(struct isa_device *dvp) { int status; - short port; - u_char data; - u_char mask; - int i; struct gpib_softc *sc = &gpib_sc; @@ -145,11 +141,8 @@ gpopen(dev, flags, fmt, p) struct proc *p; { struct gpib_softc *sc = &gpib_sc; - int delay; /* slept time in 1/hz seconds of tsleep */ - int err; - u_char sta, unit; - int status; - int counter; + u_char unit; + int status; unit= minor(dev); @@ -468,7 +461,6 @@ void showregs() { National Instruments. They should give you one if you call them*/ int initgpib() { - int counter; outb(CMDR,0x20); outb(CFG,0x16); outb(IMR3,0); @@ -538,8 +530,7 @@ void closegpib() { void enableremote(unsigned char device) { int status; - unsigned char bsrval; - char c; + status=EWOULDBLOCK; if (status==EWOULDBLOCK) do { status=tsleep((caddr_t)&gpib_sc,GPIBPRI,"gpibpoll",2); @@ -606,10 +597,7 @@ outb(AUXMR,0x5E); /*Clear SYNC*/ void menableremote(unsigned char *device) { - int status; - unsigned char bsrval; - char c; - int counter=0; + int status, counter = 0; status=EWOULDBLOCK; if (status==EWOULDBLOCK) do { @@ -1189,8 +1177,6 @@ outb(AUXMR,0x5E); /*Clear SYNC*/ char spoll(unsigned char device) { int status=EWOULDBLOCK; - int counter; - int done; unsigned int statusbyte; if (!(inb(ISR2)&8)) do |