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 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 **/ #pragma once #include <Uefi.h> #include <IndustryStandard/Pci.h> #in...
OvmfPkg/SioBusDxe/SioBusDxe.h
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" // // Super I/O Protocol interfaces // EFI_SIO_...
OvmfPkg/SioBusDxe/SioService.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 **/ #pragma once #pragma pack(1) typedef struct { EFI_ACPI_FIXED_LOCATI...
OvmfPkg/SioBusDxe/SioService.h
null
null
null
null
null
source
edk2
/** @file Detect Xen SMBIOS data on AARCH64. Copyright (C) 2015, Red Hat, Inc. Copyright (c) 2011, Bei Guan <gbtju85@gmail.com> Copyright (c) 2011, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "XenSmbiosPlatformDxe.h" /** Locates the Xen SMBIOS da...
OvmfPkg/SmbiosPlatformDxe/ArmXen.c
null
null
null
null
null
source
edk2
/** @file Find Cloud Hypervisor SMBIOS data. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/CloudHv.h> // CLOUDHV_SMBIOS_ADDRESS #include <IndustryStandard/SmBios.h> // SMBIOS_TABLE_3_0_ENTRY_POINT /** Locates and extracts Cloud Hypervisor SMBIOS data @return Ad...
OvmfPkg/SmbiosPlatformDxe/CloudHv.c
null
null
null
null
null
source
edk2
/** @file Find and extract SMBIOS data. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/MemoryAllocationLib.h> // FreePool() #include <OvmfPlatforms.h> // CLOUDHV_DEVICE_ID #include "SmbiosPlatformDxe.h" /** Installs SMBIOS information for OVMF @param ImageHandle Module...
OvmfPkg/SmbiosPlatformDxe/EntryPoint.c
null
null
null
null
null
source
edk2
/** @file Find and extract QEMU SMBIOS data from fw_cfg. Copyright (C) 2014, Gabriel L. Somlo <somlo@cmu.edu> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> // ASSERT_EFI_ERROR() #include <Library/MemoryAllocationLib.h> // AllocatePool() #include <Library/PcdLib.h> ...
OvmfPkg/SmbiosPlatformDxe/Qemu.c
null
null
null
null
null
source
edk2
/** @file This driver installs SMBIOS information for OVMF Copyright (c) 2011, Bei Guan <gbtju85@gmail.com> Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/SmBios.h> // SMBIOS_TABLE_TYPE0 #include <Li...
OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
null
null
null
null
null
source
edk2
/** @file This driver installs SMBIOS information for OVMF Copyright (c) 2011, Bei Guan <gbtju85@gmail.com> Copyright (c) 2011, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once /** Install all structures from the given SMBIOS structures block @p...
OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h
null
null
null
null
null
source
edk2
/** @file Detect Xen hvmloader SMBIOS data for usage by OVMF. Copyright (c) 2011, Bei Guan <gbtju85@gmail.com> Copyright (c) 2011, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // AsciiStrnCmp() #include <Library/HobLib.h> // GetFi...
OvmfPkg/SmbiosPlatformDxe/X86Xen.c
null
null
null
null
null
source
edk2
/** @file This driver installs SMBIOS information for OVMF on Xen Copyright (C) 2021, Red Hat, Inc. Copyright (c) 2011, Bei Guan <gbtju85@gmail.com> Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "SmbiosPlatformDxe.h" #inclu...
OvmfPkg/SmbiosPlatformDxe/Xen.c
null
null
null
null
null
source
edk2
/** @file This driver installs SMBIOS information for OVMF on Xen Copyright (C) 2021, Red Hat, Inc. Copyright (c) 2011, Bei Guan <gbtju85@gmail.com> Copyright (c) 2011, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <IndustryStandard/SmB...
OvmfPkg/SmbiosPlatformDxe/XenSmbiosPlatformDxe.h
null
null
null
null
null
source
edk2
/** @file A DXE_DRIVER providing SMRAM access by producing EFI_SMM_ACCESS2_PROTOCOL. Q35 TSEG is expected to have been verified and set up by the SmmAccessPei driver. Copyright (C) 2013, 2015, Red Hat, Inc.<BR> Copyright (c) 2009 - 2024, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifie...
OvmfPkg/SmmAccess/SmmAccess2Dxe.c
null
null
null
null
null
source
edk2
/** @file A PEIM with the following responsibilities: - verify & configure the Q35 TSEG in the entry point, - provide SMRAM access by producing PEI_SMM_ACCESS_PPI This PEIM runs from RAM, so we can write to variables with static storage duration. Copyright (C) 2013, 2015, Red Hat, Inc.<BR> Copyright (...
OvmfPkg/SmmAccess/SmmAccessPei.c
null
null
null
null
null
source
edk2
/** @file Functions and types shared by the SMM accessor PEI and DXE modules. Copyright (C) 2015, Red Hat, Inc. Copyright (c) 2024 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Q35MchIch9.h> #include <Library/DebugLib.h> #include <Library/PcdLib.h> #include <...
OvmfPkg/SmmAccess/SmramInternal.c
null
null
null
null
null
source
edk2
/** @file Functions and types shared by the SMM accessor PEI and DXE modules. Copyright (C) 2015, Red Hat, Inc. Copyright (c) 2024 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Pi/PiMultiPhase.h> #include <Guid/SmramMemoryReserve.h> #include <Library/HobLib.h> // // The va...
OvmfPkg/SmmAccess/SmramInternal.h
null
null
null
null
null
source
edk2
/** @file A PEIM providing synchronous SMI activations via the EFI_PEI_MM_CONTROL_PPI. We expect the PEI phase to have covered the following: - ensure that the underlying QEMU machine type be Q35 (responsible: OvmfPkg/SmmAccess/SmmAccessPei.inf) - ensure that the ACPI PM IO space be configured (resp...
OvmfPkg/SmmControl2Dxe/MmControlPei.c
null
null
null
null
null
source
edk2
/**@file Negotiate SMI features with QEMU, and configure UefiCpuPkg/PiSmmCpuDxeSmm accordingly. Copyright (C) 2016-2017, Red Hat, Inc. Copyright (c) 2024, Intel Corporation. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #inc...
OvmfPkg/SmmControl2Dxe/SmiFeatures.c
null
null
null
null
null
source
edk2
/**@file Negotiate SMI features with QEMU, and configure UefiCpuPkg/PiSmmCpuDxeSmm accordingly. Copyright (C) 2016-2017, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Protocol/S3SaveState.h> /** Negotiate SMI features with QEMU. @retval FALSE If SMI feature neg...
OvmfPkg/SmmControl2Dxe/SmiFeatures.h
null
null
null
null
null
source
edk2
/** @file A DXE_RUNTIME_DRIVER providing synchronous SMI activations via the EFI_SMM_CONTROL2_PROTOCOL. We expect the PEI phase to have covered the following: - ensure that the underlying QEMU machine type be Q35 (responsible: OvmfPkg/SmmAccess/SmmAccessPei.inf) - ensure that the ACPI PM IO space be con...
OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c
null
null
null
null
null
source
edk2
/** @file Set TPM device type In SecurityPkg, this module initializes the TPM device type based on a UEFI variable and/or hardware detection. In OvmfPkg, the module only performs TPM hardware detection. Copyright (c) 2015, Intel Corporation. All rights reserved.<BR> Copyright (C) 2018, Red Hat, Inc. SP...
OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c
null
null
null
null
null
source
edk2
/** @file Implement the InternalTpm12Detect() function on top of the Tpm12DeviceLib class. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/Tpm12DeviceLib.h> #include "Tpm12Support.h" #pragma pack (1) typedef struct { TPM_RS...
OvmfPkg/Tcg/Tcg2Config/Tpm12Support.c
null
null
null
null
null
source
edk2
/** @file Declare the InternalTpm12Detect() function, hiding the TPM-1.2 detection internals. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Uefi/UefiBaseType.h> /** Detect the presence of a TPM with interface version 1.2. @retval EFI_UNSUPPOR...
OvmfPkg/Tcg/Tcg2Config/Tpm12Support.h
null
null
null
null
null
source
edk2
/** @file Null implementation of InternalTpm12Detect(), always returning EFI_UNSUPPORTED. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "Tpm12Support.h" /** Detect the presence of a TPM with interface version 1.2. @retval EFI_UNSUPPORTED The platform that ...
OvmfPkg/Tcg/Tcg2Config/Tpm12SupportNull.c
null
null
null
null
null
source
edk2
/** @file This module implements measuring PeCoff image for Tcg2 Protocol. Caution: This file requires additional review when modified. This driver will have external input - PE/COFF image. This external input must be validated carefully to avoid security issue like buffer overflow, integer overflow. Copyri...
OvmfPkg/Tcg/TdTcg2Dxe/MeasureBootPeCoff.c
null
null
null
null
null
source
edk2
/** @file This module implements EFI TD Protocol. Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiDxe.h> #include <IndustryStandard/Acpi.h> #include <IndustryStandard/PeImage.h> #include <IndustryStandard/TcpaAcpi.h> #include ...
OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.c
null
null
null
null
null
source
edk2
/** @file This module implements EDKII CC Measurement PPI. Copyright (c) 2024, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Ppi/CcMeasurement.h> #include <Library/DebugLib.h> #include <Library/PeiServicesLib.h> #include <Library/TdxLib.h>...
OvmfPkg/Tcg/TdTcg2Pei/TdTcg2Pei.c
null
null
null
null
null
source
edk2
/** @file Map TPM MMIO range unencrypted when SEV-ES is active. Install gOvmfTpmMmioAccessiblePpiGuid unconditionally. Copyright (C) 2021, Advanced Micro Devices, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiPei.h> #include <Library/DebugLib.h> #include <Library/MemEncryptSevLib.h> #inc...
OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPeim.c
null
null
null
null
null
source
edk2
/** @file OVMF ACPI QEMU support Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR> Copyright (C) 2012-2014, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/Mem...
OvmfPkg/TdxDxe/TdxAcpiTable.c
null
null
null
null
null
source
edk2
/** @file Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <PiDxe.h> #include <Protocol/AcpiTable.h> #include <Protocol/FirmwareVolume2.h> #include <Protocol/PciIo.h> #include <Library/BaseLib.h> #include <Library/Uef...
OvmfPkg/TdxDxe/TdxAcpiTable.h
null
null
null
null
null
source
edk2
/** @file TDX Dxe driver. This driver is dispatched early in DXE, due to being list in APRIORI. This module is responsible for: - Sets max logical cpus based on TDINFO - Sets PCI PCDs based on resource hobs - Alter MATD table to record address of Mailbox Copyright (c) 2020 - 2021, Intel Corporati...
OvmfPkg/TdxDxe/TdxDxe.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include "VirtHstiDxe.h" #define WRITE_BYTE_CMD 0x10 #define BLOCK_ERASE_CMD 0x20 #define CLEAR_STATUS_CMD 0x50 #define READ_STATUS_CMD 0x70 #define READ_DEVID_C...
OvmfPkg/VirtHstiDxe/Flash.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include "VirtHstiDxe.h" VOID VirtHstiQemuCommonInit ( VIRT_ADAPTER_INFO_PLATFORM_SECURITY *VirtHsti ) { VirtHstiSetSupported (VirtHsti, 0, VIRT_HSTI_BYTE0_READONLY_CODE_FLASH); } VOID Virt...
OvmfPkg/VirtHstiDxe/QemuCommon.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/HstiLib.h> #include <Library/PcdLib.h> #include <Library/PciLib.h> #include <IndustryStandard/Hsti.h> #include <IndustryStandard/Q35MchIch9.h> #include "VirtHstiDxe.h" STATIC VIR...
OvmfPkg/VirtHstiDxe/QemuPC.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/HstiLib.h> #include <Library/PcdLib.h> #include <Library/PciLib.h> #include <IndustryStandard/Hsti.h> #include <IndustryStandard/Q35MchIch9.h> #include "VirtHstiDxe.h" STATIC VIR...
OvmfPkg/VirtHstiDxe/QemuQ35.c
null
null
null
null
null
source
edk2
# virtual machine platform hsti driver This driver supports three tests. ## VIRT_HSTI_BYTE0_SMM_SMRAM_LOCK Verify the SMM memory is properly locked down. Supported platforms: * Qemu Q35 (SMM_REQUIRE=TRUE builds). ## VIRT_HSTI_BYTE0_SMM_SECURE_VARS_FLASH Verify the variable store is not writable for normal (not S...
OvmfPkg/VirtHstiDxe/README.md
null
null
null
null
null
source
edk2
/** @file This file contains DXE driver for publishing empty HSTI table Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> Copyright (c) 2024, Red Hat. Inc SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <PiDxe.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/...
OvmfPkg/VirtHstiDxe/VirtHstiDxe.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #define VIRT_HSTI_SECURITY_FEATURE_SIZE 2 #define VIRT_HSTI_BYTE0_SMM_SMRAM_LOCK BIT0 #define VIRT_HSTI_BYTE0_SMM_SECURE_VARS_FLASH BIT1 #define VIRT_HSTI_BYTE0_READONLY_CODE_FLASH BIT2 typedef struct { // ADAPTER_INFO_PLATFORM_SECURITY UI...
OvmfPkg/VirtHstiDxe/VirtHstiDxe.h
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/QemuUefiVars.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/DxeServicesTableLib.h> #include <Library/IoLib.h> #include <Library/UefiBootServicesTableLib.h> #include <Library/UefiRuntimeServicesTa...
OvmfPkg/VirtMmCommunicationDxe/QemuFdt.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/QemuFwCfg.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/DxeServicesTableLib.h> #include <Library/HardwareInfoLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/QemuFwCfgLib.h> #inc...
OvmfPkg/VirtMmCommunicationDxe/QemuHwInfo.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/QemuUefiVars.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/DxeServicesTableLib.h> #include <Library/IoLib.h> #include <Library/UefiBootServicesTableLib.h> #include <Library/UefiRuntimeServicesTa...
OvmfPkg/VirtMmCommunicationDxe/QemuMmio.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/QemuUefiVars.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> #include <Library/IoLib.h> #include "VirtMmCommunication.h" STATIC EFI_STATUS EFIAPI VirtMmHwCommand ( UINT32 Cmd ) { UINT32 Count; UINT32 S...
OvmfPkg/VirtMmCommunicationDxe/QemuX64.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/DxeServicesTableLib.h> #include <Library/HobLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/PcdLib.h> #include <Library/UefiBo...
OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.c
null
null
null
null
null
source
edk2
/** @file SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once /* communication buffer */ #define MAX_BUFFER_SIZE (64 * 1024) extern VOID *mCommunicateBuffer; extern EFI_PHYSICAL_ADDRESS mCommunicateBufferPhys; extern UINT64 mUefiVarsAddr; extern BOOLEAN ...
OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.h
null
null
null
null
null
source
edk2
/** @file VirtNorFlashDxe.c Copyright (c) 2011 - 2021, Arm Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseMemoryLib.h> #include <Library/DxeServicesTableLib.h> #include <Library/HobLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/PcdLib...
OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c
null
null
null
null
null
source
edk2
/** @file VirtNorFlashDxe.h Copyright (c) 2011 - 2021, Arm Limited. All rights reserved.<BR> Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Base.h> #include <PiDxe.h> #include <Guid/EventGroup.h> #include <Pro...
OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.h
null
null
null
null
null
source
edk2
/*++ @file NorFlashFvbDxe.c Copyright (c) 2011 - 2021, Arm Limited. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent --*/ #include <PiDxe.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/PcdLib.h> #include <Librar...
OvmfPkg/VirtNorFlashDxe/VirtNorFlashFvb.c
null
null
null
null
null
source
edk2
/** @file A non-transitional driver for VirtIo 1.0 PCI devices. Copyright (C) 2016, Red Hat, Inc. Copyright (C) 2017, AMD Inc, All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <IndustryStandard/Pci.h> #include <IndustryStandard/Virtio.h> #include <Protocol/PciIo.h> #include ...
OvmfPkg/Virtio10Dxe/Virtio10.c
null
null
null
null
null
source
edk2
/** @file Private definitions of the VirtIo 1.0 driver. Copyright (C) 2016, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Protocol/PciIo.h> #include <Protocol/VirtioDevice.h> #define VIRTIO_1_0_SIGNATURE SIGNATURE_32 ('V', 'I', 'O', '1') // // Type of the PCI BAR tha...
OvmfPkg/Virtio10Dxe/Virtio10.h
null
null
null
null
null
source
edk2
/** @file This driver produces Block I/O Protocol instances for virtio-blk devices. The implementation is basic: - No attach/detach (ie. removable media). - Although the non-blocking interfaces of EFI_BLOCK_IO2_PROTOCOL could be a good match for multiple in-flight virtio-blk requests, we stick to sy...
OvmfPkg/VirtioBlkDxe/VirtioBlk.c
null
null
null
null
null
source
edk2
/** @file Internal definitions for the virtio-blk driver, which produces Block I/O Protocol instances for virtio-blk devices. Copyright (C) 2012, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Protocol/BlockIo.h> #include <Protocol/ComponentName.h> #include <Protocol...
OvmfPkg/VirtioBlkDxe/VirtioBlk.h
null
null
null
null
null
source
edk2
/** @file Provide EFI_SIMPLE_FILE_SYSTEM_PROTOCOL instances on virtio-fs devices. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // AsciiStrCmp() #include <Library/MemoryAllocationLib.h> // AllocatePool() #include <Library/U...
OvmfPkg/VirtioFsDxe/DriverBinding.c
null
null
null
null
null
source
edk2
/** @file FUSE_FLUSH wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Flush changes queued on the local virtualization host to the remote storage server's memory (not storage device), over the network,...
OvmfPkg/VirtioFsDxe/FuseFlush.c
null
null
null
null
null
source
edk2
/** @file FUSE_FORGET wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Make the Virtio Filesysem device drop one reference count from a NodeId that the driver looked up by filename. Send the FUSE_FO...
OvmfPkg/VirtioFsDxe/FuseForget.c
null
null
null
null
null
source
edk2
/** @file FUSE_FSYNC / FUSE_FSYNCDIR wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Synchronize the in-core state of a regular file or a directory with the storage device on the host, by sending the ...
OvmfPkg/VirtioFsDxe/FuseFsync.c
null
null
null
null
null
source
edk2
/** @file FUSE_GETATTR wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Send a FUSE_GETATTR request to the Virtio Filesystem device, for fetching the attributes of an inode. The function may only be...
OvmfPkg/VirtioFsDxe/FuseGetAttr.c
null
null
null
null
null
source
edk2
/** @file FUSE_INIT wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Send a FUSE_INIT request to the Virtio Filesystem device, for starting the FUSE session. From virtio-v1.1-cs01-87fa6b5d8155, 5.11...
OvmfPkg/VirtioFsDxe/FuseInit.c
null
null
null
null
null
source
edk2
/** @file FUSE_LOOKUP wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // AsciiStrSize() #include "VirtioFsDxe.h" /** Send a FUSE_LOOKUP request to the Virtio Filesystem device, for resolving a filena...
OvmfPkg/VirtioFsDxe/FuseLookup.c
null
null
null
null
null
source
edk2
/** @file FUSE_MKDIR wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // AsciiStrSize() #include "VirtioFsDxe.h" /** Send a FUSE_MKDIR request to the Virtio Filesystem device, for creating a directory...
OvmfPkg/VirtioFsDxe/FuseMkDir.c
null
null
null
null
null
source
edk2
/** @file FUSE_OPEN wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Send a FUSE_OPEN request to the Virtio Filesystem device, for opening a regular file. The function may only be called after Virti...
OvmfPkg/VirtioFsDxe/FuseOpen.c
null
null
null
null
null
source
edk2
/** @file FUSE_OPENDIR wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Send a FUSE_OPENDIR request to the Virtio Filesystem device, for opening a directory. The function may only be called after Vi...
OvmfPkg/VirtioFsDxe/FuseOpenDir.c
null
null
null
null
null
source
edk2
/** @file FUSE_CREATE wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // AsciiStrSize() #include "VirtioFsDxe.h" /** Send a FUSE_CREATE request to the Virtio Filesystem device, for opening a regular ...
OvmfPkg/VirtioFsDxe/FuseOpenOrCreate.c
null
null
null
null
null
source
edk2
/** @file FUSE_READ / FUSE_READDIRPLUS wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Read a chunk from a regular file or a directory stream, by sending the FUSE_READ / FUSE_READDIRPLUS request to th...
OvmfPkg/VirtioFsDxe/FuseRead.c
null
null
null
null
null
source
edk2
/** @file FUSE_RELEASE / FUSE_RELEASEDIR wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Close a regular file or a directory that is open, by sending the FUSE_RELEASE or FUSE_RELEASEDIR request to the...
OvmfPkg/VirtioFsDxe/FuseRelease.c
null
null
null
null
null
source
edk2
/** @file FUSE_RENAME2 wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // AsciiStrSize() #include "VirtioFsDxe.h" /** Rename a regular file or a directory, by sending the FUSE_RENAME2 request to the ...
OvmfPkg/VirtioFsDxe/FuseRename.c
null
null
null
null
null
source
edk2
/** @file FUSE_SETATTR wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Send the FUSE_SETATTR request to the Virtio Filesystem device, for changing the attributes of an inode. The function may only ...
OvmfPkg/VirtioFsDxe/FuseSetAttr.c
null
null
null
null
null
source
edk2
/** @file FUSE_STATFS wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Send the FUSE_STATFS request to the Virtio Filesysem device, for retrieving the attributes of the host-side filesystem that contai...
OvmfPkg/VirtioFsDxe/FuseStatFs.c
null
null
null
null
null
source
edk2
/** @file FUSE_UNLINK / FUSE_RMDIR wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // AsciiStrSize() #include "VirtioFsDxe.h" /** Remove a regular file or a directory, by sending the FUSE_UNLINK or F...
OvmfPkg/VirtioFsDxe/FuseUnlink.c
null
null
null
null
null
source
edk2
/** @file FUSE_WRITE wrapper for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" /** Write a chunk to a regular file, by sending the FUSE_WRITE request to the Virtio Filesystem device. The function may only be cal...
OvmfPkg/VirtioFsDxe/FuseWrite.c
null
null
null
null
null
source
edk2
/** @file Initialization and helper routines for the Virtio Filesystem device. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // StrLen() #include <Library/BaseMemoryLib.h> // CopyMem() #include <Library/MemoryAllocationLib.h> /...
OvmfPkg/VirtioFsDxe/Helpers.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.Close() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // RemoveEntryList() #include <Library/MemoryAllocationLib.h> // FreePool() #include "VirtioFsDxe.h"...
OvmfPkg/VirtioFsDxe/SimpleFsClose.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.Delete() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // RemoveEntryList() #include <Library/MemoryAllocationLib.h> // FreePool() #include "VirtioFsDxe.h...
OvmfPkg/VirtioFsDxe/SimpleFsDelete.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.Flush() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" EFI_STATUS EFIAPI VirtioFsSimpleFileFlush ( IN EFI_FILE_PROTOCOL *This ) { VIRTIO_FS_FILE *VirtioFsFile; V...
OvmfPkg/VirtioFsDxe/SimpleFsFlush.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.GetInfo() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Guid/FileSystemInfo.h> // gEfiFileSystemInfoGuid #include <Guid/FileSystemVolumeLabelInfo.h> // gEfiFileSystemVolumeLab...
OvmfPkg/VirtioFsDxe/SimpleFsGetInfo.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.GetPosition() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" EFI_STATUS EFIAPI VirtioFsSimpleFileGetPosition ( IN EFI_FILE_PROTOCOL *This, OUT UINT64 ...
OvmfPkg/VirtioFsDxe/SimpleFsGetPosition.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.Open() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // AsciiStrCmp() #include <Library/MemoryAllocationLib.h> // AllocatePool() #include "VirtioFsDxe.h" ...
OvmfPkg/VirtioFsDxe/SimpleFsOpen.c
null
null
null
null
null
source
edk2
/** @file EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.OpenVolume() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> // InsertTailList() #include <Library/MemoryAllocationLib.h> // AllocatePool() ...
OvmfPkg/VirtioFsDxe/SimpleFsOpenVolume.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.Read() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseMemoryLib.h> // CopyMem() #include <Library/MemoryAllocationLib.h> // AllocatePool() #include "VirtioFsDxe.h" /**...
OvmfPkg/VirtioFsDxe/SimpleFsRead.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.SetInfo() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Guid/FileSystemInfo.h> // gEfiFileSystemInfoGuid #include <Guid/FileSystemVolumeLabelInfo.h> // gEfiFileSystemVolumeLab...
OvmfPkg/VirtioFsDxe/SimpleFsSetInfo.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.SetPosition() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/MemoryAllocationLib.h> // FreePool() #include "VirtioFsDxe.h" EFI_STATUS EFIAPI VirtioFsSimpleFileSetPosition ( ...
OvmfPkg/VirtioFsDxe/SimpleFsSetPosition.c
null
null
null
null
null
source
edk2
/** @file EFI_FILE_PROTOCOL.Write() member function for the Virtio Filesystem driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "VirtioFsDxe.h" EFI_STATUS EFIAPI VirtioFsSimpleFileWrite ( IN EFI_FILE_PROTOCOL *This, IN OUT UINTN *BufferSi...
OvmfPkg/VirtioFsDxe/SimpleFsWrite.c
null
null
null
null
null
source
edk2
/** @file Internal macro definitions, type definitions, and function declarations for the Virtio Filesystem device driver. Copyright (C) 2020, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Base.h> // SIGNATURE_64() #include <Guid/FileInfo.h> ...
OvmfPkg/VirtioFsDxe/VirtioFsDxe.h
null
null
null
null
null
source
edk2
/** @file VirtIo GPU initialization, and commands (primitives) for the GPU device. Copyright (C) 2016, Red Hat, Inc. Copyright (c) 2017, AMD Inc, All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/VirtioLib.h> #include "VirtioGpu.h" /** Configure the VirtIo GPU ...
OvmfPkg/VirtioGpuDxe/Commands.c
null
null
null
null
null
source
edk2
/** @file Implement the Driver Binding Protocol and the Component Name 2 Protocol for the Virtio GPU hybrid driver. Copyright (C) 2016, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DevicePathLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/PrintLib.h> #i...
OvmfPkg/VirtioGpuDxe/DriverBinding.c
null
null
null
null
null
source
edk2
/** @file EFI_GRAPHICS_OUTPUT_PROTOCOL member functions for the VirtIo GPU driver. Copyright (C) 2016, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/MemoryAllocationLib.h> #include <Library/PcdLib.h> #include "VirtioGpu.h" /** Release guest-side and host-side resources ...
OvmfPkg/VirtioGpuDxe/Gop.c
null
null
null
null
null
source
edk2
/** @file Internal type and macro definitions for the Virtio GPU hybrid driver. Copyright (C) 2016, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <IndustryStandard/VirtioGpu.h> #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/UefiLib.h...
OvmfPkg/VirtioGpuDxe/VirtioGpu.h
null
null
null
null
null
source
edk2
/** @file Key codes definitions for the VirtioKeyboard driver This is a fork of common Linux key codes: https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h Copyright (C) 2024, Red Hat SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once /* * Event types */ #d...
OvmfPkg/VirtioKeyboardDxe/VirtioKeyCodes.h
null
null
null
null
null
source
edk2
/** @file This driver produces EFI_SIMPLE_TEXT_INPUT_PROTOCOL for virtarm devices. Copyright (C) 2024, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseMemoryLib.h> #include <Library/DebugLib.h> #include <Library/MemoryAllocationLib.h> #include <Library/UefiBootServicesTab...
OvmfPkg/VirtioKeyboardDxe/VirtioKeyboard.c
null
null
null
null
null
source
edk2
/** @file Private definitions of the VirtioKeyboard driver Copyright (C) 2024, Red Hat SPDX-License-Identifier: BSD-2-Clause-Patent **/ #pragma once #include <Protocol/ComponentName.h> #include <Protocol/DriverBinding.h> #include <Protocol/SimpleTextIn.h> #include <Protocol/SimpleTextInEx.h> #include <Indu...
OvmfPkg/VirtioKeyboardDxe/VirtioKeyboard.h
null
null
null
null
null
source
edk2
/** @file Component Name code for the virtio-net driver. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/UefiLib.h> #include "VirtioNet.h" STATIC EFI_UNICODE_STRING_TABLE mVirtioNe...
OvmfPkg/VirtioNetDxe/ComponentName.c
null
null
null
null
null
source
edk2
/** @file Driver Binding code and its private helpers for the virtio-net driver. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseMemoryLib.h> #include <Library/DevicePathLib.h> #i...
OvmfPkg/VirtioNetDxe/DriverBinding.c
null
null
null
null
null
source
edk2
/** @file This file implements the entry point of the virtio-net driver. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/UefiLib.h> #include "VirtioNet.h" /** This is the declarat...
OvmfPkg/VirtioNetDxe/EntryPoint.c
null
null
null
null
null
source
edk2
/** @file Implements - the SNM.WaitForPacket EVT_NOTIFY_WAIT event, - the EVT_SIGNAL_EXIT_BOOT_SERVICES event for the virtio-net driver. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <...
OvmfPkg/VirtioNetDxe/Events.c
null
null
null
null
null
source
edk2
/** @file Implementation of the SNP.GetStatus() function and its private helpers if any. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/UefiBootService...
OvmfPkg/VirtioNetDxe/SnpGetStatus.c
null
null
null
null
null
source
edk2
/** @file Implementation of the SNP.Initialize() function and its private helpers if any. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> Copyright (c) 2017, AMD Inc, All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #incl...
OvmfPkg/VirtioNetDxe/SnpInitialize.c
null
null
null
null
null
source
edk2
/** @file Implementation of the SNP.McastIpToMac() function and its private helpers if any. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/UefiBootServicesTableLib.h> #include "Vi...
OvmfPkg/VirtioNetDxe/SnpMcastIpToMac.c
null
null
null
null
null
source
edk2
/** @file Implementation of the SNP.Receive() function and its private helpers if any. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #i...
OvmfPkg/VirtioNetDxe/SnpReceive.c
null
null
null
null
null
source
edk2
/** @file Implementation of the SNP.ReceiveFilters() function and its private helpers if any. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/UefiBootServicesTableLib.h> #include "...
OvmfPkg/VirtioNetDxe/SnpReceiveFilters.c
null
null
null
null
null
source
edk2
/** @file Helper functions used by at least two Simple Network Protocol methods. Copyright (C) 2013, Red Hat, Inc. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/MemoryAllocationLib.h> #include "VirtioNet.h" // // The user structure for the ordered collection that will track the mapping...
OvmfPkg/VirtioNetDxe/SnpSharedHelpers.c
null
null
null
null
null
source
edk2
/** @file Implementation of the SNP.Shutdown() function and its private helpers if any. Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> Copyright (c) 2017, AMD Inc, All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include ...
OvmfPkg/VirtioNetDxe/SnpShutdown.c
null
null
null
null
null