3 * Hans-Joerg Frieden, Hyperion Entertainment
4 * Hans-JoergF@hyperion-entertainment.com
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef _DISK_PART_AMIGA_H
10 #define _DISK_PART_AMIGA_H
13 #if CONFIG_IS_ENABLED(ISO_PARTITION)
14 /* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS
15 have 2048 byte blocks */
16 #define DEFAULT_SECTOR_SIZE 2048
18 #define DEFAULT_SECTOR_SIZE 512
22 #define AMIGA_BLOCK_LIMIT 16
25 * Amiga disks have a very open structure. The head for the partition table information
26 * is stored somewhere within the first 16 blocks on disk, and is called the
30 struct rigid_disk_block
40 u32 file_sys_header_list;
45 /* Physical drive geometry */
57 /* logical drive geometry */
63 u32 auto_park_seconds;
68 char disk_product[16];
69 char disk_revision[4];
70 char controller_vendor[8];
71 char controller_product[16];
72 char controller_revision[4];
78 * Each partition on this drive is defined by such a block
81 struct partition_block
108 #define AMIGA_ID_RDISK 0x5244534B
109 #define AMIGA_ID_PART 0x50415254
110 #define AMIGA_ID_BOOT 0x424f4f54
113 * The environment array in the partition block
114 * describes the partition
117 struct amiga_part_geometry
123 u32 sector_per_block;
141 #endif /* _DISK_PART_AMIGA_H_ */