TianoCore EDK2 master
Loading...
Searching...
No Matches
Mbr.h
Go to the documentation of this file.
1
9#ifndef _MBR_H_
10#define _MBR_H_
11
12#define MBR_SIGNATURE 0xaa55
13
14#define EXTENDED_DOS_PARTITION 0x05
15#define EXTENDED_WINDOWS_PARTITION 0x0F
16
17#define MAX_MBR_PARTITIONS 4
18
19#define PMBR_GPT_PARTITION 0xEE
20#define EFI_PARTITION 0xEF
21
22#define MBR_SIZE 512
23
24#pragma pack(1)
28typedef struct {
29 UINT8 BootIndicator;
30 UINT8 StartHead;
31 UINT8 StartSector;
32 UINT8 StartTrack;
33 UINT8 OSIndicator;
34 UINT8 EndHead;
35 UINT8 EndSector;
36 UINT8 EndTrack;
37 UINT8 StartingLBA[4];
38 UINT8 SizeInLBA[4];
40
44typedef struct {
45 UINT8 BootStrapCode[440];
46 UINT8 UniqueMbrSignature[4];
47 UINT8 Unknown[2];
48 MBR_PARTITION_RECORD Partition[MAX_MBR_PARTITIONS];
49 UINT16 Signature;
51
52#pragma pack()
53
54#endif