TianoCore EDK2 master
Loading...
Searching...
No Matches
SystemResourceTable.h File Reference

Go to the source code of this file.

Data Structures

struct  EFI_SYSTEM_RESOURCE_ENTRY
 
struct  EFI_SYSTEM_RESOURCE_TABLE
 

Macros

#define EFI_SYSTEM_RESOURCE_TABLE_GUID
 
#define EFI_SYSTEM_RESOURCE_TABLE_FIRMWARE_RESOURCE_VERSION   1
 
#define ESRT_FW_TYPE_UNKNOWN   0x00000000
 
#define ESRT_FW_TYPE_SYSTEMFIRMWARE   0x00000001
 
#define ESRT_FW_TYPE_DEVICEFIRMWARE   0x00000002
 
#define ESRT_FW_TYPE_UEFIDRIVER   0x00000003
 
#define LAST_ATTEMPT_STATUS_SUCCESS   0x00000000
 
#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL   0x00000001
 
#define LAST_ATTEMPT_STATUS_ERROR_INSUFFICIENT_RESOURCES   0x00000002
 
#define LAST_ATTEMPT_STATUS_ERROR_INCORRECT_VERSION   0x00000003
 
#define LAST_ATTEMPT_STATUS_ERROR_INVALID_FORMAT   0x00000004
 
#define LAST_ATTEMPT_STATUS_ERROR_AUTH_ERROR   0x00000005
 
#define LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_AC   0x00000006
 
#define LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_BATT   0x00000007
 
#define LAST_ATTEMPT_STATUS_ERROR_UNSATISFIED_DEPENDENCIES   0x00000008
 
#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MIN   0x00001000
 
#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX   0x00003FFF
 

Variables

EFI_GUID gEfiSystemResourceTableGuid
 

Detailed Description

Guid & data structure used for EFI System Resource Table (ESRT)

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

Revision Reference:
GUIDs defined in UEFI 2.5 spec.

Definition in file SystemResourceTable.h.

Macro Definition Documentation

◆ EFI_SYSTEM_RESOURCE_TABLE_FIRMWARE_RESOURCE_VERSION

#define EFI_SYSTEM_RESOURCE_TABLE_FIRMWARE_RESOURCE_VERSION   1

Current Entry Version

Definition at line 24 of file SystemResourceTable.h.

◆ EFI_SYSTEM_RESOURCE_TABLE_GUID

#define EFI_SYSTEM_RESOURCE_TABLE_GUID
Value:
{ \
0xb122a263, 0x3661, 0x4f68, {0x99, 0x29, 0x78, 0xf8, 0xb0, 0xd6, 0x21, 0x80 } \
}

Definition at line 16 of file SystemResourceTable.h.

◆ ESRT_FW_TYPE_DEVICEFIRMWARE

#define ESRT_FW_TYPE_DEVICEFIRMWARE   0x00000002

Definition at line 31 of file SystemResourceTable.h.

◆ ESRT_FW_TYPE_SYSTEMFIRMWARE

#define ESRT_FW_TYPE_SYSTEMFIRMWARE   0x00000001

Definition at line 30 of file SystemResourceTable.h.

◆ ESRT_FW_TYPE_UEFIDRIVER

#define ESRT_FW_TYPE_UEFIDRIVER   0x00000003

Definition at line 32 of file SystemResourceTable.h.

◆ ESRT_FW_TYPE_UNKNOWN

#define ESRT_FW_TYPE_UNKNOWN   0x00000000

Firmware Type Definitions

Definition at line 29 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_AUTH_ERROR

#define LAST_ATTEMPT_STATUS_ERROR_AUTH_ERROR   0x00000005

Definition at line 42 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_INCORRECT_VERSION

#define LAST_ATTEMPT_STATUS_ERROR_INCORRECT_VERSION   0x00000003

Definition at line 40 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_INSUFFICIENT_RESOURCES

#define LAST_ATTEMPT_STATUS_ERROR_INSUFFICIENT_RESOURCES   0x00000002

Definition at line 39 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_INVALID_FORMAT

#define LAST_ATTEMPT_STATUS_ERROR_INVALID_FORMAT   0x00000004

Definition at line 41 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_AC

#define LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_AC   0x00000006

Definition at line 43 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_BATT

#define LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_BATT   0x00000007

Definition at line 44 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_UNSATISFIED_DEPENDENCIES

#define LAST_ATTEMPT_STATUS_ERROR_UNSATISFIED_DEPENDENCIES   0x00000008

Definition at line 45 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL

#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL   0x00000001

Definition at line 38 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX

#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX   0x00003FFF

Definition at line 57 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MIN

#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MIN   0x00001000

LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX is defined as 0x4000 as of UEFI Specification 2.8B. This will be modified in the future to the correct value 0x3FFF. To ensure correct implementation, this change is preemptively made in the value defined below.

When the UEFI Specification is updated, this comment block can be removed.

Definition at line 56 of file SystemResourceTable.h.

◆ LAST_ATTEMPT_STATUS_SUCCESS

#define LAST_ATTEMPT_STATUS_SUCCESS   0x00000000

Last Attempt Status Values

Definition at line 37 of file SystemResourceTable.h.