efi_loader: type of efi_secure_mode
[oweals/u-boot.git] / include / ACEX1K.h
index f249d6402d2e2837e8f0d8977d92e063fa164ef9..7c5253c66ccada689407466d6c8acbae67dcf14b 100644 (file)
@@ -1,28 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2003
  * Steven Scholz, imc Measurement & Control, steven.scholz@imc-berlin.de
  *
  * (C) Copyright 2002
  * Rich Ireland, Enterasys Networks, rireland@enterasys.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 _ACEX1K_H_
 
 #include <altera.h>
 
-extern int ACEX1K_load( Altera_desc *desc, void *image, size_t size );
-extern int ACEX1K_dump( Altera_desc *desc, void *buf, size_t bsize );
-extern int ACEX1K_info( Altera_desc *desc );
-extern int ACEX1K_reloc( Altera_desc *desc, ulong reloc_off );
+extern int ACEX1K_load(Altera_desc *desc, const void *image, size_t size);
+extern int ACEX1K_dump(Altera_desc *desc, const void *buf, size_t bsize);
+extern int ACEX1K_info(Altera_desc *desc);
 
-extern int CYC2_load( Altera_desc *desc, void *image, size_t size );
-extern int CYC2_dump( Altera_desc *desc, void *buf, size_t bsize );
-extern int CYC2_info( Altera_desc *desc );
-extern int CYC2_reloc( Altera_desc *desc, ulong reloc_off );
+extern int CYC2_load(Altera_desc *desc, const void *image, size_t size);
+extern int CYC2_dump(Altera_desc *desc, const void *buf, size_t bsize);
+extern int CYC2_info(Altera_desc *desc);
 
 /* Slave Serial Implementation function table */
 typedef struct {
@@ -50,7 +30,6 @@ typedef struct {
        Altera_data_fn          data;
        Altera_abort_fn         abort;
        Altera_post_fn          post;
-       int                     relocated;
 } Altera_ACEX1K_Passive_Serial_fns;
 
 /* Slave Serial Implementation function table */
@@ -62,7 +41,6 @@ typedef struct {
        Altera_write_fn         write;
        Altera_abort_fn         abort;
        Altera_post_fn          post;
-       int                     relocated;
 } Altera_CYC2_Passive_Serial_fns;
 
 /* Device Image Sizes
@@ -73,11 +51,24 @@ typedef struct {
  * Filesize of an *.rbf file is 166965 Bytes
  */
 #if 0
-#define Altera_EP1K100_SIZE    1337000/8       /* 167125 Bytes */
+#define Altera_EP1K100_SIZE    1337000/8       /* 167125 Bytes */
 #endif
-#define Altera_EP1K100_SIZE    (166965*8)
+#define Altera_EP1K100_SIZE    (166965*8)
 
+#define Altera_EP2C8_SIZE      247942
+#define Altera_EP2C20_SIZE     586562
 #define Altera_EP2C35_SIZE     883905
+#define Altera_EP3C5_SIZE      368011          /* .rbf size in bytes */
+
+#define ALTERA_EP4CE6_SIZE     368011          /* 2944088 Bits */
+#define ALTERA_EP4CE10_SIZE    368011          /* 2944088 Bits */
+#define ALTERA_EP4CE15_SIZE    510856          /* 4086848 Bits */
+#define ALTERA_EP4CE22_SIZE    718569          /* 5748552 Bits */
+#define ALTERA_EP4CE30_SIZE    1191788         /* 9534304 Bits */
+#define ALTERA_EP4CE40_SIZE    1191788         /* 9534304 Bits */
+#define ALTERA_EP4CE55_SIZE    1861195         /* 14889560 Bits */
+#define ALTERA_EP4CE75_SIZE    2495719         /* 19965752 Bits */
+#define ALTERA_EP4CE115_SIZE   3571462         /* 28571696 Bits */
 
 /* Descriptor Macros
  *********************************************************************/