1
2
3
4
5
6 #define MAC_PARTITION_MAGIC 0x504d
7
8
9 #define APPLE_AUX_TYPE "Apple_UNIX_SVR2"
10
11 struct mac_partition {
12 __be16 signature;
13 __be16 res1;
14 __be32 map_count;
15 __be32 start_block;
16 __be32 block_count;
17 char name[32];
18 char type[32];
19 __be32 data_start;
20 __be32 data_count;
21 __be32 status;
22 __be32 boot_start;
23 __be32 boot_size;
24 __be32 boot_load;
25 __be32 boot_load2;
26 __be32 boot_entry;
27 __be32 boot_entry2;
28 __be32 boot_cksum;
29 char processor[16];
30
31 };
32
33 #define MAC_STATUS_BOOTABLE 8
34
35 #define MAC_DRIVER_MAGIC 0x4552
36
37
38 struct mac_driver_desc {
39 __be16 signature;
40 __be16 block_size;
41 __be32 block_count;
42
43 };
44
45 int mac_partition(struct parsed_partitions *state);