Changeset 81872 in vbox
- Timestamp:
- Nov 15, 2019 1:31:39 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r81765 r81872 138 138 * Command Header. 139 139 */ 140 #pragma pack(1)141 140 typedef struct 142 141 { … … 152 151 uint32_t u32Reserved[4]; 153 152 } CmdHdr; 154 #pragma pack()155 153 AssertCompileSize(CmdHdr, 32); 156 154 … … 448 446 449 447 } AHCIPort; 448 AssertCompileSizeAlignment(AHCIPort, 8); 450 449 /** Pointer to the state of an AHCI port. */ 451 450 typedef AHCIPort *PAHCIPort; 452 451 453 AssertCompileSizeAlignment(AHCIPort, 8);454 452 455 453 /** … … 593 591 R3R0PTRTYPE(PSUPDRVSESSION) pSupDrvSession; 594 592 } AHCI; 593 AssertCompileMemberAlignment(AHCI, ahciPort, 8); 595 594 /** Pointer to the state of an AHCI device. */ 596 595 typedef AHCI *PAHCI; 597 596 598 AssertCompileMemberAlignment(AHCI, ahciPort, 8);599 597 600 598 /** … … 629 627 * cbCopy < *pcbSkip or 0 otherwise. 630 628 */ 631 typedef DECLCALLBACK(void) AHCIR3MEMCOPYCALLBACK(PAHCI pThis, RTGCPHYS GCPhys, PRTSGBUF pSgBuf, size_t cbCopy, 632 size_t *pcbSkip); 629 typedef DECLCALLBACK(void) AHCIR3MEMCOPYCALLBACK(PAHCI pThis, RTGCPHYS GCPhys, PRTSGBUF pSgBuf, size_t cbCopy, size_t *pcbSkip); 633 630 /** Pointer to a memory copy buffer callback. */ 634 631 typedef AHCIR3MEMCOPYCALLBACK *PAHCIR3MEMCOPYCALLBACK; … … 835 832 } AHCIPORTOPREG; 836 833 834 835 /********************************************************************************************************************************* 836 * Internal Functions * 837 *********************************************************************************************************************************/ 837 838 #ifndef VBOX_DEVICE_STRUCT_TESTCASE 838 839 RT_C_DECLS_BEGIN … … 847 848 RT_C_DECLS_END 848 849 850 851 /********************************************************************************************************************************* 852 * Defined Constants And Macros * 853 *********************************************************************************************************************************/ 849 854 #define PDMIBASE_2_PAHCIPORT(pInterface) ( (PAHCIPort)((uintptr_t)(pInterface) - RT_UOFFSETOF(AHCIPort, IBase)) ) 850 855 #define PDMIMEDIAPORT_2_PAHCIPORT(pInterface) ( (PAHCIPort)((uintptr_t)(pInterface) - RT_UOFFSETOF(AHCIPort, IPort)) ) … … 885 890 886 891 #endif 892 893 887 894 888 895 /**
Note:
See TracChangeset
for help on using the changeset viewer.