TianoCore EDK2 master
Loading...
Searching...
No Matches
FvbSmmCommon.h
Go to the documentation of this file.
1
9#ifndef SMM_FVB_COMMON_H_
10#define SMM_FVB_COMMON_H_
11
13
14#define EFI_FUNCTION_GET_ATTRIBUTES 1
15#define EFI_FUNCTION_SET_ATTRIBUTES 2
16#define EFI_FUNCTION_GET_PHYSICAL_ADDRESS 3
17#define EFI_FUNCTION_GET_BLOCK_SIZE 4
18#define EFI_FUNCTION_READ 5
19#define EFI_FUNCTION_WRITE 6
20#define EFI_FUNCTION_ERASE_BLOCKS 7
21
22typedef struct {
23 UINTN Function;
24 EFI_STATUS ReturnStatus;
25 UINT8 Data[1];
27
31#define SMM_COMMUNICATE_HEADER_SIZE (OFFSET_OF (EFI_SMM_COMMUNICATE_HEADER, Data))
32
36#define SMM_FVB_COMMUNICATE_HEADER_SIZE (OFFSET_OF (SMM_FVB_COMMUNICATE_FUNCTION_HEADER, Data))
37
38typedef struct {
40 EFI_FVB_ATTRIBUTES_2 Attributes;
42
43typedef struct {
47
48typedef struct {
50 EFI_LBA Lba;
51 UINTN BlockSize;
52 UINTN NumOfBlocks;
54
55typedef struct {
57 EFI_LBA Lba;
58 UINTN Offset;
59 UINTN NumBytes;
61
62typedef struct {
64 EFI_LBA StartLba;
65 UINTN NumOfLba;
67
68#endif
UINT64 UINTN
UINT32 EFI_FVB_ATTRIBUTES_2
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
UINT64 EFI_LBA
Definition: UefiBaseType.h:45
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29