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
11 #if CONFIG_IS_ENABLED(ISO_PARTITION)
12 /* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS
13 have 2048 byte blocks */
14 #define DEFAULT_SECTOR_SIZE 2048
16 #define DEFAULT_SECTOR_SIZE 512
19 #define AMIGA_BLOCK_LIMIT 16
22 * Amiga disks have a very open structure. The head for the partition table information
23 * is stored somewhere within the first 16 blocks on disk, and is called the
27 struct rigid_disk_block
37 u32 file_sys_header_list;
42 /* Physical drive geometry */
54 /* logical drive geometry */
60 u32 auto_park_seconds;
65 char disk_product[16];
66 char disk_revision[4];
67 char controller_vendor[8];
68 char controller_product[16];
69 char controller_revision[4];
75 * Each partition on this drive is defined by such a block
78 struct partition_block
104 #define AMIGA_ID_RDISK 0x5244534B
105 #define AMIGA_ID_PART 0x50415254
106 #define AMIGA_ID_BOOT 0x424f4f54
109 * The environment array in the partition block
110 * describes the partition
113 struct amiga_part_geometry
119 u32 sector_per_block;
137 #endif /* _DISK_PART_AMIGA_H_ */