7 Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved
8 This software and associated documentation (if any) is furnished
9 under a license and may only be used or copied in accordance
10 with the terms of the license. Except as permitted by such
11 license, no part of this software or documentation may be
12 reproduced, stored in a retrieval system, or transmitted in any
13 form or by any means without the express written consent of
21 Info about disk partitions and Master Boot Records
34 #define EFI_PARTITION 0xef
50 } MBR_PARTITION_RECORD;
52 #define EXTRACT_UINT32(D) (UINT32)(D[0] | (D[1] << 8) | (D[2] << 16) | (D[3] << 24))
54 #define MBR_SIGNATURE 0xaa55
55 #define MIN_MBR_DEVICE_SIZE 0x80000
56 #define MBR_ERRATA_PAD 0x40000 // 128 MB
58 #define MAX_MBR_PARTITIONS 4
60 UINT8 BootStrapCode[440];
61 UINT8 UniqueMbrSignature[4];
63 MBR_PARTITION_RECORD Partition[MAX_MBR_PARTITIONS];