3 * Hans-Joerg Frieden, Hyperion Entertainment
4 * Hans-JoergF@hyperion-entertainment.com
6 * See file CREDITS for list of people who contributed to this
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 #ifndef _DISK_PART_AMIGA_H
26 #define _DISK_PART_AMIGA_H
29 #ifdef CONFIG_ISO_PARTITION
30 /* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS
31 have 2048 byte blocks */
32 #define DEFAULT_SECTOR_SIZE 2048
34 #define DEFAULT_SECTOR_SIZE 512
38 #define AMIGA_BLOCK_LIMIT 16
41 * Amiga disks have a very open structure. The head for the partition table information
42 * is stored somewhere within the first 16 blocks on disk, and is called the
46 struct rigid_disk_block
56 u32 file_sys_header_list;
61 /* Physical drive geometry */
73 /* logical drive geometry */
79 u32 auto_park_seconds;
84 char disk_product[16];
85 char disk_revision[4];
86 char controller_vendor[8];
87 char controller_product[16];
88 char controller_revision[4];
94 * Each partition on this drive is defined by such a block
97 struct partition_block
113 struct bootcode_block
124 #define AMIGA_ID_RDISK 0x5244534B
125 #define AMIGA_ID_PART 0x50415254
126 #define AMIGA_ID_BOOT 0x424f4f54
129 * The environment array in the partition block
130 * describes the partition
133 struct amiga_part_geometry
139 u32 sector_per_block;
157 #endif /* _DISK_PART_AMIGA_H_ */