data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
source
edk2
/** @file AArch64 implementation of XenHypercall2 Copyright (C) 2014, Linaro Ltd. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Xen/arch-arm/xen.h> .text .global ASM_PFX(XenHypercall2) ASM_PFX(XenHypercall2): mov x16, x0 mov x0, x1 mov x1, x2 hvc #X...
OvmfPkg/Library/XenHypercallLib/AArch64/Hypercall.S
null
null
null
null
null
source
edk2
/** @file * Manage XenBus device path and I/O handles * * Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR> * * SPDX-License-Identifier: BSD-2-Clause-Patent * **/ #include <Library/BaseLib.h> #include <Library/UefiBootServicesTableLib.h> #include <Library/DebugLib.h> #include <Library/UefiLib.h> #include <Li...
OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.c
null
null
null
null
null
source
edk2
/** @file Get information about Xen This library simply allow to find out if OVMF is running under Xen and allow to get more information when it is the case. Copyright (c) 2019, Citrix Systems, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiDxe.h> #include <Library/HobLib.h> #include <...
OvmfPkg/Library/XenPlatformLib/XenPlatformLib.c
null
null
null
null
null
source
edk2
/** @file Implement EFI RealTimeClock runtime services via Xen shared info page Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <PiDxe.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> /** Converts Epoch second...
OvmfPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.c
null
null
null
null
null
source
edk2
/** @file Provides 'initrd' dynamic UEFI shell command to load a Linux initrd via its GUIDed vendor media path Copyright (c) 2020, Arm, Ltd. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/DebugLib.h> #include <Library/DevicePathLib.h> #include <...
OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.c
null
null
null
null
null
source
edk2
/** @file Timer Architectural Protocol as defined in the DXE CIS Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2019, Citrix Systems, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/NestedInterruptTplLib.h> #include "LocalApicTimerDxe.h" // // The ha...
OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.c
null
null
null
null
null
source
edk2
/** @file Private data structures Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2019, Citrix Systems, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <PiDxe.h> #include <Protocol/Cpu.h> #include <Protocol/Timer.h> #include <Register/LocalApic.h>...
OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.h
null
null
null
null
null
source
edk2
# LoongArch QEMU virt platform ## Overview LoongArch QEMU virt is a generic platform that does not require any actual hardware. The minimum required QEMU version is [8.1](https://gitlab.com/qemu-project/qemu/-/tags), the minimum required GCC version is [GCC13](https://gcc.gnu.org/gcc-13/), the minimum required Bi...
OvmfPkg/LoongArchVirt/Readme.md
null
null
null
null
null
source
edk2
/** @file Timer Architectural Protocol as defined in the DXE CIS Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/TimerLib.h> #include <Library/Uefi...
OvmfPkg/LoongArchVirt/Drivers/StableTimerDxe/Timer.c
null
null
null
null
null
source
edk2
/** @file CPU Memory Map Unit Initialization library instance. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/BaseLib.h> #include <Library/CacheMaintenanceLib.h> #include <Library/CpuMmuL...
OvmfPkg/LoongArchVirt/Library/CpuMmuInitLib/CpuMmuInit.c
null
null
null
null
null
source
edk2
/** @file 16550 UART Serial Port library functions Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <Library/BaseLib.h> #include <Library/FdtSerialPortAddressLib.h> #include <Library/IoLib.h> #incl...
OvmfPkg/LoongArchVirt/Library/EarlyFdtSerialPortLib16550/EarlyFdtSerialPortLib16550.c
null
null
null
null
null
source
edk2
/** @file PEI Phase Early Platform Hook Library instance for 16550 Uart. Copyright (c) 2020 - 2023, Arm Ltd. All rights reserved.<BR> Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <L...
OvmfPkg/LoongArchVirt/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.c
null
null
null
null
null
source
edk2
/** @file Platform Hook Library instance for 16550 Uart. Copyright (c) 2020, ARM Ltd. All rights reserved.<BR> Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/PcdLib.h> #inclu...
OvmfPkg/LoongArchVirt/Library/Fdt16550SerialPortHookLib/Fdt16550SerialPortHookLib.c
null
null
null
null
null
source
edk2
/** @file Implement EFI RealTimeClock runtime services via RTC Lib. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #define TOY_WRITE0_REG 0x24 #define TOY_WRITE1_REG 0x28 #define TOY_READ0_REG 0x2c #define...
OvmfPkg/LoongArchVirt/Library/LsRealTimeClockLib/LsRealTimeClock.h
null
null
null
null
null
source
edk2
/** @file Implement EFI RealTimeClock runtime services via RTC Lib. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/DxeServicesTableLib.h> #include <Library/HobLib.h> #include ...
OvmfPkg/LoongArchVirt/Library/LsRealTimeClockLib/LsRealTimeClockLib.c
null
null
null
null
null
source
edk2
/** @file Base ResetSystem library implementation. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/QemuFwCfgLib.h> #include "ResetSyste...
OvmfPkg/LoongArchVirt/Library/ResetSystemAcpiLib/BaseResetSystemAcpiGed.c
null
null
null
null
null
source
edk2
/** @file Dxe ResetSystem library implementation. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <Library/DebugLib.h> #include <Library/DxeServicesTableLib.h> #include <Library/UefiBootServicesTab...
OvmfPkg/LoongArchVirt/Library/ResetSystemAcpiLib/DxeResetSystemAcpiGed.c
null
null
null
null
null
source
edk2
/** @file ResetSystem library implementation. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // CpuDeadLoop() #include <Library/DebugLib.h> #include <Library/IoLib.h> #include <Library/Re...
OvmfPkg/LoongArchVirt/Library/ResetSystemAcpiLib/ResetSystemAcpiGed.c
null
null
null
null
null
source
edk2
/** @file ResetSystem lib head file. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Base.h> typedef struct { UINT64 SleepControlRegAddr; UINT64 SleepStatusRegAddr; UINT64 ResetRegAddr...
OvmfPkg/LoongArchVirt/Library/ResetSystemAcpiLib/ResetSystemAcpiGed.h
null
null
null
null
null
source
edk2
/** @file Build FV related hobs for platform. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/HobLib.h> /** Publish PEI & DXE (Decompressed) Memory based FVs to let PEI an...
OvmfPkg/LoongArchVirt/PlatformPei/Fv.c
null
null
null
null
null
source
edk2
/** @file Memory Detection for Virtual Machines. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ // // The package level header files this module uses // #include <PiPei.h> // // The Library classes this module consumes // ...
OvmfPkg/LoongArchVirt/PlatformPei/MemDetect.c
null
null
null
null
null
source
edk2
/** @file Platform PEI driver Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent @par Glossary: - Mem - Memory **/ // // The package level header files th...
OvmfPkg/LoongArchVirt/PlatformPei/Platform.c
null
null
null
null
null
source
edk2
/** @file Platform PEI module include file. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <IndustryStandard/E820.h> typedef struct { UINT64 BaseAddr; UINT64 Length; UINT32 Type; UIN...
OvmfPkg/LoongArchVirt/PlatformPei/Platform.h
null
null
null
null
null
source
edk2
/** @file Main SEC phase code. Transitions to PEI. Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugAgentLib.h> #incl...
OvmfPkg/LoongArchVirt/Sec/SecMain.c
null
null
null
null
null
source
edk2
#------------------------------------------------------------------------------ # # Start for Loongson LoongArch processor # # Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # # @par Glossary: # - CSR - CPU Status Register # -...
OvmfPkg/LoongArchVirt/Sec/LoongArch64/Start.S
null
null
null
null
null
source
edk2
/** @file This driver produces Extended SCSI Pass Thru Protocol instances for LSI 53C895A SCSI devices. Copyright (C) 2020, SUSE LLC. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/LsiScsi.h> #include <IndustryStandard/Pci.h> #include <Library/BaseLib.h> #include <Library/BaseM...
OvmfPkg/LsiScsiDxe/LsiScsi.c
null
null
null
null
null
source
edk2
/** @file Internal definitions for the LSI 53C895A SCSI driver, which produces Extended SCSI Pass Thru Protocol instances for LSI 53C895A SCSI devices. Copyright (C) 2020, SUSE LLC. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once typedef struct { // // Allocate 32 UINT32 entries for the ...
OvmfPkg/LsiScsiDxe/LsiScsi.h
null
null
null
null
null
source
edk2
/** @file Memory Debug Log PEIM Copyright (C) 2025, Oracle and/or its affiliates. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/HobLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/PeiServicesLib.h> #include ...
OvmfPkg/MemDebugLogPei/MemDebugLog.c
null
null
null
null
null
source
edk2
/** @file This driver produces Extended SCSI Pass Thru Protocol instances for LSI Fusion MPT SCSI devices. Copyright (C) 2020, Oracle and/or its affiliates. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/FusionMptScsi.h> #include <IndustryStandard/Pci.h> #include <Library/BaseL...
OvmfPkg/MptScsiDxe/MptScsi.c
null
null
null
null
null
source
edk2
/** @file This driver implements EFI_PCI_HOT_PLUG_INIT_PROTOCOL, providing the PCI bus driver with resource padding information, for PCIe hotplug purposes. Copyright (C) 2016, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Acpi10.h> #include <IndustryStandard/Q35Mch...
OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.c
null
null
null
null
null
source
edk2
# OvmfPkg - Platform CI This ReadMe.md describes the Azure DevOps based Platform CI for OvmfPkg and how to use the same Pytools based build infrastructure locally. ## Supported Configuration Details This solution for building and running OvmfPkg has only been validated with Windows 10 with VS2022 and Ubuntu 18.04 wi...
OvmfPkg/PlatformCI/ReadMe.md
null
null
null
null
null
source
edk2
/** @file This driver effectuates OVMF's platform configuration settings and exposes them via HII. Copyright (C) 2014, Red Hat, Inc. Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/BaseMem...
OvmfPkg/PlatformDxe/Platform.c
null
null
null
null
null
source
edk2
/** @file This driver effectuates OVMF's platform configuration settings and exposes them via HII. Copyright (C) 2014, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once // // Macro and type definitions that connect the form with the HII driver code. // #define FORMSTATEID_MAIN_FORM...
OvmfPkg/PlatformDxe/Platform.h
null
null
null
null
null
source
edk2
/** @file Utility functions for serializing (persistently storing) and deserializing OVMF's platform configuration. Copyright (C) 2014, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/MemoryAllocationLib.h> #i...
OvmfPkg/PlatformDxe/PlatformConfig.c
null
null
null
null
null
source
edk2
/** @file Utility functions for serializing (persistently storing) and deserializing OVMF's platform configuration. Copyright (C) 2014, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Base.h> // // This structure participates in driver configuration. It does not // (...
OvmfPkg/PlatformDxe/PlatformConfig.h
null
null
null
null
null
source
edk2
/** @file Decide whether the firmware should expose an ACPI- and/or a Device Tree-based hardware description to the operating system. Copyright (c) 2017, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Guid/PlatformHasAcpi.h> #include <Guid/PlatformHasDeviceTree.h> #include <Library/...
OvmfPkg/PlatformHasAcpiDtDxe/PlatformHasAcpiDtDxe.c
null
null
null
null
null
source
edk2
/**@file Initialize Secure Encrypted Virtualization (SEV) support Copyright (c) 2017 - 2024, Advanced Micro Devices. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ // // The package level header files this module uses // #include <Guid/GhcbApicIds.h> #include <IndustryStandard/Q35Mch...
OvmfPkg/PlatformPei/AmdSev.c
null
null
null
null
null
source
edk2
/**@file Install a callback when necessary for setting the Feature Control MSR on all processors. Copyright (C) 2016, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/HobLib.h> #include <Library/PeiServicesLib.h> #include <Library/QemuFwCfgLib.h> ...
OvmfPkg/PlatformPei/FeatureControl.c
null
null
null
null
null
source
edk2
/** @file Build FV related hobs for platform. Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "PiPei.h" #include "Platform.h" #include <Library/DebugLib.h> #include <Library/HobLib.h> #include <Library/PeiServicesLib.h> #include <...
OvmfPkg/PlatformPei/Fv.c
null
null
null
null
null
source
edk2
/** @file Initialize Intel TDX support. Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/HobLib.h> #include <Library/BaseMemoryLib.h> #include <Librar...
OvmfPkg/PlatformPei/IntelTdx.c
null
null
null
null
null
source
edk2
/**@file Memory Detection for Virtual Machines. Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent Module Name: MemDetect.c **/ // // The package level header files this module uses // #include <IndustryStandard/E820.h> #include <IndustryStan...
OvmfPkg/PlatformPei/MemDetect.c
null
null
null
null
null
source
edk2
/** @file Produce the memory type information HOB. Copyright (C) 2017-2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Guid/MemoryTypeInformation.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/HobLib.h> #include <Library/PcdLib.h> #include <Library...
OvmfPkg/PlatformPei/MemTypeInfo.c
null
null
null
null
null
source
edk2
/**@file Platform PEI driver Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR> Copyright (c) 2011, Andrei Warkentin <andreiw@motorola.com> SPDX-License-Identifier: BSD-2-Clause-Patent **/ // // The package level header files this module uses // #include <PiPei.h> // // The Library clas...
OvmfPkg/PlatformPei/Platform.c
null
null
null
null
null
source
edk2
/** @file Platform PEI module include file. Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <IndustryStandard/E820.h> #include <Library/PlatformInitLib.h> #include <IndustryStandard/IntelTdx.h> VOID AddressWidthInit...
OvmfPkg/PlatformPei/Platform.h
null
null
null
null
null
source
edk2
/**@file PlatformId Event HOB creation Copyright (c) 2024, Google LLC. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <Guid/TcgEventHob.h> #include <IndustryStandard/UefiTcgPlatform.h> #include <Library/BaseMemoryLib.h> #include <Library/BaseLib.h> #includ...
OvmfPkg/PlatformPei/PlatformId.c
null
null
null
null
null
source
edk2
/** @file PlatformId internal header for PlatformPei Copyright (c) 2024, Google LLC. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once /** * Reads opt/org.tianocode/sp800155evt/%d from 0 to the first positive integer * where the file does not exist and registers each fi...
OvmfPkg/PlatformPei/PlatformId.h
null
null
null
null
null
source
edk2
/**@file Install a callback to do smm relocation. Copyright (c) 2024, Intel Corporation. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/PeiServicesLib.h> #include <Library/SmmRelocationLib.h> #include <Ppi/MpServices2.h> #include "Platform....
OvmfPkg/PlatformPei/SmmRelocation.c
null
null
null
null
null
source
edk2
/** @file This driver produces Extended SCSI Pass Thru Protocol instances for pvscsi devices. Copyright (C) 2020, Oracle and/or its affiliates. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Pci.h> #include <IndustryStandard/PvScsi.h> #include <Library/BaseLib.h> #include <Libr...
OvmfPkg/PvScsiDxe/PvScsi.c
null
null
null
null
null
source
edk2
/** @file Internal definitions for the PVSCSI driver, which produces Extended SCSI Pass Thru Protocol instances for pvscsi devices. Copyright (C) 2020, Oracle and/or its affiliates. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Library/DebugLib.h> #include <Protocol/ScsiPassThruE...
OvmfPkg/PvScsiDxe/PvScsi.h
null
null
null
null
null
source
edk2
/**@file Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent Module Name: FvbInfo.c Abstract: Defines data structure that is the volume header found.These data is intent to decouple FVB driver with FV header. **/ // // The package leve...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbInfo.c
null
null
null
null
null
source
edk2
/**@file Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent Module Name: FWBlockService.c Abstract: Revision History **/ // // The protocols, PPI and GUID definitions for this module // #include <Protocol/DevicePath.h> #include <Prot...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c
null
null
null
null
null
source
edk2
/**@file Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent Module Name: FwBlockService.h Abstract: Firmware volume block driver for Intel Firmware Hub (FWH) device **/ #pragma once typedef struct { UINTN FvBase...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.h
null
null
null
null
null
source
edk2
/**@file Functions related to the Firmware Volume Block service whose implementation is specific to the runtime DXE driver build. Copyright (C) 2015, Red Hat, Inc. Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Guid/EventGro...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceDxe.c
null
null
null
null
null
source
edk2
/**@file Functions related to the Firmware Volume Block service whose implementation is specific to the SMM driver build. Copyright (C) 2015, Red Hat, Inc. Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceSmm.c
null
null
null
null
null
source
edk2
/**@file Functions related to the Firmware Volume Block service whose implementation is specific to the SMM driver build. Copyright (C) 2015, Red Hat, Inc. Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceStandaloneMm.c
null
null
null
null
null
source
edk2
/** @file OVMF support for QEMU system firmware flash device Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/MemEncryptSevLib.h> #include <Library/PcdLib.h...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c
null
null
null
null
null
source
edk2
/** @file OVMF support for QEMU system firmware flash device Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Protocol/FirmwareVolumeBlock.h> extern UINT8 *mFlashBase; /** Read from QEMU Flash @param[in] Lba...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.h
null
null
null
null
null
source
edk2
/** @file OVMF support for QEMU system firmware flash device: functions specific to the runtime DXE driver build. Copyright (C) 2015, Red Hat, Inc. Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/UefiRuntimeLib.h> #i...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlashDxe.c
null
null
null
null
null
source
edk2
/** @file Define the module hooks used while probing the QEMU flash device. Copyright (C) 2018, Advanced Micro Devices. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/PcdLib.h> #include <Library/MemEncryp...
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlashSmm.c
null
null
null
null
null
source
edk2
/** @file DXE driver to expose the 'kernel', 'initrd' and 'cmdline' blobs provided by QEMU as files in an abstract file system Copyright (C) 2014-2016, Red Hat, Inc. Copyright (C) 2020, Arm, Limited. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiDxe.h> #include <Guid/FileInfo.h> #include <G...
OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c
null
null
null
null
null
source
edk2
/** @file This driver is a implementation of the Graphics Output Protocol for the QEMU ramfb device. Copyright (c) 2018, Red Hat Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Protocol/GraphicsOutput.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/Debug...
OvmfPkg/QemuRamfbDxe/QemuRamfb.c
null
null
null
null
null
source
edk2
/** @file Component name for the QEMU video controller. Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "Qemu.h" // // EFI Component Name Protocol // GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gQemuVideoComponent...
OvmfPkg/QemuVideoDxe/ComponentName.c
null
null
null
null
null
source
edk2
/** @file This driver is a sample implementation of the Graphics Output Protocol for the QEMU (Cirrus Logic 5446) video controller. Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "Qemu.h" #include <IndustryStandard/Acpi.h> EF...
OvmfPkg/QemuVideoDxe/Driver.c
null
null
null
null
null
source
edk2
/** @file Graphics Output Protocol functions for the QEMU video controller. Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "Qemu.h" #include <Library/DxeServicesTableLib.h> STATIC VOID QemuVideoCompleteModeInfo ( IN QEMU_VI...
OvmfPkg/QemuVideoDxe/Gop.c
null
null
null
null
null
source
edk2
/** @file Graphics Output Protocol functions for the QEMU video controller. Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "Qemu.h" /// /// Generic Attribute Controller Register Settings /// UINT8 AttributeController[21] = { ...
OvmfPkg/QemuVideoDxe/Initialize.c
null
null
null
null
null
source
edk2
/** @file QEMU Video Controller Driver Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ // // QEMU Video Controller Driver // #ifndef _QEMU_H_ #define _QEMU_H_ #include <PiDxe.h> #include <Protocol/GraphicsOutput.h> #include <Protocol/Pci...
OvmfPkg/QemuVideoDxe/Qemu.h
null
null
null
null
null
source
edk2
;------------------------------------------------------------------------------ ; @file ; Main routine of the pre-SEC code up through the jump into SEC ; ; Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;-------------------------------------------...
OvmfPkg/ResetVector/Main.asm
null
null
null
null
null
source
edk2
;------------------------------------------------------------------------------ ; @file ; qemu debug console support macros (based on serial port macros) ; ; Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> ; Copyright (c) 2024, Red Hat, Inc.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;-...
OvmfPkg/ResetVector/QemuDebugCon.asm
null
null
null
null
null
source
edk2
;------------------------------------------------------------------------------ ; @file ; First code executed by processor after resetting. ; Derived from UefiCpuPkg/ResetVector/Vtf0/Ia16/ResetVectorVtf0.asm ; ; Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clau...
OvmfPkg/ResetVector/Ia16/ResetVectorVtf0.asm
null
null
null
null
null
source
edk2
;------------------------------------------------------------------------------ ; @file ; Provide the functions to check whether SEV and SEV-ES is enabled. ; ; Copyright (c) 2017 - 2021, Advanced Micro Devices, Inc. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;-----------------------------...
OvmfPkg/ResetVector/Ia32/AmdSev.asm
null
null
null
null
null
source
edk2
;------------------------------------------------------------------------------ ; @file ; Transition from 32 bit flat protected mode into 64 bit flat protected mode ; ; Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> ; Copyright (c) 2020, Advanced Micro Devices, Inc. All rights reserved.<BR> ; SP...
OvmfPkg/ResetVector/Ia32/Flat32ToFlat64.asm
null
null
null
null
null
source
edk2
;------------------------------------------------------------------------------ ; @file ; Intel TDX routines ; ; Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------------------------------------ %define VM_...
OvmfPkg/ResetVector/Ia32/IntelTdx.asm
null
null
null
null
null
source
edk2
;------------------------------------------------------------------------------ ; @file ; Sets the CR3 register for 64-bit paging ; ; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR> ; Copyright (c) 2017 - 2020, Advanced Micro Devices, Inc. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2...
OvmfPkg/ResetVector/Ia32/PageTables64.asm
null
null
null
null
null
source
edk2
;----------------------------------------------------------------------------- ; @file ; OVMF metadata for IGVM parameters ; ; Copyright (c) 2021 - 2024, AMD Inc. All rights reserved.<BR> ; ; SPDX-License-Identifier: BSD-2-Clause-Patent ;----------------------------------------------------------------------------- BIT...
OvmfPkg/ResetVector/X64/IgvmMetadata.asm
null
null
null
null
null
source
edk2
;------------------------------------------------------------------------------ ; @file ; Tdx Virtual Firmware metadata ; ; When host VMM creates a new guest TD, some initial set of TD-private pages ; are added using the TDH.MEM.PAGE.ADD function. These pages typically contain ; Virtual BIOS code and data along with so...
OvmfPkg/ResetVector/X64/IntelTdxMetadata.asm
null
null
null
null
null
source
edk2
;----------------------------------------------------------------------------- ; @file ; OVMF metadata for the AMD SEV confidential computing guests ; ; Copyright (c) 2021 - 2024, AMD Inc. All rights reserved.<BR> ; ; SPDX-License-Identifier: BSD-2-Clause-Patent ;--------------------------------------------------------...
OvmfPkg/ResetVector/X64/OvmfSevMetadata.asm
null
null
null
null
null
source
edk2
# Support for RISC-V QEMU virt platform ## Overview RISC-V QEMU 'virt' is a generic platform which does not correspond to any real hardware. EDK2 for RISC-V virt platform is a payload (S-mode) for the previous stage M-mode firmware like OpenSBI. It follows PEI less design. The minimum QEMU version required is **[8.1...
OvmfPkg/RiscVVirt/README.md
null
null
null
null
null
source
edk2
/** @file Provides platform policy services used during a capsule update. Copyright (c) 2016, Microsoft Corporation. All rights reserved.<BR> Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2...
OvmfPkg/RiscVVirt/Feature/Capsule/Library/CapsuleUpdatePolicyLib/CapsuleUpdatePolicyLib.c
null
null
null
null
null
source
edk2
/** @file Provides firmware device specific services to support updates of a firmware image stored in a firmware device. Copyright (c) Microsoft Corporation.<BR> Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR> Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> S...
OvmfPkg/RiscVVirt/Feature/Capsule/Library/FmpDeviceLib/FmpDeviceLib.c
null
null
null
null
null
source
edk2
/** @file Platform Flash Access library. Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiDxe.h> #include <Library/BaseLib.h> #include <Library/BaseMemor...
OvmfPkg/RiscVVirt/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.c
null
null
null
null
null
source
edk2
/** @file Platform flash device access library. Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Protocol/FirmwareManagement.h> typedef enum { FlashAddressTypeRelativeAddress, FlashAddressTypeAbsoluteAddress, } ...
OvmfPkg/RiscVVirt/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.h
null
null
null
null
null
source
edk2
/** @file This driver init default Secure Boot variables Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> (C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR> Copyright (c) 2021, ARM Ltd. All rights reserved.<BR> Copyright (c) 2021, Semihalf All rights reserved.<BR> Copyri...
OvmfPkg/RiscVVirt/Feature/SecureBoot/SecureBootDefaultKeysInit/SecureBootDefaultKeysInit.c
null
null
null
null
null
source
edk2
/** @file Implementation for PlatformBootManagerLib library class interfaces. Copyright (C) 2015-2016, Red Hat, Inc. Copyright (c) 2014, ARM Ltd. All rights reserved.<BR> Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Indus...
OvmfPkg/RiscVVirt/Library/PlatformBootManagerLib/PlatformBm.c
null
null
null
null
null
source
edk2
/** @file Try to load an EFI-stubbed RISC-V Linux kernel from QEMU's fw_cfg. This implementation differs from OvmfPkg/Library/LoadLinuxLib. An EFI stub in the subject kernel is a hard requirement here. Copyright (C) 2014-2016, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Librar...
OvmfPkg/RiscVVirt/Library/PlatformBootManagerLib/QemuKernel.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "PlatformSecLib.h" /** Perform CPU initialization. @param FdtPointer The pointer to the device tree. @return EFI_SUCCESS The platform initialized successf...
OvmfPkg/RiscVVirt/Library/PlatformSecLib/Cpu.c
null
null
null
null
null
source
edk2
/** @file Memory Detection for RiscVVirt Machines. Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR> Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: B...
OvmfPkg/RiscVVirt/Library/PlatformSecLib/Memory.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR> Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "PlatformSecLib.h" /** Build memory map I/O range resource HOB using the base ...
OvmfPkg/RiscVVirt/Library/PlatformSecLib/Platform.c
null
null
null
null
null
source
edk2
/** @file An instance of Platform Sec Lib. Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "PlatformSecLib.h" typedef struct { EFI_HOB_GUID_TYPE HobGuid...
OvmfPkg/RiscVVirt/Library/PlatformSecLib/PlatformSecLib.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <PiPei.h> #include <Ppi/SecHobData.h> #include <Ppi/SecPlatformInformation.h> #include <Guid/FdtHob.h> #include <Guid/MemoryTypeInformation.h> #include <Guid/Risc...
OvmfPkg/RiscVVirt/Library/PlatformSecLib/PlatformSecLib.h
null
null
null
null
null
source
edk2
/* Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent */ #include "PlatformSecLib.h" ASM_FUNC (_ModuleEntryPoint) /* Prevent stack unwinding from going further */ li s0, 0 /* Use Temp memory as the stack for calling to C code */ li a2, Fi...
OvmfPkg/RiscVVirt/Library/PlatformSecLib/SecEntry.S
null
null
null
null
null
source
edk2
/** @file * * Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> * SPDX-License-Identifier: BSD-2-Clause-Patent * **/ #include <PiPei.h> #include <Library/PrePiHobListPointerLib.h> #include <Library/DebugLib.h> #include <Library/HobLib.h> /** Returns the pointer to the HOB list. This function retu...
OvmfPkg/RiscVVirt/Library/PrePiHobListPointerLib/PrePiHobListPointer.c
null
null
null
null
null
source
edk2
/** @file Reset System Library functions for RISC-V Copyright (c) 2021, Hewlett Packard Development LP. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/ResetSystemLib.h> #include <Library/BaseRiscVSbiLib.h> /** This function causes a ...
OvmfPkg/RiscVVirt/Library/ResetSystemLib/ResetSystemLib.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2014-2018, Linaro Ltd. All rights reserved.<BR> Copyright (c) 2023, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/UefiBootServicesTableLib.h> #include <Libr...
OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlashDeviceTreeLib.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2019, Linaro Ltd. All rights reserved SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <PiDxe.h> #include <Library/VirtNorFlashPlatformLib.h> #define QEMU_NOR_BLOCK_SIZE SIZE_256KB EFI_STATUS VirtNorFlashPlatformInitialization ( VOID ) { return EFI_SUCC...
OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlashStaticLib.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2011-2014, ARM Limited. All rights reserved.<BR> Copyright (c) 2014-2020, Linaro Limited. All rights reserved.<BR> Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> // // The protocols, PPI and...
OvmfPkg/RiscVVirt/PlatformPei/PlatformPeim.c
null
null
null
null
null
source
edk2
/** @file File defines the Sec routines for the AMD SEV Copyright (c) 2021, Advanced Micro Devices, Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/CpuLib.h> #include <Library/CpuPageTableLib.h> #include <Library/DebugLib.h> #includ...
OvmfPkg/Sec/AmdSev.c
null
null
null
null
null
source
edk2
/** @file File defines the Sec routines for the AMD SEV Copyright (c) 2021, Advanced Micro Devices, Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once /** Handle an SEV-ES/GHCB protocol check failure. Notify the hypervisor using the VMGEXIT instruction that the S...
OvmfPkg/Sec/AmdSev.h
null
null
null
null
null
source
edk2
/** @file Main SEC phase code. Transitions to PEI. Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR> (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> Copyright (c) 2020, Advanced Micro Devices, Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent ...
OvmfPkg/Sec/SecMain.c
null
null
null
null
null
source
edk2
/** @file UEFI Component Name(2) protocol implementation for SioBusDxe driver. Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "SioBusDxe.h" // // Driver name table // GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mSioBusDriv...
OvmfPkg/SioBusDxe/ComponentName.c
null
null
null
null
null
source
edk2
/** @file The SioBusDxe driver is used to create child devices on the ISA bus and installs the Super I/O protocols on them. Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "SioBusDxe.h" // // SioBus Driver Binding Protocol // EFI_DRI...
OvmfPkg/SioBusDxe/SioBusDxe.c
null
null
null
null
null