5 Copyright © 2007-2011, The AROS Development Team. All rights reserved.
10 #include <exec/types.h>
11 #include <libraries/partition.h>
12 #include <utility/tagitem.h>
14 #include "partition_intern.h"
16 struct PCPartitionTable
{
27 } __attribute__((packed
));
30 BYTE boot_data
[0x1BE];
31 struct PCPartitionTable pcpt
[4];
33 } __attribute__((packed
));
35 #define MBR_MAGIC 0xAA55
36 #define MBR_STATUS_VALID(status) ((!(status & 0x0F)) || (status & 0x80))
38 LONG
MBRCheckPartitionTable(struct Library
*PartitionBase
, struct PartitionHandle
*root
, void *buffer
);
40 void PartitionMBRSetGeometry
42 struct PartitionHandle
*root
,
43 struct PCPartitionTable
*entry
,
49 #define MBR_MAX_PARTITIONS (4)
50 #define MBRT_EXTENDED (0x05)
51 #define MBRT_EXTENDED2 (0x0f)
54 #endif /* PARTITIONMBR_H */