TianoCore EDK2 master
Loading...
Searching...
No Matches
MemoryAttributeManagerDxe.c File Reference

Go to the source code of this file.

Data Structures

struct  HII_VENDOR_DEVICE_PATH
 

Functions

STATIC EFI_STATUS EFIAPI InstallHiiPages (VOID)
 
STATIC VOID UninstallEfiMemoryAttributeProtocol (VOID)
 
EFI_STATUS EFIAPI MemoryAttributeManagerInitialize (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

UINT8 MemoryAttributeManagerDxeHiiBin []
 
UINT8 MemoryAttributeManagerDxeStrings []
 
STATIC HII_VENDOR_DEVICE_PATH mVendorDevicePath
 

Detailed Description

Copyright (c) 2023-2024, Mario Bălănică mario.nosp@m.bala.nosp@m.nica0.nosp@m.2@gm.nosp@m.ail.c.nosp@m.om

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file MemoryAttributeManagerDxe.c.

Function Documentation

◆ InstallHiiPages()

STATIC EFI_STATUS EFIAPI InstallHiiPages ( VOID  )

Installs HII page for user configuration.

Return values
EFI_SUCCESSThe operation completed successfully.

Definition at line 57 of file MemoryAttributeManagerDxe.c.

◆ MemoryAttributeManagerInitialize()

EFI_STATUS EFIAPI MemoryAttributeManagerInitialize ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The entry point for MemoryAttributeManagerDxe driver.

Parameters
[in]ImageHandleThe image handle of the driver.
[in]SystemTableThe system table.
Return values
EFI_SUCCESSThe operation completed successfully.

Definition at line 162 of file MemoryAttributeManagerDxe.c.

◆ UninstallEfiMemoryAttributeProtocol()

STATIC VOID UninstallEfiMemoryAttributeProtocol ( VOID  )

This function uninstalls the EFI_MEMORY_ATTRIBUTE_PROTOCOL from CpuDxe's handle.

Definition at line 103 of file MemoryAttributeManagerDxe.c.

Variable Documentation

◆ mVendorDevicePath

STATIC HII_VENDOR_DEVICE_PATH mVendorDevicePath
Initial value:
= {
{
{
{
(UINT8)(sizeof (VENDOR_DEVICE_PATH)),
(UINT8)((sizeof (VENDOR_DEVICE_PATH)) >> 8)
}
},
MEMORY_ATTRIBUTE_MANAGER_FORMSET_GUID
},
{
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
{
(UINT8)(END_DEVICE_PATH_LENGTH),
(UINT8)((END_DEVICE_PATH_LENGTH) >> 8)
}
}
}
#define HARDWARE_DEVICE_PATH
Definition: DevicePath.h:68
#define HW_VENDOR_DP
Definition: DevicePath.h:133

Definition at line 26 of file MemoryAttributeManagerDxe.c.