VirtualBox

Changeset 477 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 31, 2007 10:24:34 PM (18 years ago)
Author:
vboxsync
Message:

64-bit alignment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdm.h

    r332 r477  
    19541954    /** Just a magic for sanity checking. */
    19551955    uint32_t    u32Magic;
     1956    uint32_t    u32Alignment;           /**< structure size alignment. */
    19561957    /** The actual LED status.
    19571958     * Only the device is allowed to change this. */
     
    42694270    /** Structure version number. PDM_RTCREG_VERSION defines the current version. */
    42704271    uint32_t            u32Version;
     4272    uint32_t            u32Alignment;   /**< structure size alignment. */
    42714273
    42724274    /**
     
    53735375    /** Structure version. PDM_DEVINS_VERSION defines the current version. */
    53745376    uint32_t                    u32Version;
     5377    /** Device instance number. */
     5378    RTUINT                      iInstance;
     5379    /** The base interface of the device.
     5380     * The device constructor initializes this if it has any
     5381     * device level interfaces to export. To obtain this interface
     5382     * call PDMR3QueryDevice(). */
     5383    PDMIBASE                    IBase;
    53755384
    53765385    /** Internal data. */
     
    53855394    /** Pointer the HC PDM Device API. */
    53865395    HCPTRTYPE(PCPDMDEVHLP)      pDevHlp;
    5387     /** Pointer the GC PDM Device API. */
    5388     GCPTRTYPE(PCPDMDEVHLPGC)    pDevHlpGC;
    53895396    /** Pointer the R0 PDM Device API. */
    5390     HCPTRTYPE(PCPDMDEVHLPR0)    pDevHlpR0;
     5397    R0PTRTYPE(PCPDMDEVHLPR0)    pDevHlpR0;
    53915398    /** Pointer to device registration structure.  */
    53925399    HCPTRTYPE(PCPDMDEVREG)      pDevReg;
    53935400    /** Configuration handle. */
    53945401    HCPTRTYPE(PCFGMNODE)        pCfgHandle;
    5395     /** Device instance number. */
    5396     RTUINT                      iInstance;
    53975402    /** Pointer to device instance data. */
    53985403    HCPTRTYPE(void *)           pvInstanceDataHC;
     5404    /** Pointer the GC PDM Device API. */
     5405    GCPTRTYPE(PCPDMDEVHLPGC)    pDevHlpGC;
    53995406    /** Pointer to device instance data. */
    54005407    GCPTRTYPE(void *)           pvInstanceDataGC;
    5401     /** The base interface of the device.
    5402      * The device constructor initializes this if it has any
    5403      * device level interfaces to export. To obtain this interface
    5404      * call PDMR3QueryDevice(). */
    5405     PDMIBASE                    IBase;
    54065408#if HC_ARCH_BITS == 32
    54075409    /* padding to make achInstanceData aligned at 16 byte boundrary. */
    54085410    uint32_t                    au32Padding[HC_ARCH_BITS == 32 ? 2 : 0];
    5409 #endif 
     5411#endif
    54105412    /** Device instance data. The size of this area is defined
    54115413     * in the PDMDEVREG::cbInstanceData field. */
    5412     char                        achInstanceData[4];
     5414    char                        achInstanceData[8];
    54135415} PDMDEVINS;
    54145416
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