summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/port.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-10-13 23:48:35 +0000
committerimp <imp@FreeBSD.org>1999-10-13 23:48:35 +0000
commit54845d7d91ede831c0515e3331be2f1317c7b214 (patch)
tree3fe2565dcb8749da3cfbcc041bf04838e5f0a964 /usr.bin/doscmd/port.c
parent83dbf599426ca60aaee525e0e5f34b80b2cb8ca8 (diff)
downloadFreeBSD-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.c15
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
*/
OpenPOWER on IntegriCloud