3 $XFree86: xc/programs/Xserver/hw/xfree86/etc/scanpci.c,v 3.34.2.17 1998/11/10 11:55:40 dawes Exp $
4 Modified for readability by Nick Kurshev
9 #include <i386/isa/pcconsioctl.h>
16 static __inline__
int enable_os_io(void)
19 if ((io_fd
= open("/dev/console", O_RDWR
, 0)) < 0) {
20 perror("/dev/console");
23 if (ioctl(io_fd
, PCCONENABIOPL
, 0) < 0) {
24 perror("ioctl(PCCONENABIOPL)");
30 static __inline__
int disable_os_io(void)
32 if (ioctl(io_fd
, PCCONDISABIOPL
, 0) < 0) {
33 perror("ioctl(PCCONDISABIOPL)");