Mercurial > mplayer.hg
comparison libdha/libdha.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 | 05ac3586db02 |
comparison
equal
deleted
inserted
replaced
4173:250f39dedede | 4174:4cfb6b9a6da3 |
---|---|
5 XFree86 3.3.3 implementation | 5 XFree86 3.3.3 implementation |
6 1999 - Øyvind Aabling. | 6 1999 - Øyvind Aabling. |
7 Modified for GATOS/win/gfxdump. | 7 Modified for GATOS/win/gfxdump. |
8 | 8 |
9 2002 - library implementation by Nick Kurshev | 9 2002 - library implementation by Nick Kurshev |
10 - some changes by Alex Beregszaszi | |
10 | 11 |
11 supported O/S's: SVR4, UnixWare, SCO, Solaris, | 12 supported O/S's: SVR4, UnixWare, SCO, Solaris, |
12 FreeBSD, NetBSD, 386BSD, BSDI BSD/386, | 13 FreeBSD, NetBSD, 386BSD, BSDI BSD/386, |
13 Linux, Mach/386, ISC | 14 Linux, Mach/386, ISC |
14 DOS (WATCOM 9.5 compiler), Win9x (with mapdev.vxd) | 15 DOS (WATCOM 9.5 compiler), Win9x (with mapdev.vxd) |
23 #include <string.h> | 24 #include <string.h> |
24 #include <fcntl.h> | 25 #include <fcntl.h> |
25 #include <sys/stat.h> | 26 #include <sys/stat.h> |
26 #include <sys/types.h> | 27 #include <sys/types.h> |
27 #include <unistd.h> | 28 #include <unistd.h> |
29 | |
30 /* instead exit() use libdha_exit, and do the 'mother-application' deinit | |
31 only in this code */ | |
32 void libdha_exit(const char *message, int level) | |
33 { | |
34 printf("libdha: FATAL: %s\n", message); | |
35 exit(level); /* FIXME */ | |
36 } | |
28 | 37 |
29 #if defined(_WIN32) | 38 #if defined(_WIN32) |
30 #include "sysdep/libdha_win32.c" | 39 #include "sysdep/libdha_win32.c" |
31 #elif defined (__EMX__) | 40 #elif defined (__EMX__) |
32 #include "sysdep/libdha_os2.c" | 41 #include "sysdep/libdha_os2.c" |
95 | 104 |
96 void OUTPORT32(unsigned idx,unsigned val) | 105 void OUTPORT32(unsigned idx,unsigned val) |
97 { | 106 { |
98 outl(idx,val); | 107 outl(idx,val); |
99 } | 108 } |
109 |