162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * fs/partitions/mac.h 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#define MAC_PARTITION_MAGIC 0x504d 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci/* type field value for A/UX or other Unix partitions */ 962306a36Sopenharmony_ci#define APPLE_AUX_TYPE "Apple_UNIX_SVR2" 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_cistruct mac_partition { 1262306a36Sopenharmony_ci __be16 signature; /* expected to be MAC_PARTITION_MAGIC */ 1362306a36Sopenharmony_ci __be16 res1; 1462306a36Sopenharmony_ci __be32 map_count; /* # blocks in partition map */ 1562306a36Sopenharmony_ci __be32 start_block; /* absolute starting block # of partition */ 1662306a36Sopenharmony_ci __be32 block_count; /* number of blocks in partition */ 1762306a36Sopenharmony_ci char name[32]; /* partition name */ 1862306a36Sopenharmony_ci char type[32]; /* string type description */ 1962306a36Sopenharmony_ci __be32 data_start; /* rel block # of first data block */ 2062306a36Sopenharmony_ci __be32 data_count; /* number of data blocks */ 2162306a36Sopenharmony_ci __be32 status; /* partition status bits */ 2262306a36Sopenharmony_ci __be32 boot_start; 2362306a36Sopenharmony_ci __be32 boot_size; 2462306a36Sopenharmony_ci __be32 boot_load; 2562306a36Sopenharmony_ci __be32 boot_load2; 2662306a36Sopenharmony_ci __be32 boot_entry; 2762306a36Sopenharmony_ci __be32 boot_entry2; 2862306a36Sopenharmony_ci __be32 boot_cksum; 2962306a36Sopenharmony_ci char processor[16]; /* identifies ISA of boot */ 3062306a36Sopenharmony_ci /* there is more stuff after this that we don't need */ 3162306a36Sopenharmony_ci}; 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci#define MAC_STATUS_BOOTABLE 8 /* partition is bootable */ 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci#define MAC_DRIVER_MAGIC 0x4552 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci/* Driver descriptor structure, in block 0 */ 3862306a36Sopenharmony_cistruct mac_driver_desc { 3962306a36Sopenharmony_ci __be16 signature; /* expected to be MAC_DRIVER_MAGIC */ 4062306a36Sopenharmony_ci __be16 block_size; 4162306a36Sopenharmony_ci __be32 block_count; 4262306a36Sopenharmony_ci /* ... more stuff */ 4362306a36Sopenharmony_ci}; 4462306a36Sopenharmony_ci 45