TianoCore EDK2 master
Loading...
Searching...
No Matches
Btt.h
Go to the documentation of this file.
1
15#ifndef _BTT_H_
16#define _BTT_H_
17
21#define EFI_BTT_ABSTRACTION_GUID \
22 { \
23 0x18633bfc, 0x1735, 0x4217, { 0x8a, 0xc9, 0x17, 0x23, 0x92, 0x82, 0xd3, 0xf8 } \
24 }
25
26//
27// Alignment of all BTT structures
28//
29#define EFI_BTT_ALIGNMENT 4096
30
31#define EFI_BTT_INFO_UNUSED_LEN 3968
32
33#define EFI_BTT_INFO_BLOCK_SIG_LEN 16
34
38#define EFI_BTT_INFO_BLOCK_FLAGS_ERROR 0x00000001
39
40#define EFI_BTT_INFO_BLOCK_MAJOR_VERSION 2
41#define EFI_BTT_INFO_BLOCK_MINOR_VERSION 0
42
46typedef struct _EFI_BTT_INFO_BLOCK {
51 CHAR8 Sig[EFI_BTT_INFO_BLOCK_SIG_LEN];
52
57
62
66 UINT32 Flags;
67
71 UINT16 Major;
72
76 UINT16 Minor;
77
82
87
92
97
101 UINT32 NFree;
102
106 UINT32 InfoSize;
107
111 UINT64 NextOff;
112
116 UINT64 DataOff;
117
121 UINT64 MapOff;
122
126 UINT64 FlogOff;
127
131 UINT64 InfoOff;
132
136 CHAR8 Unused[EFI_BTT_INFO_UNUSED_LEN];
137
141 UINT64 Checksum;
143
147typedef struct _EFI_BTT_MAP_ENTRY {
151 UINT32 PostMapLba : 30;
152
157 UINT32 Error : 1;
158
163 UINT32 Zero : 1;
165
169#define EFI_BTT_FLOG_ENTRY_ALIGNMENT 64
170
177typedef struct _EFI_BTT_FLOG {
181 UINT32 Lba0;
182
186 UINT32 OldMap0;
187
191 UINT32 NewMap0;
192
197 UINT32 Seq0;
198
202 UINT32 Lba1;
203
207 UINT32 OldMap1;
208
212 UINT32 NewMap1;
213
217 UINT32 Seq1;
219
220extern GUID gEfiBttAbstractionGuid;
221
222#endif //_BTT_H_
struct _EFI_BTT_FLOG EFI_BTT_FLOG
struct _EFI_BTT_MAP_ENTRY EFI_BTT_MAP_ENTRY
struct _EFI_BTT_INFO_BLOCK EFI_BTT_INFO_BLOCK
UINT32 OldMap0
Definition: Btt.h:186
UINT32 Lba1
Definition: Btt.h:202
UINT32 OldMap1
Definition: Btt.h:207
UINT32 Lba0
Definition: Btt.h:181
UINT32 Seq1
Definition: Btt.h:217
UINT32 NewMap1
Definition: Btt.h:212
UINT32 NewMap0
Definition: Btt.h:191
UINT32 Seq0
Definition: Btt.h:197
UINT64 MapOff
Definition: Btt.h:121
UINT32 InternalNLba
Definition: Btt.h:96
CHAR8 Sig[EFI_BTT_INFO_BLOCK_SIG_LEN]
Definition: Btt.h:51
UINT64 InfoOff
Definition: Btt.h:131
UINT64 NextOff
Definition: Btt.h:111
UINT64 Checksum
Definition: Btt.h:141
UINT16 Minor
Definition: Btt.h:76
UINT32 Flags
Definition: Btt.h:66
UINT32 InfoSize
Definition: Btt.h:106
UINT32 NFree
Definition: Btt.h:101
UINT32 ExternalNLba
Definition: Btt.h:86
UINT64 FlogOff
Definition: Btt.h:126
UINT16 Major
Definition: Btt.h:71
CHAR8 Unused[EFI_BTT_INFO_UNUSED_LEN]
Definition: Btt.h:136
UINT32 ExternalLbaSize
Definition: Btt.h:81
UINT64 DataOff
Definition: Btt.h:116
GUID ParentUuid
Definition: Btt.h:61
UINT32 InternalLbaSize
Definition: Btt.h:91
UINT32 PostMapLba
Definition: Btt.h:151
UINT32 Error
Definition: Btt.h:157
UINT32 Zero
Definition: Btt.h:163
Definition: Base.h:213