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

Go to the source code of this file.

Macros

#define _DBGMSGID_   "[PRMSSDTINSTALL]"
 

Functions

EFI_STATUS InstallPrmSsdt (IN CONST UINT8 *OemId)
 
EFI_STATUS EFIAPI PrmSsdtInstallEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

This file contains a sample implementation of the Platform Runtime Mechanism (PRM) SSDT Install library.

Copyright (c) Microsoft Corporation Copyright (c) 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PrmSsdtInstallDxe.c.

Macro Definition Documentation

◆ _DBGMSGID_

#define _DBGMSGID_   "[PRMSSDTINSTALL]"

Definition at line 20 of file PrmSsdtInstallDxe.c.

Function Documentation

◆ InstallPrmSsdt()

EFI_STATUS InstallPrmSsdt ( IN CONST UINT8 *  OemId)

Installs the PRM SSDT.

Parameters
[in]OemIdOEM ID to be used in the SSDT installation.
Return values
EFI_SUCCESSThe PRM SSDT was installed successfully.
EFI_INVALID_PARAMETERThe OemId pointer argument is NULL.
EFI_NOT_FOUNDAn instance of gEfiAcpiTableProtocolGuid was not found installed or the SSDT (AML RAW section) could not be found in the current FV.
EFI_OUT_OF_RESOURCESInsufficient memory resources to install the PRM SSDT.

Definition at line 35 of file PrmSsdtInstallDxe.c.

◆ PrmSsdtInstallEntryPoint()

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

The entry point for this module.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe entry point is executed successfully.
OthersAn error occurred when executing this entry point.

Definition at line 99 of file PrmSsdtInstallDxe.c.