diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2009-06-26 12:19:38 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2009-06-26 12:19:38 +0200 |
commit | 70bd777a621b7c3c6fdc0d631690b3853f9fb07d (patch) | |
tree | 71987ffa295cd79ee495cb6d8f739e6bb1d2e448 | |
parent | c38eb1b6fb03937d4e858ca6e5e44d83f586dc11 (diff) |
Adapt for -current xserver.
-rw-r--r-- | src/i810_driver.c | 166 | ||||
-rw-r--r-- | src/i830_driver.c | 24 | ||||
-rw-r--r-- | src/i830_dvo.c | 2 |
3 files changed, 2 insertions, 190 deletions
diff --git a/src/i810_driver.c b/src/i810_driver.c index fe4bd626..22cbbde9 100644 --- a/src/i810_driver.c +++ b/src/i810_driver.c @@ -287,145 +287,6 @@ static const OptionInfoRec I810Options[] = { /* *INDENT-ON* */ #endif -const char *I810vgahwSymbols[] = { - "vgaHWFreeHWRec", - "vgaHWGetHWRec", - "vgaHWGetIOBase", - "vgaHWGetIndex", - "vgaHWInit", - "vgaHWLock", - "vgaHWMapMem", - "vgaHWProtect", - "vgaHWRestore", - "vgaHWSave", - "vgaHWSaveScreen", - "vgaHWSetMmioFuncs", - "vgaHWUnlock", - "vgaHWUnmapMem", - NULL -}; - -const char *I810fbSymbols[] = { - "fbPictureInit", - "fbScreenInit", - NULL -}; - -const char *I810vbeSymbols[] = { - "VBEFreeModeInfo", - "VBEFreeVBEInfo", - "VBEGetModeInfo", - "VBEGetModePool", - "VBEGetVBEInfo", - "VBEGetVBEMode", - "VBEInit", - "VBEPrintModes", - "VBESaveRestore", - "VBESetDisplayStart", - "VBESetGetDACPaletteFormat", - "VBESetGetLogicalScanlineLength", - "VBESetGetPaletteData", - "VBESetModeNames", - "VBESetModeParameters", - "VBESetVBEMode", - "VBEValidateModes", - "vbeDoEDID", - "vbeFree", - NULL -}; - -#ifdef XFree86LOADER -static const char *vbeOptionalSymbols[] = { - "VBEDPMSSet", - "VBEGetPixelClock", - NULL -}; -#endif - -const char *I810ddcSymbols[] = { - "xf86PrintEDID", - "xf86SetDDCproperties", - NULL -}; - -const char *I810xaaSymbols[] = { - "XAACreateInfoRec", - "XAADestroyInfoRec", - "XAAInit", - "XAAGetCopyROP", - "XAAGetPatternROP", - NULL -}; - -const char *I810ramdacSymbols[] = { - "xf86CreateCursorInfoRec", - "xf86DestroyCursorInfoRec", - "xf86InitCursor", - NULL -}; - -const char *I810shadowFBSymbols[] = { - "ShadowFBInit", - NULL -}; - -#ifdef XF86DRI -const char *I810drmSymbols[] = { - "drmAddBufs", - "drmAddMap", - "drmAgpAcquire", - "drmAgpAlloc", - "drmAgpBind", - "drmAgpEnable", - "drmAgpFree", - "drmAgpRelease", - "drmAgpUnbind", - "drmAuthMagic", - "drmCommandNone", - "drmCommandWrite", - "drmCreateContext", - "drmCtlInstHandler", - "drmCtlUninstHandler", - "drmDestroyContext", - "drmFreeVersion", - "drmGetInterruptFromBusID", - "drmGetLibVersion", - "drmGetVersion", - "drmRmMap", -#ifdef XSERVER_LIBDRM_MM - "drmMMInit", - "drmMMTakedown", - "drmMMLock", - "drmMMUnlock", -#endif - NULL -}; - - -const char *I810driSymbols[] = { - "DRICloseScreen", - "DRICreateInfoRec", - "DRIGetContext", - "DRIDestroyInfoRec", - "DRIFinishScreenInit", - "DRIGetSAREAPrivate", - "DRILock", - "DRIQueryVersion", - "DRIScreenInit", - "DRIUnlock", - "GlxSetVisualConfigs", - "DRICreatePCIBusID", - NULL -}; - -#endif /* I830_ONLY */ - -const char *I810i2cSymbols[] = { - "xf86CreateI2CBusRec", - "xf86I2CBusInit", - NULL -}; - #ifndef I810_DEBUG int I810_DEBUG = (0 /* | DEBUG_ALWAYS_SYNC */ @@ -490,20 +351,6 @@ i810Setup(pointer module, pointer opts, int *errmaj, int *errmin) ); /* - * Tell the loader about symbols from other modules that this module - * might refer to. - */ - LoaderRefSymLists(I810vgahwSymbols, - I810fbSymbols, I810xaaSymbols, I810ramdacSymbols, -#ifdef XF86DRI - I810drmSymbols, - I810driSymbols, -#endif - I810shadowFBSymbols, - I810vbeSymbols, vbeOptionalSymbols, - I810ddcSymbols, NULL); - - /* * The return value must be non-NULL on success even though there * is no TearDownProc. */ @@ -809,7 +656,6 @@ I810DoDDC(ScrnInfoPtr pScrn, int index) } if (xf86LoadSubModule(pScrn, "vbe") && (pVbe = VBEInit(NULL, index))) { - xf86LoaderReqSymLists(I810vbeSymbols, NULL); MonInfo = vbeDoEDID(pVbe, NULL); xf86PrintEDID(MonInfo); xf86SetDDCproperties(pScrn, MonInfo); @@ -864,8 +710,6 @@ I810PreInit(ScrnInfoPtr pScrn, int flags) if (!xf86LoadSubModule(pScrn, "vgahw")) return FALSE; - xf86LoaderReqSymLists(I810vgahwSymbols, NULL); - /* Allocate a vgaHWRec */ if (!vgaHWGetHWRec(pScrn)) return FALSE; @@ -960,7 +804,6 @@ I810PreInit(ScrnInfoPtr pScrn, int flags) I810FreeRec(pScrn); return FALSE; } - xf86LoaderReqSymLists(I810xaaSymbols, NULL); } #ifdef XF86DRI @@ -1244,14 +1087,12 @@ I810PreInit(ScrnInfoPtr pScrn, int flags) I810FreeRec(pScrn); return FALSE; } - xf86LoaderReqSymLists(I810fbSymbols, NULL); if (!xf86ReturnOptValBool(pI810->Options, OPTION_SW_CURSOR, FALSE)) { if (!xf86LoadSubModule(pScrn, "ramdac")) { I810FreeRec(pScrn); return FALSE; } - xf86LoaderReqSymLists(I810ramdacSymbols, NULL); } if (xf86GetOptValInteger @@ -1278,9 +1119,6 @@ I810PreInit(ScrnInfoPtr pScrn, int flags) xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Couldn't load shadowfb module:\n"); } - else { - xf86LoaderReqSymLists(I810shadowFBSymbols, NULL); - } } xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "page flipping %s\n", @@ -1312,9 +1150,7 @@ I810PreInit(ScrnInfoPtr pScrn, int flags) #ifdef XF86DRI /* Load the dri module if requested. */ if (xf86ReturnOptValBool(pI810->Options, OPTION_DRI, FALSE)) { - if (xf86LoadSubModule(pScrn, "dri")) { - xf86LoaderReqSymLists(I810driSymbols, I810drmSymbols, NULL); - } + xf86LoadSubModule(pScrn, "dri"); } #endif diff --git a/src/i830_driver.c b/src/i830_driver.c index 48e23510..04033b8d 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -216,17 +216,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. #include <xf86drmMode.h> #endif -#ifdef I830_USE_EXA -const char *I830exaSymbols[] = { - "exaGetVersion", - "exaDriverInit", - "exaDriverFini", - "exaOffscreenAlloc", - "exaOffscreenFree", - "exaWaitSync", - NULL -}; -#endif #define BIT(x) (1 << (x)) #define MAX(a,b) ((a) > (b) ? (a) : (b)) @@ -1050,7 +1039,6 @@ I830PreInitDDC(ScrnInfoPtr pScrn) if (!xf86LoadSubModule(pScrn, "ddc")) { pI830->ddc2 = FALSE; } else { - xf86LoaderReqSymLists(I810ddcSymbols, NULL); pI830->ddc2 = TRUE; } @@ -1058,8 +1046,6 @@ I830PreInitDDC(ScrnInfoPtr pScrn) /* Load I2C if we have the code to use it */ if (pI830->ddc2) { if (xf86LoadSubModule(pScrn, "i2c")) { - xf86LoaderReqSymLists(I810i2cSymbols, NULL); - pI830->ddc2 = TRUE; } else { pI830->ddc2 = FALSE; @@ -1511,11 +1497,9 @@ I830LoadSyms(ScrnInfoPtr pScrn) /* The vgahw module should be loaded here when needed */ if (!xf86LoadSubModule(pScrn, "vgahw")) return FALSE; - xf86LoaderReqSymLists(I810vgahwSymbols, NULL); if (!xf86LoadSubModule(pScrn, "ramdac")) return FALSE; - xf86LoaderReqSymLists(I810ramdacSymbols, NULL); return TRUE; } @@ -1942,8 +1926,6 @@ I830PreInit(ScrnInfoPtr pScrn, int flags) return FALSE; } - xf86LoaderReqSymLists(I810fbSymbols, NULL); - switch (pI830->accel) { #ifdef I830_USE_XAA case ACCEL_XAA: @@ -1951,7 +1933,6 @@ I830PreInit(ScrnInfoPtr pScrn, int flags) PreInitCleanup(pScrn); return FALSE; } - xf86LoaderReqSymLists(I810xaaSymbols, NULL); break; #endif @@ -1973,7 +1954,6 @@ I830PreInit(ScrnInfoPtr pScrn, int flags) PreInitCleanup(pScrn); return FALSE; } - xf86LoaderReqSymLists(I830exaSymbols, NULL); break; } #endif @@ -1996,9 +1976,7 @@ I830PreInit(ScrnInfoPtr pScrn, int flags) /* Load the dri module if requested. */ if (xf86ReturnOptValBool(pI830->Options, OPTION_DRI, FALSE) && pI830->directRenderingType != DRI_DISABLED) { - if (xf86LoadSubModule(pScrn, "dri")) { - xf86LoaderReqSymLists(I810driSymbols, I810drmSymbols, NULL); - } + xf86LoadSubModule(pScrn, "dri"); } #endif diff --git a/src/i830_dvo.c b/src/i830_dvo.c index 832c7625..e8918ff8 100644 --- a/src/i830_dvo.c +++ b/src/i830_dvo.c @@ -447,8 +447,6 @@ i830_dvo_init(ScrnInfoPtr pScrn) if (drv->modhandle == NULL) continue; - xf86LoaderReqSymLists(drv->symbols, NULL); - ret_ptr = NULL; drv->vid_rec = LoaderSymbol(drv->fntablename); |