diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-15 15:59:53 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-15 15:59:53 +0000 |
commit | 340400036662ae41b230653e07a3aa4466010e3b (patch) | |
tree | 1088d724d0e60bc0dd2ccd637c585f43edacad0d /libdha/sysdep/pci_openbsd.c | |
parent | 2c7c5d325bcf50863f91a8c80aaa709d13ddb944 (diff) | |
download | mpv-340400036662ae41b230653e07a3aa4466010e3b.tar.bz2 mpv-340400036662ae41b230653e07a3aa4466010e3b.tar.xz |
api changed: enable/disable_os_io returns error-code (or zero if ok) and pciconfig_read exported for mga_vid
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4175 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libdha/sysdep/pci_openbsd.c')
-rw-r--r-- | libdha/sysdep/pci_openbsd.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libdha/sysdep/pci_openbsd.c b/libdha/sysdep/pci_openbsd.c index ef835b405f..387335c236 100644 --- a/libdha/sysdep/pci_openbsd.c +++ b/libdha/sysdep/pci_openbsd.c @@ -4,15 +4,19 @@ Modified for readability by Nick Kurshev */ -static __inline__ void enable_os_io(void) +#include <errno.h> + +static __inline__ int enable_os_io(void) { if (i386_iopl(1) < 0) { perror("i386_iopl"); - exit(1); + return(errno); } + return(0); } -static __inline__ void disable_os_io(void) +static __inline__ int disable_os_io(void) { /* Nothing to do */ + return(0); } |