diff options
Diffstat (limited to 'sys/i386/isa/gpib.c')
-rw-r--r-- | sys/i386/isa/gpib.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/sys/i386/isa/gpib.c b/sys/i386/isa/gpib.c index d07fa85..82e86c8 100644 --- a/sys/i386/isa/gpib.c +++ b/sys/i386/isa/gpib.c @@ -138,9 +138,11 @@ gpattach(isdp) * i.e. even if gpib5 is open, we can't open another minor device */ int -gpopen(dev, flag) +gpopen(dev, flags, fmt, p) dev_t dev; - int flag; + int flags; + int fmt; + struct proc *p; { struct gpib_softc *sc = &gpib_sc; int delay; /* slept time in 1/hz seconds of tsleep */ @@ -217,10 +219,11 @@ enableremote(unit); * Close gpib device. */ int -gpclose(dev, flag) +gpclose(dev, flags, fmt, p) dev_t dev; - int flag; - + int flags; + int fmt; + struct proc *p; { struct gpib_softc *sc = &gpib_sc; unsigned char unit; @@ -319,9 +322,10 @@ while (!(inb(ISR1)&2)&&(status==EWOULDBLOCK)); * by minor(dev). */ int -gpwrite(dev, uio) +gpwrite(dev, uio, ioflag) dev_t dev; struct uio *uio; + int ioflag; { int err,count; @@ -371,8 +375,9 @@ gpwrite(dev, uio) write to using a minor device = its GPIB address */ int -gpioctl(dev_t dev, int cmd, struct gpibdata *gd) +gpioctl(dev_t dev, int cmd, caddr_t data, int flags, struct proc *p) { + struct gpibdata *gd = (struct gpibdata *)data; int error,result; error = 0; |