Debian Codegraph @

drivers/libdha/sysdep/pci_openbsd.c

raw
1 /*
2 This file is based on:
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
5 */
6
7 #ifdef __i386__
8
9 #include <errno.h>
10 #include <sys/types.h>
11 #include <machine/sysarch.h>
12
13 static __inline__ int enable_os_io(void)
14 {
15 if (i386_iopl(1) < 0) {
16 perror("i386_iopl");
17 return(errno);
18 }
19 return(0);
20 }
21
22 static __inline__ int disable_os_io(void)
23 {
24 /* Nothing to do */
25 return(0);
26 }
27 #endif