VirtualBox

Changeset 9252 in vbox


Ignore:
Timestamp:
May 30, 2008 1:27:13 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31434
Message:

Additions/x11 and linux: make the Additions work with Fedora 9/X.org server 1.5

Location:
trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r9204 r9252  
    10451045VBOX_PATH_X11_XORG_1_3  = $(VBOX_PATH_X11_ROOT)/1.3
    10461046VBOX_PATH_X11_XORG_1_4  = $(VBOX_PATH_X11_ROOT)/1.4
     1047VBOX_PATH_X11_XORG_1_5  = $(VBOX_PATH_X11_ROOT)/1.5
    10471048
    10481049#
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r8760 r9252  
    8686                $(PATH_BIN)/additions/vboxvideo_drv_13.so \
    8787                $(PATH_BIN)/additions/vboxvideo_drv_14.so \
     88                $(PATH_BIN)/additions/vboxvideo_drv_15.so \
    8889                $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxvfs.sh $(PATH_BIN)/additions/mountvboxsf \
    8990                $(VBOX_SELINUX_CMPLD) \
     
    128129        $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so    $(PATH_TARGET)/install/vboxvideo_drv_13.so
    129130        $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_14.so    $(PATH_TARGET)/install/vboxvideo_drv_14.so
     131        $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_15.so    $(PATH_TARGET)/install/vboxvideo_drv_15.so
    130132        $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/mountvboxsf            $(PATH_TARGET)/install/mount.vboxsf
    131133        $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxvfs.sh $(PATH_TARGET)/install
  • trunk/src/VBox/Additions/x11/xgraphics/Makefile.kmk

    r8760 r9252  
    184184
    185185
     186#
     187# vboxvideo_drv_15
     188#
     189DLLS += vboxvideo_drv_15
     190vboxvideo_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
     191vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
     192vboxvideo_drv_15_DEFS := $(vboxvideo_drv_70_DEFS) NO_ANSIC PCIACCESS
     193vboxvideo_drv_15_INCS = \
     194        $(VBOX_PATH_X11_XORG_1_5) \
     195        $(VBOX_PATH_X11_XORG_1_5)/X11 \
     196        $(VBOX_PATH_X11_XORG_1_5)/xorg
     197vboxvideo_drv_15_SOURCES  = \
     198        vboxvideo_15.c \
     199        vboxutils.c
     200
     201
    186202include $(KBUILD_PATH)/subfooter.kmk
  • trunk/src/VBox/Additions/x11/xgraphics/vboxutils.c

    r9249 r9252  
    2222#include <VBox/VBoxDev.h>
    2323
    24 #include <xf86Pci.h>
    25 #include <Pci.h>
     24#ifndef PCIACCESS
     25# include <xf86Pci.h>
     26# include <Pci.h>
     27#endif
    2628
    2729#include "xf86.h"
    2830#define NEED_XF86_TYPES
    29 #include "xf86_ansic.h"
     31#ifdef NO_ANSIC
     32# include <string.h>
     33#else
     34# include "xf86_ansic.h"
     35#endif
    3036#include "compiler.h"
    3137#include "cursorstr.h"
     
    181187    TRACE_EXIT();
    182188}
    183  
     189
    184190/**
    185191 * Macro to disable VBVA extensions and return, for use when an
     
    323329}
    324330
     331#ifdef PCIACCESS
     332/* As of X.org server 1.5, we are using the pciaccess library functions to
     333 * access PCI.  This structure describes our VMM device. */
     334/** Structure describing the VMM device */
     335static const struct pci_id_match vboxVMMDevID =
     336{ VMMDEV_VENDORID, VMMDEV_DEVICEID, PCI_MATCH_ANY, PCI_MATCH_ANY,
     337  PCI_MATCH_ANY, PCI_MATCH_ANY, 0 };
     338#endif
    325339
    326340/**
     
    332346vboxInitVbva(int scrnIndex, ScreenPtr pScreen, VBOXPtr pVBox)
    333347{
     348#ifdef PCIACCESS
     349    struct pci_device_iterator *devIter = NULL;
     350
     351    TRACE_ENTRY();
     352    pVBox->vmmDevInfo = NULL;
     353    devIter = pci_id_match_iterator_create(&vboxVMMDevID);
     354    if (devIter)
     355    {
     356        pVBox->vmmDevInfo = pci_device_next(devIter);
     357        pci_iterator_destroy(devIter);
     358    }
     359    if (pVBox->vmmDevInfo)
     360    {
     361        pci_device_map_range(pVBox->vmmDevInfo,
     362                             pVBox->vmmDevInfo->regions[1].base_addr,
     363                             pVBox->vmmDevInfo->regions[1].size,
     364                             PCI_DEV_MAP_FLAG_WRITABLE,
     365                             (void **)&pVBox->pVMMDevMemory);
     366    }
     367#else
    334368    PCITAG pciTag;
    335369    ADDRESS pciAddress;
     
    359393    pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTag, pciAddress,
    360394                                         sizeof(VMMDevMemory));
     395#endif
    361396    if (pVBox->pVMMDevMemory == NULL)
    362397    {
  • trunk/src/VBox/Additions/x11/xgraphics/vboxvideo.h

    r9016 r9252  
    6464#include "xf86Resources.h"
    6565
     66#ifndef NO_ANSIC
    6667/* All drivers need this */
    67 #include "xf86_ansic.h"
     68# include "xf86_ansic.h"
     69#endif
    6870
    6971#include "compiler.h"
    7072
     73#ifndef PCIACCESS
    7174/* Drivers for PCI hardware need this */
    72 #include "xf86PciInfo.h"
     75# include "xf86PciInfo.h"
     76/* Drivers that need to access the PCI config space directly need this */
     77# include "xf86Pci.h"
     78#endif
    7379
    7480#include "vgaHW.h"
    75 
    76 /* Drivers that need to access the PCI config space directly need this */
    77 #include "xf86Pci.h"
    7881
    7982/* VBE/DDC support */
    8083#include "vbe.h"
    8184#include "vbeModes.h"
    82 #include "xf86DDC.h"
    8385
    8486/* ShadowFB support */
     
    133135    EntityInfoPtr pEnt;
    134136    VbeInfoBlock *vbeInfo;
     137#ifdef PCIACCESS
     138    struct pci_device *pciInfo;
     139    struct pci_device *vmmDevInfo;
     140#else
    135141    pciVideoPtr pciInfo;
    136142    PCITAG pciTag;
     143#endif
    137144    CARD16 maxBytesPerScanline;
    138145    unsigned long mapPhys, mapOff;
  • trunk/src/VBox/Additions/x11/xmouse/Makefile.kmk

    r8760 r9252  
    101101DLLS += vboxmouse_drv_14
    102102vboxmouse_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
    103 vboxmouse_drv_14_DEFS := $(vboxmouse_drv_70_DEFS)
     103vboxmouse_drv_14_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
    104104vboxmouse_drv_14_INCS := \
    105105        $(VBOX_PATH_X11_XORG_1_4) \
  • trunk/src/VBox/Additions/x11/xmouse/VBoxUtils.c

    r9006 r9252  
    2626#include "xf86.h"
    2727#define NEED_XF86_TYPES
    28 #include "xf86_ansic.h"
     28#ifdef NO_ANSIC
     29# include <errno.h>
     30# include <string.h>
     31#else
     32# include "xf86_ansic.h"
     33#endif
    2934#include "compiler.h"
    3035
Note: See TracChangeset for help on using the changeset viewer.

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