2 * Structure of a Macintosh driver descriptor (block 0)
3 * and partition table (blocks 1..n).
5 * Copyright 1996 Paul Mackerras.
8 #define MAC_PARTITION_MAGIC 0x504d
10 /* type field value for A/UX or other Unix partitions */
11 #define APPLE_AUX_TYPE "Apple_UNIX_SVR2"
13 struct mac_partition {
14 __u16 signature; /* expected to be MAC_PARTITION_MAGIC */
16 __u32 map_count; /* # blocks in partition map */
17 __u32 start_block; /* absolute starting block # of partition */
18 __u32 block_count; /* number of blocks in partition */
19 char name[32]; /* partition name */
20 char type[32]; /* string type description */
21 __u32 data_start; /* rel block # of first data block */
22 __u32 data_count; /* number of data blocks */
23 __u32 status; /* partition status */
24 __u32 boot_start; /* logical start block no. of bootstrap */
25 __u32 boot_size; /* no. of bytes in bootstrap */
26 __u32 boot_load; /* bootstrap load address in memory */
27 __u32 boot_load2; /* reserved for extension of boot_load */
28 __u32 boot_entry; /* entry point address for bootstrap */
29 __u32 boot_entry2; /* reserved for extension of boot_entry */
31 char processor[16]; /* name of processor that boot is for */
34 /* Bit in status field */
35 #define STATUS_BOOTABLE 8 /* partition is bootable */
37 #define MAC_DRIVER_MAGIC 0x4552
39 /* Driver descriptor structure, in block 0 */
40 struct mac_driver_desc {
41 __u16 signature; /* expected to be MAC_DRIVER_MAGIC */