5 Copyright © 2007-2017, The AROS Development Team. All rights reserved.
9 #include <exec/types.h>
10 #include <libraries/partition.h>
12 #include "partition_intern.h"
14 struct PCPartitionTable
{
25 } __attribute__((packed
));
28 BYTE boot_data
[0x1BE];
29 struct PCPartitionTable pcpt
[4];
31 } __attribute__((packed
));
33 #define MBR_MAGIC 0xAA55
34 #define MBR_STATUS_VALID(status) ((!(status & 0x0F)) || (status & 0x80))
36 LONG
MBRCheckPartitionTable(struct Library
*PartitionBase
, struct PartitionHandle
*root
, void *buffer
);
37 void PartitionMBRSetGeometry
39 struct PartitionHandle
*root
,
40 struct PCPartitionTable
*entry
,
45 ULONG
PartitionMBRDestroyPartitionTable(struct Library
*PartitionBase
,
46 struct PartitionHandle
*root
);
48 #define MBR_MAX_PARTITIONS (4)
49 #define MBRT_EXTENDED (0x05)
50 #define MBRT_EXTENDED2 (0x0f)
53 #endif /* PARTITIONMBR_H */