10l: comparison of char* ptrs with string literals
[mplayer.git] / libdha / sysdep / pci_mach386.c
blob31621862b8e10d25e7049e17d4ef4d64f3e1cdbc
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 */
7 #include <errno.h>
9 static int io_fd;
11 static __inline__ int enable_os_io(void)
13 io_fd = -1 ;
14 if ((io_fd = open("/dev/iopl", O_RDWR, 0)) < 0) {
15 perror("/dev/iopl");
16 return(errno);
18 return(0);
21 static __inline__ int disable_os_io(void)
23 close(io_fd);
24 return(0);