disk: efi: ignore 'IGNOREME' GPT header found on cros eMMCs
[oweals/u-boot.git] / disk / part_amiga.h
index 9e59be9faa5a8f911bc5808fa06e8f3d040ff60f..42f5eb0f941c87f4fa8503a219c3c1314306d634 100644 (file)
@@ -1,32 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2000
  * 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
  */
 
 #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
@@ -43,7 +26,7 @@
  * "RigidDiskBlock".
  */
 
-struct rigid_disk_block 
+struct rigid_disk_block
 {
     u32 id;
     u32 summed_longs;
@@ -57,7 +40,7 @@ struct rigid_disk_block
     u32 drive_init;
     u32 bootcode_block;
     u32 reserved_1[5];
-    
+
     /* Physical drive geometry */
     u32 cylinders;
     u32 sectors;
@@ -79,14 +62,14 @@ struct rigid_disk_block
     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];
 };
 
@@ -94,7 +77,7 @@ struct rigid_disk_block
  * Each partition on this drive is defined by such a block
  */
 
-struct partition_block 
+struct partition_block
 {
     u32 id;
     u32 summed_longs;
@@ -110,7 +93,7 @@ struct partition_block
     u32 reserved_3[15];
 };
 
-struct bootcode_block 
+struct bootcode_block
 {
     u32   id;
     u32   summed_longs;
@@ -125,12 +108,12 @@ struct bootcode_block
 #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;