#define PRINTF(fmt,args...) printf (fmt ,##args)
#define PRINTF(fmt,args...)
#undef CONFIG_SYS_FPGA_CHECK_BUSY
#undef CONFIG_SYS_FPGA_PROG_FEEDBACK
#ifndef CONFIG_FPGA_DELAY
#define CONFIG_FPGA_DELAY()
#ifndef CONFIG_SYS_FPGA_WAIT
#define CONFIG_SYS_FPGA_WAIT CONFIG_SYS_HZ/100
static int spartan2_sp_load(xilinx_desc *desc, const void *buf, size_t bsize);
static int spartan2_sp_dump(xilinx_desc *desc, const void *buf, size_t bsize);
static int spartan2_ss_load(xilinx_desc *desc, const void *buf, size_t bsize);
static int spartan2_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize);
static int spartan2_load(xilinx_desc *desc, const void *buf, size_t bsize,
PRINTF ("%s: Launching Slave Serial Load\n", __FUNCTION__);
ret_val = spartan2_ss_load(desc, buf, bsize);
PRINTF ("%s: Launching Slave Parallel Load\n", __FUNCTION__);
ret_val = spartan2_sp_load(desc, buf, bsize);
printf ("%s: Unsupported interface type, %d\n",
__FUNCTION__, desc->iface);