3 * Steven Scholz, imc Measurement & Control, steven.scholz@imc-berlin.de
6 * Rich Ireland, Enterasys Networks, rireland@enterasys.com.
8 * See file CREDITS for list of people who contributed to this
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
33 extern int ACEX1K_load( Altera_desc *desc, void *image, size_t size );
34 extern int ACEX1K_dump( Altera_desc *desc, void *buf, size_t bsize );
35 extern int ACEX1K_info( Altera_desc *desc );
37 extern int CYC2_load( Altera_desc *desc, void *image, size_t size );
38 extern int CYC2_dump( Altera_desc *desc, void *buf, size_t bsize );
39 extern int CYC2_info( Altera_desc *desc );
41 /* Slave Serial Implementation function table */
44 Altera_config_fn config;
46 Altera_status_fn status;
49 Altera_abort_fn abort;
51 } Altera_ACEX1K_Passive_Serial_fns;
53 /* Slave Serial Implementation function table */
56 Altera_config_fn config;
57 Altera_status_fn status;
59 Altera_write_fn write;
60 Altera_abort_fn abort;
62 } Altera_CYC2_Passive_Serial_fns;
65 *********************************************************************/
67 /* FIXME: Which size do we mean?
68 * Datasheet says 1337000/8=167125Bytes,
69 * Filesize of an *.rbf file is 166965 Bytes
72 #define Altera_EP1K100_SIZE 1337000/8 /* 167125 Bytes */
74 #define Altera_EP1K100_SIZE (166965*8)
76 #define Altera_EP2C8_SIZE 247942
77 #define Altera_EP2C20_SIZE 586562
78 #define Altera_EP2C35_SIZE 883905
81 *********************************************************************/
83 #define Altera_EP1K100_DESC(iface, fn_table, cookie) \
84 { Altera_ACEX1K, iface, Altera_EP1K100_SIZE, fn_table, cookie }
86 #endif /* _ACEX1K_H_ */