From 2f88bd3a1296c522317f1c21377876de63de5be7 Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Sun, 5 Dec 2021 14:54:05 -0800 Subject: MdePkg: Apply uncrustify changes REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg package Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Signed-off-by: Michael Kubacki Reviewed-by: Liming Gao --- .../IndustryStandard/DmaRemappingReportingTable.h | 100 +++++++++++---------- 1 file changed, 54 insertions(+), 46 deletions(-) (limited to 'MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h') diff --git a/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h b/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h index 48f6959fec..193e4bced5 100644 --- a/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h +++ b/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h @@ -14,6 +14,7 @@ - HPET - High Precision Event Timer - NUMA - Non-uniform Memory Access **/ + #ifndef _DMA_REMAPPING_REPORTING_TABLE_H_ #define _DMA_REMAPPING_REPORTING_TABLE_H_ @@ -24,7 +25,7 @@ /// /// DMA-Remapping Reporting Structure definitions from section 8.1 ///@{ -#define EFI_ACPI_DMAR_REVISION 0x01 +#define EFI_ACPI_DMAR_REVISION 0x01 #define EFI_ACPI_DMAR_FLAGS_INTR_REMAP BIT0 #define EFI_ACPI_DMAR_FLAGS_X2APIC_OPT_OUT BIT1 @@ -34,12 +35,12 @@ /// /// Remapping Structure Types definitions from section 8.2 ///@{ -#define EFI_ACPI_DMAR_TYPE_DRHD 0x00 -#define EFI_ACPI_DMAR_TYPE_RMRR 0x01 -#define EFI_ACPI_DMAR_TYPE_ATSR 0x02 -#define EFI_ACPI_DMAR_TYPE_RHSA 0x03 -#define EFI_ACPI_DMAR_TYPE_ANDD 0x04 -#define EFI_ACPI_DMAR_TYPE_SATC 0x05 +#define EFI_ACPI_DMAR_TYPE_DRHD 0x00 +#define EFI_ACPI_DMAR_TYPE_RMRR 0x01 +#define EFI_ACPI_DMAR_TYPE_ATSR 0x02 +#define EFI_ACPI_DMAR_TYPE_RHSA 0x03 +#define EFI_ACPI_DMAR_TYPE_ANDD 0x04 +#define EFI_ACPI_DMAR_TYPE_SATC 0x05 ///@} /// @@ -60,33 +61,33 @@ /// /// Root Port ATS Capability Reporting Structure definitions from section 8.5 /// -#define EFI_ACPI_DMAR_ATSR_FLAGS_ALL_PORTS BIT0 +#define EFI_ACPI_DMAR_ATSR_FLAGS_ALL_PORTS BIT0 /// /// Definition for DMA Remapping Structure Header /// typedef struct { - UINT16 Type; - UINT16 Length; + UINT16 Type; + UINT16 Length; } EFI_ACPI_DMAR_STRUCTURE_HEADER; /// /// Definition for DMA-Remapping PCI Path /// typedef struct { - UINT8 Device; - UINT8 Function; + UINT8 Device; + UINT8 Function; } EFI_ACPI_DMAR_PCI_PATH; /// /// Device Scope Structure is defined in section 8.3.1 /// typedef struct { - UINT8 Type; - UINT8 Length; - UINT16 Reserved2; - UINT8 EnumerationId; - UINT8 StartBusNumber; + UINT8 Type; + UINT8 Length; + UINT16 Reserved2; + UINT8 EnumerationId; + UINT8 StartBusNumber; } EFI_ACPI_DMAR_DEVICE_SCOPE_STRUCTURE_HEADER; /** @@ -96,7 +97,8 @@ typedef struct { for each PCI segment in the platform. **/ typedef struct { - EFI_ACPI_DMAR_STRUCTURE_HEADER Header; + EFI_ACPI_DMAR_STRUCTURE_HEADER Header; + /** - Bit[0]: INCLUDE_PCI_ALL - If Set, this remapping hardware unit has under its scope all @@ -108,16 +110,16 @@ typedef struct { through the DeviceScope field. - Bits[7:1] Reserved. **/ - UINT8 Flags; - UINT8 Reserved; + UINT8 Flags; + UINT8 Reserved; /// /// The PCI Segment associated with this unit. /// - UINT16 SegmentNumber; + UINT16 SegmentNumber; /// /// Base address of remapping hardware register-set for this unit. /// - UINT64 RegisterBaseAddress; + UINT64 RegisterBaseAddress; } EFI_ACPI_DMAR_DRHD_HEADER; /** @@ -127,24 +129,25 @@ typedef struct { reserved memory region. **/ typedef struct { - EFI_ACPI_DMAR_STRUCTURE_HEADER Header; - UINT8 Reserved[2]; + EFI_ACPI_DMAR_STRUCTURE_HEADER Header; + UINT8 Reserved[2]; /// /// PCI Segment Number associated with devices identified through /// the Device Scope field. /// - UINT16 SegmentNumber; + UINT16 SegmentNumber; /// /// Base address of 4KB-aligned reserved memory region /// - UINT64 ReservedMemoryRegionBaseAddress; + UINT64 ReservedMemoryRegionBaseAddress; + /** Last address of the reserved memory region. Value in this field must be greater than the value in Reserved Memory Region Base Address field. The reserved memory region size (Limit - Base + 1) must be an integer multiple of 4KB. **/ - UINT64 ReservedMemoryRegionLimitAddress; + UINT64 ReservedMemoryRegionLimitAddress; } EFI_ACPI_DMAR_RMRR_HEADER; /** @@ -158,7 +161,8 @@ typedef struct { ATS transactions. **/ typedef struct { - EFI_ACPI_DMAR_STRUCTURE_HEADER Header; + EFI_ACPI_DMAR_STRUCTURE_HEADER Header; + /** - Bit[0]: ALL_PORTS: - If Set, indicates all PCI Express Root Ports in the specified @@ -167,12 +171,12 @@ typedef struct { Root Ports identified through the Device Scope field. - Bits[7:1] Reserved. **/ - UINT8 Flags; - UINT8 Reserved; + UINT8 Flags; + UINT8 Reserved; /// /// The PCI Segment associated with this ATSR structure /// - UINT16 SegmentNumber; + UINT16 SegmentNumber; } EFI_ACPI_DMAR_ATSR_HEADER; /** @@ -183,18 +187,18 @@ typedef struct { reported through DRHD structure. **/ typedef struct { - EFI_ACPI_DMAR_STRUCTURE_HEADER Header; - UINT8 Reserved[4]; + EFI_ACPI_DMAR_STRUCTURE_HEADER Header; + UINT8 Reserved[4]; /// /// Register Base Address of this Remap hardware unit reported in the /// corresponding DRHD structure. /// - UINT64 RegisterBaseAddress; + UINT64 RegisterBaseAddress; /// /// Proximity Domain to which the Remap hardware unit identified by the /// Register Base Address field belongs. /// - UINT32 ProximityDomain; + UINT32 ProximityDomain; } EFI_ACPI_DMAR_RHSA_HEADER; /** @@ -204,8 +208,9 @@ typedef struct { with Device-Scope entries of type ACPI_NAMESPACE_DEVICE. **/ typedef struct { - EFI_ACPI_DMAR_STRUCTURE_HEADER Header; - UINT8 Reserved[3]; + EFI_ACPI_DMAR_STRUCTURE_HEADER Header; + UINT8 Reserved[3]; + /** Each ACPI device enumerated through an ANDD structure must have a unique value for this field. To report an ACPI device with ACPI Device Number @@ -214,7 +219,7 @@ typedef struct { The Start Bus Number and Path fields in the Device-Scope together provides the 16-bit source-id allocated by platform for the ACPI device. **/ - UINT8 AcpiDeviceNumber; + UINT8 AcpiDeviceNumber; } EFI_ACPI_DMAR_ANDD_HEADER; /** @@ -222,7 +227,8 @@ typedef struct { defined in section 8.8. **/ typedef struct { - EFI_ACPI_DMAR_STRUCTURE_HEADER Header; + EFI_ACPI_DMAR_STRUCTURE_HEADER Header; + /** - Bit[0]: ATC_REQUIRED: - If Set, indicates that every SoC integrated device enumerated @@ -233,14 +239,14 @@ typedef struct { performance or functionality). - Bits[7:1] Reserved. **/ - UINT8 Flags; - UINT8 Reserved; + UINT8 Flags; + UINT8 Reserved; /// /// The PCI Segment associated with this SATC structure. All SoC integrated /// devices within a PCI segment with same value for Flags field must be /// enumerated in the same SATC structure. /// - UINT16 SegmentNumber; + UINT16 SegmentNumber; } EFI_ACPI_DMAR_SATC_HEADER; /** @@ -257,7 +263,8 @@ typedef struct { structures of type 1 (RMRR), and so forth. **/ typedef struct { - EFI_ACPI_DESCRIPTION_HEADER Header; + EFI_ACPI_DESCRIPTION_HEADER Header; + /** This field indicates the maximum DMA physical addressability supported by this platform. The system address map reported by the BIOS indicates what @@ -267,7 +274,8 @@ typedef struct { For example, for a platform supporting 40 bits of physical addressability, the value of 100111b is reported in this field. **/ - UINT8 HostAddressWidth; + UINT8 HostAddressWidth; + /** - Bit[0]: INTR_REMAP - If Clear, the platform does not support interrupt remapping. If Set, the platform supports interrupt remapping. @@ -282,8 +290,8 @@ typedef struct { such as on ExitBootServices(). - Bits[7:3] Reserved. **/ - UINT8 Flags; - UINT8 Reserved[10]; + UINT8 Flags; + UINT8 Reserved[10]; } EFI_ACPI_DMAR_HEADER; #pragma pack() -- cgit v1.2.3