xf86int10module.c revision 05b261ec
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
9
10#include "xf86.h"
11#include "xf86str.h"
12#include "xf86Pci.h"
13#include "xf86int10.h"
14
15#ifndef MOD_NAME
16# define MOD_NAME int10
17#endif
18
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)
24
25static MODULESETUPPROTO(NAME(Setup));
26
27static XF86ModuleVersionInfo NAME(VersRec) =
28{
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}
39};
40
41_X_EXPORT XF86ModuleData NAME(ModuleData) = {
42    &NAME(VersRec),
43    NAME(Setup),
44    NULL
45};
46
47static pointer
48NAME(Setup)(pointer module, pointer opts, int *errmaj, int *errmin)
49{
50    static Bool setupDone = FALSE;
51
52    if (!setupDone) {
53	setupDone = TRUE;
54	/*
55	 * Tell the loader about symbols from other modules that this module
56	 * might refer to.
57	 */
58    }
59    /*
60     * The return value must be non-NULL on success even though there
61     * is no TearDownProc.
62     */
63    return (pointer)1;
64}
65