AM_CONFIG_HEADER([config.h])
 AH_BOTTOM([
 #include <helper/system.h>
+#include <helper/types.h>
 #include <helper/replacements.h>
 ])
 
 
 #ifndef BINARYBUFFER_H
 #define BINARYBUFFER_H
 
-#include <helper/types.h>
-
 /** @file
  * Support functions to access arbitrary bits in a byte array
  */
 
 #ifndef COMMAND_H
 #define COMMAND_H
 
-#include <helper/types.h>
-
 #include <jim.h>
 #include <jim-nvp.h>
 
 
 #ifndef FILEIO_H
 #define FILEIO_H
 
-#include <helper/types.h>
-
 #define FILEIO_MAX_ERROR_STRING                (128)
 
 enum fileio_type {
 
 #include <windows.h>
 #include <time.h>
 
-#include <helper/types.h>
-
 /* Windows does not declare sockaddr_un */
 #define UNIX_PATH_LEN 108
 struct sockaddr_un {
 
 #ifndef HAVE_ELF_H
 
-#include <helper/types.h>
-
 typedef uint32_t Elf32_Addr;
 typedef uint16_t Elf32_Half;
 typedef uint32_t Elf32_Off;
 
 #ifndef JTAG_LIBUSB_COMMON_H
 #define JTAG_LIBUSB_COMMON_H
 
-#include <helper/types.h>
 #include <usb.h>
 
 #define jtag_libusb_device                     usb_device
 
 #ifndef JTAG_LIBUSB_COMMON_H
 #define JTAG_LIBUSB_COMMON_H
 
-#include <helper/types.h>
 #include <libusb-1.0/libusb.h>
 
 #define jtag_libusb_device                     libusb_device
 
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
-#include <helper/types.h>
-
 struct rlink_speed_table {
        uint8_t const *dtc;
        uint16_t dtc_size;
 
 #include <jtag/interface.h>
 #include <jtag/commands.h>
 #include <target/image.h>
-#include <helper/types.h>
 #include "usb_common.h"
 #include "OpenULINK/include/msgtypes.h"
 
 
 #ifndef JTAG_USB_COMMON_H
 #define JTAG_USB_COMMON_H
 
-#include <helper/types.h>
-
 #include <usb.h>
 
 int jtag_usb_open(const uint16_t vids[], const uint16_t pids[],
 
 #ifndef XILINX_BIT_H
 #define XILINX_BIT_H
 
-#include <helper/types.h>
-
 struct xilinx_bit_file {
        uint8_t unknown_header[13];
        uint8_t *source_file;
 
 #define RTOS_H
 
 #include "server/server.h"
-#include <helper/types.h>
 #include <jim-nvp.h>
 
 typedef int64_t threadid_t;
 
 #ifndef ARM_DISASSEMBLER_H
 #define ARM_DISASSEMBLER_H
 
-#include <helper/types.h>
-
 enum arm_instruction_type {
        ARM_UNKNOWN_INSTUCTION,
 
 
 #ifndef ARM_SIMULATOR_H
 #define ARM_SIMULATOR_H
 
-#include <helper/types.h>
-
 struct target;
 
 struct arm_sim_interface {
 
 #ifndef ARMV4_5_CACHE_H
 #define ARMV4_5_CACHE_H
 
-#include <helper/types.h>
-
 struct command_context;
 
 struct armv4_5_cachesize {
 
 #ifndef AVR32_AP7K
 #define AVR32_AP7K
 
-#include <helper/types.h>
-
 struct target;
 
 #define AP7k_COMMON_MAGIC      0x4150374b
 
 #endif
 
 #include "target.h"
-#include "helper/types.h"
 #include "jtag/jtag.h"
 #include "avr32_jtag.h"
 
 
 #ifndef BREAKPOINTS_H
 #define BREAKPOINTS_H
 
-#include <helper/types.h>
-
 struct target;
 
 enum breakpoint_type {
 
 #ifndef MIPS_M4K_H
 #define MIPS_M4K_H
 
-#include <helper/types.h>
-
 struct target;
 
 #define MIPSM4K_COMMON_MAGIC   0xB321B321
 
 #include "config.h"
 #endif
 
-#include <helper/types.h>
 #include "register.h"
 #include <helper/log.h>
 
 
 #endif
 
 #include "server/server.h"
-#include <helper/types.h>
 
 #include "target/target.h"
 
 
 #ifndef TARGET_H
 #define TARGET_H
 
-#include <helper/types.h>
-
 struct reg;
 struct trace;
 struct command_context;
 
 #ifndef TARGET_TYPE_H
 #define TARGET_TYPE_H
 
-#include <helper/types.h>
 #include <jim-nvp.h>
 
 struct target;
 
 #ifndef TRACE_H
 #define TRACE_H
 
-#include <helper/types.h>
-
 struct target;
 struct command_context;