Make the intel_acpi.c code non-modular and make it compile. I think we'll end
up nuking this code anyway, as keithp (and I, as well) disagree about how ACPI should be handled, but the goal is to compile at the moment.
This commit is contained in:
parent
2cd6c8fa23
commit
2e58aa401d
|
|
@ -2110,22 +2110,10 @@ I830BIOSPreInit(ScrnInfoPtr pScrn, int flags)
|
|||
if (pScrn->numEntities != 1)
|
||||
return FALSE;
|
||||
|
||||
if (!xf86LoadSubModule(pScrn, "intel_acpi"))
|
||||
return FALSE;
|
||||
|
||||
/* try to load the video kernel module now */
|
||||
xf86LoadKernelModule("video");
|
||||
|
||||
if (xf86LoaderCheckSymbol("I830ACPIOpen")) {
|
||||
void (*acpiOpen)(void) = NULL;
|
||||
|
||||
acpiOpen = LoaderSymbol("I830ACPIOpen");
|
||||
|
||||
if (acpiOpen) {
|
||||
ErrorF("Opening ACPI\n");
|
||||
(*acpiOpen)();
|
||||
}
|
||||
}
|
||||
I830ACPIOpen();
|
||||
|
||||
/* Load int10 module */
|
||||
if (!xf86LoadSubModule(pScrn, "int10"))
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifndef XFree86LOADER
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
|
@ -5,7 +9,8 @@
|
|||
#endif
|
||||
#include <sys/un.h>
|
||||
#include <sys/socket.h>
|
||||
#include "X.h"
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/errno.h>
|
||||
#include "os.h"
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
|
|
@ -184,48 +189,3 @@ I830CloseACPI(void)
|
|||
I830ACPIihPtr = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef XFree86LOADER
|
||||
static MODULESETUPPROTO(intel_acpiSetup);
|
||||
|
||||
static XF86ModuleVersionInfo intel_acpiVersRec =
|
||||
{
|
||||
"intel_acpi",
|
||||
"Tungsten Graphics, Inc",
|
||||
MODINFOSTRING1,
|
||||
MODINFOSTRING2,
|
||||
XF86_VERSION_CURRENT,
|
||||
INTEL_MAJOR_VERSION, INTEL_MINOR_VERSION, INTEL_PATCHLEVEL,
|
||||
ABI_CLASS_EXTENSION,
|
||||
ABI_EXTENSION_VERSION,
|
||||
MOD_CLASS_EXTENSION,
|
||||
{0,0,0,0}
|
||||
};
|
||||
|
||||
XF86ModuleData intel_acpiModuleData = { &intel_acpiVersRec, intel_acpiSetup, NULL };
|
||||
|
||||
ModuleInfoRec INTELACPI = {
|
||||
1,
|
||||
"INTELACPI",
|
||||
NULL,
|
||||
0,
|
||||
NULL,
|
||||
};
|
||||
|
||||
/*ARGSUSED*/
|
||||
static pointer
|
||||
intel_acpiSetup(pointer Module, pointer Options, int *ErrorMajor, int *ErrorMinor)
|
||||
{
|
||||
static Bool Initialised = FALSE;
|
||||
|
||||
if (!Initialised) {
|
||||
Initialised = TRUE;
|
||||
#ifndef REMOVE_LOADER_CHECK_MODULE_INFO
|
||||
if (xf86LoaderCheckSymbol("xf86AddModuleInfo"))
|
||||
#endif
|
||||
xf86AddModuleInfo(&INTELACPI, Module);
|
||||
}
|
||||
|
||||
return (pointer)TRUE;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue