diff --git a/src/pld/pld.c b/src/pld/pld.c index 39571400a..48638b925 100644 --- a/src/pld/pld.c +++ b/src/pld/pld.c @@ -21,23 +21,10 @@ #include "config.h" #endif -#include "replacements.h" - #include "pld.h" - -#include "jtag.h" -#include "command.h" #include "log.h" #include "time_support.h" -#include -#include -#include -#include -#include - -#include -#include /* pld drivers */ diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c index ae03572f1..d9c26760c 100644 --- a/src/pld/virtex2.c +++ b/src/pld/virtex2.c @@ -22,14 +22,9 @@ #endif #include "virtex2.h" - -#include "pld.h" #include "xilinx_bit.h" -#include "command.h" -#include "log.h" -#include "jtag.h" +#include "pld.h" -#include int virtex2_register_commands(struct command_context_s *cmd_ctx); int virtex2_pld_device_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct pld_device_s *pld_device); diff --git a/src/pld/virtex2.h b/src/pld/virtex2.h index 7bc6c5ebb..65ad74ab2 100644 --- a/src/pld/virtex2.h +++ b/src/pld/virtex2.h @@ -20,9 +20,7 @@ #ifndef VIRTEX2_H #define VIRTEX2_H -#include "types.h" -#include "pld.h" -#include "xilinx_bit.h" +#include "jtag.h" typedef struct virtex2_pld_device_s { diff --git a/src/pld/xilinx_bit.c b/src/pld/xilinx_bit.c index 35cf2f9f9..ef3c1e65d 100644 --- a/src/pld/xilinx_bit.c +++ b/src/pld/xilinx_bit.c @@ -22,19 +22,11 @@ #endif #include "xilinx_bit.h" - #include "pld.h" #include "log.h" -#include -#include #include -#include -#include -#include -#include -#include int read_section(FILE *input_file, int length_size, char section, u32 *buffer_length, u8 **buffer) { diff --git a/src/svf/svf.c b/src/svf/svf.c index ea60671c1..a68cfaec0 100644 --- a/src/svf/svf.c +++ b/src/svf/svf.c @@ -33,21 +33,9 @@ #endif #include "svf.h" - #include "jtag.h" -#include "command.h" -#include "log.h" #include "time_support.h" -#include -#include -#include -#include -#include -#include - -#include -#include // SVF command typedef enum diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c index e9b0a0082..b62de349d 100644 --- a/src/xsvf/xsvf.c +++ b/src/xsvf/xsvf.c @@ -42,21 +42,10 @@ #endif #include "xsvf.h" - #include "jtag.h" -#include "command.h" -#include "log.h" -#include -#include -#include -#include -#include #include -#include -#include - /* XSVF commands, from appendix B of xapp503.pdf */ #define XCOMPLETE 0x00