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 Save Non-Volatile Variables to a file system. Copyright (c) 2009, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "NvVarsFileLib.h" #include <Library/DebugLib.h> #include <Library/NvVarsFileLib.h> EFI_HANDLE mNvVarsFileLibFsHandle = NULL; /** ...
OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.c
null
null
null
null
null
source
edk2
/** @file Save Non-Volatile Variables to a file system. Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Uefi.h> #include <Guid/FileInfo.h> #include <Protocol/SimpleFileSystem.h> #include <Library/BaseLib.h> #incl...
OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.h
null
null
null
null
null
source
edk2
/** @file OVMF's instance of the PCI Host Bridge Library. Copyright (C) 2016, Red Hat, Inc. Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Pci.h> // PCI_MAX_BUS #include <IndustryStandard/Q35MchIc...
OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
null
null
null
null
null
source
edk2
/** @file OVMF's instance of the PCI Host Bridge Library, for Bhyve and Xen guests; internal declarations. Copyright (C) 2021, Red Hat, Inc. Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ PCI_ROOT_BRIDGE * ScanForRootBridges ( UINTN *Num...
OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridge.h
null
null
null
null
null
source
edk2
/** @file OVMF's instance of the PCI Host Bridge Library, for Bhyve and Xen guests. Copyright (C) 2016-2021, Red Hat, Inc. Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/PciHostBridgeLib.h> // PCI_ROOT_BRIDGE ...
OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLib.c
null
null
null
null
null
source
edk2
/** @file Scan the entire PCI bus for root bridges to support OVMF on Bhyve and Xen. Copyright (C) 2021, Red Hat, Inc. Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Pci.h> // EFI_PCI_COMMAND_IO_SPACE #in...
OvmfPkg/Library/PciHostBridgeLibScan/ScanForRootBridges.c
null
null
null
null
null
source
edk2
/** @file Provide common utility functions to PciHostBridgeLib instances in ArmVirtPkg and OvmfPkg. Copyright (C) 2016, Red Hat, Inc. Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> Copyright (c) 2020, Huawei Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Paten...
OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.c
null
null
null
null
null
source
edk2
/** @file Responsibility of this file is to load the DXE Core from a Firmware Volume. Copyright (c) 2016 HP Development Company, L.P. Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "PeilessStartupInternal.h" #include <Library/DebugLi...
OvmfPkg/Library/PeilessStartupLib/DxeLoad.c
null
null
null
null
null
source
edk2
/** @file Main SEC phase code. Handles initial TDX Hob List Processing Copyright (c) 2008, Intel Corporation. All rights reserved.<BR> (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/BaseLib.h> #include <L...
OvmfPkg/Library/PeilessStartupLib/Hob.c
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 <Base.h> #include <Library/QemuFwCfgLib.h> #include <Library/HobLib.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/MemoryAl...
OvmfPkg/Library/PeilessStartupLib/PeilessStartup.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <PiPei.h> #include <Library/BaseLib.h> #include <Uefi/UefiSpec.h> #include <Uefi/UefiBaseType.h> #include <IndustryStandard/IntelTdx.h> EFI_STATUS EFIAPI DxeLoadCore...
OvmfPkg/Library/PeilessStartupLib/PeilessStartupInternal.h
null
null
null
null
null
source
edk2
/** @file x64 Long Mode Virtual Memory Management Definitions References: 1) IA-32 Intel(R) Architecture Software Developer's Manual Volume 1:Basic Architecture, Intel 2) IA-32 Intel(R) Architecture Software Developer's Manual Volume 2:Instruction Set Reference, Intel 3) IA-32 Intel(R) Architecture Sof...
OvmfPkg/Library/PeilessStartupLib/X64/PageTables.h
null
null
null
null
null
source
edk2
/** @file x64-specifc functionality for Page Table Setup. Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi/UefiBaseType.h> #include <Uefi/UefiSpec.h> #include <Pi/PiBootMode.h> #include <Pi/PiHob.h> #include <Library/DebugLib.h> #...
OvmfPkg/Library/PeilessStartupLib/X64/VirtualMemory.c
null
null
null
null
null
source
edk2
/** @file Register a status code handler for printing the Boot Manager's LoadImage() and StartImage() preparations, and return codes, to the UEFI console. This feature enables users that are not accustomed to analyzing the firmware log to glean some information about UEFI boot option processing (loading and ...
OvmfPkg/Library/PlatformBmPrintScLib/StatusCodeHandler.c
null
null
null
null
null
source
edk2
/** @file Common code PlatformBootManager and PlatformBootManagerLight. Copyright (C) 2025, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/QemuFwCfgLib.h> #include <Library/DebugLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/UefiBootManagerLib.h> #include <L...
OvmfPkg/Library/PlatformBootManagerCommonLib/PlatformBootManagerCommonLib.c
null
null
null
null
null
source
edk2
/** @file Platform BDS customizations. Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "BdsPlatform.h" #include <Guid/RootBridgesConnectedEventGroup.h> #include <Guid/SerialPortLibVendor.h> #include <Protocol/FirmwareVolume2.h> #i...
OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
null
null
null
null
null
source
edk2
/** @file Platform BDS customizations include file. Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent Module Name: BdsPlatform.h Abstract: Head file for BDS Platform specific code **/ #pragma once #include <PiDxe.h> #include <IndustryS...
OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h
null
null
null
null
null
source
edk2
/** @file Defined the platform specific device path which will be used by platform Bbd to perform the platform policy connect. Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "BdsPlatform.h" #include <Guid/QemuRamfb.h> #include ...
OvmfPkg/Library/PlatformBootManagerLib/PlatformData.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/QemuLoadImageLib.h> #include <Library/ReportStatusCodeLib.h> #include <Library/UefiLib....
OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c
null
null
null
null
null
source
edk2
/** @file Platform BDS customizations. Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com> Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "BdsPlatform.h" #include <Guid/RootBridgesConnectedEventGroup.h> #include <Protocol/Firm...
OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.c
null
null
null
null
null
source
edk2
/** @file Platform BDS customizations include file. Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com> Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent Module Name: BdsPlatform.h Abstract: Head file for BDS Platform specific code **/...
OvmfPkg/Library/PlatformBootManagerLibBhyve/BdsPlatform.h
null
null
null
null
null
source
edk2
/** @file Defined the platform specific device path which will be used by platform Bbd to perform the platform policy connect. Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com> Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #includ...
OvmfPkg/Library/PlatformBootManagerLibBhyve/PlatformData.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/Library/PlatformBootManagerLibLight/PlatformBm.c
null
null
null
null
null
source
edk2
/** @file Head file for BDS Platform specific code Copyright (C) 2015-2016, Red Hat, Inc. Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/De...
OvmfPkg/Library/PlatformBootManagerLibLight/PlatformBm.h
null
null
null
null
null
source
edk2
/** @file Try to load an EFI-stubbed ARM 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 <Library/Q...
OvmfPkg/Library/PlatformBootManagerLibLight/QemuKernel.c
null
null
null
null
null
source
edk2
/** @file Dectection code for hypervisor debug port. Copyright (c) 2020, Citrix Systems, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "DebugLibDetect.h" /** Always return TRUE without detection as the debug I/O port is always present. @retval TRUE The debug I/O port is always presen...
OvmfPkg/Library/PlatformDebugLibIoPort/DebugIoPortNocheck.c
null
null
null
null
null
source
edk2
/** @file Detection code for QEMU debug port. Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> Copyright (c) 2012, Red Hat, Inc.<BR> Copyright (c) 2020, Citrix Systems, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/IoLib.h> #include <Library/PcdLib.h> #includ...
OvmfPkg/Library/PlatformDebugLibIoPort/DebugIoPortQemu.c
null
null
null
null
null
source
edk2
/** @file Base Debug library instance for hypervisor debug port. It uses PrintLib to send debug messages to a fixed I/O port. Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> Copyright (c) 2012, Red Hat, Inc.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #incl...
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c
null
null
null
null
null
source
edk2
/** @file Detection code for hypervisor debug port. Non-SEC instance, caches the result of detection. Copyright (c) 2017, Red Hat, Inc.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include "DebugLibDetect.h" // // Set to TRUE if the debug I/O port has been checked // STATIC BOOLEA...
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.c
null
null
null
null
null
source
edk2
/** @file Base Debug library instance for hypervisor debug port. It uses PrintLib to send debug messages to a fixed I/O port. Copyright (c) 2017, Red Hat, Inc.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Base.h> /** Helper function to return whether the virtual machine has...
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h
null
null
null
null
null
source
edk2
/** @file Detection code for hypervisor debug port. SEC instance, cannot cache the result of detection. Copyright (c) 2017, Red Hat, Inc.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include "DebugLibDetect.h" /** This constructor function does not have anything to do. @retva...
OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetectRom.c
null
null
null
null
null
source
edk2
/** @file NULL PlatformFvbLib library instance Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "PiDxe.h" #include <Library/PlatformFvbLib.h> /** This function will be called following a call to the EFI_FIRMWARE_VOLUME_BLOCK2_...
OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.c
null
null
null
null
null
source
edk2
/** @file A hook-in library for MdeModulePkg/Bus/Pci/PciHostBridgeDxe. Plugging this library instance into PciHostBridgeDxe makes PciHostBridgeDxe depend on the platform's dynamic decision whether to provide IOMMU implementation (usually through IoMmuDxe driver). Copyright (C) 2017, Red Hat, Inc. Copyrigh...
OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.c
null
null
null
null
null
source
edk2
/** @file PC/AT CMOS access routines Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/PlatformInitLib.h> #include <Library/DebugLib.h> #include "Library/IoLib.h" /** Reads 8-bits of CMOS data. Reads the 8-bits of CMO...
OvmfPkg/Library/PlatformInitLib/Cmos.c
null
null
null
null
null
source
edk2
/** @file IGVM Parameter parsing Copyright (c) 2025, Red Hat. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <PiPei.h> #include <IndustryStandard/IgvmData.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/HobLib.h> #includ...
OvmfPkg/Library/PlatformInitLib/Igvm.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 <Base.h> #include <PiPei.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/HobLib.h> #include <Library/BaseMemoryLib.h...
OvmfPkg/Library/PlatformInitLib/IntelTdx.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> /** In Tdx guest, the system memory is passed in TdHob by host VMM. So the major task of PlatformTdxPublishRamRegions is to walk thru...
OvmfPkg/Library/PlatformInitLib/IntelTdxNull.c
null
null
null
null
null
source
edk2
/**@file Memory Detection for Virtual Machines. Copyright (c) 2006 - 2024, 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/Library/PlatformInitLib/MemDetect.c
null
null
null
null
null
source
edk2
/**@file 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 classes this module consum...
OvmfPkg/Library/PlatformInitLib/Platform.c
null
null
null
null
null
source
edk2
/** @file Provides a platform-specific method to enable Secure Boot Custom Mode setup. Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/PcdLib.h> /** This function provides a platform-specific method to detect whether t...
OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.c
null
null
null
null
null
source
edk2
/** @file Configure some PCDs dynamically for "NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf", from QEMU's fw_cfg. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/PcdLib.h> #include <Library/QemuFwCfgSimpleParserLib.h> RETURN_STATUS EFIAPI SetPxeBcPcds ( VOI...
OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcd.c
null
null
null
null
null
source
edk2
/** @file Map positions of extra PCI root buses to bus numbers. Copyright (C) 2015, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/DevicePathLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/OrderedCollectionLib.h> #include <Librar...
OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c
null
null
null
null
null
source
edk2
/** @file Map positions of extra PCI root buses to bus numbers. Copyright (C) 2015, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once /** Incomplete ("opaque") data type implementing the map. **/ typedef struct EXTRA_ROOT_BUS_MAP_STRUCT EXTRA_ROOT_BUS_MAP; EFI_STATUS CreateExtraRo...
OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.h
null
null
null
null
null
source
edk2
/** @file Rewrite the BootOrder NvVar based on QEMU's "bootorder" fw_cfg file. Copyright (C) 2012 - 2014, Red Hat, Inc. Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/QemuFwCfgLib.h> #include <Library/DebugLib.h> #incl...
OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c
null
null
null
null
null
source
edk2
/** @file QemuFwCfg cached feature related functions. Copyright (c) 2025, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/QemuFwCfgLib.h> ...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgCache.c
null
null
null
null
null
source
edk2
/** @file QemuFwCfg cached feature related functions. Copyright (c) 2025, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/QemuFwCfgLib.h> ...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgCacheInit.c
null
null
null
null
null
source
edk2
/** @file Stateful and implicitly initialized fw_cfg library implementation. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> Copyright (c) 2017, Advanced Micro Devices. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #inclu...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxe.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "Uefi.h" #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h>...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c
null
null
null
null
null
source
edk2
/** @file Internal interfaces specific to the QemuFwCfgLib instances in OvmfPkg. Copyright (C) 2016, Red Hat, Inc. Copyright (C) 2017, Advanced Micro Devices. All rights reserved SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Base.h> #include <Uefi/UefiMultiPhase.h> #include <Uefi/...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h
null
null
null
null
null
source
edk2
/** @file Copyright (C) 2013 - 2014, Red Hat, Inc. Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR> Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Claus...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMmio.c
null
null
null
null
null
source
edk2
/** @file Internal interfaces specific to the QemuFwCfgLibMmio instances in OvmfPkg. Copyright (C) 2016, Red Hat, Inc. Copyright (C) 2017, Advanced Micro Devices. All rights reserved Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Pa...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMmioInternal.h
null
null
null
null
null
source
edk2
/** @file Stateful and implicitly initialized fw_cfg library implementation. Copyright (C) 2013 - 2014, Red Hat, Inc. Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR> Copyright (c) 2024 Loongson Technology Corporation Lim...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioDxe.c
null
null
null
null
null
source
edk2
/** @file Stateful and implicitly initialized fw_cfg library implementation. Copyright (C) 2013 - 2014, Red Hat, Inc. Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR> Copyright (c) 2024 Loongson Technology Corporation Lim...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioPei.c
null
null
null
null
null
source
edk2
/** @file Null implementation of the fw_cfg library. Copyright (C) 2020, Rebecca Cran <rebecca@bsdio.com> Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> Copyright (c) 2017, Advanced Micro Devices. All rights reserved.<BR> SPDX-License-Identifier: ...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgNull.c
null
null
null
null
null
source
edk2
/** @file Stateful and implicitly initialized fw_cfg library implementation. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> Copyright (c) 2017, Advanced Micro Devices. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #inclu...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c
null
null
null
null
null
source
edk2
/** @file Stateless fw_cfg library implementation. Clients must call QemuFwCfgIsAvailable() first. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> Copyright (c) 2017, Advanced Micro Devices. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-...
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSec.c
null
null
null
null
null
source
edk2
/** @file Base Null library instance of the QemuFwCfgS3Lib class. This library instance returns constant FALSE from QemuFwCfgS3Enabled(), and all other library functions trigger assertion failures. It is suitable for QEMU targets and machine types that never enable S3. Copyright (C) 2017, Red Hat, Inc. S...
OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Base.c
null
null
null
null
null
source
edk2
/** @file Shared code for the Base Null and PEI fw_cfg instances of the QemuFwCfgS3Lib class. Copyright (C) 2017, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/QemuFwCfgS3Lib.h> /** Produce ACPI S3 Boot Script opcodes that (optionally) selec...
OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3BasePei.c
null
null
null
null
null
source
edk2
/** @file Full functionality QemuFwCfgS3Lib instance, for DXE phase modules. Copyright (C) 2017, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/QemuFwCfgLib.h> #include <Library...
OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Dxe.c
null
null
null
null
null
source
edk2
/** @file Limited functionality QemuFwCfgS3Lib instance, for PEI phase modules. QemuFwCfgS3Enabled() queries S3 enablement via fw_cfg. Other library APIs will report lack of support. Copyright (C) 2017, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/QemuFwCfgS3Lib.h> /**...
OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Pei.c
null
null
null
null
null
source
edk2
/** @file Shared code for the PEI fw_cfg and DXE fw_cfg instances of the QemuFwCfgS3Lib class. Copyright (C) 2017, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/QemuFwCfgLib.h> #include <Library/QemuFwCfgS3Lib.h> /** Determine if S3 support i...
OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3PeiDxe.c
null
null
null
null
null
source
edk2
/** @file Parse the contents of named fw_cfg files as simple (scalar) data types. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/QemuFwCfgLib.h> #include <Library/QemuFwCfgSimpleParserLib.h> // // Size of the longest valid UINT...
OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParser.c
null
null
null
null
null
source
edk2
/** @file Base Reset System Library Shutdown API implementation for OVMF. Copyright (C) 2020, Red Hat, Inc. Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> // BIT13 #include <Library/BaseLib.h> ...
OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c
null
null
null
null
null
source
edk2
/** @file Base Reset System Library Shutdown API implementation for bhyve. Copyright (C) 2020, Rebecca Cran <rebecca@bsdio.com> Copyright (C) 2020, Red Hat, Inc. Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> ...
OvmfPkg/Library/ResetSystemLib/BaseResetShutdownBhyve.c
null
null
null
null
null
source
edk2
/** @file Base Reset System Library Shutdown API implementation for OVMF. Copyright (C) 2020, Red Hat, Inc. Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> Copyright (c) 2022, Citrix Systems, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> //...
OvmfPkg/Library/ResetSystemLib/BaseResetShutdownXen.c
null
null
null
null
null
source
edk2
/** @file DXE Reset System Library Shutdown API implementation for OVMF. Copyright (C) 2020, Red Hat, Inc. Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> // BIT13 #include <Library/BaseLib.h> /...
OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c
null
null
null
null
null
source
edk2
/** @file DXE Reset System Library Shutdown API implementation for OVMF. Copyright (C) 2020, Red Hat, Inc. Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> // BIT13 #include <IndustryStandard/Xen/sched....
OvmfPkg/Library/ResetSystemLib/DxeResetShutdownXen.c
null
null
null
null
null
source
edk2
/** @file Reset System Library functions for OVMF Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> // BIT1 #include <PiDxe.h> #include <Library/BaseLib.h> // CpuDeadLoop() #include <Library/DebugL...
OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.c
null
null
null
null
null
source
edk2
/** @file Reset System Library functions for OVMF Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> // BIT1 #include <Library/BaseLib.h> // CpuDeadLoop() #include <Library/IoLib.h> // IoWr...
OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c
null
null
null
null
null
source
edk2
/** @file Reset System Library functions for OVMF Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> // BIT1 #include <Library/BaseLib.h> // CpuDeadLoop() #include <Library/DebugLib.h> // ASSE...
OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c
null
null
null
null
null
source
edk2
/** @file Serialize Variables Library implementation Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "SerializeVariablesLib.h" /** Serialization format: The SerializeVariablesLib interface does not specify a format for the...
OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c
null
null
null
null
null
source
edk2
/** @file Serialize Variables Library implementation Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Uefi.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <L...
OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.h
null
null
null
null
null
source
edk2
/** @file A hook-in library for MdeModulePkg/Universal/SmbiosDxe, in order to set gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion (and possibly other PCDs) just before SmbiosDxe consumes them. Copyright (C) 2013, 2015, Red Hat, Inc. Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR> S...
OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.c
null
null
null
null
null
source
edk2
/** @file The CPU specific programming for PiSmmCpuDxeSmm module. Copyright (c) 2010 - 2023, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Q35MchIch9.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/De...
OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c
null
null
null
null
null
source
edk2
/** @file The CPU specific programming for Standalone MM environment. Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiMm.h> #include <Library/SmmCpuFeaturesLib.h> #include <Library/MmServi...
OvmfPkg/Library/SmmCpuFeaturesLib/StandaloneMmCpuFeaturesLib.c
null
null
null
null
null
source
edk2
/** @file The CPU specific programming for PiSmmCpuDxeSmm module. Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Q35MchIch9.h> #include <Library/BaseLib.h> #include <Librar...
OvmfPkg/Library/SmmCpuFeaturesLib/TraditionalMmCpuFeaturesLib.c
null
null
null
null
null
source
edk2
/** @file SMM CPU Platform Hook library instance for QEMU. Copyright (c) 2020, Red Hat, Inc. Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // AsmReadMsr64() #include <PiSmm.h> #include <Register/Inte...
OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.c
null
null
null
null
null
source
edk2
/** @file SMM Relocation Lib for each processor. This Lib produces the SMM_BASE_HOB in HOB database which tells the PiSmmCpuDxeSmm driver (runs at a later phase) about the new SMBASE for each processor. PiSmmCpuDxeSmm driver installs the SMI handler at the SMM_BASE_HOB.SmBase[Index]+0x8000 for processor In...
OvmfPkg/Library/SmmRelocationLib/InternalSmmRelocationLib.h
null
null
null
null
null
source
edk2
/** @file SMM Relocation Lib for each processor. This Lib produces the SMM_BASE_HOB in HOB database which tells the PiSmmCpuDxeSmm driver (runs at a later phase) about the new SMBASE for each processor. PiSmmCpuDxeSmm driver installs the SMI handler at the SMM_BASE_HOB.SmBase[Index]+0x8000 for processor In...
OvmfPkg/Library/SmmRelocationLib/SmmRelocationLib.c
null
null
null
null
null
source
edk2
/** @file Config SMRAM Save State for SmmBases Relocation. Copyright (c) 2024, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "InternalSmmRelocationLib.h" #include <Register/Amd/SmramSaveStateMap.h> /** This function configures the SmBase on the currentl...
OvmfPkg/Library/SmmRelocationLib/SmramSaveStateConfig.c
null
null
null
null
null
source
edk2
/** @file Semaphore mechanism to indicate to the BSP that an AP has exited SMM after SMBASE relocation. Copyright (c) 2024, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "InternalSmmRelocationLib.h" UINTN mSmmRelocationOriginalAddress; vola...
OvmfPkg/Library/SmmRelocationLib/Ia32/Semaphore.c
null
null
null
null
null
source
edk2
/** @file Semaphore mechanism to indicate to the BSP that an AP has exited SMM after SMBASE relocation. Copyright (c) 2024, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "InternalSmmRelocationLib.h" X86_ASSEMBLY_PATCH_LABEL gPatchSmmRelocationOriginal...
OvmfPkg/Library/SmmRelocationLib/X64/Semaphore.c
null
null
null
null
null
source
edk2
/** @file NULL Tcg2PhysicalPresenceLib library instance Copyright (c) 2018, Red Hat, Inc. Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/Tcg2PhysicalPresenceLib.h> VOID EFIAPI Tcg2PhysicalPresenceLibProcessRequest ( ...
OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.c
null
null
null
null
null
source
edk2
/** @file Execute pending TPM2 requests from OS or BIOS. Caution: This module requires additional review when modified. This driver will have external input - variable. This external input must be validated carefully to avoid security issue. Tcg2ExecutePendingTpmRequest() will receive untrusted input and do...
OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2008, Intel Corporation. All rights reserved.<BR> (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/BaseMemoryLib.h> #include <Library/PcdLib.h> #include <Library/CpuLib.h> #...
OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2008, Intel Corporation. All rights reserved.<BR> (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/TdxMailboxLib.h> /** This function will be called by BSP to get the CPU...
OvmfPkg/Library/TdxMailboxLib/TdxMailboxNull.c
null
null
null
null
null
source
edk2
/** @file A hook-in library for NetworkPkg/TlsAuthConfigDxe, in order to set volatile variables related to TLS configuration, before TlsAuthConfigDxe or HttpDxe (which is a UEFI_DRIVER) consume them. Copyright (C) 2013, 2015, 2018, Red Hat, Inc. Copyright (c) 2008 - 2012, Intel Corporation. All rights reser...
OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.c
null
null
null
null
null
source
edk2
/** @file Entry point to a EFI/DXE driver. This version is specific to QEMU, and ties dispatch of the driver in question on the value of a QEMU fw_cfg boolean variable which is referenced by name via a fixed pointer PCD. Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2022, G...
OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.c
null
null
null
null
null
source
edk2
/** @file Plug an EFI_PCI_IO_PROTOCOL backend into PciCapLib, for config space access. Copyright (C) 2018, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/MemoryAllocationLib.h> #include "UefiPciCapPciIoLib.h" /** Transfer bytes between the config space of a given PCI devic...
OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.c
null
null
null
null
null
source
edk2
/** @file Plug an EFI_PCI_IO_PROTOCOL backend into PciCapLib, for config space access -- internal macro and type definitions. Copyright (C) 2018, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Library/DebugLib.h> #include <Library/PciCapPciIoLib.h> #define PROTO_DEV_...
OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.h
null
null
null
null
null
source
edk2
/** @file VirtNorFlashDeviceLib.c Copyright (c) 2011 - 2020, Arm Limited. All rights reserved.<BR> Copyright (c) 2020, Linaro, Ltd. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <PiDxe.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> ...
OvmfPkg/Library/VirtNorFlashDeviceLib/VirtNorFlashDeviceLib.c
null
null
null
null
null
source
edk2
/** @file Utility functions used by virtio device drivers. Copyright (C) 2012-2016, Red Hat, Inc. Portion of Copyright (C) 2013, ARM Ltd. Copyright (C) 2017, AMD Inc, All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> ...
OvmfPkg/Library/VirtioLib/VirtioLib.c
null
null
null
null
null
source
edk2
/** @file This driver produces Virtio Device Protocol instances for Virtio Mmio devices. Copyright (C) 2013, ARM Ltd. Copyright (C) 2017, AMD Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseMemoryLib.h> #include <Library/UefiBootServicesTableLib.h> #inc...
OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c
null
null
null
null
null
source
edk2
/** @file Internal definitions for the VirtIo MMIO Device driver Copyright (C) 2013, ARM Ltd Copyright (C) 2017, AMD Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Protocol/VirtioDevice.h> #include <IndustryStandard/Virtio.h> #include <Library/Debug...
OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.h
null
null
null
null
null
source
edk2
/** @file This driver produces Virtio Device Protocol instances for Virtio MMIO devices. Copyright (C) 2012, Red Hat, Inc. Copyright (c) 2012, Intel Corporation. All rights reserved.<BR> Copyright (C) 2013, ARM Ltd. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioMmioDevice.h" EFI_STATU...
OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c
null
null
null
null
null
source
edk2
/** @file X86 specific implementation of QemuLoadImageLib library class interface with support for loading mixed mode images and non-EFI stub images Note that this implementation reads the cmdline (and possibly kernel, setup data, and initrd in the legacy boot mode) from fw_cfg directly. Copyright (c) 2006...
OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.c
null
null
null
null
null
source
edk2
/** @file Xen console SerialPortLib instance Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR> Copyright (c) 2015, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <Library/BaseLib.h> #include <Library/SerialPortLib.h> #include <...
OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.c
null
null
null
null
null
source
edk2
/** @file Xen Hypercall Library implementation for ARM architecture Copyright (C) 2015, Red Hat, Inc. Copyright (c) 2014, Linaro Ltd. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> /** Check if the Xen Hypercall library is able to make calls to the Xen hyperv...
OvmfPkg/Library/XenHypercallLib/ArmXenHypercall.c
null
null
null
null
null
source
edk2
/** @file Xen Hypercall Library implementation for Intel architecture Copyright (c) 2014, Linaro Ltd. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiDxe.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/CpuLib.h> static INTN mUseVmmCall = -1...
OvmfPkg/Library/XenHypercallLib/X86XenHypercall.c
null
null
null
null
null
source
edk2
/** @file Functions to make Xen hypercalls. Copyright (C) 2014, Citrix Ltd. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiDxe.h> #include <IndustryStandard/Xen/hvm/params.h> #include <IndustryStandard/Xen/memory.h> #include <Library/DebugLib.h> #include <Library/XenHypercallLib.h> RETURN_STA...
OvmfPkg/Library/XenHypercallLib/XenHypercall.c
null
null
null
null
null