3 * Rich Ireland, Enterasys Networks, rireland@enterasys.com.
4 * Keith Outwater, keith_outwater@mvis.com
6 * SPDX-License-Identifier: GPL-2.0+
14 extern int Virtex2_load(Xilinx_desc *desc, const void *image, size_t size);
15 extern int Virtex2_dump(Xilinx_desc *desc, const void *buf, size_t bsize);
16 extern int Virtex2_info(Xilinx_desc *desc);
19 * Slave SelectMap Implementation function table.
30 Xilinx_rdata_fn rdata;
31 Xilinx_wdata_fn wdata;
33 Xilinx_abort_fn abort;
35 } Xilinx_Virtex2_Slave_SelectMap_fns;
37 /* Slave Serial Implementation function table */
41 Xilinx_rdata_fn rdata;
42 Xilinx_wdata_fn wdata;
43 } Xilinx_Virtex2_Slave_Serial_fns;
45 /* Device Image Sizes (in bytes)
46 *********************************************************************/
47 #define XILINX_XC2V40_SIZE (338208 / 8)
48 #define XILINX_XC2V80_SIZE (597408 / 8)
49 #define XILINX_XC2V250_SIZE (1591584 / 8)
50 #define XILINX_XC2V500_SIZE (2557857 / 8)
51 #define XILINX_XC2V1000_SIZE (3749408 / 8)
52 #define XILINX_XC2V1500_SIZE (5166240 / 8)
53 #define XILINX_XC2V2000_SIZE (6808352 / 8)
54 #define XILINX_XC2V3000_SIZE (9589408 / 8)
55 #define XILINX_XC2V4000_SIZE (14220192 / 8)
56 #define XILINX_XC2V6000_SIZE (19752096 / 8)
57 #define XILINX_XC2V8000_SIZE (26185120 / 8)
58 #define XILINX_XC2V10000_SIZE (33519264 / 8)
61 *********************************************************************/
62 #define XILINX_XC2V40_DESC(iface, fn_table, cookie) \
63 { Xilinx_Virtex2, iface, XILINX_XC2V40_SIZE, fn_table, cookie }
65 #define XILINX_XC2V80_DESC(iface, fn_table, cookie) \
66 { Xilinx_Virtex2, iface, XILINX_XC2V80_SIZE, fn_table, cookie }
68 #define XILINX_XC2V250_DESC(iface, fn_table, cookie) \
69 { Xilinx_Virtex2, iface, XILINX_XC2V250_SIZE, fn_table, cookie }
71 #define XILINX_XC2V500_DESC(iface, fn_table, cookie) \
72 { Xilinx_Virtex2, iface, XILINX_XC2V500_SIZE, fn_table, cookie }
74 #define XILINX_XC2V1000_DESC(iface, fn_table, cookie) \
75 { Xilinx_Virtex2, iface, XILINX_XC2V1000_SIZE, fn_table, cookie }
77 #define XILINX_XC2V1500_DESC(iface, fn_table, cookie) \
78 { Xilinx_Virtex2, iface, XILINX_XC2V1500_SIZE, fn_table, cookie }
80 #define XILINX_XC2V2000_DESC(iface, fn_table, cookie) \
81 { Xilinx_Virtex2, iface, XILINX_XC2V2000_SIZE, fn_table, cookie }
83 #define XILINX_XC2V3000_DESC(iface, fn_table, cookie) \
84 { Xilinx_Virtex2, iface, XILINX_XC2V3000_SIZE, fn_table, cookie }
86 #define XILINX_XC2V4000_DESC(iface, fn_table, cookie) \
87 { Xilinx_Virtex2, iface, XILINX_XC2V4000_SIZE, fn_table, cookie }
89 #define XILINX_XC2V6000_DESC(iface, fn_table, cookie) \
90 { Xilinx_Virtex2, iface, XILINX_XC2V6000_SIZE, fn_table, cookie }
92 #define XILINX_XC2V8000_DESC(iface, fn_table, cookie) \
93 { Xilinx_Virtex2, iface, XILINX_XC2V8000_SIZE, fn_table, cookie }
95 #define XILINX_XC2V10000_DESC(iface, fn_table, cookie) \
96 { Xilinx_Virtex2, iface, XILINX_XC2V10000_SIZE, fn_table, cookie }
98 #endif /* _VIRTEX2_H_ */