Imported Upstream version 0.6.3
[platform/upstream/multipath-tools.git] / kpartx / mac.h
1 #ifndef MAC_H
2 #define MAC_H
3
4 #include <stdint.h>
5
6 #define MAC_PARTITION_MAGIC     0x504d
7
8 /* type field value for A/UX or other Unix partitions */
9 #define APPLE_AUX_TYPE  "Apple_UNIX_SVR2"
10
11 struct mac_partition {
12         uint16_t  signature;      /* expected to be MAC_PARTITION_MAGIC */
13         uint16_t  res1;
14         uint32_t  map_count;      /* # blocks in partition map */
15         uint32_t  start_block;    /* absolute starting block # of partition */
16         uint32_t  block_count;    /* number of blocks in partition */
17         /* there is more stuff after this that we don't need */
18 };
19
20 #define MAC_DRIVER_MAGIC        0x4552
21
22 /* Driver descriptor structure, in block 0 */
23 struct mac_driver_desc {
24         uint16_t  signature;      /* expected to be MAC_DRIVER_MAGIC */
25         uint16_t  block_size;
26         uint32_t  block_count;
27     /* ... more stuff */
28 };
29
30 #endif