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
Helper functions to parse HID report descriptor and items.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbMouse.h"
/**
Get next HID item from report descriptor.
This function retrieves next HID item from report de... | MdeModulePkg/Bus/Usb/UsbMouseDxe/MouseHid.c | null | null | null | null | null |
source | edk2 | /** @file
USB Mouse Driver that manages USB mouse and produces Simple Pointer Protocol.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbMouse.h"
EFI_DRIVER_BINDING_PROTOCOL gUsbMouseDriverBinding = {
USBMouseDriverBindingSuppo... | MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c | null | null | null | null | null |
source | edk2 | /** @file
Helper routine and corresponding data struct used by USB Mouse Driver.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Uefi.h>
#include <Protocol/SimplePointer.h>
#include <Protocol/UsbIo.h>
#include <Protoco... | MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.h | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB network common driver
component name definitions
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DriverBinding.h"
extern EFI_DRIVER_BINDING_PROTOCOL gNetworkCommonDriverBi... | MdeModulePkg/Bus/Usb/UsbNetwork/NetworkCommon/ComponentName.c | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB network binding driver
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DriverBinding.h"
PXE_SW_UNDI *gPxe = NULL;
NIC_DEVICE *gLanDeviceList[MAX_LAN_INTERFACE];
UINT32 ... | MdeModulePkg/Bus/Usb/UsbNetwork/NetworkCommon/DriverBinding.c | null | null | null | null | null |
source | edk2 | /** @file
Header file for for USB network common driver
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/Uef... | MdeModulePkg/Bus/Usb/UsbNetwork/NetworkCommon/DriverBinding.h | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for UNDI command based on UEFI specification.
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DriverBinding.h"
// API table, defined in UEFI specification
API_FUNC gUndiApiTable[] =... | MdeModulePkg/Bus/Usb/UsbNetwork/NetworkCommon/PxeFunction.c | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB Ecm Driver Component Name definitions
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbCdcEcm.h"
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE gUsbEcmDriverNameTab... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcEcm/ComponentName.c | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB Ethernet Control Model
Driver
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbCdcEcm.h"
EFI_DRIVER_BINDING_PROTOCOL gUsbEcmDriverBinding = {
UsbEcmDriverSupported,
U... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcEcm/UsbCdcEcm.c | null | null | null | null | null |
source | edk2 | /** @file
Header file contains code for USB Ethernet Control Model
driver definitions
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesT... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcEcm/UsbCdcEcm.h | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB Ethernet descriptor
and specific requests implement.
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbCdcEcm.h"
/**
Load All of device descriptor.
@param[in] UsbIo ... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcEcm/UsbEcmFunction.c | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB Ncm Driver Component Name definitions
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbCdcNcm.h"
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE gUsbNcmDriverNameTab... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcNcm/ComponentName.c | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB Network Control Model
binding driver
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbCdcNcm.h"
EFI_DRIVER_BINDING_PROTOCOL gUsbNcmDriverBinding = {
UsbNcmDriverSuppor... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcNcm/UsbCdcNcm.c | null | null | null | null | null |
source | edk2 | /** @file
Header file for USB Network Control Model driver
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcNcm/UsbCdcNcm.h | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB Ethernet descriptor
and specific requests implement.
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbCdcNcm.h"
/**
Load All of device descriptor.
@param[in] UsbIo ... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcNcm/UsbNcmFunction.c | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB RNDIS Driver Component
Name definitions
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbRndis.h"
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE gUsbRndisDriverN... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbRndis/ComponentName.c | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB Remote Network Driver
Interface Spec. Driver Binding
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbRndis.h"
EFI_DRIVER_BINDING_PROTOCOL gUsbRndisDriverBinding = {
U... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbRndis/UsbRndis.c | null | null | null | null | null |
source | edk2 | /** @file
Header file for for USB Rndis driver
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbRndis/UsbRndis.h | null | null | null | null | null |
source | edk2 | /** @file
This file contains code for USB Ethernet descriptor
and specific requests implement.
Copyright (c) 2023, American Megatrends International LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UsbRndis.h"
UINT16 gStopBulkInCnt = 0;
UINT16 gBlockBulkInCnt = 0;
... | MdeModulePkg/Bus/Usb/UsbNetwork/UsbRndis/UsbRndisFunction.c | null | null | null | null | null |
source | edk2 | /** @file
The internal header file includes the common header files, defines
internal structure and functions used by DxeCore module.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiDxe.h>
#include <Protocol/Loaded... | MdeModulePkg/Core/Dxe/DxeMain.h | null | null | null | null | null |
source | edk2 | /** @file
DXE Dispatcher Dependency Evaluator.
This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine
if a driver can be scheduled for execution. The criteria for
schedulability is that the dependency expression is satisfied.
Copyright (c) 2006 - 2018, Intel Corporation. All righ... | MdeModulePkg/Core/Dxe/Dispatcher/Dependency.c | null | null | null | null | null |
source | edk2 | /** @file
DXE Dispatcher.
Step #1 - When a FV protocol is added to the system every driver in the FV
is added to the mDiscoveredList. The SOR, Before, and After Depex are
pre-processed as drivers are added to the mDiscoveredList. If an Apriori
file exists in the FV those drivers... | MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | null | null | null | null | null |
source | edk2 | /** @file
DXE Core Main Entry Point
Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
//
// DXE Core Global Variables for Protocols from PEI
//
EFI_HANDLE mDecompressHandle = NULL;
//
// DXE Core globals for Architecture ... | MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | null | null | null | null | null |
source | edk2 | /** @file
This file deals with Architecture Protocol (AP) registration in
the Dxe Core. The mArchProtocols[] array represents a list of
events that represent the Architectural Protocols.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#inc... | MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Event support functions implemented in this file.
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Paten... | MdeModulePkg/Core/Dxe/Event/Event.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Event support functions and structure.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define VALID_TPL(a) ((a) <= TPL_HIGH_LEVEL)
extern UINTN g... | MdeModulePkg/Core/Dxe/Event/Event.h | null | null | null | null | null |
source | edk2 | /** @file
Core Timer Services
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Event.h"
//
// Internal data
//
LIST_ENTRY mEfiTimerList = INITIALIZE_LIST_HEAD_VARIABLE (mEfiTimerList);
EFI_LOCK mEfiTim... | MdeModulePkg/Core/Dxe/Event/Timer.c | null | null | null | null | null |
source | edk2 | /** @file
Task priority (TPL) functions.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Event.h"
/**
Set Interrupt State.
@param Enable The state of enable or disable interrupt
**/
VOID
CoreSetInterrupt... | MdeModulePkg/Core/Dxe/Event/Tpl.c | null | null | null | null | null |
source | edk2 | /** @file
FFS file access utilities.
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "FwVolDriver.h"
/**
Get the FFS file state by checking the highest bit set in the header's state field.
@param ErasePolar... | MdeModulePkg/Core/Dxe/FwVol/Ffs.c | null | null | null | null | null |
source | edk2 | /** @file
Firmware File System driver that produce Firmware Volume protocol.
Layers on top of Firmware Block protocol to produce a file abstraction
of FV based files.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#in... | MdeModulePkg/Core/Dxe/FwVol/FwVol.c | null | null | null | null | null |
source | edk2 | /** @file
Implements get/set firmware volume attributes
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "FwVolDriver.h"
/**
Retrieves attributes, insures positive polarity of attribute bits, returns
resulting... | MdeModulePkg/Core/Dxe/FwVol/FwVolAttrib.c | null | null | null | null | null |
source | edk2 | /** @file
Firmware File System protocol. Layers on top of Firmware
Block protocol to produce a file abstraction of FV based files.
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define FV2_DEVICE_SIGNATURE SIGNATURE_32 ('_',... | MdeModulePkg/Core/Dxe/FwVol/FwVolDriver.h | null | null | null | null | null |
source | edk2 | /** @file
Implements functions to read firmware file
Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "FwVolDriver.h"
/**
Required Alignment Alignment Value in FFS FFS_ATTRIB_DATA_ALIGNMENT2 Alignment Value ... | MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c | null | null | null | null | null |
source | edk2 | /** @file
Implements functions to write firmware file
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "FwVolDriver.h"
/**
Writes one or more files to the firmware volume.
@param This Indic... | MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c | null | null | null | null | null |
source | edk2 | /** @file
Implementations for Firmware Volume Block protocol.
It consumes FV HOBs and creates read-only Firmare Volume Block protocol
instances for each of them.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#includ... | MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c | null | null | null | null | null |
source | edk2 | /** @file
Firmware Volume Block protocol functions.
Consumes FV hobs and creates appropriate block protocols.
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define FVB_DEVICE_SIGNATURE SIGNATURE_32('_','F','V','B')
typedef ... | MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.h | null | null | null | null | null |
source | edk2 | /** @file
The file contains the GCD related services in the EFI Boot Services Table.
The GCD services are used to manage the memory and I/O regions that
are accessible to the CPU that is executing the DXE core.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-... | MdeModulePkg/Core/Dxe/Gcd/Gcd.c | null | null | null | null | null |
source | edk2 | /** @file
GCD Operations and data structure used to
convert from GCD attributes to EFI Memory Map attributes.
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// GCD Operations
//
#define GCD_MEMORY_SPACE_OPERATION 0x20
#def... | MdeModulePkg/Core/Dxe/Gcd/Gcd.h | null | null | null | null | null |
source | edk2 | /** @file
Support functions to connect/disconnect UEFI Driver model Protocol
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Handle.h"
//
// Driver Support Functions
//
/**
Connects one or more drivers to a c... | MdeModulePkg/Core/Dxe/Hand/DriverSupport.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI handle & protocol handling.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Handle.h"
//
// mProtocolDatabase - A list of all protocols in the system. (simple list for now)
// gHandleList ... | MdeModulePkg/Core/Dxe/Hand/Handle.c | null | null | null | null | null |
source | edk2 | /** @file
Support functions for managing protocol.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define EFI_HANDLE_SIGNATURE SIGNATURE_32('h','n','d','l')
///
/// IHANDLE - contains a list of protocol handles
///
typedef str... | MdeModulePkg/Core/Dxe/Hand/Handle.h | null | null | null | null | null |
source | edk2 | /** @file
Locate handle functions
Copyright (c) 2006 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Handle.h"
//
// ProtocolRequest - Last LocateHandle request ID
//
UINTN mEfiLocateHandleRequest = 0;
//
// Internal prototypes
... | MdeModulePkg/Core/Dxe/Hand/Locate.c | null | null | null | null | null |
source | edk2 | /** @file
Support functions for UEFI protocol notification infrastructure.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Handle.h"
#include "Even... | MdeModulePkg/Core/Dxe/Hand/Notify.c | null | null | null | null | null |
source | edk2 | /** @file
Core image handling services to load and unload PeImage.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Image.h"
//
// Module Globals
//
LOADED_IMAGE_PRIVATE_DATA *mCurrentImage = NULL;
typedef stru... | MdeModulePkg/Core/Dxe/Image/Image.c | null | null | null | null | null |
source | edk2 | /** @file
Data structure and functions to load and unload PeImage.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// Private Data Types
//
#define IMAGE_FILE_HANDLE_SIGNATURE SIGNATURE_32('i','m','g','f')
typedef struct {
... | MdeModulePkg/Core/Dxe/Image/Image.h | null | null | null | null | null |
source | edk2 | /** @file
DXE Core library services.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
//
// Lock Stuff
//
/**
Initialize a basic mutual exclusion lock. Each lock
provides mutual exclusion access at it's task priorit... | MdeModulePkg/Core/Dxe/Library/Library.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Heap Guard functions.
Copyright (c) 2017-2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Imem.h"
#include "HeapGuard.h"
//
// Global to avoid infinite reentrance of memory allocation when updating
// page table attrib... | MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | null | null | null | null | null |
source | edk2 | /** @file
Data type, macros and function prototypes of heap guard feature.
Copyright (c) 2017-2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// Following macros are used to define and access the guarded memory bitmap
// table.
//
// To simplify t... | MdeModulePkg/Core/Dxe/Mem/HeapGuard.h | null | null | null | null | null |
source | edk2 | /** @file
Data structure and functions to allocate and free memory space.
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
//
// MEMORY_MAP_ENTRY
//
#define MEMORY_MAP_SIGNATURE SIGNATURE_32('m','m','a','p')
typedef struct {
U... | MdeModulePkg/Core/Dxe/Mem/Imem.h | null | null | null | null | null |
source | edk2 | /** @file
Global data used in memory service
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
//
// MemoryLock - synchronizes access to the memory map and pool lists
//
EFI_LOCK gMemoryLock = EFI_INITIALIZE_LOCK_VARIABLE ... | MdeModulePkg/Core/Dxe/Mem/MemData.c | null | null | null | null | null |
source | edk2 | /** @file
Support routines for UEFI memory profile.
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Imem.h"
#define IS_UEFI_MEMORY_PROFILE_ENABLED ((PcdGet8 (PcdMemoryProfilePropertyMask) & BIT0) != 0)
#de... | MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Memory page management functions.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Imem.h"
#include "HeapGuard.h"
#include <Pi/PiDxeCis.h>
//
// Entry for tracking the memory regions for each memor... | MdeModulePkg/Core/Dxe/Mem/Page.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Memory pool management functions.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#include "Imem.h"
#include "HeapGuard.h"
STATIC EFI_LOCK mPoolMemoryLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
#def... | MdeModulePkg/Core/Dxe/Mem/Pool.c | null | null | null | null | null |
source | edk2 | /** @file
Support functions for managing debug image info table when loading and unloading
images.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
EFI_DEBUG_IMAGE_INFO_TABLE_HEADER mDebugInfoTableHeader = {
0, ... | MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Miscellaneous boot Services InstallConfigurationTable service
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#define CONFIG_TABLE_SIZE_INCREASED 0x10
UINTN mSystemTableAllocateSize = 0;
/**
Boot Serv... | MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI MemoryAttributesTable support
Copyright (c) 2016 - 2018, Intel Corporation. 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/UefiBoot... | MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Memory Protection support.
If the UEFI image is page aligned, the image code section is set to read only
and the image data section is set to non-executable.
1) This policy is applied for all UEFI image including boot service driver,
runtime driver or application.
2) This policy is appli... | MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Miscellaneous boot Services SetWatchdogTimer service implementation
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeMain.h"
#define WATCHDOG_TIMER_CALIBRATE_PER_SECOND 10000000
/**
Sets the system's watchdog ti... | MdeModulePkg/Core/Dxe/Misc/SetWatchdogTimer.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Miscellaneous boot Services Stall service implementation
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
//
// Include statements
//
#include "DxeMain.h"
/**
Internal worker function to call the Metronome Architectural Proto... | MdeModulePkg/Core/Dxe/Misc/Stall.c | null | null | null | null | null |
source | edk2 | /** @file
Section Extraction Protocol implementation.
Stream database is implemented as a linked list of section streams,
where each stream contains a linked list of children, which may be leaves or
encapsulations.
Children that are encapsulations generate new stream entries
when they are created. Stream... | MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c | null | null | null | null | null |
source | edk2 | /** @file
Generic version of arch-specific functionality for DxeLoad.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2023, Google, LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeIpl.h"
#include <Ppi/MemoryAttribute.h>
/**
Trans... | MdeModulePkg/Core/DxeIplPeim/DxeHandoff.c | null | null | null | null | null |
source | edk2 | /** @file
Master header file for DxeIpl PEIM. All source files in this module should
include this file for common definitions.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiPei.h>
#include <Ppi/DxeIpl.h>
#include ... | MdeModulePkg/Core/DxeIplPeim/DxeIpl.h | null | null | null | null | null |
source | edk2 | /** @file
Last PEIM.
Responsibility of this module is to load the DXE Core from a Firmware Volume.
Copyright (c) 2016 HP Development Company, L.P.
Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeIpl.h"
//
// Module Globals used... | MdeModulePkg/Core/DxeIplPeim/DxeLoad.c | null | null | null | null | null |
source | edk2 | /** @file
Ia32-specific functionality for DxeLoad.
Copyright (c) 2006 - 2023, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeIpl.h"
#include "VirtualMemory.h"
#define IDT_ENTRY_COUNT 32
typ... | MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | null | null | null | null | null |
source | edk2 | /** @file
x64-specifc functionality for DxeLoad.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DxeIpl.h"
#include "X64/VirtualMemory.h"
/**
Transfers control to DxeCore.
This function performs a CPU architecture specific op... | MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c | null | null | null | null | null |
source | edk2 | /** @file
x64 Virtual Memory Management Services in the form of an IA-32 driver.
Used to establish a 1:1 Virtual to Physical Mapping that is required to
enter Long Mode (x64 64-bit mode).
While we make a 1:1 mapping (identity mapping) for all physical pages
we still need to use the MTRR's to ensure that the ... | MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 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... | MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h | null | null | null | null | null |
source | edk2 | /** @file
Definition of Pei Core Structures and Services
Copyright (c) 2006 - 2025, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiPei.h>
#include <Ppi/DxeIpl.h>
#include <Ppi/DelayedDispatch.h>
#include <Ppi/EndOfPeiPhase.h>
#include <Ppi/Mem... | MdeModulePkg/Core/Pei/PeiMain.h | null | null | null | null | null |
source | edk2 | /** @file
This module provide function for ascertaining and updating the boot mode:
GetBootMode()
SetBootMode()
See PI Specification volume I, chapter 9 Boot Paths for additional information
on the boot mode.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-... | MdeModulePkg/Core/Pei/BootMode/BootMode.c | null | null | null | null | null |
source | edk2 | /** @file
The default version of EFI_PEI_CPU_IO_PPI support published by PeiServices in
PeiCore initialization phase.
EFI_PEI_CPU_IO_PPI is installed by some platform or chipset-specific PEIM that
abstracts the processor-visible I/O operations. When PeiCore is started, the
default version of EFI_PEI_CPU_IO_P... | MdeModulePkg/Core/Pei/CpuIo/CpuIo.c | null | null | null | null | null |
source | edk2 | /** @file
PEI Dispatcher Dependency Evaluator
This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine
if a driver can be scheduled for execution. The criteria to be scheduled is
that the dependency expression is satisfied.
Copyright (c) 2006 - 2019, Intel Corporation. All rights r... | MdeModulePkg/Core/Pei/Dependency/Dependency.c | null | null | null | null | null |
source | edk2 | /** @file
This module contains data specific to dependency expressions
and local function prototypes.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#define MAX_GRAMMAR_SIZE 64
//
// type definitions
//
typedef UINT8 DEPENDE... | MdeModulePkg/Core/Pei/Dependency/Dependency.h | null | null | null | null | null |
source | edk2 | /** @file
EFI PEI Core dispatch services
Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PeiMain.h"
//
// Utility global variables... | MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | null | null | null | null | null |
source | edk2 | /** @file
Pei Core Firmware File System service routines.
Copyright (c) 2015 HP Development Company, L.P.
Copyright (c) 2006 - 2025, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "FwVol.h"
EFI_PEI_NOTIFY_DESCRIPTOR mNotifyOnFvInfoList[] = {
{
EFI_PEI_... | MdeModulePkg/Core/Pei/FwVol/FwVol.c | null | null | null | null | null |
source | edk2 | /** @file
The internal header file for firmware volume related definitions.
Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include "PeiMain.h"
#define GET_OCCUPIED_SIZE(ActualSize, Alignment) \
((ActualSize) + (((Alignment) ... | MdeModulePkg/Core/Pei/FwVol/FwVol.h | null | null | null | null | null |
source | edk2 | /** @file
This module provide Hand-Off Block manipulation.
Copyright (c) 2006 - 2025, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PeiMain.h"
/**
Gets the pointer to the HOB List.
@param PeiServices An indirect pointer to the EFI_PE... | MdeModulePkg/Core/Pei/Hob/Hob.c | null | null | null | null | null |
source | edk2 | /** @file
Pei Core Load Image Support
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PeiMain.h"
EFI_PEI_LOAD_FILE_PPI mPeiLoadImagePpi = {
PeiLoadImageLoadImageWrapper
};
EFI_PEI_PPI_DESCRIPTOR gPpiLoadFilePpiList = {
(EFI_P... | MdeModulePkg/Core/Pei/Image/Image.c | null | null | null | null | null |
source | edk2 | /** @file
EFI PEI Core memory services
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PeiMain.h"
/**
Initialize the memory services.
@param PrivateData Points to PeiCore's private instance data.
@param SecCoreData P... | MdeModulePkg/Core/Pei/Memory/MemoryServices.c | null | null | null | null | null |
source | edk2 | /** @file
The default version of EFI_PEI_PCI_CFG2_PPI support published by PeiServices in
PeiCore initialization phase.
EFI_PEI_PCI_CFG2_PPI is installed by the PEIM which supports a PCI root bridge.
When PeiCore is started, the default version of EFI_PEI_PCI_CFG2_PPI will be assigned
to PeiServices table.
... | MdeModulePkg/Core/Pei/PciCfg2/PciCfg2.c | null | null | null | null | null |
source | edk2 | /** @file
Pei Core Main Entry Point
Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PeiMain.h"
EFI_PEI_PPI_DESCRIPTOR mMemoryDiscoveredPpi = {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEfiPeiMemory... | MdeModulePkg/Core/Pei/PeiMain/PeiMain.c | null | null | null | null | null |
source | edk2 | /** @file
EFI PEI Core PPI services
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PeiMain.h"
/**
Migrate Pointer from the temporary memory to PEI installed memory.
@param Pointer Pointer to the Pointer needs to be co... | MdeModulePkg/Core/Pei/Ppi/Ppi.c | null | null | null | null | null |
source | edk2 | /** @file
Pei Core Reset System Support
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PeiMain.h"
/**
Core version of the Reset System
@param PeiServices An indirect pointer to the EFI_PEI_SERVICES table publi... | MdeModulePkg/Core/Pei/Reset/Reset.c | null | null | null | null | null |
source | edk2 | /** @file
EFI PEI Core Security services
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PeiMain.h"
EFI_PEI_NOTIFY_DESCRIPTOR mNotifyList = {
EFI_PEI_PPI_DESCRIPTOR_NOTIFY_DISPATCH | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
&gEfi... | MdeModulePkg/Core/Pei/Security/Security.c | null | null | null | null | null |
source | edk2 | /** @file
Pei Core Status Code Support
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PeiMain.h"
/**
Core version of the Status Code reporter
@param PeiServices An indirect pointer to the EFI_PEI_SERVICES table published... | MdeModulePkg/Core/Pei/StatusCode/StatusCode.c | null | null | null | null | null |
source | edk2 | /** @file
SMM Driver Dispatcher Dependency Evaluator
This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine
if a driver can be scheduled for execution. The criteria for
schedulability is that the dependency expression is satisfied.
Copyright (c) 2009 - 2018, Intel Corporation. ... | MdeModulePkg/Core/PiSmmCore/Dependency.c | null | null | null | null | null |
source | edk2 | /** @file
SMM Driver Dispatcher.
Step #1 - When a FV protocol is added to the system every driver in the FV
is added to the mDiscoveredList. The Before, and After Depex are
pre-processed as drivers are added to the mDiscoveredList. If an Apriori
file exists in the FV those drive... | MdeModulePkg/Core/PiSmmCore/Dispatcher.c | null | null | null | null | null |
source | edk2 | /** @file
SMM handle & protocol handling.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PiSmmCore.h"
//
// mProtocolDatabase - A list of all protocols in the system. (simple list for now)
// gHandleList - A list... | MdeModulePkg/Core/PiSmmCore/Handle.c | null | null | null | null | null |
source | edk2 | /** @file
UEFI Heap Guard functions.
Copyright (c) 2017-2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "HeapGuard.h"
//
// Global to avoid infinite reentrance of memory allocation when updating
// page table attributes, which may need allocating pages f... | MdeModulePkg/Core/PiSmmCore/HeapGuard.c | null | null | null | null | null |
source | edk2 | /** @file
Data structure and functions to allocate and free memory space.
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include "PiSmmCore.h"
//
// Following macros are used to define and access the guarded memory bitmap
// table.
/... | MdeModulePkg/Core/PiSmmCore/HeapGuard.h | null | null | null | null | null |
source | edk2 | /** @file
System Management System Table Services SmmInstallConfigurationTable service
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PiSmmCore.h"
#define CONFIG_TABLE_SIZE_INCREASED 0x10
UINTN mSmmSystemTableAllocateSize = ... | MdeModulePkg/Core/PiSmmCore/InstallConfigurationTable.c | null | null | null | null | null |
source | edk2 | /** @file
Locate handle functions
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PiSmmCore.h"
//
// ProtocolRequest - Last LocateHandle request ID
//
UINTN mEfiLocateHandleRequest = 0;
//
// Internal prototypes
//
typedef st... | MdeModulePkg/Core/PiSmmCore/Locate.c | null | null | null | null | null |
source | edk2 | /** @file
PI SMM MemoryAttributes support
Copyright (c) 2016, Intel Corporation. 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/UefiBootServicesTa... | MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c | null | null | null | null | null |
source | edk2 | /** @file
Support functions for UEFI protocol notification infrastructure.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PiSmmCore.h"
/**
Signal event for every protocol in protocol entry.
@param Prot P... | MdeModulePkg/Core/PiSmmCore/Notify.c | null | null | null | null | null |
source | edk2 | /** @file
SMM Memory page management functions.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PiSmmCore.h"
#include <Library/SmmServicesTableLib.h>
#define TRUNCATE_TO_PAGES(a) ((a) >> EFI_PAGE_SHIFT)
LIST_ENTRY mSmmMemoryM... | MdeModulePkg/Core/PiSmmCore/Page.c | null | null | null | null | null |
source | edk2 | /** @file
SMM Core Main Entry Point
Copyright (c) 2009 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PiSmmCore.h"
//
// Physical pointer to private structure shared between SMM IPL and the SMM Core
//
SMM_CORE_PRIVATE_DATA *gSmmCorePrivate;
//... | MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | null | null | null | null | null |
source | edk2 | /** @file
The internal header file includes the common header files, defines
internal structure and functions used by SmmCore module.
Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
#include <PiSmm.h>
#include <Protocol/Dx... | MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | null | null | null | null | null |
source | edk2 | /** @file
The internal header file that declared a data structure that is shared
between the SMM IPL and the SMM Core.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#pragma once
///
/// Define values for the communications buffer used... | MdeModulePkg/Core/PiSmmCore/PiSmmCorePrivateData.h | null | null | null | null | null |
source | edk2 | /** @file
SMM IPL that produces SMM related runtime protocols and load the SMM Core into SMRAM
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiDxe.h>
#include <Protocol/SmmBase2.h>
#include <Protocol/SmmCommunication.h>
#inclu... | MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c | null | null | null | null | null |
source | edk2 | /** @file
SMM Memory pool management functions.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PiSmmCore.h"
LIST_ENTRY mSmmPoolLists[SmmPoolTypeMax][MAX_POOL_INDEX];
//
// To cache the SMRAM base since when Loading modules At ... | MdeModulePkg/Core/PiSmmCore/Pool.c | null | null | null | null | null |
source | edk2 | /** @file
SMI management.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "PiSmmCore.h"
//
// mSmiManageCallingDepth is used to track the depth of recursive calls of SmiManage.
//
UINTN mSmiManageCallingDepth = 0;
LIST_ENTRY m... | MdeModulePkg/Core/PiSmmCore/Smi.c | 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.