added function port_deny_full( ... ) for use when closing port access

This commit is contained in:
themythos
2002-02-27 19:53:36 +00:00
parent c357a84c76
commit 51ac212f97
+4
View File
@@ -64,6 +64,10 @@ static inline int port_access_full (unsigned short int port) {
return ioperm(port, 3, 255);
}
static inline int port_deny_full (unsigned short int port) {
return ioperm(port, 3, 0);
}
// -------------------------------------------------------------
// Use i386_get_ioperm, i386_set_ioperm, inb and outb from <machine/pio.h> (NetBSD)
#elif defined HAVE_LIBI386 && defined HAVE_MACHINE_PIO_H && defined HAVE_MACHINE_SYSARCH_H