Changeset 9252 in vbox
- Timestamp:
- May 30, 2008 1:27:13 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31434
- Location:
- trunk
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r9204 r9252 1045 1045 VBOX_PATH_X11_XORG_1_3 = $(VBOX_PATH_X11_ROOT)/1.3 1046 1046 VBOX_PATH_X11_XORG_1_4 = $(VBOX_PATH_X11_ROOT)/1.4 1047 VBOX_PATH_X11_XORG_1_5 = $(VBOX_PATH_X11_ROOT)/1.5 1047 1048 1048 1049 # -
trunk/src/VBox/Additions/linux/Makefile.kmk
r8760 r9252 86 86 $(PATH_BIN)/additions/vboxvideo_drv_13.so \ 87 87 $(PATH_BIN)/additions/vboxvideo_drv_14.so \ 88 $(PATH_BIN)/additions/vboxvideo_drv_15.so \ 88 89 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxvfs.sh $(PATH_BIN)/additions/mountvboxsf \ 89 90 $(VBOX_SELINUX_CMPLD) \ … … 128 129 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so $(PATH_TARGET)/install/vboxvideo_drv_13.so 129 130 $(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 130 132 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/mountvboxsf $(PATH_TARGET)/install/mount.vboxsf 131 133 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxvfs.sh $(PATH_TARGET)/install -
trunk/src/VBox/Additions/x11/xgraphics/Makefile.kmk
r8760 r9252 184 184 185 185 186 # 187 # vboxvideo_drv_15 188 # 189 DLLS += vboxvideo_drv_15 190 vboxvideo_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD 191 vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS) 192 vboxvideo_drv_15_DEFS := $(vboxvideo_drv_70_DEFS) NO_ANSIC PCIACCESS 193 vboxvideo_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 197 vboxvideo_drv_15_SOURCES = \ 198 vboxvideo_15.c \ 199 vboxutils.c 200 201 186 202 include $(KBUILD_PATH)/subfooter.kmk -
trunk/src/VBox/Additions/x11/xgraphics/vboxutils.c
r9249 r9252 22 22 #include <VBox/VBoxDev.h> 23 23 24 #include <xf86Pci.h> 25 #include <Pci.h> 24 #ifndef PCIACCESS 25 # include <xf86Pci.h> 26 # include <Pci.h> 27 #endif 26 28 27 29 #include "xf86.h" 28 30 #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 30 36 #include "compiler.h" 31 37 #include "cursorstr.h" … … 181 187 TRACE_EXIT(); 182 188 } 183 189 184 190 /** 185 191 * Macro to disable VBVA extensions and return, for use when an … … 323 329 } 324 330 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 */ 335 static 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 325 339 326 340 /** … … 332 346 vboxInitVbva(int scrnIndex, ScreenPtr pScreen, VBOXPtr pVBox) 333 347 { 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 334 368 PCITAG pciTag; 335 369 ADDRESS pciAddress; … … 359 393 pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTag, pciAddress, 360 394 sizeof(VMMDevMemory)); 395 #endif 361 396 if (pVBox->pVMMDevMemory == NULL) 362 397 { -
trunk/src/VBox/Additions/x11/xgraphics/vboxvideo.h
r9016 r9252 64 64 #include "xf86Resources.h" 65 65 66 #ifndef NO_ANSIC 66 67 /* All drivers need this */ 67 #include "xf86_ansic.h" 68 # include "xf86_ansic.h" 69 #endif 68 70 69 71 #include "compiler.h" 70 72 73 #ifndef PCIACCESS 71 74 /* 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 73 79 74 80 #include "vgaHW.h" 75 76 /* Drivers that need to access the PCI config space directly need this */77 #include "xf86Pci.h"78 81 79 82 /* VBE/DDC support */ 80 83 #include "vbe.h" 81 84 #include "vbeModes.h" 82 #include "xf86DDC.h"83 85 84 86 /* ShadowFB support */ … … 133 135 EntityInfoPtr pEnt; 134 136 VbeInfoBlock *vbeInfo; 137 #ifdef PCIACCESS 138 struct pci_device *pciInfo; 139 struct pci_device *vmmDevInfo; 140 #else 135 141 pciVideoPtr pciInfo; 136 142 PCITAG pciTag; 143 #endif 137 144 CARD16 maxBytesPerScanline; 138 145 unsigned long mapPhys, mapOff; -
trunk/src/VBox/Additions/x11/xmouse/Makefile.kmk
r8760 r9252 101 101 DLLS += vboxmouse_drv_14 102 102 vboxmouse_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD 103 vboxmouse_drv_14_DEFS := $(vboxmouse_drv_70_DEFS) 103 vboxmouse_drv_14_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC 104 104 vboxmouse_drv_14_INCS := \ 105 105 $(VBOX_PATH_X11_XORG_1_4) \ -
trunk/src/VBox/Additions/x11/xmouse/VBoxUtils.c
r9006 r9252 26 26 #include "xf86.h" 27 27 #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 29 34 #include "compiler.h" 30 35
Note:
See TracChangeset
for help on using the changeset viewer.