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

Go to the source code of this file.

Functions

STATIC VOID * AllocateMemoryBelow4G (IN EFI_MEMORY_TYPE MemoryType, IN UINTN Size)
 
VOID *EFIAPI AllocateAcpiNvsPool (IN UINTN AllocationSize)
 
EFI_STATUS EFIAPI LockBoxDxeLibInitialize (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.

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

Definition in file LockBoxDxe.c.

Function Documentation

◆ AllocateAcpiNvsPool()

VOID *EFIAPI AllocateAcpiNvsPool ( IN UINTN  AllocationSize)

Allocates a buffer of type EfiACPIMemoryNVS.

Allocates the number bytes specified by AllocationSize of type EfiACPIMemoryNVS and returns a pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the request, then NULL is returned.

Parameters
AllocationSizeThe number of bytes to allocate.
Returns
A pointer to the allocated buffer or NULL if allocation fails.

Definition at line 97 of file LockBoxDxe.c.

◆ AllocateMemoryBelow4G()

STATIC VOID * AllocateMemoryBelow4G ( IN EFI_MEMORY_TYPE  MemoryType,
IN UINTN  Size 
)

Allocate memory below 4G memory address.

This function allocates memory below 4G memory address.

Parameters
MemoryTypeMemory type of memory to allocate.
SizeSize of memory to allocate.
Returns
Allocated address for output.

Definition at line 31 of file LockBoxDxe.c.

◆ LockBoxDxeLibInitialize()

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

Definition at line 106 of file LockBoxDxe.c.