mac.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * fs/partitions/mac.h
  3. */
  4. #define MAC_PARTITION_MAGIC 0x504d
  5. /* type field value for A/UX or other Unix partitions */
  6. #define APPLE_AUX_TYPE "Apple_UNIX_SVR2"
  7. struct mac_partition {
  8. __be16 signature; /* expected to be MAC_PARTITION_MAGIC */
  9. __be16 res1;
  10. __be32 map_count; /* # blocks in partition map */
  11. __be32 start_block; /* absolute starting block # of partition */
  12. __be32 block_count; /* number of blocks in partition */
  13. char name[32]; /* partition name */
  14. char type[32]; /* string type description */
  15. __be32 data_start; /* rel block # of first data block */
  16. __be32 data_count; /* number of data blocks */
  17. __be32 status; /* partition status bits */
  18. __be32 boot_start;
  19. __be32 boot_size;
  20. __be32 boot_load;
  21. __be32 boot_load2;
  22. __be32 boot_entry;
  23. __be32 boot_entry2;
  24. __be32 boot_cksum;
  25. char processor[16]; /* identifies ISA of boot */
  26. /* there is more stuff after this that we don't need */
  27. };
  28. #define MAC_STATUS_BOOTABLE 8 /* partition is bootable */
  29. #define MAC_DRIVER_MAGIC 0x4552
  30. /* Driver descriptor structure, in block 0 */
  31. struct mac_driver_desc {
  32. __be16 signature; /* expected to be MAC_DRIVER_MAGIC */
  33. __be16 block_size;
  34. __be32 block_count;
  35. /* ... more stuff */
  36. };
  37. int mac_partition(struct parsed_partitions *state);