VirtualBox

Changeset 81872 in vbox


Ignore:
Timestamp:
Nov 15, 2019 1:31:39 PM (5 years ago)
Author:
vboxsync
Message:

DevAHCI: Dropped unnecessary pragma pack(1). bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r81765 r81872  
    138138 * Command Header.
    139139 */
    140 #pragma pack(1)
    141140typedef struct
    142141{
     
    152151    uint32_t           u32Reserved[4];
    153152} CmdHdr;
    154 #pragma pack()
    155153AssertCompileSize(CmdHdr, 32);
    156154
     
    448446
    449447} AHCIPort;
     448AssertCompileSizeAlignment(AHCIPort, 8);
    450449/** Pointer to the state of an AHCI port. */
    451450typedef AHCIPort *PAHCIPort;
    452451
    453 AssertCompileSizeAlignment(AHCIPort, 8);
    454452
    455453/**
     
    593591    R3R0PTRTYPE(PSUPDRVSESSION)     pSupDrvSession;
    594592} AHCI;
     593AssertCompileMemberAlignment(AHCI, ahciPort, 8);
    595594/** Pointer to the state of an AHCI device. */
    596595typedef AHCI *PAHCI;
    597596
    598 AssertCompileMemberAlignment(AHCI, ahciPort, 8);
    599597
    600598/**
     
    629627 *                   cbCopy < *pcbSkip or 0 otherwise.
    630628 */
    631 typedef DECLCALLBACK(void) AHCIR3MEMCOPYCALLBACK(PAHCI pThis, RTGCPHYS GCPhys, PRTSGBUF pSgBuf, size_t cbCopy,
    632                                                  size_t *pcbSkip);
     629typedef DECLCALLBACK(void) AHCIR3MEMCOPYCALLBACK(PAHCI pThis, RTGCPHYS GCPhys, PRTSGBUF pSgBuf, size_t cbCopy, size_t *pcbSkip);
    633630/** Pointer to a memory copy buffer callback. */
    634631typedef AHCIR3MEMCOPYCALLBACK *PAHCIR3MEMCOPYCALLBACK;
     
    835832} AHCIPORTOPREG;
    836833
     834
     835/*********************************************************************************************************************************
     836*   Internal Functions                                                                                                           *
     837*********************************************************************************************************************************/
    837838#ifndef VBOX_DEVICE_STRUCT_TESTCASE
    838839RT_C_DECLS_BEGIN
     
    847848RT_C_DECLS_END
    848849
     850
     851/*********************************************************************************************************************************
     852*   Defined Constants And Macros                                                                                                 *
     853*********************************************************************************************************************************/
    849854#define PDMIBASE_2_PAHCIPORT(pInterface)         ( (PAHCIPort)((uintptr_t)(pInterface) - RT_UOFFSETOF(AHCIPort, IBase)) )
    850855#define PDMIMEDIAPORT_2_PAHCIPORT(pInterface)    ( (PAHCIPort)((uintptr_t)(pInterface) - RT_UOFFSETOF(AHCIPort, IPort)) )
     
    885890
    886891#endif
     892
     893
    887894
    888895/**
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