2 Legacy Master Boot Record Format Definition.
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #define MBR_SIGNATURE 0xaa55
20 #define EXTENDED_DOS_PARTITION 0x05
21 #define EXTENDED_WINDOWS_PARTITION 0x0F
23 #define MAX_MBR_PARTITIONS 4
25 #define PMBR_GPT_PARTITION 0xEE
26 #define EFI_PARTITION 0xEF
32 /// MBR Partition Entry
45 } MBR_PARTITION_RECORD
;
48 /// MBR Partition Table
51 UINT8 BootStrapCode
[440];
52 UINT8 UniqueMbrSignature
[4];
54 MBR_PARTITION_RECORD Partition
[MAX_MBR_PARTITIONS
];