3 * Steven Scholz, imc Measurement & Control, steven.scholz@imc-berlin.de
6 * Rich Ireland, Enterasys Networks, rireland@enterasys.com.
8 * SPDX-License-Identifier: GPL-2.0+
16 extern int ACEX1K_load(Altera_desc
*desc
, const void *image
, size_t size
);
17 extern int ACEX1K_dump(Altera_desc
*desc
, const void *buf
, size_t bsize
);
18 extern int ACEX1K_info(Altera_desc
*desc
);
20 extern int CYC2_load(Altera_desc
*desc
, const void *image
, size_t size
);
21 extern int CYC2_dump(Altera_desc
*desc
, const void *buf
, size_t bsize
);
22 extern int CYC2_info(Altera_desc
*desc
);
24 /* Slave Serial Implementation function table */
27 Altera_config_fn config
;
29 Altera_status_fn status
;
32 Altera_abort_fn abort
;
34 } Altera_ACEX1K_Passive_Serial_fns
;
36 /* Slave Serial Implementation function table */
39 Altera_config_fn config
;
40 Altera_status_fn status
;
42 Altera_write_fn write
;
43 Altera_abort_fn abort
;
45 } Altera_CYC2_Passive_Serial_fns
;
48 *********************************************************************/
50 /* FIXME: Which size do we mean?
51 * Datasheet says 1337000/8=167125Bytes,
52 * Filesize of an *.rbf file is 166965 Bytes
55 #define Altera_EP1K100_SIZE 1337000/8 /* 167125 Bytes */
57 #define Altera_EP1K100_SIZE (166965*8)
59 #define Altera_EP2C8_SIZE 247942
60 #define Altera_EP2C20_SIZE 586562
61 #define Altera_EP2C35_SIZE 883905
62 #define Altera_EP3C5_SIZE 368011 /* .rbf size in bytes */
65 *********************************************************************/
67 #define Altera_EP1K100_DESC(iface, fn_table, cookie) \
68 { Altera_ACEX1K, iface, Altera_EP1K100_SIZE, fn_table, cookie }
70 #endif /* _ACEX1K_H_ */