Mercurial > mplayer.hg
comparison libdha/sysdep/pci_svr4.c @ 4174:4cfb6b9a6da3
api changed: enable/disable_os_io returns error-code (or zero if ok) and pciconfig_read exported for mga_vid
author | alex |
---|---|
date | Tue, 15 Jan 2002 15:59:53 +0000 |
parents | 2e3262002acb |
children | a7fece7c628e |
comparison
equal
deleted
inserted
replaced
4173:250f39dedede | 4174:4cfb6b9a6da3 |
---|---|
17 #if defined(sun) | 17 #if defined(sun) |
18 #ifndef __EXTENSIONS__ | 18 #ifndef __EXTENSIONS__ |
19 #define __EXTENSIONS__ | 19 #define __EXTENSIONS__ |
20 #endif | 20 #endif |
21 | 21 |
22 static __inline__ void enable_os_io(void) | 22 static __inline__ int enable_os_io(void) |
23 { | 23 { |
24 #if defined(SI86IOPL) | 24 #if defined(SI86IOPL) |
25 sysi86(SI86IOPL, 3); | 25 sysi86(SI86IOPL, 3); |
26 #else | 26 #else |
27 sysi86(SI86V86, V86SC_IOPL, PS_IOPL); | 27 sysi86(SI86V86, V86SC_IOPL, PS_IOPL); |
28 #endif | 28 #endif |
29 return(0); | |
29 } | 30 } |
30 | 31 |
31 static __inline__ void disable_os_io(void) | 32 static __inline__ int disable_os_io(void) |
32 { | 33 { |
33 #if defined(SI86IOPL) | 34 #if defined(SI86IOPL) |
34 sysi86(SI86IOPL, 0); | 35 sysi86(SI86IOPL, 0); |
35 #else | 36 #else |
36 sysi86(SI86V86, V86SC_IOPL, 0); | 37 sysi86(SI86V86, V86SC_IOPL, 0); |
37 #endif | 38 #endif |
39 return(0); | |
38 } | 40 } |