summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Bhyve/AcpiPlatformDxe
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2020-11-29 22:34:12 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-11-30 17:49:39 +0000
commit9fb629edd75e1ae1e7f4e85b0876107a7180899b (patch)
treefd9228653b2c3f287583093908c757a606ee1f1e /OvmfPkg/Bhyve/AcpiPlatformDxe
parent3cdfedc20e45fd6848ee691bcdb301ea7e6f157f (diff)
downloadedk2-9fb629edd75e1ae1e7f4e85b0876107a7180899b.tar.gz
edk2-9fb629edd75e1ae1e7f4e85b0876107a7180899b.tar.bz2
edk2-9fb629edd75e1ae1e7f4e85b0876107a7180899b.zip
OvmfPkg/Bhyve: Fix various style issues
Fix ordering of includes, sources, libraries etc. Remove leading/trailing underscores from include guards. Change INF and DSC version numbers to be decimal. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Message-Id: <20201130053412.2-6-rebecca@bsdio.com> Acked-by: Peter Grehan <grehan@freebsd.org> Acked-by: Laszlo Ersek <lersek@redhat.com> Build-tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/Bhyve/AcpiPlatformDxe')
-rw-r--r--OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c3
-rw-r--r--OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.h10
-rw-r--r--OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatformDxe.inf18
-rw-r--r--OvmfPkg/Bhyve/AcpiPlatformDxe/Bhyve.c2
4 files changed, 15 insertions, 18 deletions
diff --git a/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c b/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c
index 31bbf6c474..d5c78c61d5 100644
--- a/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c
+++ b/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.c
@@ -1,8 +1,9 @@
/** @file
- OVMF ACPI Platform Driver
+ bhyve ACPI Platform Driver
Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com>
Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
+
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
diff --git a/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.h b/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.h
index d30cd11a1d..994ee2c7cd 100644
--- a/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.h
+++ b/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatform.h
@@ -1,5 +1,5 @@
/** @file
- Sample ACPI Platform Driver
+ bhyve ACPI Platform Driver
Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com>
Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
@@ -11,17 +11,14 @@
#define _ACPI_PLATFORM_H_INCLUDED_
#include <PiDxe.h>
-
#include <Protocol/AcpiTable.h>
#include <Protocol/FirmwareVolume2.h>
#include <Protocol/PciIo.h>
-
#include <Library/BaseLib.h>
-#include <Library/UefiBootServicesTableLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
+#include <Library/UefiBootServicesTableLib.h>
#include <Library/XenPlatformLib.h>
-
#include <IndustryStandard/Acpi.h>
typedef struct {
@@ -73,5 +70,4 @@ RestorePciDecoding (
IN UINTN Count
);
-#endif
-
+#endif /* _ACPI_PLATFORM_H_INCLUDED_ */
diff --git a/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatformDxe.inf b/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatformDxe.inf
index eec5a42f41..595fd055f9 100644
--- a/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatformDxe.inf
+++ b/OvmfPkg/Bhyve/AcpiPlatformDxe/AcpiPlatformDxe.inf
@@ -8,7 +8,7 @@
##
[Defines]
- INF_VERSION = 0x00010005
+ INF_VERSION = 1.29
BASE_NAME = AcpiPlatform
FILE_GUID = D5F92408-BAB5-44CA-8A60-C212F01D7E9D
MODULE_TYPE = DXE_DRIVER
@@ -24,9 +24,9 @@
[Sources]
AcpiPlatform.c
AcpiPlatform.h
+ Bhyve.c
EntryPoint.c
PciDecoding.c
- Bhyve.c
[Packages]
MdePkg/MdePkg.dec
@@ -35,17 +35,17 @@
UefiCpuPkg/UefiCpuPkg.dec
[LibraryClasses]
- UefiLib
- PcdLib
+ BaseLib
BaseMemoryLib
- DebugLib
- UefiBootServicesTableLib
- UefiDriverEntryPoint
BhyveFwCtlLib
- MemoryAllocationLib
- BaseLib
+ DebugLib
DxeServicesTableLib
+ MemoryAllocationLib
OrderedCollectionLib
+ PcdLib
+ UefiBootServicesTableLib
+ UefiDriverEntryPoint
+ UefiLib
[Protocols]
gEfiAcpiTableProtocolGuid # PROTOCOL ALWAYS_CONSUMED
diff --git a/OvmfPkg/Bhyve/AcpiPlatformDxe/Bhyve.c b/OvmfPkg/Bhyve/AcpiPlatformDxe/Bhyve.c
index 6d42264b65..01ee894746 100644
--- a/OvmfPkg/Bhyve/AcpiPlatformDxe/Bhyve.c
+++ b/OvmfPkg/Bhyve/AcpiPlatformDxe/Bhyve.c
@@ -9,8 +9,8 @@
#include "AcpiPlatform.h"
#include <Library/BaseMemoryLib.h>
-#include <Library/MemoryAllocationLib.h>
#include <Library/BhyveFwCtlLib.h>
+#include <Library/MemoryAllocationLib.h>
STATIC
EFI_STATUS