diff options
author | imp <imp@FreeBSD.org> | 1999-10-13 23:48:35 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-10-13 23:48:35 +0000 |
commit | 54845d7d91ede831c0515e3331be2f1317c7b214 (patch) | |
tree | 3fe2565dcb8749da3cfbcc041bf04838e5f0a964 /usr.bin/doscmd/port.c | |
parent | 83dbf599426ca60aaee525e0e5f34b80b2cb8ca8 (diff) | |
download | FreeBSD-src-54845d7d91ede831c0515e3331be2f1317c7b214.zip FreeBSD-src-54845d7d91ede831c0515e3331be2f1317c7b214.tar.gz |
Allow in/out to work in DOS programs.
Submitted by: Parag Patel
PR: bin/8486
Diffstat (limited to 'usr.bin/doscmd/port.c')
-rw-r--r-- | usr.bin/doscmd/port.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr.bin/doscmd/port.c b/usr.bin/doscmd/port.c index 9159321..fe5b5a8 100644 --- a/usr.bin/doscmd/port.c +++ b/usr.bin/doscmd/port.c @@ -158,6 +158,21 @@ inb_traceport(int port) return(byte); } +/* + * Real input/output to (hopefully) iomapped port + */ +void +outb_port(int port, unsigned char byte) +{ + out(port, byte); +} + +unsigned char +inb_port(int port) +{ + return in(port); +} + /* * Fake input/output ports */ |