Initial commit
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / int10 / xf86int10module.c
blobb4e5865da010735add08e9a74bbd28cf7a667530
1 /*
2 * XFree86 int10 module
3 * execute BIOS int 10h calls in x86 real mode environment
4 * Copyright 1999 Egbert Eich
5 */
6 #ifdef HAVE_XORG_CONFIG_H
7 #include <xorg-config.h>
8 #endif
10 #include "xf86.h"
11 #include "xf86str.h"
12 #include "xf86Pci.h"
13 #include "xf86int10.h"
15 #ifndef MOD_NAME
16 # define MOD_NAME int10
17 #endif
19 #define stringify(x) #x
20 #define STRING(x) stringify(x)
21 #define concat(x,y) x ## y
22 #define combine(a,b) concat(a,b)
23 #define NAME(x) combine(MOD_NAME,x)
25 static MODULESETUPPROTO(NAME(Setup));
27 static XF86ModuleVersionInfo NAME(VersRec) =
29 STRING(NAME( )),
30 MODULEVENDORSTRING,
31 MODINFOSTRING1,
32 MODINFOSTRING2,
33 XORG_VERSION_CURRENT,
34 1, 0, 0,
35 ABI_CLASS_VIDEODRV, /* needs the video driver ABI */
36 ABI_VIDEODRV_VERSION,
37 MOD_CLASS_NONE,
38 {0,0,0,0}
41 _X_EXPORT XF86ModuleData NAME(ModuleData) = {
42 &NAME(VersRec),
43 NAME(Setup),
44 NULL
47 static pointer
48 NAME(Setup)(pointer module, pointer opts, int *errmaj, int *errmin)
50 static Bool setupDone = FALSE;
52 if (!setupDone) {
53 setupDone = TRUE;
55 * Tell the loader about symbols from other modules that this module
56 * might refer to.
60 * The return value must be non-NULL on success even though there
61 * is no TearDownProc.
63 return (pointer)1;