OvmfPkg/AcpiPlatformDxe: sort #includes and [LibraryClasses]

Place all public #includes first, all module-private #includes second.
Separate them with a single empty line. Keep each section sorted in
itself.

Sort all sections in both INF files.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2122
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20210526201446.12554-8-lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
Laszlo Ersek 2021-05-26 22:14:10 +02:00 committed by mergify[bot]
parent 2a85d9b07e
commit 180f1908b3
7 changed files with 33 additions and 33 deletions

View File

@ -9,20 +9,17 @@
#ifndef ACPI_PLATFORM_H_ #ifndef ACPI_PLATFORM_H_
#define ACPI_PLATFORM_H_ #define ACPI_PLATFORM_H_
#include <IndustryStandard/Acpi.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/XenPlatformLib.h>
#include <PiDxe.h> #include <PiDxe.h>
#include <Protocol/AcpiTable.h> #include <Protocol/AcpiTable.h>
#include <Protocol/FirmwareVolume2.h> #include <Protocol/FirmwareVolume2.h>
#include <Protocol/PciIo.h> #include <Protocol/PciIo.h>
#include <Library/BaseLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
#include <Library/XenPlatformLib.h>
#include <IndustryStandard/Acpi.h>
typedef struct { typedef struct {
EFI_PCI_IO_PROTOCOL *PciIo; EFI_PCI_IO_PROTOCOL *PciIo;
UINT64 PciAttributes; UINT64 PciAttributes;

View File

@ -32,24 +32,24 @@
Xen.c Xen.c
[Packages] [Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec MdeModulePkg/MdeModulePkg.dec
MdePkg/MdePkg.dec
OvmfPkg/OvmfPkg.dec OvmfPkg/OvmfPkg.dec
UefiCpuPkg/UefiCpuPkg.dec UefiCpuPkg/UefiCpuPkg.dec
[LibraryClasses] [LibraryClasses]
UefiLib BaseLib
PcdLib
BaseMemoryLib BaseMemoryLib
DebugLib DebugLib
UefiBootServicesTableLib DxeServicesTableLib
UefiDriverEntryPoint MemoryAllocationLib
OrderedCollectionLib
PcdLib
QemuFwCfgLib QemuFwCfgLib
QemuFwCfgS3Lib QemuFwCfgS3Lib
MemoryAllocationLib UefiBootServicesTableLib
BaseLib UefiDriverEntryPoint
DxeServicesTableLib UefiLib
OrderedCollectionLib
XenPlatformLib XenPlatformLib
[Protocols] [Protocols]

View File

@ -8,6 +8,7 @@
**/ **/
#include <Guid/RootBridgesConnectedEventGroup.h> #include <Guid/RootBridgesConnectedEventGroup.h>
#include "AcpiPlatform.h" #include "AcpiPlatform.h"
STATIC STATIC

View File

@ -9,14 +9,15 @@
**/ **/
#include "AcpiPlatform.h"
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/QemuFwCfgLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/PcdLib.h>
#include <Library/OrderedCollectionLib.h>
#include <IndustryStandard/Acpi.h> #include <IndustryStandard/Acpi.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OrderedCollectionLib.h>
#include <Library/PcdLib.h>
#include <Library/QemuFwCfgLib.h>
#include "AcpiPlatform.h"
BOOLEAN BOOLEAN
QemuDetected ( QemuDetected (

View File

@ -8,17 +8,17 @@
**/ **/
#include "AcpiPlatform.h" #include <IndustryStandard/Acpi.h>
#include "QemuLoader.h"
#include <Library/BaseMemoryLib.h> #include <Library/BaseMemoryLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Library/OrderedCollectionLib.h>
#include <Library/PcdLib.h>
#include <Library/QemuFwCfgLib.h> #include <Library/QemuFwCfgLib.h>
#include <Library/QemuFwCfgS3Lib.h> #include <Library/QemuFwCfgS3Lib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/PcdLib.h>
#include <Library/OrderedCollectionLib.h>
#include <IndustryStandard/Acpi.h>
#include "AcpiPlatform.h"
#include "QemuLoader.h"
// //
// The user structure for the ordered collection that will track the fw_cfg // The user structure for the ordered collection that will track the fw_cfg

View File

@ -30,8 +30,8 @@
QemuLoader.h QemuLoader.h
[Packages] [Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec MdeModulePkg/MdeModulePkg.dec
MdePkg/MdePkg.dec
OvmfPkg/OvmfPkg.dec OvmfPkg/OvmfPkg.dec
[LibraryClasses] [LibraryClasses]

View File

@ -8,9 +8,10 @@
**/ **/
#include "AcpiPlatform.h"
#include <Library/BaseLib.h> #include <Library/BaseLib.h>
#include "AcpiPlatform.h"
#define XEN_ACPI_PHYSICAL_ADDRESS 0x000EA020 #define XEN_ACPI_PHYSICAL_ADDRESS 0x000EA020
#define XEN_BIOS_PHYSICAL_END 0x000FFFFF #define XEN_BIOS_PHYSICAL_END 0x000FFFFF