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
Intel CPUID leaf definitions.
Provides defines for CPUID leaf indexes. Data structures are provided for
registers returned by a CPUID leaf that contain one or more bit fields.
If a register returned is a single 32-bit value, then a data structure is
not provided for that register.
Copyright (c)... | MdePkg/Include/Register/Intel/Cpuid.h | null | null | null | null | null |
source | edk2 | /** @file
IA32 Local APIC Definitions.
Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// Definition for Local APIC registers and related values
//
#define XAPIC_ID_OFFSET 0x20
#define XAPIC_VERSIO... | MdePkg/Include/Register/Intel/LocalApic.h | null | null | null | null | null |
source | edk2 | /** @file
Microcode Definitions.
Microcode Definitions based on contents of the
Intel(R) 64 and IA-32 Architectures Software Developer's Manual
Volume 3A, Section 9.11 Microcode Definitions
Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Pate... | MdePkg/Include/Register/Intel/Microcode.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provided for that MSR.
Copyright (c) 2016 ~ 2019, ... | MdePkg/Include/Register/Intel/Msr.h | null | null | null | null | null |
source | edk2 | /** @file
SMRAM Save State Map Definitions.
SMRAM Save State Map definitions based on contents of the
Intel(R) 64 and IA-32 Architectures Software Developer's Manual
Volume 3C, Section 34.4 SMRAM
Volume 3C, Section 34.5 SMI Handler Execution Environment
Volume 3C, Section 34.7 Managing Synchronous and Asynchrono... | MdePkg/Include/Register/Intel/SmramSaveStateMap.h | null | null | null | null | null |
source | edk2 | /** @file
STM API definition
Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Specification Reference:
SMI Transfer Monitor (STM) User Guide Revision 1.00
**/
#pragma once
#include <Register/Intel/StmStatusCode.h>
#include <Register/... | MdePkg/Include/Register/Intel/StmApi.h | null | null | null | null | null |
source | edk2 | /** @file
STM Resource Descriptor
Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Specification Reference:
SMI Transfer Monitor (STM) User Guide Revision 1.00
**/
#pragma once
#pragma pack (1)
/**
STM Resource Descriptor Header
*... | MdePkg/Include/Register/Intel/StmResourceDescriptor.h | null | null | null | null | null |
source | edk2 | /** @file
STM Status Codes
Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Specification Reference:
SMI Transfer Monitor (STM) User Guide Revision 1.00
**/
#pragma once
/**
STM Status Codes
**/
typedef UINT32 STM_STATUS;
/**
Su... | MdePkg/Include/Register/Intel/StmStatusCode.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for the Intel(R) Atom(TM) Processor Family.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provided f... | MdePkg/Include/Register/Intel/Msr/AtomMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel processors based on the Broadwell microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure ... | MdePkg/Include/Register/Intel/Msr/BroadwellMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for the Intel(R) Core(TM) 2 Processor Family.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provide... | MdePkg/Include/Register/Intel/Msr/Core2Msr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel Core Solo and Intel Core Duo Processors.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
pro... | MdePkg/Include/Register/Intel/Msr/CoreMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel Atom processors based on the Goldmont microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data struct... | MdePkg/Include/Register/Intel/Msr/GoldmontMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel Atom processors based on the Goldmont Plus microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data s... | MdePkg/Include/Register/Intel/Msr/GoldmontPlusMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel processors based on the Haswell-E microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure ... | MdePkg/Include/Register/Intel/Msr/HaswellEMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel processors based on the Haswell microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is... | MdePkg/Include/Register/Intel/Msr/HaswellMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel processors based on the Ivy Bridge microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure... | MdePkg/Include/Register/Intel/Msr/IvyBridgeMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel processors based on the Nehalem microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is... | MdePkg/Include/Register/Intel/Msr/NehalemMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for P6 Family Processors.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provided for that MSR.
Co... | MdePkg/Include/Register/Intel/Msr/P6Msr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Pentium(R) 4 Processors.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provided for that MSR.
... | MdePkg/Include/Register/Intel/Msr/Pentium4Msr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Pentium M Processors.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provided for that MSR.
Co... | MdePkg/Include/Register/Intel/Msr/PentiumMMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Pentium Processors.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provided for that MSR.
Copy... | MdePkg/Include/Register/Intel/Msr/PentiumMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel processors based on the Sandy Bridge microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structu... | MdePkg/Include/Register/Intel/Msr/SandyBridgeMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel processors based on the Silvermont microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure... | MdePkg/Include/Register/Intel/Msr/SilvermontMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel processors based on the Skylake/Kabylake/Coffeelake/Cannonlake microarchitecture.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit ... | MdePkg/Include/Register/Intel/Msr/SkylakeMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel(R) Xeon(R) Processor Series 5600.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provided f... | MdePkg/Include/Register/Intel/Msr/Xeon5600Msr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel(R) Xeon(R) Processor D product Family.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provi... | MdePkg/Include/Register/Intel/Msr/XeonDMsr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel(R) Xeon(R) Processor E7 Family.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provided for... | MdePkg/Include/Register/Intel/Msr/XeonE7Msr.h | null | null | null | null | null |
source | edk2 | /** @file
MSR Definitions for Intel(R) Xeon(R) Phi(TM) processor Family.
Provides defines for Machine Specific Registers(MSR) indexes. Data structures
are provided for MSRs that contain one or more bit fields. If the MSR value
returned is a single 32-bit or 64-bit value, then a data structure is not
provide... | MdePkg/Include/Register/Intel/Msr/XeonPhiMsr.h | null | null | null | null | null |
source | edk2 | /** @file
CPUCFG definitions.
Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
CPUCFG REG0 Information
@code
CPUCFG_REG0_INFO_DATA
**/
#define CPUCFG_REG0_INFO 0x0
/**
CPUCFG REG0 Information ret... | MdePkg/Include/Register/LoongArch64/Cpucfg.h | null | null | null | null | null |
source | edk2 | /** @file
Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Glossary:
- EXC - Exception
- CSR - CPU Status Register
**/
#pragma once
#include <Base.h>
//
// CSR register numbers
//
//
// Basic CSR registers... | MdePkg/Include/Register/LoongArch64/Csr.h | null | null | null | null | null |
source | edk2 | /** @file
RISC-V CSR encodings
Copyright (c) 2019, Western Digital Corporation or its affiliates. All rights reserved.<BR>
Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define MSTATUS_SIE 0x00000002UL
#define MS... | MdePkg/Include/Register/RiscV64/RiscVEncoding.h | null | null | null | null | null |
source | edk2 | /** @file
RISC-V package definitions.
Copyright (c) 2016 - 2022, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Register/RiscV64/RiscVEncoding.h>
#define _ASM_FUNC(Name, Section) \
.global Name ... | MdePkg/Include/Register/RiscV64/RiscVImpl.h | null | null | null | null | null |
source | edk2 | /** @file
Processor or Compiler specific defines and types for RISC-V
Copyright (c) 2016 - 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// Define the processor type so other code can make processor based choices
/... | MdePkg/Include/RiscV64/ProcessorBind.h | null | null | null | null | null |
source | edk2 | /** @file
UEFI ACPI Data Table Definition.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <IndustryStandard/Acpi.h>
#pragma pack(1)
typedef struct {
EFI_ACPI_DESCRIPTION_HEADER Header;
GUID ... | MdePkg/Include/Uefi/UefiAcpiDataTable.h | null | null | null | null | null |
source | edk2 | /** @file
Defines data types and constants introduced in UEFI.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2011 - 2016, ARM Ltd. All rights reserved.<BR>
Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
Copyright (c) 2022, Loong... | MdePkg/Include/Uefi/UefiBaseType.h | null | null | null | null | null |
source | edk2 | /** @file
EFI Guid Partition Table Format Definition.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// The primary GUID Partition Table Header must be
/// located in LBA 1 (i.e., the second logical block).
///
#define PRIM... | MdePkg/Include/Uefi/UefiGpt.h | null | null | null | null | null |
source | edk2 | /** @file
This file defines the encoding for the VFR (Visual Form Representation) language.
IFR is primarily consumed by the EFI presentation engine, and produced by EFI
internal application and drivers as well as all add-in card option-ROM drivers
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserve... | MdePkg/Include/Uefi/UefiInternalFormRepresentation.h | null | null | null | null | null |
source | edk2 | /** @file
This includes some definitions introduced in UEFI that will be used in both PEI and DXE phases.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#ifndef __UEFI_MULTIPHASE_H__
#define __UEFI_MULTIPHASE_H__
///
/// Attrib... | MdePkg/Include/Uefi/UefiMultiPhase.h | null | null | null | null | null |
source | edk2 | /** @file
This header file contains all of the PXE type definitions,
structure prototypes, global variables and constants that
are needed for porting PXE to EFI.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Revision Reference:
32/64... | MdePkg/Include/Uefi/UefiPxe.h | null | null | null | null | null |
source | edk2 | /** @file
Include file that supports UEFI.
This include file must contain things defined in the UEFI 2.7 specification.
If a code construct is defined in the UEFI 2.7 specification it must be included
by this include file.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
Portions Copyrig... | MdePkg/Include/Uefi/UefiSpec.h | null | null | null | null | null |
source | edk2 | /** @file
Processor or Compiler specific defines and types x64 (Intel 64, AMD64).
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// Define the processor type so other code can make processor based choices
///
#define MD... | MdePkg/Include/X64/ProcessorBind.h | null | null | null | null | null |
source | edk2 | // SPDX-License-Identifier: BSD-3-Clause
/** @file
This library implements the FF-A memory manage protocol.
Copyright (c) 2020-2022, Arm Limited and Contributors. All rights reserved.
Copyright (c), Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Glossary:
- FF-A - Firmware F... | MdePkg/Library/ArmFfaMemMgmtLib/ArmFfaMemMgmtLib.c | null | null | null | null | null |
source | edk2 | /** @file
SMC helper functions.
Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/ArmSmcLib.h>
#include <Library/BaseMemoryLib.h>
/** Triggers an SMC call with 3 arguments.
@param Function The SMC function.
@param Arg1 Argument... | MdePkg/Library/ArmSmcLib/ArmSmc.c | null | null | null | null | null |
source | edk2 | //
// Copyright (c) 2012-2014, ARM Limited. All rights reserved.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//
#include <AsmMacroLib.h>
ASM_FUNC(ArmCallSmc)
// Push frame pointer and return address on the stack
stp x29, x30, [sp, #-16]!
mov x29, sp
// x0 is the ARM_SMC_ARGS structure address... | MdePkg/Library/ArmSmcLib/AArch64/ArmSmc.S | null | null | null | null | null |
source | edk2 | //
// Copyright (c) 2021, NUVIA Inc. All rights reserved.
// Copyright (c) 2016, Linaro Limited. All rights reserved.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//
#include <Base.h>
#include <Library/ArmSmcLib.h>
#include <IndustryStandard/ArmStdSmc.h>
VOID
ArmCallSmc (
IN OUT ARM_SMC_ARGS *Args
)
... | MdePkg/Library/ArmSmcLibNull/ArmSmcLibNull.c | null | null | null | null | null |
source | edk2 | //
// Copyright (c) 2012 - 2020, ARM Limited. All rights reserved.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//
#include <AsmMacroLib.h>
.text
.align 3
ASM_FUNC(ArmCallSvc)
// Push frame pointer and return address on the stack
stp x29, x30, [sp, #-16]!
mov x29, sp
// x0 is the ARM_SVC_ARGS... | MdePkg/Library/ArmSvcLib/AArch64/ArmSvc.S | null | null | null | null | null |
source | edk2 | /** @file
Null version of the Arm TRNG (True Random Number Generator) services
(Cf [1]).
Copyright (c) 2021 - 2022, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Reference(s):
- [1] Arm True Random Number Generator Firmware, Interface 1.0,
Platform Design... | MdePkg/Library/BaseArmTrngLibNull/BaseArmTrngLibNull.c | null | null | null | null | null |
source | edk2 | /** @file
Cache Maintenance Functions. These functions vary by ARM architecture so the MdePkg
versions are null functions used to make sure things will compile.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
SPDX-... | MdePkg/Library/BaseCacheMaintenanceLib/ArmCache.c | null | null | null | null | null |
source | edk2 | /** @file
Cache Maintenance Functions.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/DebugLib.h>
/**
Invalidates the entire instruction cache in cache coherency domain of the
calling CPU.
**/
VOI... | MdePkg/Library/BaseCacheMaintenanceLib/EbcCache.c | null | null | null | null | null |
source | edk2 | /** @file
Cache Maintenance Functions for LoongArch.
LoongArch cache maintenance functions has not yet been completed, and will added in later.
Functions are null functions now.
Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent... | MdePkg/Library/BaseCacheMaintenanceLib/LoongArchCache.c | null | null | null | null | null |
source | edk2 | /** @file
RISC-V specific functionality for cache.
Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
Copyright (c) 2023, Rivos Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/... | MdePkg/Library/BaseCacheMaintenanceLib/RiscVCache.c | null | null | null | null | null |
source | edk2 | /** @file
Cache Maintenance Functions.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
/**
Invalidates the entire instruction cache in cache coherency domain ... | MdePkg/Library/BaseCacheMaintenanceLib/X86Cache.c | null | null | null | null | null |
source | edk2 | /** @file
Null Cache Maintenance Librfary implementation.
Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/DebugLib.h>
/**
Invalidates the entire instruction cache in cache coherency domain of the
calling C... | MdePkg/Library/BaseCacheMaintenanceLibNull/BaseCacheMaintenanceLibNull.c | null | null | null | null | null |
source | edk2 | /** @file
This library defines some routines that are generic for IA32 family CPU.
The library routines are UEFI specification compliant.
Copyright (c) 2020, AMD Inc. All rights reserved.<BR>
Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#... | MdePkg/Library/BaseCpuLib/X86BaseCpuLib.c | null | null | null | null | null |
source | edk2 | /** @file
CpuFlushTlb function for Ia32/X64.
Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
/**
Flushes all the Translation Lookasid... | MdePkg/Library/BaseCpuLib/X86CpuFlushTlb.c | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# CpuFlushTlb() for ARM
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
# Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserve... | MdePkg/Library/BaseCpuLib/AArch64/CpuFlushTlb.S | null | null | null | null | null |
source | edk2 | ;------------------------------------------------------------------------------
;
; CpuFlushTlb() for ARM
;
; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserve... | MdePkg/Library/BaseCpuLib/AArch64/CpuFlushTlb.asm | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# CpuSleep() for AArch64
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
# Portions copyright (c) 2011 - 2013, ARM LTD. All rights reserv... | MdePkg/Library/BaseCpuLib/AArch64/CpuSleep.S | null | null | null | null | null |
source | edk2 | ;------------------------------------------------------------------------------
;
; CpuSleep() for AArch64
;
; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; Portions copyright (c) 2011 - 2013, ARM LTD. All rights reserv... | MdePkg/Library/BaseCpuLib/AArch64/CpuSleep.asm | null | null | null | null | null |
source | edk2 | /** @file
Base Library CPU Functions for EBC
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/DebugLib.h>
/**
Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
Flushes all the Tran... | MdePkg/Library/BaseCpuLib/Ebc/CpuSleepFlushTlb.c | null | null | null | null | null |
source | edk2 | /** @file
CpuSleep function.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Places the CPU in a sleep state until an interrupt is received.
Places the CPU in a sleep state until an interrupt is received. If interrupts
are disab... | MdePkg/Library/BaseCpuLib/Ia32/CpuSleep.c | null | null | null | null | null |
source | edk2 | /** @file
CpuSleep function for Ia32/X64 GCC.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
/**
Places the CPU in a sleep state until an interrupt is received.
... | MdePkg/Library/BaseCpuLib/Ia32/CpuSleepGcc.c | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# CpuFlushTlb() for LoongArch64
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#----------------------------------------------------------------... | MdePkg/Library/BaseCpuLib/LoongArch/CpuFlushTlb.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# CpuSleep() for LoongArch64
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#-------------------------------------------------------------------... | MdePkg/Library/BaseCpuLib/LoongArch/CpuSleep.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# DisableFloatingPointUnits() for LoongArch64
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#--------------------------------------------------... | MdePkg/Library/BaseCpuLib/LoongArch/DisableFpu.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# EnableFloatingPointUnits() for LoongArch64
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#---------------------------------------------------... | MdePkg/Library/BaseCpuLib/LoongArch/EnableFpu.S | null | null | null | null | null |
source | edk2 | #------------------------------------------------------------------------------
#
# InitializeFloatingPointUnits() for LoongArch64
#
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#-----------------------------------------------... | MdePkg/Library/BaseCpuLib/LoongArch/InitializeFpu.S | null | null | null | null | null |
source | edk2 | //------------------------------------------------------------------------------
//
// CpuSleep for RISC-V
//
// Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//------------------------------------------------------------------... | MdePkg/Library/BaseCpuLib/RiscV/Cpu.S | null | null | null | null | null |
source | edk2 | // ------------------------------------------------------------------------------
//
// Enable FPU for RISC-V
//
// Copyright (c) 2024, Canonical Services Ltd.<BR>
// Copyright (c) 2025, Ventana Micro Systems Inc. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// ------------------------... | MdePkg/Library/BaseCpuLib/RiscV/InitializeFpu.S | null | null | null | null | null |
source | edk2 | /** @file
Null instance of CPU Library.
Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/CpuLib.h>
/**
Places the CPU in a sleep state until an interrupt is received.
Places the CPU in a sleep state until an interrupt is re... | MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c | null | null | null | null | null |
source | edk2 | /** @file
Null instance of CPU Library for IA32/X64 specific services.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/CpuLib.h>
/**
Initializes floating point units for requirement of UEFI specification.
This function init... | MdePkg/Library/BaseCpuLibNull/X86BaseCpuLibNull.c | null | null | null | null | null |
source | edk2 | /** @file
Null Base Debug Library instance with empty functions.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/DebugLib.h>
/**
Prints a debug message to the debug output device if the specified erro... | MdePkg/Library/BaseDebugLibNull/DebugLib.c | null | null | null | null | null |
source | edk2 | /** @file
Base Debug library instance base on Serial Port library.
It uses PrintLib to send debug messages to serial port device.
NOTE: If the Serial Port library enables hardware flow control, then a call
to DebugPrint() or DebugAssert() may hang if writes to the serial port are
being blocked. This may occ... | MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c | null | null | null | null | null |
source | edk2 | /** @file
Debug Print Error Level library instance that retrieves the current error
level from PcdDebugPrintErrorLevel. This generic library instance does not
support the setting of the global debug print error level mask for the platform.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>... | MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.c | null | null | null | null | null |
source | edk2 | /** @file
Provide generic extract guided section functions.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiPei.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/... | MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.c | null | null | null | null | null |
source | edk2 | /** @file
Flattened Device Tree Library.
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <libfdt/libfdt/libfdt.h>
#include <Library/FdtLib.h>
#include <Uefi/UefiBaseType.h>
/**
Convert UINT16 data of the FDT blob to little-endian
@... | MdePkg/Library/BaseFdtLib/FdtLib.c | null | null | null | null | null |
source | edk2 | /** @file
Root include file of C runtime library to support building the third-party
libfdt library.
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#... | MdePkg/Library/BaseFdtLib/LibFdtSupport.h | null | null | null | null | null |
source | edk2 | /** @file
ISO C implementations of strchr, strrchr and strtoul.
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2023 Pedro Falcato All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#define ULONG_MAX 0xFFFFFFFF /* Maximum unsigne... | MdePkg/Library/BaseFdtLib/LibFdtWrapper.c | null | null | null | null | null |
source | edk2 | /** @file
Include file to support building the third-party libfdt library.
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <LibFdtSupport.h> | MdePkg/Library/BaseFdtLib/limits.h | null | null | null | null | null |
source | edk2 | /** @file
Common header file shared by all source files.
This file includes package header files, dependent library classes.
Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Base.h>
#include <Library/IoLib.h>
#in... | MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicInternal.h | null | null | null | null | null |
source | edk2 | /** @file
High-level Io/Mmio functions.
All assertions for bit field operations are handled bit field functions in the
Base Library.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
The following IoLib instances contain the same copy of t... | MdePkg/Library/BaseIoLibIntrinsic/IoHighLevel.c | null | null | null | null | null |
source | edk2 | /** @file
Common I/O Library routines.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseIoLibIntrinsicInternal.h"
#include "IoLibTdx.h"
/**
Reads a 64-bit I/O port.
Reads the 64-bit I/O port specified by Port. The 64-bit... | MdePkg/Library/BaseIoLibIntrinsic/IoLib.c | null | null | null | null | null |
source | edk2 | /** @file
I/O Library for ARM.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>
SPDX-Licens... | MdePkg/Library/BaseIoLibIntrinsic/IoLibArmVirt.c | null | null | null | null | null |
source | edk2 | /** @file
I/O Library for EBC.
EBC does not support port I/O. All APIs in this file ASSERT().
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseIoLibIntrinsicIntern... | MdePkg/Library/BaseIoLibIntrinsic/IoLibEbc.c | null | null | null | null | null |
source | edk2 | /** @file
IoFifo read/write routines.
Copyright (c) 2021 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseIoLibIntrinsicInternal.h"
#include <Uefi/UefiBaseType.h>
/**
Reads an 8-bit I/O port fifo into a block of memory.
Reads the 8-bit I/O... | MdePkg/Library/BaseIoLibIntrinsic/IoLibFifo.c | null | null | null | null | null |
source | edk2 | /** @file
IoFifo read/write routines.
Copyright (c) 2021 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseIoLibIntrinsicInternal.h"
#include "IoLibSev.h"
#include "IoLibTdx.h"
#include <Uefi/UefiBaseType.h>
#include <Library/TdxLib.h>
/**
Rea... | MdePkg/Library/BaseIoLibIntrinsic/IoLibFifoCc.c | null | null | null | null | null |
source | edk2 | /** @file
I/O Library. This file has compiler specifics for GCC as there is no
ANSI C standard for doing IO.
GCC - uses EFIAPI assembler. __asm__ calls GAS. __volatile__ makes sure the
compiler puts the assembler in this exact location. The complex GNUC
operations are not optimzed. It would be possible to al... | MdePkg/Library/BaseIoLibIntrinsic/IoLibGcc.c | null | null | null | null | null |
source | edk2 | /** @file
TDX I/O Library routines.
Copyright (c) 2020-2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseIoLibIntrinsicInternal.h"
#include <Uefi/UefiBaseType.h>
#include <Include/IndustryStandard/Tdx.h>
#include <Library/TdxLib.h>
#include <Registe... | MdePkg/Library/BaseIoLibIntrinsic/IoLibInternalTdx.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 <Library/BaseLib.h>
#include "BaseIoLibIntrinsicInternal.h"
#include "IoLibTdx.h"
/**
Check if it is Tdx guest.
@return TRUE It is Tdx guest
@return FALSE It is not Tdx ... | MdePkg/Library/BaseIoLibIntrinsic/IoLibInternalTdxNull.c | null | null | null | null | null |
source | edk2 | /** @file
I/O Library MMIO Buffer Functions.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseIoLibIntrinsicInternal.h"
/**
Copy data from the MMIO region to system memory by using 8-bit access.
Copy data from the MMIO r... | MdePkg/Library/BaseIoLibIntrinsic/IoLibMmioBuffer.c | null | null | null | null | null |
source | edk2 | /** @file
I/O Library. This file has compiler specifics for Microsft C as there is no
ANSI C standard for doing IO.
MSC - uses intrinsic functions and the optimize will remove the function call
overhead.
We don't advocate putting compiler specifics in libraries or drivers but there
is no other way to make... | MdePkg/Library/BaseIoLibIntrinsic/IoLibMsc.c | null | null | null | null | null |
source | edk2 | /** @file
I/O library for non I/O read and write access (memory map I/O read and
write only) architecture, such as RISC-V and LoongArch processor.
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
Copyright (c) 2017,... | MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c | null | null | null | null | null |
source | edk2 | /** @file
Header file for SEV IO library.
Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
/**
Reads an 8-bit I/O port fifo into a block of memory.
R... | MdePkg/Library/BaseIoLibIntrinsic/IoLibSev.h | null | null | null | null | null |
source | edk2 | /** @file
Header file for Tdx IO library.
Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
/**
Check if it is Tdx guest.
@return TRUE It is Tdx guest
@return FALSE It is not Tdx guest
**/
BOOLEAN
EFIAPI
IsTdxGuest... | MdePkg/Library/BaseIoLibIntrinsic/IoLibTdx.h | null | null | null | null | null |
source | edk2 | #
# Copyright (c) 2014-2018, Linaro Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#
.text
.align 3
GCC_ASM_EXPORT(MmioRead8Internal)
GCC_ASM_EXPORT(MmioWrite8Internal)
GCC_ASM_EXPORT(MmioRead16Internal)
GCC_ASM_EXPORT(MmioWrite16Internal)
GCC_ASM_EXPORT(MmioRead32Internal)
GCC_ASM... | MdePkg/Library/BaseIoLibIntrinsic/AArch64/ArmVirtMmio.S | null | null | null | null | null |
source | edk2 | ;
; Copyright (c) 2014-2018, Linaro Limited. All rights reserved.
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
AREA IoLibMmio, CODE, READONLY
EXPORT MmioRead8Internal
EXPORT MmioWrite8Internal
EXPORT MmioRead16Internal
EXPORT MmioWrite16Internal
EXPORT MmioRead32Internal
EXPORT MmioWrite32Internal
EXPORT Mmi... | MdePkg/Library/BaseIoLibIntrinsic/AArch64/ArmVirtMmio.asm | null | null | null | null | null |
source | edk2 | /** @file
Math worker functions.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BaseLibInternals.h"
/**
Shifts a 64-bit integer right between 0 and 63 bits. The high bits are filled
with the original integer's bit 63. The s... | MdePkg/Library/BaseLib/ARShiftU64.c | null | null | null | null | null |
source | edk2 | /** @file
Null stub of SevLib
Copyright (c) 2025, Advanced Micro Devices, Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Uefi/UefiBaseType.h>
/**
Probe if running as some kind of SEV guest.
@return FALSE Not running as a guest unde... | MdePkg/Library/BaseLib/AmdSevNull.c | null | null | null | null | null |
source | edk2 | /** @file
Declaration of internal functions in BaseLib.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include ... | MdePkg/Library/BaseLib/BaseLibInternals.h | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.