diff options
author | ache <ache@FreeBSD.org> | 1994-01-31 19:07:59 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-01-31 19:07:59 +0000 |
commit | 060fb0cded465bec0a7773a7291c543f514e2eb1 (patch) | |
tree | 91c5e33c072a7b091c267927da8ff0fe753f5e40 | |
parent | 04f7972eddf05576c7a4277ec20c399d7961eeae (diff) | |
download | FreeBSD-src-060fb0cded465bec0a7773a7291c543f514e2eb1.zip FreeBSD-src-060fb0cded465bec0a7773a7291c543f514e2eb1.tar.gz |
Remove CALLOUTMASK, if non-bidir case.
-rw-r--r-- | sys/dev/sio/sio.c | 6 | ||||
-rw-r--r-- | sys/i386/isa/sio.c | 6 | ||||
-rw-r--r-- | sys/isa/sio.c | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 30c9768..bd63fa3 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.23 1994/01/31 06:12:18 davidg Exp $ + * $Id: sio.c,v 1.24 1994/01/31 08:52:12 ache Exp $ */ #include "sio.h" @@ -1575,7 +1575,11 @@ sioselect(dev, rw, p) int rw; struct proc *p; { +#ifdef COM_BIDIR return ttselect(dev & ~COM_CALLOUTMASK, rw, p); +#else + return ttselect(dev, rw, p); +#endif } static void diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c index 30c9768..bd63fa3 100644 --- a/sys/i386/isa/sio.c +++ b/sys/i386/isa/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.23 1994/01/31 06:12:18 davidg Exp $ + * $Id: sio.c,v 1.24 1994/01/31 08:52:12 ache Exp $ */ #include "sio.h" @@ -1575,7 +1575,11 @@ sioselect(dev, rw, p) int rw; struct proc *p; { +#ifdef COM_BIDIR return ttselect(dev & ~COM_CALLOUTMASK, rw, p); +#else + return ttselect(dev, rw, p); +#endif } static void diff --git a/sys/isa/sio.c b/sys/isa/sio.c index 30c9768..bd63fa3 100644 --- a/sys/isa/sio.c +++ b/sys/isa/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.23 1994/01/31 06:12:18 davidg Exp $ + * $Id: sio.c,v 1.24 1994/01/31 08:52:12 ache Exp $ */ #include "sio.h" @@ -1575,7 +1575,11 @@ sioselect(dev, rw, p) int rw; struct proc *p; { +#ifdef COM_BIDIR return ttselect(dev & ~COM_CALLOUTMASK, rw, p); +#else + return ttselect(dev, rw, p); +#endif } static void |