/** @file\r
- OVMF ACPI Platform Driver\r
+ bhyve ACPI Platform Driver\r
\r
Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com>\r
Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>\r
+\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
/** @file\r
- Sample ACPI Platform Driver\r
+ bhyve ACPI Platform Driver\r
\r
Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com>\r
Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>\r
#define _ACPI_PLATFORM_H_INCLUDED_\r
\r
#include <PiDxe.h>\r
-\r
#include <Protocol/AcpiTable.h>\r
#include <Protocol/FirmwareVolume2.h>\r
#include <Protocol/PciIo.h>\r
-\r
#include <Library/BaseLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/PcdLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/XenPlatformLib.h>\r
-\r
#include <IndustryStandard/Acpi.h>\r
\r
typedef struct {\r
IN UINTN Count\r
);\r
\r
-#endif\r
-\r
+#endif /* _ACPI_PLATFORM_H_INCLUDED_ */\r
##\r
\r
[Defines]\r
- INF_VERSION = 0x00010005\r
+ INF_VERSION = 1.29\r
BASE_NAME = AcpiPlatform\r
FILE_GUID = D5F92408-BAB5-44CA-8A60-C212F01D7E9D\r
MODULE_TYPE = DXE_DRIVER\r
[Sources]\r
AcpiPlatform.c\r
AcpiPlatform.h\r
+ Bhyve.c\r
EntryPoint.c\r
PciDecoding.c\r
- Bhyve.c\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
UefiCpuPkg/UefiCpuPkg.dec\r
\r
[LibraryClasses]\r
- UefiLib\r
- PcdLib\r
+ BaseLib\r
BaseMemoryLib\r
- DebugLib\r
- UefiBootServicesTableLib\r
- UefiDriverEntryPoint\r
BhyveFwCtlLib\r
- MemoryAllocationLib\r
- BaseLib\r
+ DebugLib\r
DxeServicesTableLib\r
+ MemoryAllocationLib\r
OrderedCollectionLib\r
+ PcdLib\r
+ UefiBootServicesTableLib\r
+ UefiDriverEntryPoint\r
+ UefiLib\r
\r
[Protocols]\r
gEfiAcpiTableProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r
#include "AcpiPlatform.h"\r
\r
#include <Library/BaseMemoryLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
#include <Library/BhyveFwCtlLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
\r
STATIC\r
EFI_STATUS\r
##\r
\r
[Defines]\r
- INF_VERSION = 0x00010005\r
+ INF_VERSION = 1.29\r
BASE_NAME = PlatformAcpiTables\r
FILE_GUID = B4BA6241-936C-4485-A483-9FA832C758CA\r
MODULE_TYPE = USER_DEFINED\r
#\r
\r
[Sources]\r
- Platform.h\r
- Madt.aslc\r
+ Dsdt.asl\r
Facp.aslc\r
Facs.aslc\r
- Dsdt.asl\r
Hpet.aslc\r
- Spcr.aslc\r
+ Madt.aslc\r
Mcfg.aslc\r
+ Platform.h\r
+ Spcr.aslc\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
#define _Platform_h_INCLUDED_\r
\r
#include <IndustryStandard/Acpi.h>\r
-#include <IndustryStandard/SerialPortConsoleRedirectionTable.h>\r
#include <IndustryStandard/MemoryMappedConfigurationSpaceAccessTable.h>\r
+#include <IndustryStandard/SerialPortConsoleRedirectionTable.h>\r
\r
//\r
// ACPI table information used to initialize tables.\r
##\r
\r
[Defines]\r
- INF_VERSION = 0x00010005\r
+ INF_VERSION = 1.29\r
BASE_NAME = EmuGopDxe\r
FILE_GUID = 1b290126-5760-424e-8aa2-3faf4d0d7978\r
MODULE_TYPE = UEFI_DRIVER\r
\r
[Sources]\r
ComponentName.c\r
- GopScreen.c\r
- GopDriver.c\r
Gop.h\r
+ GopDriver.c\r
+ GopScreen.c\r
VbeShim.c\r
\r
-\r
[Packages]\r
MdePkg/MdePkg.dec\r
OvmfPkg/OvmfPkg.dec\r
UefiBootServicesTableLib\r
UefiDriverEntryPoint\r
\r
-\r
[Protocols]\r
gEfiGraphicsOutputProtocolGuid # PROTOCOL BY_START\r
gEfiDevicePathProtocolGuid # PROTOCOL TO_START\r
\r
**/\r
\r
-#ifndef __UGA_H_\r
-#define __UGA_H_\r
+#ifndef _GOP_H_\r
+#define _GOP_H_\r
\r
#include <Uefi.h>\r
#include <Protocol/GraphicsOutput.h>\r
IN EFI_PHYSICAL_ADDRESS FrameBufferBase\r
);\r
\r
-#endif\r
+#endif /* _GOP_H_ */\r
PLATFORM_NAME = Bhyve\r
PLATFORM_GUID = 562b76ee-ceb2-4f4f-adfe-a4c8dc46e4ff\r
PLATFORM_VERSION = 0.1\r
- DSC_SPECIFICATION = 0x00010005\r
+ DSC_SPECIFICATION = 1.30\r
OUTPUT_DIRECTORY = Build/BhyveX64\r
SUPPORTED_ARCHITECTURES = X64\r
BUILD_TARGETS = NOOPT|DEBUG|RELEASE\r
\r
**/\r
\r
-#ifndef __CMOS_H__\r
-#define __CMOS_H__\r
+#ifndef _CMOS_H_\r
+#define _CMOS_H_\r
\r
/**\r
Reads 8-bits of CMOS data.\r
);\r
\r
\r
-#endif\r
+#endif /* _CMOS_H_ */\r
\r
#include "Platform.h"\r
#include <Library/DebugLib.h>\r
#include <Library/HobLib.h>\r
-#include <Library/PeiServicesLib.h>\r
#include <Library/PcdLib.h>\r
+#include <Library/PeiServicesLib.h>\r
\r
\r
/**\r
#include <Library/DebugLib.h>\r
#include <Library/HobLib.h>\r
#include <Library/IoLib.h>\r
+#include <Library/LocalApicLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/PciLib.h>\r
#include <Library/PeimEntryPoint.h>\r
#include <Library/PeiServicesLib.h>\r
#include <Library/ResourcePublicationLib.h>\r
-#include <Library/LocalApicLib.h>\r
#include <Guid/MemoryTypeInformation.h>\r
#include <Ppi/MasterBootMode.h>\r
#include <IndustryStandard/Pci22.h>\r
##\r
\r
[Defines]\r
- INF_VERSION = 0x00010005\r
+ INF_VERSION = 1.29\r
BASE_NAME = PlatformPei\r
FILE_GUID = aa89d903-345b-4ab2-9abf-030b5efb5d50\r
MODULE_TYPE = PEIM\r
DebugLib\r
HobLib\r
IoLib\r
+ LocalApicLib\r
+ MemEncryptSevLib\r
+ MtrrLib\r
PciLib\r
- ResourcePublicationLib\r
+ PeimEntryPoint\r
PeiServicesLib\r
PeiServicesTablePointerLib\r
- PeimEntryPoint\r
- MtrrLib\r
- MemEncryptSevLib\r
PcdLib\r
- LocalApicLib\r
+ ResourcePublicationLib\r
\r
[Pcd]\r
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase\r
#define _SMBIOS_PLATFORM_DXE_H_\r
\r
#include <PiDxe.h>\r
-\r
#include <Protocol/Smbios.h>\r
#include <IndustryStandard/SmBios.h>\r
-#include <Library/DebugLib.h>\r
#include <Library/BaseLib.h>\r
#include <Library/BaseMemoryLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/DebugLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
\r
\r
/**\r
IN SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure\r
);\r
\r
-#endif\r
+#endif /* _SMBIOS_PLATFORM_DXE_H_ */\r
##\r
\r
[Defines]\r
- INF_VERSION = 0x00010005\r
+ INF_VERSION = 1.29\r
BASE_NAME = SmbiosPlatformDxe\r
FILE_GUID = e2d8a63c-c239-484f-bb21-2917843cc382\r
MODULE_TYPE = DXE_DRIVER\r
#\r
\r
[Sources]\r
+ Bhyve.c\r
SmbiosPlatformDxe.h\r
SmbiosPlatformDxe.c\r
- Bhyve.c\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
OvmfPkg/OvmfPkg.dec\r
\r
[LibraryClasses]\r
- UefiBootServicesTableLib\r
- BaseMemoryLib\r
BaseLib\r
- UefiDriverEntryPoint\r
+ BaseMemoryLib\r
DebugLib\r
HobLib\r
MemoryAllocationLib\r
PcdLib\r
+ UefiBootServicesTableLib\r
+ UefiDriverEntryPoint\r
\r
[Pcd]\r
gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated\r