VirtualBox

Changeset 33644 in vbox


Ignore:
Timestamp:
Nov 1, 2010 12:03:53 PM (14 years ago)
Author:
vboxsync
Message:

dev/vga: fix VGAState inconsistency across different .cpp files

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r33578 r33644  
    4545*******************************************************************************/
    4646
     47/* WARNING!!! All defines that affetc VGAState should be placed to DevVGA.h !!!
     48 *            NEVER place them here as this would lead to VGAState inconsistency
     49 *            across different .cpp files !!!
     50 */
    4751/** The size of the VGA GC mapping.
    4852 * This is supposed to be all the VGA memory accessible to the guest.
     
    5963/** Converts a vga adaptor state pointer to a device instance pointer. */
    6064#define VGASTATE2DEVINS(pVgaState)    ((pVgaState)->CTX_SUFF(pDevIns))
    61 
    62 /** Use VBE bytewise I/O. Only needed for Windows Longhorn/Vista betas and backwards compatibility. */
    63 #define VBE_BYTEWISE_IO
    64 
    65 /** Use VBE new dynamic mode list.
    66  * If this is not defined, no checks are carried out to see if the modes all
    67  * fit into the framebuffer! See the VRAM_SIZE_FIX define. */
    68 #define VBE_NEW_DYN_LIST
    6965
    7066/** Check that the video modes fit into virtual video memory.
     
    130126#include <VBox/bioslogo.h>
    131127
     128/* should go BEFORE any other DevVGA include to make all DevVGA.h config defines be visible */
     129#include "DevVGA.h"
     130
    132131#if defined(VBE_NEW_DYN_LIST) && defined(IN_RING3) && !defined(VBOX_DEVICE_STRUCT_TESTCASE)
    133132# include "DevVGAModes.h"
     
    136135
    137136#include "vl_vbox.h"
    138 #include "DevVGA.h"
    139137#include "Builtins.h"
    140138#include "Builtins2.h"
     
    27512749            case 0x3b0: /* Host */
    27522750            {
    2753 #if defined(VBOX_WITH_VIDEOHWACCEL)
     2751#if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_WITH_VDMA) || defined(VBOX_WITH_WDDM)
    27542752                if(u32 == HGSMIOFFSET_VOID)
    27552753                {
     
    55595557    PCIDevSetClassBase( &pThis->Dev,   0x03);
    55605558    PCIDevSetHeaderType(&pThis->Dev,   0x00);
    5561 #if defined(VBOX_WITH_HGSMI) && defined(VBOX_WITH_VIDEOHWACCEL)
     5559#if defined(VBOX_WITH_HGSMI) && (defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_WITH_VDMA) || defined(VBOX_WITH_WDDM))
    55625560    PCIDevSetInterruptPin(&pThis->Dev, 1);
    55635561#endif
  • trunk/src/VBox/Devices/Graphics/DevVGA.h

    r33578 r33644  
    4040 * THE SOFTWARE.
    4141 */
     42
     43/** Use VBE bytewise I/O. Only needed for Windows Longhorn/Vista betas and backwards compatibility. */
     44#define VBE_BYTEWISE_IO
     45
     46/** Use VBE new dynamic mode list.
     47 * If this is not defined, no checks are carried out to see if the modes all
     48 * fit into the framebuffer! See the VRAM_SIZE_FIX define. */
     49#define VBE_NEW_DYN_LIST
     50
    4251#ifdef VBOX
    4352/** The default amount of VRAM. */
     
    288297    bool                        Padding1[2];
    289298
    290     uint32_t                    cMonitors;
    291 
    292299#ifdef VBOX_WITH_HGSMI
    293300    R3PTRTYPE(PHGSMIINSTANCE)   pHGSMI;
     
    297304#endif
    298305
     306    uint32_t                    cMonitors;
    299307    /** Current refresh timer interval. */
    300     uint32_t                    Padding2;
    301308    uint32_t                    cMilliesRefreshInterval;
    302309    /** Refresh timer handle - HC. */
  • trunk/src/VBox/Devices/testcase/Makefile.kmk

    r33360 r33644  
    7676  tstDeviceStructSizeRC_DEFS    += VBOX_WITH_HGSMI
    7777 endif
     78 ifdef VBOX_WITH_CRHGSMI
     79  tstDeviceStructSizeRC_DEFS    += VBOX_WITH_CRHGSMI
     80 endif
     81 ifdef VBOX_WITH_VDMA
     82  tstDeviceStructSizeRC_DEFS    += VBOX_WITH_VDMA
     83 endif
     84 ifdef VBOX_WITH_WDDM
     85  tstDeviceStructSizeRC_DEFS    += VBOX_WITH_WDDM
     86 endif
    7887 ifdef VBOX_WITH_VIDEOHWACCEL
    7988  tstDeviceStructSizeRC_DEFS    += VBOX_WITH_VIDEOHWACCEL
     
    115124ifdef VBOX_WITH_HGSMI
    116125 tstDeviceStructSize_DEFS   += VBOX_WITH_HGSMI
     126endif
     127ifdef VBOX_WITH_CRHGSMI
     128 tstDeviceStructSize_DEFS    += VBOX_WITH_CRHGSMI
     129endif
     130ifdef VBOX_WITH_VDMA
     131 tstDeviceStructSize_DEFS    += VBOX_WITH_VDMA
     132endif
     133ifdef VBOX_WITH_WDDM
     134 tstDeviceStructSize_DEFS    += VBOX_WITH_WDDM
    117135endif
    118136ifdef VBOX_WITH_VIDEOHWACCEL
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