2 * $FreeBSD: src/sys/boot/efi/include/efipart.h,v 1.2 2002/05/19 03:17:20 marcel Exp $
3 * $DragonFly: src/sys/boot/efi/include/efipart.h,v 1.1 2003/11/10 06:08:32 dillon Exp $
10 Copyright (c) 1998 Intel Corporation
17 Info about disk partitions and Master Boot Records
26 #define EFI_PARTITION 0xef
42 } MBR_PARTITION_RECORD
;
44 #define EXTRACT_UINT32(D) (UINT32)(D[0] | (D[1] << 8) | (D[2] << 16) | (D[3] << 24))
46 #define MBR_SIGNATURE 0xaa55
47 #define MIN_MBR_DEVICE_SIZE 0x80000
48 #define MBR_ERRATA_PAD 0x40000 /* 128 MB */
50 #define MAX_MBR_PARTITIONS 4
52 UINT8 BootStrapCode
[440];
53 UINT8 UniqueMbrSignature
[4];
55 MBR_PARTITION_RECORD Partition
[MAX_MBR_PARTITIONS
];