* Hans-Joerg Frieden, Hyperion Entertainment
* Hans-JoergF@hyperion-entertainment.com
*
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier: GPL-2.0+
*/
#ifndef _DISK_PART_AMIGA_H
#define _DISK_PART_AMIGA_H
#include <common.h>
-#ifdef CONFIG_ISO_PARTITION
+#if CONFIG_IS_ENABLED(ISO_PARTITION)
/* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS
have 2048 byte blocks */
#define DEFAULT_SECTOR_SIZE 2048
* "RigidDiskBlock".
*/
-struct rigid_disk_block
+struct rigid_disk_block
{
u32 id;
u32 summed_longs;
u32 drive_init;
u32 bootcode_block;
u32 reserved_1[5];
-
+
/* Physical drive geometry */
u32 cylinders;
u32 sectors;
u32 auto_park_seconds;
u32 high_rdsk_block;
u32 reserved_4;
-
+
char disk_vendor[8];
char disk_product[16];
char disk_revision[4];
char controller_vendor[8];
char controller_product[16];
char controller_revision[4];
-
+
u32 reserved_5[10];
};
* Each partition on this drive is defined by such a block
*/
-struct partition_block
+struct partition_block
{
u32 id;
u32 summed_longs;
u32 reserved_3[15];
};
-struct bootcode_block
+struct bootcode_block
{
u32 id;
u32 summed_longs;
#define AMIGA_ID_PART 0x50415254
#define AMIGA_ID_BOOT 0x424f4f54
-/*
+/*
* The environment array in the partition block
* describes the partition
*/
-struct amiga_part_geometry
+struct amiga_part_geometry
{
u32 table_size;
u32 size_blocks;