Deleted Added
full compact
efipart.h (96893) efipart.h (163898)
1/* $FreeBSD: head/sys/boot/efi/include/efipart.h 96893 2002-05-19 03:17:22Z marcel $ */
1/* $FreeBSD: head/sys/boot/efi/include/efipart.h 163898 2006-11-02 02:42:48Z marcel $ */
2#ifndef _EFI_PART_H
3#define _EFI_PART_H
4
5/*++
6
2#ifndef _EFI_PART_H
3#define _EFI_PART_H
4
5/*++
6
7Copyright (c) 1998 Intel Corporation
7Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved
8This software and associated documentation (if any) is furnished
9under a license and may only be used or copied in accordance
10with the terms of the license. Except as permitted by such
11license, no part of this software or documentation may be
12reproduced, stored in a retrieval system, or transmitted in any
13form or by any means without the express written consent of
14Intel Corporation.
8
9Module Name:
10
11 efipart.h
12
13Abstract:
14 Info about disk partitions and Master Boot Records
15
16
17
18
19Revision History
20
21--*/
22
15
16Module Name:
17
18 efipart.h
19
20Abstract:
21 Info about disk partitions and Master Boot Records
22
23
24
25
26Revision History
27
28--*/
29
30//
31//
32//
33
23#define EFI_PARTITION 0xef
24#define MBR_SIZE 512
25
26#pragma pack(1)
27
28typedef struct {
29 UINT8 BootIndicator;
30 UINT8 StartHead;

--- 6 unchanged lines hidden (view full) ---

37 UINT8 StartingLBA[4];
38 UINT8 SizeInLBA[4];
39} MBR_PARTITION_RECORD;
40
41#define EXTRACT_UINT32(D) (UINT32)(D[0] | (D[1] << 8) | (D[2] << 16) | (D[3] << 24))
42
43#define MBR_SIGNATURE 0xaa55
44#define MIN_MBR_DEVICE_SIZE 0x80000
34#define EFI_PARTITION 0xef
35#define MBR_SIZE 512
36
37#pragma pack(1)
38
39typedef struct {
40 UINT8 BootIndicator;
41 UINT8 StartHead;

--- 6 unchanged lines hidden (view full) ---

48 UINT8 StartingLBA[4];
49 UINT8 SizeInLBA[4];
50} MBR_PARTITION_RECORD;
51
52#define EXTRACT_UINT32(D) (UINT32)(D[0] | (D[1] << 8) | (D[2] << 16) | (D[3] << 24))
53
54#define MBR_SIGNATURE 0xaa55
55#define MIN_MBR_DEVICE_SIZE 0x80000
45#define MBR_ERRATA_PAD 0x40000 /* 128 MB */
56#define MBR_ERRATA_PAD 0x40000 // 128 MB
46
47#define MAX_MBR_PARTITIONS 4
48typedef struct {
49 UINT8 BootStrapCode[440];
50 UINT8 UniqueMbrSignature[4];
51 UINT8 Unknown[2];
52 MBR_PARTITION_RECORD Partition[MAX_MBR_PARTITIONS];
53 UINT16 Signature;
54} MASTER_BOOT_RECORD;
55#pragma pack()
56
57
58#endif
57
58#define MAX_MBR_PARTITIONS 4
59typedef struct {
60 UINT8 BootStrapCode[440];
61 UINT8 UniqueMbrSignature[4];
62 UINT8 Unknown[2];
63 MBR_PARTITION_RECORD Partition[MAX_MBR_PARTITIONS];
64 UINT16 Signature;
65} MASTER_BOOT_RECORD;
66#pragma pack()
67
68
69#endif