3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Data Structures required for detecting MBR Partitions
29 #define MBR_SIGNATURE 0xaa55
30 #define MIN_MBR_DEVICE_SIZE 0x80000
31 #define MBR_ERRATA_PAD 0x40000 // 128 MB
32 #define EXTENDED_DOS_PARTITION 0x05
33 #define EXTENDED_WINDOWS_PARTITION 0x0F
34 #define MAX_MBR_PARTITIONS 4
36 #define EFI_PARTITION 0xef
40 // MBR Partition Entry
53 } MBR_PARTITION_RECORD
;
56 // MBR Partition table
59 UINT8 BootStrapCode
[440];
60 UINT8 UniqueMbrSignature
[4];
62 MBR_PARTITION_RECORD Partition
[MAX_MBR_PARTITIONS
];