3 * Rich Ireland, Enterasys Networks, rireland@enterasys.com.
5 * SPDX-License-Identifier: GPL-2.0+
13 /* Slave Parallel Implementation function table */
23 xilinx_rdata_fn rdata;
24 xilinx_wdata_fn wdata;
26 xilinx_abort_fn abort;
28 } xilinx_spartan2_slave_parallel_fns;
30 /* Slave Serial Implementation function table */
39 } xilinx_spartan2_slave_serial_fns;
41 extern struct xilinx_fpga_op spartan2_op;
44 *********************************************************************/
45 /* Spartan-II (2.5V) */
46 #define XILINX_XC2S15_SIZE 197728/8
47 #define XILINX_XC2S30_SIZE 336800/8
48 #define XILINX_XC2S50_SIZE 559232/8
49 #define XILINX_XC2S100_SIZE 781248/8
50 #define XILINX_XC2S150_SIZE 1040128/8
51 #define XILINX_XC2S200_SIZE 1335872/8
53 /* Spartan-IIE (1.8V) */
54 #define XILINX_XC2S50E_SIZE 630048/8
55 #define XILINX_XC2S100E_SIZE 863840/8
56 #define XILINX_XC2S150E_SIZE 1134496/8
57 #define XILINX_XC2S200E_SIZE 1442016/8
58 #define XILINX_XC2S300E_SIZE 1875648/8
61 *********************************************************************/
62 /* Spartan-II devices */
63 #define XILINX_XC2S15_DESC(iface, fn_table, cookie) \
64 { xilinx_spartan2, iface, XILINX_XC2S15_SIZE, fn_table, cookie, &spartan2_op }
66 #define XILINX_XC2S30_DESC(iface, fn_table, cookie) \
67 { xilinx_spartan2, iface, XILINX_XC2S30_SIZE, fn_table, cookie, &spartan2_op }
69 #define XILINX_XC2S50_DESC(iface, fn_table, cookie) \
70 { xilinx_spartan2, iface, XILINX_XC2S50_SIZE, fn_table, cookie, &spartan2_op }
72 #define XILINX_XC2S100_DESC(iface, fn_table, cookie) \
73 { xilinx_spartan2, iface, XILINX_XC2S100_SIZE, fn_table, cookie, &spartan2_op }
75 #define XILINX_XC2S150_DESC(iface, fn_table, cookie) \
76 { xilinx_spartan2, iface, XILINX_XC2S150_SIZE, fn_table, cookie, &spartan2_op }
78 #define XILINX_XC2S200_DESC(iface, fn_table, cookie) \
79 { xilinx_spartan2, iface, XILINX_XC2S200_SIZE, fn_table, cookie, &spartan2_op }
81 #define XILINX_XC2S50E_DESC(iface, fn_table, cookie) \
82 { xilinx_spartan2, iface, XILINX_XC2S50E_SIZE, fn_table, cookie, &spartan2_op }
84 #define XILINX_XC2S100E_DESC(iface, fn_table, cookie) \
85 { xilinx_spartan2, iface, XILINX_XC2S100E_SIZE, fn_table, cookie, &spartan2_op }
87 #define XILINX_XC2S150E_DESC(iface, fn_table, cookie) \
88 { xilinx_spartan2, iface, XILINX_XC2S150E_SIZE, fn_table, cookie, &spartan2_op }
90 #define XILINX_XC2S200E_DESC(iface, fn_table, cookie) \
91 { xilinx_spartan2, iface, XILINX_XC2S200E_SIZE, fn_table, cookie, &spartan2_op }
93 #define XILINX_XC2S300E_DESC(iface, fn_table, cookie) \
94 { xilinx_spartan2, iface, XILINX_XC2S300E_SIZE, fn_table, cookie, &spartan2_op }
96 #endif /* _SPARTAN2_H_ */