UefiCpuPkg[all]  0.90
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SmMonitorInit.h File Reference

Data Structures

struct  _EFI_SM_MONITOR_INIT_PROTOCOL
 

Macros

#define EFI_SM_MONITOR_INIT_PROTOCOL_GUID   { 0x228f344d, 0xb3de, 0x43bb, 0xa4, 0xd7, 0xea, 0x20, 0xb, 0x1b, 0x14, 0x82}
 
#define EFI_SM_MONITOR_STATE_ENABLED   0x1
 
#define EFI_SM_MONITOR_STATE_ACTIVATED   0x2
 

Typedefs

typedef IN UINTN StmImageSize
 
typedef IN UINT32 NumEntries
 
typedef IN OUT UINT32 * ResourceSize
 
typedef UINT32 EFI_SM_MONITOR_STATE
 
typedef struct
_EFI_SM_MONITOR_INIT_PROTOCOL 
EFI_SM_MONITOR_INIT_PROTOCOL
 

Functions

typedef EFI_STATUS (EFIAPI *EFI_SM_MONITOR_LOAD_MONITOR)(IN EFI_PHYSICAL_ADDRESS StmImage
 
typedef EFI_SM_MONITOR_STATE (EFIAPI *EFI_SM_MONITOR_GET_MONITOR_STATE)(VOID)
 

Variables

EFI_GUID gEfiSmMonitorInitProtocolGuid
 

Detailed Description

STM service protocol definition

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

Macro Definition Documentation

#define EFI_SM_MONITOR_INIT_PROTOCOL_GUID   { 0x228f344d, 0xb3de, 0x43bb, 0xa4, 0xd7, 0xea, 0x20, 0xb, 0x1b, 0x14, 0x82}
#define EFI_SM_MONITOR_STATE_ACTIVATED   0x2
#define EFI_SM_MONITOR_STATE_ENABLED   0x1

Typedef Documentation

typedef UINT32 EFI_SM_MONITOR_STATE
typedef IN UINT32 NumEntries
typedef IN OUT UINT32* ResourceSize
typedef IN UINTN StmImageSize

Function Documentation

typedef EFI_SM_MONITOR_STATE ( EFIAPI *  EFI_SM_MONITOR_GET_MONITOR_STATE)

Get STM state

Returns
STM state
typedef EFI_STATUS ( EFIAPI *  EFI_SM_MONITOR_GET_PI_RESOURCE)

Load STM image to MSEG.

Parameters
StmImageSTM image
StmImageSizeSTM image size
Return values
EFI_SUCCESSLoad STM to MSEG successfully
EFI_ALREADY_STARTEDSTM image is already loaded to MSEG
EFI_BUFFER_TOO_SMALLMSEG is smaller than minimal requirement of STM image
EFI_UNSUPPORTEDMSEG is not enabled

Add resources in list to database.

Parameters
ResourceListA pointer to resource list to be added
NumEntriesOptional number of entries. If 0, list must be terminated by END_OF_RESOURCES.
Return values
EFI_SUCCESSIf resources are added
EFI_INVALID_PARAMETERIf nested procedure detected resource failer
EFI_OUT_OF_RESOURCESIf nested procedure returned it and we cannot allocate more areas.

Delete resources in list to database.

Parameters
ResourceListA pointer to resource list to be deleted NULL means delete all resources.
NumEntriesOptional number of entries. If 0, list must be terminated by END_OF_RESOURCES.
Return values
EFI_SUCCESSIf resources are deleted
EFI_INVALID_PARAMETERIf nested procedure detected resource failer

Get BIOS resources.

Parameters
ResourceListA pointer to resource list to be filled
ResourceSizeOn input it means size of resource list input. On output it means size of resource list filled, or the size of resource list to be filled if size of too small.
Return values
EFI_SUCCESSIf resources are returned.
EFI_BUFFER_TOO_SMALLIf resource list buffer is too small to hold the whole resources.

Variable Documentation

EFI_GUID gEfiSmMonitorInitProtocolGuid