1 /* $NetBSD: efipart.h,v 1.1 2006/04/07 14:21:29 cherry Exp $ */
2 /* $FreeBSD: src/sys/boot/efi/include/efipart.h,v 1.2 2002/05/19 03:17:20 marcel Exp $ */
9 Copyright (c) 1998 Intel Corporation
16 Info about disk partitions and Master Boot Records
25 #define EFI_PARTITION 0xef
41 } MBR_PARTITION_RECORD
;
43 #define EXTRACT_UINT32(D) (UINT32)(D[0] | (D[1] << 8) | (D[2] << 16) | (D[3] << 24))
45 #define MBR_SIGNATURE 0xaa55
46 #define MIN_MBR_DEVICE_SIZE 0x80000
47 #define MBR_ERRATA_PAD 0x40000 /* 128 MB */
49 #define MAX_MBR_PARTITIONS 4
51 UINT8 BootStrapCode
[440];
52 UINT8 UniqueMbrSignature
[4];
54 MBR_PARTITION_RECORD Partition
[MAX_MBR_PARTITIONS
];