1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Steven Scholz, imc Measurement & Control, steven.scholz@imc-berlin.de
7 * Rich Ireland, Enterasys Networks, rireland@enterasys.com.
15 extern int ACEX1K_load(Altera_desc *desc, const void *image, size_t size);
16 extern int ACEX1K_dump(Altera_desc *desc, const void *buf, size_t bsize);
17 extern int ACEX1K_info(Altera_desc *desc);
19 extern int CYC2_load(Altera_desc *desc, const void *image, size_t size);
20 extern int CYC2_dump(Altera_desc *desc, const void *buf, size_t bsize);
21 extern int CYC2_info(Altera_desc *desc);
23 /* Slave Serial Implementation function table */
26 Altera_config_fn config;
28 Altera_status_fn status;
31 Altera_abort_fn abort;
33 } Altera_ACEX1K_Passive_Serial_fns;
35 /* Slave Serial Implementation function table */
38 Altera_config_fn config;
39 Altera_status_fn status;
41 Altera_write_fn write;
42 Altera_abort_fn abort;
44 } Altera_CYC2_Passive_Serial_fns;
47 *********************************************************************/
49 /* FIXME: Which size do we mean?
50 * Datasheet says 1337000/8=167125Bytes,
51 * Filesize of an *.rbf file is 166965 Bytes
54 #define Altera_EP1K100_SIZE 1337000/8 /* 167125 Bytes */
56 #define Altera_EP1K100_SIZE (166965*8)
58 #define Altera_EP2C8_SIZE 247942
59 #define Altera_EP2C20_SIZE 586562
60 #define Altera_EP2C35_SIZE 883905
61 #define Altera_EP3C5_SIZE 368011 /* .rbf size in bytes */
64 *********************************************************************/
66 #define Altera_EP1K100_DESC(iface, fn_table, cookie) \
67 { Altera_ACEX1K, iface, Altera_EP1K100_SIZE, fn_table, cookie }
69 #endif /* _ACEX1K_H_ */