comparison vidix/sysdep/pci_openbsd.c @ 22900:a9e111b88c4a

merged libdha and libvidix, moved all files from libdha to vidix directory
author ben
date Fri, 06 Apr 2007 15:20:49 +0000
parents libdha/sysdep/pci_openbsd.c@4843214cf2a1
children 9c4ad35fabc5
comparison
equal deleted inserted replaced
22899:515545f81186 22900:a9e111b88c4a
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