VirtualBox

Changeset 22149 in vbox


Ignore:
Timestamp:
Aug 11, 2009 9:40:48 AM (15 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: applied patch by Lubomir Rintel to make vboxvideo build on the X.Org 1.7 pre-release

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r22054 r22149  
    4949 * Conectiva Linux.
    5050 *
    51  * Authors: Paulo Car Pereira de Andrade <[email protected]>
     51 * Authors: Paulo César Pereira de Andrade <[email protected]>
    5252 *
    5353 * $XFree86: xc/programs/Xserver/hw/xfree86/drivers/vesa/vesa.h,v 1.9 2001/05/04 19:05:49 dawes Exp $
     
    9898#include "xf86.h"
    9999#include "xf86_OSproc.h"
    100 #include "xf86Resources.h"
     100#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6
     101# include "xf86Resources.h"
     102#endif
    101103
    102104#ifndef NO_ANSIC
     
    141143#include "dgaproc.h"
    142144
    143 #include "xf86RAC.h"
     145#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6
     146# include "xf86RAC.h"
     147#endif
    144148
    145149#include "fb.h"
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_13.c

    r22093 r22149  
    470470};
    471471
    472 /*
    473  * List of symbols from other modules that this module references.  This
    474  * list is used to tell the loader that it is OK for symbols here to be
    475  * unresolved providing that it hasn't been told that they are essential
    476  * via a call to xf86LoaderReqSymbols() or xf86LoaderReqSymLists().  The
    477  * purpose is this is to avoid warnings about unresolved symbols that are
    478  * not required.
    479  */
    480 static const char *fbSymbols[] = {
    481     "fbPictureInit",
    482     "fbScreenInit",
    483     NULL
    484 };
    485 
    486 static const char *shadowfbSymbols[] = {
    487   "ShadowFBInit2",
    488   NULL
    489 };
    490 
    491 static const char *vbeSymbols[] = {
    492     "VBEExtendedInit",
    493     "VBEFindSupportedDepths",
    494     "VBEGetModeInfo",
    495     "VBEGetVBEInfo",
    496     "VBEGetVBEMode",
    497     "VBEPrintModes",
    498     "VBESaveRestore",
    499     "VBESetDisplayStart",
    500     "VBESetGetDACPaletteFormat",
    501     "VBESetGetLogicalScanlineLength",
    502     "VBESetGetPaletteData",
    503     "VBESetModeNames",
    504     "VBESetModeParameters",
    505     "VBESetVBEMode",
    506     "VBEValidateModes",
    507     "vbeDoEDID",
    508     "vbeFree",
    509     NULL
    510 };
    511 
    512 static const char *ramdacSymbols[] = {
    513     "xf86InitCursor",
    514     "xf86CreateCursorInfoRec",
    515     NULL
    516 };
    517 
    518 static const char *vgahwSymbols[] = {
    519     "vgaHWGetHWRec",
    520     "vgaHWHandleColormaps",
    521     "vgaHWFreeHWRec",
    522     "vgaHWMapMem",
    523     "vgaHWUnmapMem",
    524     "vgaHWSaveFonts",
    525     "vgaHWRestoreFonts",
    526     NULL
    527 };
    528 
    529 #ifdef VBOX_DRI
    530 static const char *drmSymbols[] = {
    531     "drmFreeVersion",
    532     "drmGetVersion",
    533     NULL
    534 };
    535 
    536 static const char *driSymbols[] = {
    537     "DRICloseScreen",
    538     "DRICreateInfoRec",
    539     "DRIDestroyInfoRec",
    540     "DRIFinishScreenInit",
    541     "DRIGetSAREAPrivate",
    542     "DRILock",
    543     "DRIMoveBuffersHelper",
    544     "DRIQueryVersion",
    545     "DRIScreenInit",
    546     "DRIUnlock",
    547     "GlxSetVisualConfigs",
    548     "DRICreatePCIBusID",
    549     NULL
    550 };
    551 #endif
    552 
    553472#ifdef XFree86LOADER
    554473/* Module loader interface */
     
    592511        xf86Msg(X_CONFIG, "Load address of symbol \"VBOXVIDEO\" is %p\n",
    593512                (void *)&VBOXVIDEO);
    594         LoaderRefSymLists(fbSymbols,
    595                           shadowfbSymbols,
    596                           vbeSymbols,
    597                           ramdacSymbols,
    598 #ifdef VBOX_DRI
    599                           drmSymbols, driSymbols,
    600 #endif
    601                           NULL);
    602513        return (pointer)TRUE;
    603514    }
     
    775686    if (!xf86LoadSubModule(pScrn, "vbe"))
    776687        return (FALSE);
    777     xf86LoaderReqSymLists(vbeSymbols, NULL);
    778688
    779689    if ((pVBox->pVbe = VBEExtendedInit(NULL, pVBox->pEnt->index,
     
    795705    if (!xf86LoadSubModule(pScrn, "ramdac"))
    796706        return FALSE;
    797     xf86LoaderReqSymLists(ramdacSymbols, NULL);
    798707
    799708    /* The framebuffer module. */
    800709    if (xf86LoadSubModule(pScrn, "fb") == NULL)
    801710        return (FALSE);
    802     xf86LoaderReqSymLists(fbSymbols, NULL);
    803711
    804712    if (!xf86LoadSubModule(pScrn, "shadowfb"))
    805713        return FALSE;
    806     xf86LoaderReqSymLists(shadowfbSymbols, NULL);
    807714
    808715    if (!xf86LoadSubModule(pScrn, "vgahw"))
    809716        return FALSE;
    810     xf86LoaderReqSymLists(vgahwSymbols, NULL);
    811717
    812718    /* Set up our ScrnInfoRec structure to describe our virtual
     
    902808#ifdef VBOX_DRI
    903809    /* Load the dri module. */
    904     if (xf86LoadSubModule(pScrn, "dri")) {
    905         xf86LoaderReqSymLists(driSymbols, drmSymbols, NULL);
    906     }
     810    if (!xf86LoadSubModule(pScrn, "dri"))
     811        return FALSE;
    907812#endif
    908813    return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette