2 Legacy Master Boot Record Format Definition.
4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. 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
19 #define MIN_MBR_DEVICE_SIZE 0x80000
20 #define MBR_ERRATA_PAD 0x40000 // 128 MB
22 #define EXTENDED_DOS_PARTITION 0x05
23 #define EXTENDED_WINDOWS_PARTITION 0x0F
25 #define MAX_MBR_PARTITIONS 4
27 #define PMBR_GPT_PARTITION 0xEE
28 #define EFI_PARTITION 0xEF
34 // MBR Partition Entry
47 } MBR_PARTITION_RECORD
;
50 // MBR Partition table
53 UINT8 BootStrapCode
[440];
54 UINT8 UniqueMbrSignature
[4];
56 MBR_PARTITION_RECORD Partition
[MAX_MBR_PARTITIONS
];