]> git.ozlabs.org Git - yaboot.git/blob - include/mac-part.h
Commit yaboot 1.3.5
[yaboot.git] / include / mac-part.h
1 /*
2  * Structure of a Macintosh driver descriptor (block 0)
3  * and partition table (blocks 1..n).
4  *
5  * Copyright 1996 Paul Mackerras.
6  */
7
8 #define MAC_PARTITION_MAGIC     0x504d
9
10 /* type field value for A/UX or other Unix partitions */
11 #define APPLE_AUX_TYPE  "Apple_UNIX_SVR2"
12
13 struct mac_partition {
14     __u16       signature;      /* expected to be MAC_PARTITION_MAGIC */
15     __u16       res1;
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 */
30     __u32       boot_cksum;
31     char        processor[16];  /* name of processor that boot is for */
32 };
33
34 /* Bit in status field */
35 #define STATUS_BOOTABLE 8       /* partition is bootable */
36
37 #define MAC_DRIVER_MAGIC        0x4552
38
39 /* Driver descriptor structure, in block 0 */
40 struct mac_driver_desc {
41     __u16       signature;      /* expected to be MAC_DRIVER_MAGIC */
42     __u16       block_size;
43     __u32       block_count;
44     /* ... more stuff */
45 };