1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Hans-Joerg Frieden, Hyperion Entertainment
5 * Hans-JoergF@hyperion-entertainment.com
8 #ifndef _DISK_PART_AMIGA_H
9 #define _DISK_PART_AMIGA_H
12 #if CONFIG_IS_ENABLED(ISO_PARTITION)
13 /* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS
14 have 2048 byte blocks */
15 #define DEFAULT_SECTOR_SIZE 2048
17 #define DEFAULT_SECTOR_SIZE 512
21 #define AMIGA_BLOCK_LIMIT 16
24 * Amiga disks have a very open structure. The head for the partition table information
25 * is stored somewhere within the first 16 blocks on disk, and is called the
29 struct rigid_disk_block
39 u32 file_sys_header_list;
44 /* Physical drive geometry */
56 /* logical drive geometry */
62 u32 auto_park_seconds;
67 char disk_product[16];
68 char disk_revision[4];
69 char controller_vendor[8];
70 char controller_product[16];
71 char controller_revision[4];
77 * Each partition on this drive is defined by such a block
80 struct partition_block
107 #define AMIGA_ID_RDISK 0x5244534B
108 #define AMIGA_ID_PART 0x50415254
109 #define AMIGA_ID_BOOT 0x424f4f54
112 * The environment array in the partition block
113 * describes the partition
116 struct amiga_part_geometry
122 u32 sector_per_block;
140 #endif /* _DISK_PART_AMIGA_H_ */