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
20 #define AMIGA_BLOCK_LIMIT 16
23 * Amiga disks have a very open structure. The head for the partition table information
24 * is stored somewhere within the first 16 blocks on disk, and is called the
28 struct rigid_disk_block
38 u32 file_sys_header_list;
43 /* Physical drive geometry */
55 /* logical drive geometry */
61 u32 auto_park_seconds;
66 char disk_product[16];
67 char disk_revision[4];
68 char controller_vendor[8];
69 char controller_product[16];
70 char controller_revision[4];
76 * Each partition on this drive is defined by such a block
79 struct partition_block
106 #define AMIGA_ID_RDISK 0x5244534B
107 #define AMIGA_ID_PART 0x50415254
108 #define AMIGA_ID_BOOT 0x424f4f54
111 * The environment array in the partition block
112 * describes the partition
115 struct amiga_part_geometry
121 u32 sector_per_block;
139 #endif /* _DISK_PART_AMIGA_H_ */