Make #include guard naming consistent 56/2956/5
authorMarc Schink <openocd-dev@marcschink.de>
Mon, 21 Sep 2015 19:07:46 +0000 (21:07 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Tue, 24 May 2016 21:30:55 +0000 (22:30 +0100)
Change-Id: Ie13e8af0bb74ed290f811dcad64ad06c9d8cb4fa
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/2956
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
164 files changed:
doc/manual/style.txt
src/flash/common.h
src/flash/mflash.h
src/flash/nand/arm_io.h
src/flash/nand/core.h
src/flash/nand/driver.h
src/flash/nand/fileio.h
src/flash/nand/imp.h
src/flash/nand/lpc3180.h
src/flash/nand/lpc32xx.h
src/flash/nand/mx3.h
src/flash/nand/mxc.h
src/flash/nand/nuc910.h
src/flash/nand/s3c24xx.h
src/flash/nand/s3c24xx_regs.h
src/flash/nor/cfi.h
src/flash/nor/core.h
src/flash/nor/driver.h
src/flash/nor/imp.h
src/flash/nor/non_cfi.h
src/flash/nor/ocl.h
src/flash/nor/spi.h
src/hello.h
src/helper/binarybuffer.h
src/helper/command.h
src/helper/configuration.h
src/helper/fileio.h
src/helper/ioutil.h
src/helper/jep106.h
src/helper/jim-nvp.h
src/helper/list.h
src/helper/log.h
src/helper/replacements.h
src/helper/system.h
src/helper/time_support.h
src/helper/types.h
src/helper/util.h
src/jtag/aice/aice_interface.h
src/jtag/aice/aice_pipe.h
src/jtag/aice/aice_port.h
src/jtag/aice/aice_transport.h
src/jtag/aice/aice_usb.h
src/jtag/commands.h
src/jtag/driver.h
src/jtag/drivers/bitbang.h
src/jtag/drivers/bitq.h
src/jtag/drivers/ftd2xx_common.h
src/jtag/drivers/libusb0_common.h
src/jtag/drivers/libusb1_common.h
src/jtag/drivers/libusb_common.h
src/jtag/drivers/minidriver_imp.h
src/jtag/drivers/mpsse.h
src/jtag/drivers/rlink.h
src/jtag/drivers/rlink_dtc_cmd.h
src/jtag/drivers/rlink_ep1_cmd.h
src/jtag/drivers/rlink_st7.h
src/jtag/drivers/usb_blaster/ublast_access.h
src/jtag/drivers/usb_common.h
src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx.h
src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx_internal.h
src/jtag/drivers/versaloon/versaloon.h
src/jtag/drivers/versaloon/versaloon_include.h
src/jtag/drivers/versaloon/versaloon_internal.h
src/jtag/hla/hla_interface.h
src/jtag/hla/hla_layout.h
src/jtag/hla/hla_tcl.h
src/jtag/hla/hla_transport.h
src/jtag/jtag.h
src/jtag/minidriver.h
src/jtag/minidriver/minidriver_imp.h
src/jtag/swd.h
src/jtag/tcl.h
src/openocd.h
src/pld/pld.h
src/pld/virtex2.h
src/pld/xilinx_bit.h
src/rtos/linux_header.h
src/rtos/rtos.h
src/rtos/rtos_chibios_stackings.h
src/rtos/rtos_ecos_stackings.h
src/rtos/rtos_embkernel_stackings.h
src/rtos/rtos_mqx_stackings.h
src/rtos/rtos_standard_stackings.h
src/server/gdb_server.h
src/server/server.h
src/server/tcl_server.h
src/server/telnet_server.h
src/svf/svf.h
src/target/algorithm.h
src/target/arm.h
src/target/arm11.h
src/target/arm11_dbgtap.h
src/target/arm720t.h
src/target/arm7_9_common.h
src/target/arm7tdmi.h
src/target/arm920t.h
src/target/arm926ejs.h
src/target/arm946e.h
src/target/arm966e.h
src/target/arm9tdmi.h
src/target/arm_adi_v5.h
src/target/arm_disassembler.h
src/target/arm_dpm.h
src/target/arm_jtag.h
src/target/arm_opcodes.h
src/target/arm_semihosting.h
src/target/arm_simulator.h
src/target/armv4_5.h
src/target/armv4_5_cache.h
src/target/armv4_5_mmu.h
src/target/armv7a.h
src/target/armv7a_cache.h
src/target/armv7a_cache_l2x.h
src/target/armv7m.h
src/target/armv7m_trace.h
src/target/avr32_ap7k.h
src/target/avr32_jtag.h
src/target/avr32_mem.h
src/target/avr32_regs.h
src/target/avrt.h
src/target/breakpoints.h
src/target/cortex_a.h
src/target/cortex_m.h
src/target/dsp563xx.h
src/target/dsp563xx_once.h
src/target/dsp5680xx.h
src/target/embeddedice.h
src/target/etb.h
src/target/etm.h
src/target/etm_dummy.h
src/target/image.h
src/target/lakemont.h
src/target/mips32.h
src/target/mips32_dmaacc.h
src/target/mips32_pracc.h
src/target/mips_ejtag.h
src/target/mips_m4k.h
src/target/nds32.h
src/target/nds32_aice.h
src/target/nds32_cmd.h
src/target/nds32_disassembler.h
src/target/nds32_edm.h
src/target/nds32_insn.h
src/target/nds32_reg.h
src/target/nds32_tlb.h
src/target/nds32_v2.h
src/target/nds32_v3.h
src/target/nds32_v3_common.h
src/target/nds32_v3m.h
src/target/oocd_trace.h
src/target/openrisc/jsp_server.h
src/target/openrisc/or1k.h
src/target/openrisc/or1k_du.h
src/target/openrisc/or1k_tap.h
src/target/register.h
src/target/smp.h
src/target/target.h
src/target/target_request.h
src/target/target_type.h
src/target/trace.h
src/target/x86_32_common.h
src/target/xscale.h
src/transport/transport.h
src/xsvf/xsvf.h

index 54c1342e64d47165cb60d990574b2b67cef06518..2ff2a29eed4a29fad8883a8057d9b79f5a7f1edb 100644 (file)
@@ -72,6 +72,25 @@ Finally, try to avoid lines of code that are longer than than 72-80 columns:
 - use underline characters between consecutive words in identifiers
   (e.g. @c more_than_one_word).
 
 - use underline characters between consecutive words in identifiers
   (e.g. @c more_than_one_word).
 
+@section style_include_guards Include Guards
+
+Every header file should have a unique include guard to prevent multiple
+inclusion.
+To guarantee uniqueness, an include guard should be based on the filename and
+the full path in the project source tree.
+
+For the header file src/helper/jim-nvp.h, the include guard would look like
+this:
+
+@code
+#ifndef OPENOCD_HELPER_JIM_NVP_H
+#define OPENOCD_HELPER_JIM_NVP_H
+
+/* Your code here. */
+
+#endif /* OPENOCD_HELPER_JIM_NVP_H */
+@endcode
+
 @section stylec99 C99 Rules
 
 - inline functions
 @section stylec99 C99 Rules
 
 - inline functions
index 5360aae2f799398f82d0c693bd7d67f303ede4bc..ce26fccd75b39632e9d457ec42128b562a05e221 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FLASH_COMMON_H
-#define FLASH_COMMON_H
+#ifndef OPENOCD_FLASH_COMMON_H
+#define OPENOCD_FLASH_COMMON_H
 
 #include <helper/log.h>
 
 
 #include <helper/log.h>
 
@@ -45,4 +45,4 @@ bool flash_driver_name_matches(const char *name, const char *expected);
 #define ERROR_FLASH_BANK_NOT_PROBED                    (-907)
 #define ERROR_FLASH_OPER_UNSUPPORTED           (-908)
 
 #define ERROR_FLASH_BANK_NOT_PROBED                    (-907)
 #define ERROR_FLASH_OPER_UNSUPPORTED           (-908)
 
-#endif /* FLASH_COMMON_H */
+#endif /* OPENOCD_FLASH_COMMON_H */
index f79b95d679228cd0447a16da81535bcb1840d60d..18da403618c1bf0553458836d70e35c16cbb16c2 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _MFLASH_H
-#define _MFLASH_H
+#ifndef OPENOCD_FLASH_MFLASH_H
+#define OPENOCD_FLASH_MFLASH_H
 
 struct command_context;
 
 
 struct command_context;
 
@@ -286,4 +286,4 @@ typedef enum _mg_opmode {
        mg_op_mode_stg = 0      /* Only Storage */
 } mg_opmode;
 
        mg_op_mode_stg = 0      /* Only Storage */
 } mg_opmode;
 
-#endif
+#endif /* OPENOCD_FLASH_MFLASH_H */
index 30099cfc85c19bd04615e3127657d2ced817723f..8bb3114585718f7feee9a47f987381d4e386e9c3 100644 (file)
@@ -14,8 +14,8 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-#ifndef __ARM_NANDIO_H
-#define __ARM_NANDIO_H
+#ifndef OPENOCD_FLASH_NAND_ARM_IO_H
+#define OPENOCD_FLASH_NAND_ARM_IO_H
 
 /**
  * Available operational states the arm_nand_data struct can be in.
 
 /**
  * Available operational states the arm_nand_data struct can be in.
@@ -52,4 +52,4 @@ struct arm_nand_data {
 int arm_nandwrite(struct arm_nand_data *nand, uint8_t *data, int size);
 int arm_nandread(struct arm_nand_data *nand, uint8_t *data, uint32_t size);
 
 int arm_nandwrite(struct arm_nand_data *nand, uint8_t *data, int size);
 int arm_nandread(struct arm_nand_data *nand, uint8_t *data, uint32_t size);
 
-#endif /* __ARM_NANDIO_H */
+#endif /* OPENOCD_FLASH_NAND_ARM_IO_H */
index 3990fa3b79e2082b0c4dc3393469b61eb7c04e2c..5bf9fb3d19ac1228937c3fada60ee532a6e56e9b 100644 (file)
@@ -21,8 +21,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FLASH_NAND_CORE_H
-#define FLASH_NAND_CORE_H
+#ifndef OPENOCD_FLASH_NAND_CORE_H
+#define OPENOCD_FLASH_NAND_CORE_H
 
 #include <flash/common.h>
 
 
 #include <flash/common.h>
 
@@ -229,4 +229,4 @@ COMMAND_HELPER(nand_command_get_device, unsigned name_index,
 #define         ERROR_NAND_ERROR_CORRECTION_FAILED      (-1105)
 #define         ERROR_NAND_NO_BUFFER                    (-1106)
 
 #define         ERROR_NAND_ERROR_CORRECTION_FAILED      (-1105)
 #define         ERROR_NAND_NO_BUFFER                    (-1106)
 
-#endif /* FLASH_NAND_CORE_H */
+#endif /* OPENOCD_FLASH_NAND_CORE_H */
index fda77db8c68df536b2f38452971fb6e8ac5a1b8e..2182a772714efb9a3e061beb8e60e33b4508cc8a 100644 (file)
@@ -18,8 +18,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FLASH_NAND_DRIVER_H
-#define FLASH_NAND_DRIVER_H
+#ifndef OPENOCD_FLASH_NAND_DRIVER_H
+#define OPENOCD_FLASH_NAND_DRIVER_H
 
 struct nand_device;
 
 
 struct nand_device;
 
@@ -100,4 +100,4 @@ typedef int (*nand_driver_walker_t)(struct nand_flash_controller *c, void *);
  */
 int nand_driver_walk(nand_driver_walker_t f, void *x);
 
  */
 int nand_driver_walk(nand_driver_walker_t f, void *x);
 
-#endif /* FLASH_NAND_DRIVER_H */
+#endif /* OPENOCD_FLASH_NAND_DRIVER_H */
index 4e6e1f70f54e48a5455fe61f78855727194532d0..af6c7666ed59ab9968afe797ce3dfd7c4c2072f7 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FLASH_NAND_FILEIO_H
-#define FLASH_NAND_FILEIO_H
+#ifndef OPENOCD_FLASH_NAND_FILEIO_H
+#define OPENOCD_FLASH_NAND_FILEIO_H
 
 #include <helper/time_support.h>
 #include <helper/fileio.h>
 
 #include <helper/time_support.h>
 #include <helper/fileio.h>
@@ -53,4 +53,4 @@ COMMAND_HELPER(nand_fileio_parse_args, struct nand_fileio_state *state,
 
 int nand_fileio_read(struct nand_device *nand, struct nand_fileio_state *s);
 
 
 int nand_fileio_read(struct nand_device *nand, struct nand_fileio_state *s);
 
-#endif /* FLASH_NAND_FILEIO_H */
+#endif /* OPENOCD_FLASH_NAND_FILEIO_H */
index c55470454df8b84a9b1e5a58d8ac85a45508bd58..c8a4ed9c5539074b4025e6ed562b9af9bf933371 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FLASH_NAND_IMP_H
-#define FLASH_NAND_IMP_H
+#ifndef OPENOCD_FLASH_NAND_IMP_H
+#define OPENOCD_FLASH_NAND_IMP_H
 
 #include "core.h"
 #include "driver.h"
 
 #include "core.h"
 #include "driver.h"
@@ -35,4 +35,4 @@ int nand_probe(struct nand_device *nand);
 int nand_erase(struct nand_device *nand, int first_block, int last_block);
 int nand_build_bbt(struct nand_device *nand, int first, int last);
 
 int nand_erase(struct nand_device *nand, int first_block, int last_block);
 int nand_build_bbt(struct nand_device *nand, int first, int last);
 
-#endif /* FLASH_NAND_IMP_H */
+#endif /* OPENOCD_FLASH_NAND_IMP_H */
index 4b74899c73c0b87b778164fd19f6fec2e65625d6..c02ee5b27a232e55b602b46e7a5d4127caf255a4 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef LPC3180_NAND_CONTROLLER_H
-#define LPC3180_NAND_CONTROLLER_H
+#ifndef OPENOCD_FLASH_NAND_LPC3180_H
+#define OPENOCD_FLASH_NAND_LPC3180_H
 
 enum lpc3180_selected_controller {
        LPC3180_NO_CONTROLLER,
 
 enum lpc3180_selected_controller {
        LPC3180_NO_CONTROLLER,
@@ -34,4 +34,4 @@ struct lpc3180_nand_controller {
        uint32_t sw_wp_upper_bound;
 };
 
        uint32_t sw_wp_upper_bound;
 };
 
-#endif /*LPC3180_NAND_CONTROLLER_H */
+#endif /* OPENOCD_FLASH_NAND_LPC3180_H */
index cde6b7da7ccb8809e46d3cb72b2ebd2bb7915873..90b20b24721cb040c4e6f421127063fdd443c9a8 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef LPC32xx_NAND_CONTROLLER_H
-#define LPC32xx_NAND_CONTROLLER_H
+#ifndef OPENOCD_FLASH_NAND_LPC32XX_H
+#define OPENOCD_FLASH_NAND_LPC32XX_H
 
 enum lpc32xx_selected_controller {
        LPC32xx_NO_CONTROLLER,
 
 enum lpc32xx_selected_controller {
        LPC32xx_NO_CONTROLLER,
@@ -33,4 +33,4 @@ struct lpc32xx_nand_controller {
        uint32_t sw_wp_upper_bound;
 };
 
        uint32_t sw_wp_upper_bound;
 };
 
-#endif /*LPC32xx_NAND_CONTROLLER_H */
+#endif /* OPENOCD_FLASH_NAND_LPC32XX_H */
index b9fd3314c41705b42653cbf83a3d1e122a38d44d..00664d866ae46a169839086a602c5baa542dea4d 100644 (file)
@@ -17,6 +17,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_FLASH_NAND_MX3_H
+#define OPENOCD_FLASH_NAND_MX3_H
+
 /*
  * Freescale iMX3* OpenOCD NAND Flash controller support.
  *
 /*
  * Freescale iMX3* OpenOCD NAND Flash controller support.
  *
@@ -105,3 +108,5 @@ struct mx3_nf_controller {
        enum mx_nf_finalize_action fin;
        struct mx3_nf_flags flags;
 };
        enum mx_nf_finalize_action fin;
        struct mx3_nf_flags flags;
 };
+
+#endif /* OPENOCD_FLASH_NAND_MX3_H */
index 0592be2fb7e2594c17a996e7e7d096f1e445f373..a1887288bfc6f8345d841b666bf50c854cf43ae1 100644 (file)
@@ -1,4 +1,3 @@
-
 /***************************************************************************
  *   Copyright (C) 2009 by Alexei Babich                                   *
  *   Rezonans plc., Chelyabinsk, Russia                                    *
 /***************************************************************************
  *   Copyright (C) 2009 by Alexei Babich                                   *
  *   Rezonans plc., Chelyabinsk, Russia                                    *
@@ -21,6 +20,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_FLASH_NAND_MXC_H
+#define OPENOCD_FLASH_NAND_MXC_H
+
 /*
  * Freescale iMX OpenOCD NAND Flash controller support.
  * based on Freescale iMX2* and iMX3* OpenOCD NAND Flash controller support.
 /*
  * Freescale iMX OpenOCD NAND Flash controller support.
  * based on Freescale iMX2* and iMX3* OpenOCD NAND Flash controller support.
@@ -162,3 +164,5 @@ struct mxc_nf_controller {
        enum mxc_nf_finalize_action fin;
        struct mxc_nf_flags flags;
 };
        enum mxc_nf_finalize_action fin;
        struct mxc_nf_flags flags;
 };
+
+#endif /* OPENOCD_FLASH_NAND_MXC_H */
index 7b94009b8c55046e9fa1c01ff2294991a820a04c..8877cf6331c0e0aa37a9be8578fa7da1fefc181e 100644 (file)
@@ -20,8 +20,8 @@
  * NAND controller interface for Nuvoton NUC910
  */
 
  * NAND controller interface for Nuvoton NUC910
  */
 
-#ifndef NUC910_H
-#define NUC910_H
+#ifndef OPENOCD_FLASH_NAND_NUC910_H
+#define OPENOCD_FLASH_NAND_NUC910_H
 
 #define NUC910_FMICSR  0xB000D000
 #define NUC910_SMCSR   0xB000D0A0
 
 #define NUC910_FMICSR  0xB000D000
 #define NUC910_SMCSR   0xB000D0A0
@@ -54,5 +54,4 @@
 
 /* ECC4 Correction Status (ECC4ST) */
 
 
 /* ECC4 Correction Status (ECC4ST) */
 
-#endif /* NUC910_H */
-
+#endif /* OPENOCD_FLASH_NAND_NUC910_H */
index e8126cda6e92ccd6c821d2a13456618653faa85d..5c7782dabc97a54c73a2a4f43ab6daa19440c8c2 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef S3C24xx_NAND_H
-#define S3C24xx_NAND_H
+#ifndef OPENOCD_FLASH_NAND_S3C24XX_H
+#define OPENOCD_FLASH_NAND_S3C24XX_H
 
 /*
  * S3C24XX Series OpenOCD NAND Flash controller support.
 
 /*
  * S3C24XX Series OpenOCD NAND Flash controller support.
@@ -75,4 +75,4 @@ int s3c2440_read_block_data(struct nand_device *nand,
 int s3c2440_write_block_data(struct nand_device *nand,
                uint8_t *data, int data_size);
 
 int s3c2440_write_block_data(struct nand_device *nand,
                uint8_t *data, int data_size);
 
-#endif /* S3C24xx_NAND_H */
+#endif /* OPENOCD_FLASH_NAND_S3C24XX_H */
index 312591e7416dc41e53da01c10f1a01290b75a47b..88bc66567e9acee978b3f77a6494da49db212fde 100644 (file)
@@ -20,8 +20,8 @@
  * S3C2410 NAND register definitions
  */
 
  * S3C2410 NAND register definitions
  */
 
-#ifndef __ASM_ARM_REGS_NAND
-#define __ASM_ARM_REGS_NAND
+#ifndef OPENOCD_FLASH_NAND_S3C24XX_REGS_H
+#define OPENOCD_FLASH_NAND_S3C24XX_REGS_H
 
 #define S3C2410_NFREG(x) (x)
 
 
 #define S3C2410_NFREG(x) (x)
 
 #define S3C2412_NFECCERR_MULTIBIT      (2)
 #define S3C2412_NFECCERR_ECCAREA       (3)
 
 #define S3C2412_NFECCERR_MULTIBIT      (2)
 #define S3C2412_NFECCERR_ECCAREA       (3)
 
-#endif /* __ASM_ARM_REGS_NAND */
-
+#endif /* OPENOCD_FLASH_NAND_S3C24XX_REGS_H */
index 953b7baefc9d185e39d29b3efcf06acbebe4e133..1eb65f900c1712a802735b6b4dba8493195b51da 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef CFI_H
-#define CFI_H
+#ifndef OPENOCD_FLASH_NOR_CFI_H
+#define OPENOCD_FLASH_NOR_CFI_H
 
 #define CFI_STATUS_POLL_MASK_DQ5_DQ6_DQ7 0xE0 /* DQ5..DQ7 */
 #define CFI_STATUS_POLL_MASK_DQ6_DQ7     0xC0 /* DQ6..DQ7 */
 
 #define CFI_STATUS_POLL_MASK_DQ5_DQ6_DQ7 0xE0 /* DQ5..DQ7 */
 #define CFI_STATUS_POLL_MASK_DQ6_DQ7     0xC0 /* DQ6..DQ7 */
@@ -159,4 +159,4 @@ struct cfi_fixup {
 #define CFI_MFR_ANY            0xffff
 #define CFI_ID_ANY             0xffff
 
 #define CFI_MFR_ANY            0xffff
 #define CFI_ID_ANY             0xffff
 
-#endif /* CFI_H */
+#endif /* OPENOCD_FLASH_NOR_CFI_H */
index 5d5d06c69d06b30b9c29bb77e2c50f122abc51f6..929ebdbea025cd0c81d67fd280b846636b6c942f 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FLASH_NOR_CORE_H
-#define FLASH_NOR_CORE_H
+#ifndef OPENOCD_FLASH_NOR_CORE_H
+#define OPENOCD_FLASH_NOR_CORE_H
 
 #include <flash/common.h>
 
 
 #include <flash/common.h>
 
@@ -206,4 +206,4 @@ struct flash_bank *get_flash_bank_by_num_noprobe(int num);
 int get_flash_bank_by_addr(struct target *target, uint32_t addr, bool check,
                struct flash_bank **result_bank);
 
 int get_flash_bank_by_addr(struct target *target, uint32_t addr, bool check,
                struct flash_bank **result_bank);
 
-#endif /* FLASH_NOR_CORE_H */
+#endif /* OPENOCD_FLASH_NOR_CORE_H */
index 729c5eb270ba83b7884c93810d1aab21f8b5cd05..0ae4d8e20453991ad55fb2247d15e518f3a05144 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FLASH_NOR_DRIVER_H
-#define FLASH_NOR_DRIVER_H
+#ifndef OPENOCD_FLASH_NOR_DRIVER_H
+#define OPENOCD_FLASH_NOR_DRIVER_H
 
 struct flash_bank;
 
 
 struct flash_bank;
 
@@ -221,4 +221,4 @@ struct flash_driver {
  */
 struct flash_driver *flash_driver_find_by_name(const char *name);
 
  */
 struct flash_driver *flash_driver_find_by_name(const char *name);
 
-#endif /* FLASH_NOR_DRIVER_H */
+#endif /* OPENOCD_FLASH_NOR_DRIVER_H */
index db2dc7351f5503362afa18b7044939add69719fb..87475a39c7ca64f77a5a7e9275e98b7fa7fc750a 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FLASH_NOR_IMP_H
-#define FLASH_NOR_IMP_H
+#ifndef OPENOCD_FLASH_NOR_IMP_H
+#define OPENOCD_FLASH_NOR_IMP_H
 
 /* this is an internal header */
 #include "core.h"
 
 /* this is an internal header */
 #include "core.h"
@@ -46,4 +46,4 @@ int flash_driver_read(struct flash_bank *bank,
 int flash_write_unlock(struct target *target, struct image *image,
                uint32_t *written, int erase, bool unlock);
 
 int flash_write_unlock(struct target *target, struct image *image,
                uint32_t *written, int erase, bool unlock);
 
-#endif /* FLASH_NOR_IMP_H */
+#endif /* OPENOCD_FLASH_NOR_IMP_H */
index ead9820a254e9a3669e9c8297d6c0a78b4a368ce..c411cb885253691c1b81ea054e47fd0a67a64388 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef NON_CFI_H
-#define NON_CFI_H
+#ifndef OPENOCD_FLASH_NOR_NON_CFI_H
+#define OPENOCD_FLASH_NOR_NON_CFI_H
 
 struct non_cfi {
        uint16_t mfr;
 
 struct non_cfi {
        uint16_t mfr;
@@ -33,4 +33,4 @@ struct non_cfi {
 
 void cfi_fixup_non_cfi(struct flash_bank *bank);
 
 
 void cfi_fixup_non_cfi(struct flash_bank *bank);
 
-#endif /* NON_CFI_H */
+#endif /* OPENOCD_FLASH_NOR_NON_CFI_H */
index f57e2885b57f00244284ab69ff5f9d2990548900..3e83f76cfdcd521a5938ac0fb3542db48d2c3ce3 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef OCL_H
-#define OCL_H
+#ifndef OPENOCD_FLASH_NOR_OCL_H
+#define OPENOCD_FLASH_NOR_OCL_H
 
 /* command/response mask */
 #define OCL_CMD_MASK 0xFFFF0000L
 
 /* command/response mask */
 #define OCL_CMD_MASK 0xFFFF0000L
@@ -36,4 +36,4 @@
 
 #define OCL_CHKS_INIT 0xC100CD0CL
 
 
 #define OCL_CHKS_INIT 0xC100CD0CL
 
-#endif /* OCL_H */
+#endif /* OPENOCD_FLASH_NOR_OCL_H */
index 73ec17e506384fdb3492f60bc243365e7b26a451..a1849983f26db9e16603cb22dfdfc2ad6d3a7a0b 100644 (file)
@@ -19,6 +19,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_FLASH_NOR_SPI_H
+#define OPENOCD_FLASH_NOR_SPI_H
+
 /* data structure to maintain flash ids from different vendors */
 struct flash_device {
        char *name;
 /* data structure to maintain flash ids from different vendors */
 struct flash_device {
        char *name;
@@ -54,3 +57,5 @@ extern const struct flash_device flash_devices[];
 #define SPIFLASH_PAGE_PROGRAM  0x02 /* Page Program */
 #define SPIFLASH_FAST_READ             0x0B /* Fast Read */
 #define SPIFLASH_READ                  0x03 /* Normal Read */
 #define SPIFLASH_PAGE_PROGRAM  0x02 /* Page Program */
 #define SPIFLASH_FAST_READ             0x0B /* Fast Read */
 #define SPIFLASH_READ                  0x03 /* Normal Read */
+
+#endif /* OPENOCD_FLASH_NOR_SPI_H */
index 4f5813886451508760ed95bdfcc65d673c3c489f..c88c89ddfa3f351d44aa5bb14b7263f8eb5f24ae 100644 (file)
@@ -26,4 +26,4 @@ struct command_registration;
  */
 extern const struct command_registration hello_command_handlers[];
 
  */
 extern const struct command_registration hello_command_handlers[];
 
-#endif /* OPENOCD_HELLO_H */
+#endif /* OPENOCD_HELLO_H */
index a8343c2aa091a80a8715d898f383fb265c7a3f0c..dd0d275abd1ad5e210a8b5871f14191836df1f32 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef BINARYBUFFER_H
-#define BINARYBUFFER_H
+#ifndef OPENOCD_HELPER_BINARYBUFFER_H
+#define OPENOCD_HELPER_BINARYBUFFER_H
 
 #include "list.h"
 
 
 #include "list.h"
 
@@ -238,4 +238,4 @@ int unhexify(char *bin, const char *hex, int count);
 int hexify(char *hex, const char *bin, int count, int out_maxlen);
 void buffer_shr(void *_buf, unsigned buf_len, unsigned count);
 
 int hexify(char *hex, const char *bin, int count, int out_maxlen);
 void buffer_shr(void *_buf, unsigned buf_len, unsigned count);
 
-#endif /* BINARYBUFFER_H */
+#endif /* OPENOCD_HELPER_BINARYBUFFER_H */
index 347441b5e5c6adc64101fbcc33277020651813da..5c39660115c2110b6b4ae3fd0469a93b7d82d984 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef COMMAND_H
-#define COMMAND_H
+#ifndef OPENOCD_HELPER_COMMAND_H
+#define OPENOCD_HELPER_COMMAND_H
 
 #include <jim-nvp.h>
 
 
 #include <jim-nvp.h>
 
@@ -415,4 +415,4 @@ COMMAND_HELPER(handle_command_parse_bool, bool *out, const char *label);
 void script_debug(Jim_Interp *interp, const char *cmd,
                  unsigned argc, Jim_Obj * const *argv);
 
 void script_debug(Jim_Interp *interp, const char *cmd,
                  unsigned argc, Jim_Obj * const *argv);
 
-#endif /* COMMAND_H */
+#endif /* OPENOCD_HELPER_COMMAND_H */
index 1974bae55cf3dc1af0a8acf3aee429b28fd8d575..3cbcd41f6f252c1411b114544b2d0af6bfed2fbe 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef CONFIGURATION_H
-#define CONFIGURATION_H
+#ifndef OPENOCD_HELPER_CONFIGURATION_H
+#define OPENOCD_HELPER_CONFIGURATION_H
 
 #include <helper/command.h>
 
 
 #include <helper/command.h>
 
@@ -40,4 +40,4 @@ FILE *open_file_from_path(const char *file, const char *mode);
 char *find_file(const char *name);
 char *get_home_dir(const char *append_path);
 
 char *find_file(const char *name);
 char *get_home_dir(const char *append_path);
 
-#endif /* CONFIGURATION_H */
+#endif /* OPENOCD_HELPER_CONFIGURATION_H */
index d88740b4f17d13f6895272325f180e010c620771..ae4a3ecfc291b4665e81e920dd82f6d787a118ec 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef FILEIO_H
-#define FILEIO_H
+#ifndef OPENOCD_HELPER_FILEIO_H
+#define OPENOCD_HELPER_FILEIO_H
 
 #define FILEIO_MAX_ERROR_STRING                (128)
 
 
 #define FILEIO_MAX_ERROR_STRING                (128)
 
@@ -66,4 +66,4 @@ int fileio_size(struct fileio *fileio, size_t *size);
 #define ERROR_FILEIO_RESOURCE_TYPE_UNKNOWN             (-1204)
 #define ERROR_FILEIO_OPERATION_NOT_SUPPORTED   (-1205)
 
 #define ERROR_FILEIO_RESOURCE_TYPE_UNKNOWN             (-1204)
 #define ERROR_FILEIO_OPERATION_NOT_SUPPORTED   (-1205)
 
-#endif /* FILEIO_H */
+#endif /* OPENOCD_HELPER_FILEIO_H */
index e79b2e070923d21466d89107f8a6586108c1783b..f060aab0906e1be328a465a8ef578a560385c6bb 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef HELPER_IOUTILS_H
-#define HELPER_IOUTILS_H
+#ifndef OPENOCD_HELPER_IOUTIL_H
+#define OPENOCD_HELPER_IOUTIL_H
 
 struct command_context;
 
 int ioutil_init(struct command_context *cmd_ctx);
 
 
 struct command_context;
 
 int ioutil_init(struct command_context *cmd_ctx);
 
-#endif /* HELPER_IOUTILS_H */
+#endif /* OPENOCD_HELPER_IOUTIL_H */
index c8a8622b4586a43d052ea581bf3d8442d8cc0357..08445803e75b1889d93e009d20564bac20e8ea9d 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef JEP106_H
-#define JEP106_H
+#ifndef OPENOCD_HELPER_JEP106_H
+#define OPENOCD_HELPER_JEP106_H
 
 /**
  * Get the manufacturer name associated with a JEP106 ID.
 
 /**
  * Get the manufacturer name associated with a JEP106 ID.
@@ -29,4 +29,4 @@
  */
 const char *jep106_manufacturer(unsigned bank, unsigned id);
 
  */
 const char *jep106_manufacturer(unsigned bank, unsigned id);
 
-#endif
+#endif /* OPENOCD_HELPER_JEP106_H */
index ca382dd02cb8ff0e4f46ad5d94232f061dc36b5e..7b4a491d3320831ee1b8d7c490cfb9445de8ec5a 100644 (file)
@@ -41,8 +41,8 @@
  * official policies, either expressed or implied, of the Jim Tcl Project.
  */
 
  * official policies, either expressed or implied, of the Jim Tcl Project.
  */
 
-#ifndef JIM_NVP_H
-#define JIM_NVP_H
+#ifndef OPENOCD_HELPER_JIM_NVP_H
+#define OPENOCD_HELPER_JIM_NVP_H
 
 #include <jim.h>
 
 
 #include <jim.h>
 
@@ -326,4 +326,4 @@ void Jim_GetOpt_NvpUnknown(Jim_GetOptInfo *goi, const Jim_Nvp *lookup, int hadpr
  */
 int Jim_GetOpt_Enum(Jim_GetOptInfo *goi, const char *const *lookup, int *puthere);
 
  */
 int Jim_GetOpt_Enum(Jim_GetOptInfo *goi, const char *const *lookup, int *puthere);
 
-#endif
+#endif /* OPENOCD_HELPER_JIM_NVP_H */
index 302b91097b5d655343d6fe5e6ced84d58413436c..6fd0e7ca712c95132a6f695f3b52055633dc7fef 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _LINUX_LIST_H
-#define _LINUX_LIST_H
+#ifndef OPENOCD_HELPER_LIST_H
+#define OPENOCD_HELPER_LIST_H
 
 /* begin local changes */
 #include <helper/types.h>
 
 /* begin local changes */
 #include <helper/types.h>
@@ -734,4 +734,4 @@ static inline void hlist_move_list(struct hlist_head *old,
             ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1; }); \
             pos = n)
 
             ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1; }); \
             pos = n)
 
-#endif
+#endif /* OPENOCD_HELPER_LIST_H */
index afaa5b5b285a9ae3f00033ee2fd7f7aa8d624cf6..eb222cbb708d025fcdbd57d36687edf05961ec9a 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ERROR_H
-#define ERROR_H
+#ifndef OPENOCD_HELPER_LOG_H
+#define OPENOCD_HELPER_LOG_H
 
 #include <helper/command.h>
 
 
 #include <helper/command.h>
 
@@ -139,4 +139,4 @@ extern int debug_level;
 #define ERROR_WAIT                                             (-5)
 
 
 #define ERROR_WAIT                                             (-5)
 
 
-#endif /* LOG_H */
+#endif /* OPENOCD_HELPER_LOG_H */
index b6cf7f55a485d1304fafbe8f49bd8a16a18503bf..1e2fbf20f9ef349484cd48dde2aefcc12aede0cd 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef REPLACEMENTS_H
-#define REPLACEMENTS_H
+#ifndef OPENOCD_HELPER_REPLACEMENTS_H
+#define OPENOCD_HELPER_REPLACEMENTS_H
 
 /* MIN,MAX macros */
 #ifndef MIN
 
 /* MIN,MAX macros */
 #ifndef MIN
@@ -280,4 +280,4 @@ typedef struct {
 const char *libusb_error_name(int error_code);
 #endif /* defined HAVE_LIBUSB1 && !defined HAVE_LIBUSB_ERROR_NAME */
 
 const char *libusb_error_name(int error_code);
 #endif /* defined HAVE_LIBUSB1 && !defined HAVE_LIBUSB_ERROR_NAME */
 
-#endif /* REPLACEMENTS_H */
+#endif /* OPENOCD_HELPER_REPLACEMENTS_H */
index 3fb42c08c15b1e27bd6348580182c4b917d8305d..97b3443bedb543ac5351ffd0a82fa0aa91ad3236 100644 (file)
@@ -18,8 +18,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef SYSTEM_H
-#define SYSTEM_H
+#ifndef OPENOCD_HELPER_SYSTEM_H
+#define OPENOCD_HELPER_SYSTEM_H
 
 /* standard C library header files */
 #include <stdio.h>
 
 /* standard C library header files */
 #include <stdio.h>
@@ -86,4 +86,4 @@
 #define false   0
 #endif
 
 #define false   0
 #endif
 
-#endif /* SYSTEM_H */
+#endif /* OPENOCD_HELPER_SYSTEM_H */
index b2abf1c6d903a10fda0507f5872999059d714807..58c8c48bb1a9abc1ba66ecf2a5cefb5c5867dc58 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef TIME_SUPPORT_H
-#define TIME_SUPPORT_H
+#ifndef OPENOCD_HELPER_TIME_SUPPORT_H
+#define OPENOCD_HELPER_TIME_SUPPORT_H
 
 #ifdef TIME_WITH_SYS_TIME
 # include <sys/time.h>
 
 #ifdef TIME_WITH_SYS_TIME
 # include <sys/time.h>
@@ -57,4 +57,4 @@ float duration_elapsed(const struct duration *duration);
 /** @returns KB/sec for the elapsed @a duration and @a count bytes. */
 float duration_kbps(const struct duration *duration, size_t count);
 
 /** @returns KB/sec for the elapsed @a duration and @a count bytes. */
 float duration_kbps(const struct duration *duration, size_t count);
 
-#endif /* TIME_SUPPORT_H */
+#endif /* OPENOCD_HELPER_TIME_SUPPORT_H */
index 6f5a32579fa53f6ff35dc5a38c62e7468cf88998..1854ba85bee2deff7bed3ce6e039b509e5af7870 100644 (file)
@@ -18,8 +18,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef TYPES_H
-#define TYPES_H
+
+#ifndef OPENOCD_HELPER_TYPES_H
+#define OPENOCD_HELPER_TYPES_H
 
 #include <stddef.h>
 #ifdef HAVE_SYS_TYPES_H
 
 #include <stddef.h>
 #ifdef HAVE_SYS_TYPES_H
@@ -336,4 +337,4 @@ typedef uint64_t uintmax_t;
 
 #endif
 
 
 #endif
 
-#endif /* TYPES_H */
+#endif /* OPENOCD_HELPER_TYPES_H */
index 30e5b2df7e175ab2c73034d6dae709867cea6242..c9a11ddac533c2ea68a603ee397cb0f17fea42a2 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef HELPER_UTILS_H
-#define HELPER_UTILS_H
+#ifndef OPENOCD_HELPER_UTIL_H
+#define OPENOCD_HELPER_UTIL_H
 
 struct command_context;
 
 int util_init(struct command_context *cmd_ctx);
 
 
 struct command_context;
 
 int util_init(struct command_context *cmd_ctx);
 
-#endif /* HELPER_UTILS_H */
+#endif /* OPENOCD_HELPER_UTIL_H */
index c9b940527969ead3c91c79be195da12318cead3b..0e3f10836f2b0c52f68bf0c9b1cd8fe3b9f8ec3a 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __AICE_INTERFACE_H__
-#define __AICE_INTERFACE_H__
+
+#ifndef OPENOCD_JTAG_AICE_AICE_INTERFACE_H
+#define OPENOCD_JTAG_AICE_AICE_INTERFACE_H
 
 struct aice_interface_param_s {
        /** */
 
 struct aice_interface_param_s {
        /** */
@@ -31,4 +32,4 @@ struct aice_interface_param_s {
 
 int aice_init_targets(void);
 
 
 int aice_init_targets(void);
 
-#endif
+#endif /* OPENOCD_JTAG_AICE_AICE_INTERFACE_H */
index 3be17c54008b63d089c815df01a82973631913ee..467ad0ad5add2b4430bbd7724a98a6a0fed7c895 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef _AICE_PIPE_H_
-#define _AICE_PIPE_H_
+
+#ifndef OPENOCD_JTAG_AICE_AICE_PIPE_H
+#define OPENOCD_JTAG_AICE_AICE_PIPE_H
 
 #include <helper/types.h>
 
 
 #include <helper/types.h>
 
@@ -27,4 +28,4 @@
 
 extern struct aice_port_api_s aice_pipe;
 
 
 extern struct aice_port_api_s aice_pipe;
 
-#endif
+#endif /* OPENOCD_JTAG_AICE_AICE_PIPE_H */
index d28cf8efaee48d52321993dab97530f2a073c88d..4568ce121bf8c0338d17d0589c098916de5e1e56 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef _AICE_PORT_H_
-#define _AICE_PORT_H_
+
+#ifndef OPENOCD_JTAG_AICE_AICE_PORT_H
+#define OPENOCD_JTAG_AICE_AICE_PORT_H
 
 #include <target/nds32_edm.h>
 
 
 #include <target/nds32_edm.h>
 
@@ -233,4 +234,4 @@ struct aice_port {
 /** */
 const struct aice_port *aice_port_get_list(void);
 
 /** */
 const struct aice_port *aice_port_get_list(void);
 
-#endif
+#endif /* OPENOCD_JTAG_AICE_AICE_PORT_H */
index fea3d4c2ac3aa010619716a4a89dedc37614e739..3af8bc2ee8f44d0a3f566f1caa749e35ee040c65 100644 (file)
@@ -16,9 +16,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _AICE_TRANSPORT_
-#define _AICE_TRANSPORT_
+#ifndef OPENOCD_JTAG_AICE_AICE_TRANSPORT_H
+#define OPENOCD_JTAG_AICE_AICE_TRANSPORT_H
 
 extern const char *aice_transports[];
 
 
 extern const char *aice_transports[];
 
-#endif
+#endif /* OPENOCD_JTAG_AICE_AICE_TRANSPORT_H */
index 893ba38c5ce510c8dd726a1d102ae9fdaec8cc0b..2911ae56bd87876332bd5608883bfdbd1454912a 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __AICE_USB_H__
-#define __AICE_USB_H__
+
+#ifndef OPENOCD_JTAG_AICE_AICE_USB_H
+#define OPENOCD_JTAG_AICE_AICE_USB_H
 
 #include "aice_port.h"
 
 
 #include "aice_port.h"
 
@@ -128,4 +129,4 @@ extern struct aice_port_api_s aice_usb_api;
 int aice_read_ctrl(uint32_t address, uint32_t *data);
 int aice_write_ctrl(uint32_t address, uint32_t data);
 
 int aice_read_ctrl(uint32_t address, uint32_t *data);
 int aice_write_ctrl(uint32_t address, uint32_t data);
 
-#endif
+#endif /* OPENOCD_JTAG_AICE_AICE_USB_H */
index c9d73893f6e0a825c3eef8e8f8326c6339664007..947c94725a535d6738b74315cd3cfd45494f4cbb 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef JTAG_COMMANDS_H
-#define JTAG_COMMANDS_H
+#ifndef OPENOCD_JTAG_COMMANDS_H
+#define OPENOCD_JTAG_COMMANDS_H
 
 /**
  * The inferred type of a scan_command_s structure, indicating whether
 
 /**
  * The inferred type of a scan_command_s structure, indicating whether
@@ -173,4 +173,4 @@ int jtag_scan_size(const struct scan_command *cmd);
 int jtag_read_buffer(uint8_t *buffer, const struct scan_command *cmd);
 int jtag_build_buffer(const struct scan_command *cmd, uint8_t **buffer);
 
 int jtag_read_buffer(uint8_t *buffer, const struct scan_command *cmd);
 int jtag_build_buffer(const struct scan_command *cmd, uint8_t **buffer);
 
-#endif /* JTAG_COMMANDS_H */
+#endif /* OPENOCD_JTAG_COMMANDS_H */
index befcc9ba63a9eccd2575832147a9da54c3e0ab2d..ae00414c4bb379325462c7c6b95df35b33fb861a 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef JTAG_DRIVER_H
-#define JTAG_DRIVER_H
+#ifndef OPENOCD_JTAG_DRIVER_H
+#define OPENOCD_JTAG_DRIVER_H
 
 struct command_context;
 
 int interface_register_commands(struct command_context *ctx);
 
 
 struct command_context;
 
 int interface_register_commands(struct command_context *ctx);
 
-#endif /* JTAG_DRIVER_H */
+#endif /* OPENOCD_JTAG_DRIVER_H */
index 43268308e831ebec4f0049dfbc292d9d89679557..c5b44bfd54d16fa333f281dc5a5f76a5f6d0d855 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef BITBANG_H
-#define BITBANG_H
+#ifndef OPENOCD_JTAG_DRIVERS_BITBANG_H
+#define OPENOCD_JTAG_DRIVERS_BITBANG_H
 
 #include <jtag/swd.h>
 
 
 #include <jtag/swd.h>
 
@@ -45,4 +45,4 @@ extern struct bitbang_interface *bitbang_interface;
 void bitbang_switch_to_swd(void);
 int bitbang_swd_switch_seq(enum swd_special_seq seq);
 
 void bitbang_switch_to_swd(void);
 int bitbang_swd_switch_seq(enum swd_special_seq seq);
 
-#endif /* BITBANG_H */
+#endif /* OPENOCD_JTAG_DRIVERS_BITBANG_H */
index 1580d18a9813cd118b9bc1d57074d6ccd1a66f65..df6a08d445d77c0ade7b8916cf8f30e70aaee253 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef BITQ_H
-#define BITQ_H
+#ifndef OPENOCD_JTAG_DRIVERS_BITQ_H
+#define OPENOCD_JTAG_DRIVERS_BITQ_H
 
 #include <jtag/commands.h>
 
 
 #include <jtag/commands.h>
 
@@ -42,4 +42,4 @@ int bitq_execute_queue(void);
 
 void bitq_cleanup(void);
 
 
 void bitq_cleanup(void);
 
-#endif /* BITQ_H */
+#endif /* OPENOCD_JTAG_DRIVERS_BITQ_H */
index a43937015b6131b457e4073dcda8974aa16cbe07..14b845585972c2e5e077e680df1ed5fc6ef78f7f 100644 (file)
@@ -17,8 +17,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _FTD2XX_COMMON_H
-#define _FTD2XX_COMMON_H
+#ifndef OPENOCD_JTAG_DRIVERS_FTD2XX_COMMON_H
+#define OPENOCD_JTAG_DRIVERS_FTD2XX_COMMON_H
 
 #if ((BUILD_FT2232_FTD2XX == 1) || (BUILD_PRESTO_FTD2XX == 1) || (BUILD_USB_BLASTER_FTD2XX == 1))
 #include <ftd2xx.h>
 
 #if ((BUILD_FT2232_FTD2XX == 1) || (BUILD_PRESTO_FTD2XX == 1) || (BUILD_USB_BLASTER_FTD2XX == 1))
 #include <ftd2xx.h>
@@ -52,4 +52,4 @@ static const char *ftd2xx_status_string(FT_STATUS status)
 }
 
 #endif
 }
 
 #endif
-#endif /* _FTD2XX_COMMON_H */
+#endif /* OPENOCD_JTAG_DRIVERS_FTD2XX_COMMON_H */
index cfd6bddb2867037ce322bdc239953529d05299c0..7163b4314a16e7e92c051d77643b5e0344e573a8 100644 (file)
@@ -17,8 +17,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef JTAG_LIBUSB_COMMON_H
-#define JTAG_LIBUSB_COMMON_H
+#ifndef OPENOCD_JTAG_DRIVERS_LIBUSB0_COMMON_H
+#define OPENOCD_JTAG_DRIVERS_LIBUSB0_COMMON_H
 
 #include <usb.h>
 
 
 #include <usb.h>
 
@@ -70,4 +70,4 @@ int jtag_libusb_choose_interface(struct jtag_libusb_device_handle *devh,
                int bclass, int subclass, int protocol);
 int jtag_libusb_get_pid(struct jtag_libusb_device *dev, uint16_t *pid);
 
                int bclass, int subclass, int protocol);
 int jtag_libusb_get_pid(struct jtag_libusb_device *dev, uint16_t *pid);
 
-#endif /* JTAG_USB_COMMON_H */
+#endif /* OPENOCD_JTAG_DRIVERS_LIBUSB0_COMMON_H */
index 8781b78167cde1b1ce22405335d6644f9ace077b..fc6526a3091454eae66a2490797ed12ec6d9cba8 100644 (file)
@@ -17,8 +17,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef JTAG_LIBUSB_COMMON_H
-#define JTAG_LIBUSB_COMMON_H
+#ifndef OPENOCD_JTAG_DRIVERS_LIBUSB1_COMMON_H
+#define OPENOCD_JTAG_DRIVERS_LIBUSB1_COMMON_H
 
 #include <libusb.h>
 
 
 #include <libusb.h>
 
@@ -77,4 +77,4 @@ int jtag_libusb_choose_interface(struct jtag_libusb_device_handle *devh,
                int bclass, int subclass, int protocol);
 int jtag_libusb_get_pid(struct jtag_libusb_device *dev, uint16_t *pid);
 
                int bclass, int subclass, int protocol);
 int jtag_libusb_get_pid(struct jtag_libusb_device *dev, uint16_t *pid);
 
-#endif /* JTAG_USB_COMMON_H */
+#endif /* OPENOCD_JTAG_DRIVERS_LIBUSB1_COMMON_H */
index 573903c0e4e579f0eadb12e36aab80323d5d403e..563af10edeaec6aa010152ed0bbf5546830b3877 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_JTAG_DRIVERS_LIBUSB_COMMON_H
+#define OPENOCD_JTAG_DRIVERS_LIBUSB_COMMON_H
+
 #ifdef HAVE_LIBUSB1
 #include <libusb1_common.h>
 #else
 #include <libusb0_common.h>
 #endif
 #ifdef HAVE_LIBUSB1
 #include <libusb1_common.h>
 #else
 #include <libusb0_common.h>
 #endif
+
+#endif /* OPENOCD_JTAG_DRIVERS_LIBUSB_COMMON_H */
index fc1ebd56de73131f10fbeb3754fde0a70c51c178..cd59a74fb5b1413577289ca2a7b8758d9d478394 100644 (file)
@@ -16,8 +16,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef MINIDRIVER_IMP_H
-#define MINIDRIVER_IMP_H
+
+#ifndef OPENOCD_JTAG_DRIVERS_MINIDRIVER_IMP_H
+#define OPENOCD_JTAG_DRIVERS_MINIDRIVER_IMP_H
 
 #include <jtag/commands.h>
 
 
 #include <jtag/commands.h>
 
@@ -37,4 +38,4 @@ void jtag_add_callback4(jtag_callback_t f, jtag_callback_data_t data0,
                        jtag_callback_data_t data1, jtag_callback_data_t data2,
                        jtag_callback_data_t data3);
 
                        jtag_callback_data_t data1, jtag_callback_data_t data2,
                        jtag_callback_data_t data3);
 
-#endif /* MINIDRIVER_IMP_H */
+#endif /* OPENOCD_JTAG_DRIVERS_MINIDRIVER_IMP_H */
index 075ed77502245451515fb7900d7e9e2eeb8f1f01..651eef940636f1fb8b0ea153354916c99d3f8dcd 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef MPSSE_H_
-#define MPSSE_H_
+#ifndef OPENOCD_JTAG_DRIVERS_MPSSE_H
+#define OPENOCD_JTAG_DRIVERS_MPSSE_H
 
 #include <stdbool.h>
 #include "helper/binarybuffer.h"
 
 #include <stdbool.h>
 #include "helper/binarybuffer.h"
@@ -75,4 +75,4 @@ int mpsse_set_frequency(struct mpsse_ctx *ctx, int frequency);
 int mpsse_flush(struct mpsse_ctx *ctx);
 void mpsse_purge(struct mpsse_ctx *ctx);
 
 int mpsse_flush(struct mpsse_ctx *ctx);
 void mpsse_purge(struct mpsse_ctx *ctx);
 
-#endif /* MPSSE_H_ */
+#endif /* OPENOCD_JTAG_DRIVERS_MPSSE_H */
index a591b29c76e3c748c835a0123b5e9ec0bc8e5352..74b62580c2e17b2fd6be6baab4b15d75a2a56e16 100644 (file)
@@ -16,6 +16,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_JTAG_DRIVERS_RLINK_H
+#define OPENOCD_JTAG_DRIVERS_RLINK_H
+
 struct rlink_speed_table {
        uint8_t const *dtc;
        uint16_t dtc_size;
 struct rlink_speed_table {
        uint8_t const *dtc;
        uint16_t dtc_size;
@@ -25,3 +28,5 @@ struct rlink_speed_table {
 
 extern const struct rlink_speed_table rlink_speed_table[];
 extern const size_t rlink_speed_table_size;
 
 extern const struct rlink_speed_table rlink_speed_table[];
 extern const size_t rlink_speed_table_size;
+
+#endif /* OPENOCD_JTAG_DRIVERS_RLINK_H */
index 239f196a55ff92986969e02ccc010dd6f5a79972..ff9e8b25fcfe5a42a6a641652c1534c056231584 100644 (file)
@@ -16,6 +16,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_JTAG_DRIVERS_RLINK_DTC_CMD_H
+#define OPENOCD_JTAG_DRIVERS_RLINK_DTC_CMD_H
+
 /* A command position with the high nybble of 0x0 is reserved for an error condition.
  * If executed, it stops the DTC and raises the ERROR flag */
 
 /* A command position with the high nybble of 0x0 is reserved for an error condition.
  * If executed, it stops the DTC and raises the ERROR flag */
 
@@ -69,3 +72,5 @@
 /* A shared status byte is updated with bit 0 set when this has happened,
  * and it is cleared when a new command buffer becomes ready.
  * The host can poll that byte to see when it is safe to read a reply. */
 /* A shared status byte is updated with bit 0 set when this has happened,
  * and it is cleared when a new command buffer becomes ready.
  * The host can poll that byte to see when it is safe to read a reply. */
+
+#endif /* OPENOCD_JTAG_DRIVERS_RLINK_DTC_CMD_H */
index 28dee0c994861e7a2ae246f26b07d887e2447b6f..3f9f2b3811d35ce641b6edb809bdd65da17b0d8b 100644 (file)
@@ -16,6 +16,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_JTAG_DRIVERS_RLINK_EP1_CMD_H
+#define OPENOCD_JTAG_DRIVERS_RLINK_EP1_CMD_H
+
 /*
  * Command opcodes that can be sent over endpoint 1.
  * This codifies information provided by Rob Brown <rob@cobbleware.com>.
 /*
  * Command opcodes that can be sent over endpoint 1.
  * This codifies information provided by Rob Brown <rob@cobbleware.com>.
@@ -53,3 +56,5 @@
 #define EP1_CMD_MEMORY_WRITE                   (0x29)
 #define EP1_CMD_GET_FWREV                              (0xfe)
 #define EP1_CMD_GET_SERIAL                             (0xff)
 #define EP1_CMD_MEMORY_WRITE                   (0x29)
 #define EP1_CMD_GET_FWREV                              (0xfe)
 #define EP1_CMD_GET_SERIAL                             (0xff)
+
+#endif /* OPENOCD_JTAG_DRIVERS_RLINK_EP1_CMD_H */
index 976d9017fd26ee169f77258cd6db5b27cd115d53..3d573e72ceadd9a86b44f0e105b4c3129939b022 100644 (file)
@@ -16,6 +16,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_JTAG_DRIVERS_RLINK_ST7_H
+#define OPENOCD_JTAG_DRIVERS_RLINK_ST7_H
+
 #define ST7_FOSC               (12 * 1000000)
 
 /* This is not a complete enumeration of ST7 registers, but it is sufficient for this interface driver. */
 #define ST7_FOSC               (12 * 1000000)
 
 /* This is not a complete enumeration of ST7 registers, but it is sufficient for this interface driver. */
 #define ST7_PF5                        (1 << 5)
 #define ST7_PF6                        (1 << 6)
 #define ST7_PF7                        (1 << 7)
 #define ST7_PF5                        (1 << 5)
 #define ST7_PF6                        (1 << 6)
 #define ST7_PF7                        (1 << 7)
+
+#endif /* OPENOCD_JTAG_DRIVERS_RLINK_ST7_H */
index 817638061bb319fa8dff30dc9554e2204c634ce8..00349d2ed4af17c13cac8c120e1bc6b330028273 100644 (file)
@@ -25,8 +25,8 @@
  *
  */
 
  *
  */
 
-#ifndef JTAG_UBLAST_ACCESS_H
-#define JTAG_UBLAST_ACCESS_H
+#ifndef OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H
+#define OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H
 
 #include <libusb_common.h>
 
 
 #include <libusb_common.h>
 
@@ -71,4 +71,4 @@ extern struct ublast_lowlevel *ublast_register_ftdi(void);
 extern struct ublast_lowlevel *ublast_register_ftd2xx(void);
 extern struct ublast_lowlevel *ublast2_register_libusb(void);
 
 extern struct ublast_lowlevel *ublast_register_ftd2xx(void);
 extern struct ublast_lowlevel *ublast2_register_libusb(void);
 
-#endif /* JTAG_UBLAST_ACCESS_H */
+#endif /* OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H */
index bf0dbcbb08bf3eff125af760dd80e91d0fbfde16..4d2bd2686da5479d929e61e1f1b3548c1e4ab9b4 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef JTAG_USB_COMMON_H
-#define JTAG_USB_COMMON_H
+#ifndef OPENOCD_JTAG_DRIVERS_USB_COMMON_H
+#define OPENOCD_JTAG_DRIVERS_USB_COMMON_H
 
 #include <usb.h>
 
 int jtag_usb_open(const uint16_t vids[], const uint16_t pids[],
                struct usb_dev_handle **out);
 
 
 #include <usb.h>
 
 int jtag_usb_open(const uint16_t vids[], const uint16_t pids[],
                struct usb_dev_handle **out);
 
-#endif /* JTAG_USB_COMMON_H */
+#endif /* OPENOCD_JTAG_DRIVERS_USB_COMMON_H */
index 1339a6323274347411f48ac2b6c2f94d96749355..98a056a8b8cea1c87c2cc48ca82256cbd5f93616 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef __USBTOXXX_H_INCLUDED__
-#define __USBTOXXX_H_INCLUDED__
+#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H
+#define OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H
 
 RESULT usbtoxxx_init(void);
 RESULT usbtoxxx_fini(void);
 
 RESULT usbtoxxx_init(void);
 RESULT usbtoxxx_fini(void);
@@ -234,4 +234,4 @@ RESULT usbtopwm_config(uint8_t interface_index, uint16_t kHz, uint8_t mode);
 RESULT usbtopwm_out(uint8_t interface_index, uint16_t count, uint16_t *rate);
 RESULT usbtopwm_in(uint8_t interface_index, uint16_t count, uint16_t *rate);
 
 RESULT usbtopwm_out(uint8_t interface_index, uint16_t count, uint16_t *rate);
 RESULT usbtopwm_in(uint8_t interface_index, uint16_t count, uint16_t *rate);
 
-#endif /* __USBTOXXX_H_INCLUDED__ */
+#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H */
index 6d8012ed92787d5bd9c0102d7689b7df8c98917e..e40667e91578dae4dea5ac4ed65d4e70fa0777a3 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef __USBTOXXX_INTERNAL_H_INCLUDED__
-#define __USBTOXXX_INTERNAL_H_INCLUDED__
+#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_INTERNAL_H
+#define OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_INTERNAL_H
 
 /* USB_TO_XXX USB Commands */
 /* Page0 */
 
 /* USB_TO_XXX USB Commands */
 /* Page0 */
@@ -158,4 +158,4 @@ RESULT usbtoxxx_add_command(uint8_t type, uint8_t cmd, uint8_t *cmdbuf,
 /* USB_TO_GPIO */
 #define USB_TO_GPIO_DIR_MSK                    0x01
 
 /* USB_TO_GPIO */
 #define USB_TO_GPIO_DIR_MSK                    0x01
 
-#endif /* __USBTOXXX_INTERNAL_H_INCLUDED__ */
+#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_INTERNAL_H */
index 74ef808500a8e06e7fe5c0b47a82e3b859a04c7a..9d92bcaa195a5cb62d4fdcb516d4b9aa841c67ed 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef __VERSALOON_H_INCLUDED__
-#define __VERSALOON_H_INCLUDED__
+#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_H
+#define OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_H
 
 #include <libusb.h>
 
 
 #include <libusb.h>
 
@@ -109,5 +109,4 @@ struct versaloon_interface_t {
 extern struct versaloon_interface_t versaloon_interface;
 extern libusb_device_handle *versaloon_usb_device_handle;
 
 extern struct versaloon_interface_t versaloon_interface;
 extern libusb_device_handle *versaloon_usb_device_handle;
 
-#endif /* __VERSALOON_H_INCLUDED__ */
-
+#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_H */
index 1bc4fe084d879d3d98d71023e018df3b1dbad818..089056d0233e28946c48010afeead1653963f8a3 100644 (file)
@@ -15,6 +15,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INCLUDE_H
+#define OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INCLUDE_H
+
 /* This file is used to include different header and macros */
 /* according to different platform */
 #include <jtag/interface.h>
 /* This file is used to include different header and macros */
 /* according to different platform */
 #include <jtag/interface.h>
@@ -95,3 +98,5 @@
 #define SET_LE_U32(p, v)                       SET_U32_LSBFIRST(p, v)
 #define SET_BE_U16(p, v)                       SET_U16_MSBFIRST(p, v)
 #define SET_BE_U32(p, v)                       SET_U32_MSBFIRST(p, v)
 #define SET_LE_U32(p, v)                       SET_U32_LSBFIRST(p, v)
 #define SET_BE_U16(p, v)                       SET_U16_MSBFIRST(p, v)
 #define SET_BE_U32(p, v)                       SET_U32_MSBFIRST(p, v)
+
+#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INCLUDE_H */
index 3f0d31f06f3e6ffc813cd10c5716cadbc8e73a96..497b6b9ce5b2ee08e067ebe2cb5ef3d54c0ba84c 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef __VERSALOON_INTERNAL_H_INCLUDED__
-#define __VERSALOON_INTERNAL_H_INCLUDED__
+#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INTERNAL_H
+#define OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INTERNAL_H
 
 #define VERSALOON_PRODUCTSTRING_INDEX  2
 #define VERSALOON_SERIALSTRING_INDEX   3
 
 #define VERSALOON_PRODUCTSTRING_INDEX  2
 #define VERSALOON_SERIALSTRING_INDEX   3
@@ -107,4 +107,4 @@ extern uint8_t *versaloon_buf;
 extern uint8_t *versaloon_cmd_buf;
 extern uint16_t versaloon_buf_size;
 
 extern uint8_t *versaloon_cmd_buf;
 extern uint16_t versaloon_buf_size;
 
-#endif /* __VERSALOON_INTERNAL_H_INCLUDED__ */
+#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INTERNAL_H */
index 418b7d35ef5c007ff201faea727117c2d37cf0b2..0992d1cad7fdf8a49da61a7ae2e5da538a64e3b8 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _HL_INTERFACE
-#define _HL_INTERFACE
+#ifndef OPENOCD_JTAG_HLA_HLA_INTERFACE_H
+#define OPENOCD_JTAG_HLA_HLA_INTERFACE_H
 
 /** */
 struct target;
 
 /** */
 struct target;
@@ -65,4 +65,4 @@ int hl_interface_init_target(struct target *t);
 int hl_interface_init_reset(void);
 int hl_interface_override_target(const char **targetname);
 
 int hl_interface_init_reset(void);
 int hl_interface_override_target(const char **targetname);
 
-#endif /* _HL_INTERFACE */
+#endif /* OPENOCD_JTAG_HLA_HLA_INTERFACE_H */
index 986667fff3253f45cdaaa46ae1433a9aca144dd0..40c1321badb2761da28dfad9dc0f364c6dbb1071 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _HL_LAYOUT_H
-#define _HL_LAYOUT_H
+#ifndef OPENOCD_JTAG_HLA_HLA_LAYOUT_H
+#define OPENOCD_JTAG_HLA_HLA_LAYOUT_H
 
 #include <target/armv7m_trace.h>
 
 
 #include <target/armv7m_trace.h>
 
@@ -125,4 +125,4 @@ const struct hl_layout *hl_layout_get_list(void);
 /** */
 int hl_layout_init(struct hl_interface_s *adapter);
 
 /** */
 int hl_layout_init(struct hl_interface_s *adapter);
 
-#endif /* _HL_LAYOUT_H */
+#endif /* OPENOCD_JTAG_HLA_HLA_LAYOUT_H */
index 84c169372071702b5881d0defcd98ca1252b2de9..ac00add5129edfa1ea4c26421f101aad0d22efc5 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _HL_TCL_
-#define _HL_TCL_
+#ifndef OPENOCD_JTAG_HLA_HLA_TCL_H
+#define OPENOCD_JTAG_HLA_HLA_TCL_H
 
 /** */
 int jim_hl_newtap(Jim_Interp *interp, int argc, Jim_Obj * const *argv);
 
 
 /** */
 int jim_hl_newtap(Jim_Interp *interp, int argc, Jim_Obj * const *argv);
 
-#endif /* _HL_TCL_ */
+#endif /* OPENOCD_JTAG_HLA_HLA_TCL_H */
index 558aa4355db8e14be6046277efbb3b9bb5d82d44..07eb751e2afc3279c6d3bc7c70b661f470e76482 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _HL_TRANSPORT
-#define _HL_TRANSPORT
+#ifndef OPENOCD_JTAG_HLA_HLA_TRANSPORT_H
+#define OPENOCD_JTAG_HLA_HLA_TRANSPORT_H
 
 enum hl_transports {
        HL_TRANSPORT_UNKNOWN = 0,
 
 enum hl_transports {
        HL_TRANSPORT_UNKNOWN = 0,
@@ -29,4 +29,4 @@ enum hl_transports {
        HL_TRANSPORT_SWIM
 };
 
        HL_TRANSPORT_SWIM
 };
 
-#endif /* _HL_TRANSPORT */
+#endif /* OPENOCD_JTAG_HLA_HLA_TRANSPORT_H */
index d3fa449247d86ddef95014dbd3356e8fcd905820..7702d6ca81ec2b6d6dc82820cb3ae94256f09792 100644 (file)
@@ -19,8 +19,8 @@
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
 ***************************************************************************/
 
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
 ***************************************************************************/
 
-#ifndef JTAG_H
-#define JTAG_H
+#ifndef OPENOCD_JTAG_JTAG_H
+#define OPENOCD_JTAG_JTAG_H
 
 #include <helper/binarybuffer.h>
 #include <helper/log.h>
 
 #include <helper/binarybuffer.h>
 #include <helper/log.h>
@@ -646,4 +646,4 @@ bool transport_is_jtag(void);
 
 int jim_jtag_newtap(Jim_Interp *interp, int argc, Jim_Obj *const *argv);
 
 
 int jim_jtag_newtap(Jim_Interp *interp, int argc, Jim_Obj *const *argv);
 
-#endif /* JTAG_H */
+#endif /* OPENOCD_JTAG_JTAG_H */
index 6bffb25ef96e7b09476a7d99f5e6a5edf5cd9638..688c396309b455a8d3da2abc1bfc1fac75550cdb 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef MINIDRIVER_H
-#define MINIDRIVER_H
+#ifndef OPENOCD_JTAG_MINIDRIVER_H
+#define OPENOCD_JTAG_MINIDRIVER_H
 
 /**
  * @page jtagminidriver JTAG Mini-Driver
 
 /**
  * @page jtagminidriver JTAG Mini-Driver
@@ -87,4 +87,4 @@ int interface_jtag_execute_queue(void);
  */
 int default_interface_jtag_execute_queue(void);
 
  */
 int default_interface_jtag_execute_queue(void);
 
-#endif /* MINIDRIVER_H */
+#endif /* OPENOCD_JTAG_MINIDRIVER_H */
index 9c321afe2097bc0991eb7c5d3bb69aac0510bbd9..11d0fae722d2bbfc4c2283f1c3adccc099f99c81 100644 (file)
@@ -17,8 +17,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef MINIDRIVER_IMP_H
-#define MINIDRIVER_IMP_H
+#ifndef OPENOCD_JTAG_MINIDRIVER_MINIDRIVER_IMP_H
+#define OPENOCD_JTAG_MINIDRIVER_MINIDRIVER_IMP_H
 
 #include <jtag/jtag_minidriver.h>
 
 
 #include <jtag/jtag_minidriver.h>
 
@@ -27,4 +27,4 @@
 #define jtag_add_callback4(callback, in, data1, data2, data3) \
        interface_jtag_add_callback4(callback, in, data1, data2, data3)
 
 #define jtag_add_callback4(callback, in, data1, data2, data3) \
        interface_jtag_add_callback4(callback, in, data1, data2, data3)
 
-#endif /* MINIDRIVER_IMP_H */
+#endif /* OPENOCD_JTAG_MINIDRIVER_MINIDRIVER_IMP_H */
index 07fbd74748a6f16ad1703c4355b73103293bb042..c888cc07d023b0e1f3fc8a94bddabedb1d52837e 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef SWD_H
-#define SWD_H
+#ifndef OPENOCD_JTAG_SWD_H
+#define OPENOCD_JTAG_SWD_H
 
 #include <target/arm_adi_v5.h>
 
 
 #include <target/arm_adi_v5.h>
 
@@ -213,4 +213,4 @@ void swd_add_reset(int req_srst);
 
 bool transport_is_swd(void);
 
 
 bool transport_is_swd(void);
 
-#endif /* SWD_H */
+#endif /* OPENOCD_JTAG_SWD_H */
index f23ec7ccf0c4f10d02ed4c3ac2d4d1fba6ce229e..932b47ac8ade98f0d5ed6296abda4af391e41f2a 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _JTAG_TCL_H_
-#define _JTAG_TCL_H_
+#ifndef OPENOCD_JTAG_TCL_H
+#define OPENOCD_JTAG_TCL_H
 
 int jim_jtag_configure(Jim_Interp *interp, int argc,
                Jim_Obj * const *argv);
 int jim_jtag_tap_enabler(Jim_Interp *interp, int argc,
                Jim_Obj * const *argv);
 
 
 int jim_jtag_configure(Jim_Interp *interp, int argc,
                Jim_Obj * const *argv);
 int jim_jtag_tap_enabler(Jim_Interp *interp, int argc,
                Jim_Obj * const *argv);
 
-#endif
+#endif /* OPENOCD_JTAG_TCL_H */
index 344ca80c0c7beeaa0d6475c52c4469dabd615c91..543ac3c23940cfa1c6c439e24e98532314ff2eec 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef OPENOCD_H
-#define OPENOCD_H
+#ifndef OPENOCD_OPENOCD_H
+#define OPENOCD_OPENOCD_H
 
 /**
  * Different applications can define this entry point to override
 
 /**
  * Different applications can define this entry point to override
@@ -29,4 +29,4 @@
  */
 int openocd_main(int argc, char *argv[]);
 
  */
 int openocd_main(int argc, char *argv[]);
 
-#endif
+#endif /* OPENOCD_OPENOCD_H */
index 55b6961ee52c7e6c42619fc16ff9748a9d6bdc43..3178fd459775f58e2066e794fbe0c8b590eb9d7a 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef PLD_H
-#define PLD_H
+#ifndef OPENOCD_PLD_PLD_H
+#define OPENOCD_PLD_PLD_H
 
 #include <helper/command.h>
 
 
 #include <helper/command.h>
 
@@ -49,4 +49,4 @@ struct pld_device *get_pld_device_by_num(int num);
 #define ERROR_PLD_DEVICE_INVALID        (-1000)
 #define ERROR_PLD_FILE_LOAD_FAILED      (-1001)
 
 #define ERROR_PLD_DEVICE_INVALID        (-1000)
 #define ERROR_PLD_FILE_LOAD_FAILED      (-1001)
 
-#endif /* PLD_H */
+#endif /* OPENOCD_PLD_PLD_H */
index 11929e01638a8d435cf8a620658c3e03b7bf07a4..d6d922e79d353e4caad17a51dd74b05dbf48d437 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef VIRTEX2_H
-#define VIRTEX2_H
+#ifndef OPENOCD_PLD_VIRTEX2_H
+#define OPENOCD_PLD_VIRTEX2_H
 
 #include <jtag/jtag.h>
 
 
 #include <jtag/jtag.h>
 
@@ -26,4 +26,4 @@ struct virtex2_pld_device {
        int no_jstart;
 };
 
        int no_jstart;
 };
 
-#endif /* VIRTEX2_H */
+#endif /* OPENOCD_PLD_VIRTEX2_H */
index bb94bd7e0cc6f1d9d1919e55665742b0938e48f5..1a35c3be225df9453ee2802349fe732a34bf59ca 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef XILINX_BIT_H
-#define XILINX_BIT_H
+#ifndef OPENOCD_PLD_XILINX_BIT_H
+#define OPENOCD_PLD_XILINX_BIT_H
 
 struct xilinx_bit_file {
        uint8_t unknown_header[13];
 
 struct xilinx_bit_file {
        uint8_t unknown_header[13];
@@ -31,4 +31,4 @@ struct xilinx_bit_file {
 
 int xilinx_read_bit_file(struct xilinx_bit_file *bit_file, const char *filename);
 
 
 int xilinx_read_bit_file(struct xilinx_bit_file *bit_file, const char *filename);
 
-#endif /* XILINX_BIT_H */
+#endif /* OPENOCD_PLD_XILINX_BIT_H */
index faaf319b1ca56f74e207345abf6f0981b48536ae..a2b408efd0d1c3c0d276a043f5fe0903e15ee700 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef OPENOCD_RTOS_LINUX_HEADER_H
+#define OPENOCD_RTOS_LINUX_HEADER_H
+
 /*  gdb script to update the header file
   according to kernel version and build option
   before executing function awareness
 /*  gdb script to update the header file
   according to kernel version and build option
   before executing function awareness
@@ -30,3 +33,5 @@ define awareness
 #define CPU_CONT 0x1c
 #define PREEMPT 0x4
 #define MM_CTX 0x160
 #define CPU_CONT 0x1c
 #define PREEMPT 0x4
 #define MM_CTX 0x160
+
+#endif /* OPENOCD_RTOS_LINUX_HEADER_H */
index 8ec155e35aaa1f2fa09409274982d37eeb5cd6cd..4c6989fe8cd88758ed360909e18ebd30f6cb8528 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef RTOS_H
-#define RTOS_H
+#ifndef OPENOCD_RTOS_RTOS_H
+#define OPENOCD_RTOS_RTOS_H
 
 #include "server/server.h"
 #include <jim-nvp.h>
 
 #include "server/server.h"
 #include <jim-nvp.h>
@@ -109,4 +109,4 @@ int rtos_smp_init(struct target *target);
 /*  function for handling symbol access */
 int rtos_qsymbol(struct connection *connection, char const *packet, int packet_size);
 
 /*  function for handling symbol access */
 int rtos_qsymbol(struct connection *connection, char const *packet, int packet_size);
 
-#endif /* RTOS_H */
+#endif /* OPENOCD_RTOS_RTOS_H */
index 3b6d10bedecd56b662322853e1b62513f452c382..130aaa18f7a1a239edf16fa39a9fc051a108d736 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef INCLUDED_RTOS_CHIBIOS_STACKINGS_H_
-#define INCLUDED_RTOS_CHIBIOS_STACKINGS_H_
+#ifndef OPENOCD_RTOS_RTOS_CHIBIOS_STACKINGS_H
+#define OPENOCD_RTOS_RTOS_CHIBIOS_STACKINGS_H
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -28,4 +28,4 @@
 extern const struct rtos_register_stacking rtos_chibios_arm_v7m_stacking;
 extern const struct rtos_register_stacking rtos_chibios_arm_v7m_stacking_w_fpu;
 
 extern const struct rtos_register_stacking rtos_chibios_arm_v7m_stacking;
 extern const struct rtos_register_stacking rtos_chibios_arm_v7m_stacking_w_fpu;
 
-#endif /* ifndef INCLUDED_RTOS_CHIBIOS_STACKINGS_H_ */
+#endif /* OPENOCD_RTOS_RTOS_CHIBIOS_STACKINGS_H */
index 512c5b761f281bf3645413e984c3216856ad1192..951f7de506bf00ae5d5ac2b69fbbd91e3678a2bd 100644 (file)
@@ -14,8 +14,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef INCLUDED_RTOS_STANDARD_STACKINGS_H_
-#define INCLUDED_RTOS_STANDARD_STACKINGS_H_
+#ifndef OPENOCD_RTOS_RTOS_ECOS_STACKINGS_H
+#define OPENOCD_RTOS_RTOS_ECOS_STACKINGS_H
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -25,4 +25,4 @@
 
 extern const struct rtos_register_stacking rtos_eCos_Cortex_M3_stacking;
 
 
 extern const struct rtos_register_stacking rtos_eCos_Cortex_M3_stacking;
 
-#endif /* ifndef INCLUDED_RTOS_STANDARD_STACKINGS_H_ */
+#endif /* OPENOCD_RTOS_RTOS_ECOS_STACKINGS_H */
index f664afa7b8bd7bb76d3a79cd2d9e286d16362d4e..89a0c2f1254c241f7b47081650d6a4830dcf8ab7 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef INCLUDED_RTOS_EMBKERNEL_STACKINGS_H_
-#define INCLUDED_RTOS_EMBKERNEL_STACKINGS_H_
+#ifndef OPENOCD_RTOS_RTOS_EMBKERNEL_STACKINGS_H
+#define OPENOCD_RTOS_RTOS_EMBKERNEL_STACKINGS_H
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -27,4 +27,4 @@
 
 extern const struct rtos_register_stacking rtos_embkernel_Cortex_M_stacking;
 
 
 extern const struct rtos_register_stacking rtos_embkernel_Cortex_M_stacking;
 
-#endif /* ifndef INCLUDED_RTOS_EMBKERNEL_STACKINGS_H_ */
+#endif /* OPENOCD_RTOS_RTOS_EMBKERNEL_STACKINGS_H */
index 14800bb0a6fe911a9a6023e3312a71798623315f..6ebd28789cb49d9f32d69bcc237800ba39b68130 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef INCLUDED_RTOS_MQX_STACKINGS_H_
-#define INCLUDED_RTOS_MQX_STACKINGS_H_
+#ifndef OPENOCD_RTOS_RTOS_MQX_STACKINGS_H
+#define OPENOCD_RTOS_RTOS_MQX_STACKINGS_H
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -27,5 +27,4 @@
 
 extern const struct rtos_register_stacking rtos_mqx_arm_v7m_stacking;
 
 
 extern const struct rtos_register_stacking rtos_mqx_arm_v7m_stacking;
 
-#endif /* ifndef INCLUDED_RTOS_MQX_STACKINGS_H_ */
-
+#endif /* OPENOCD_RTOS_RTOS_MQX_STACKINGS_H */
index a5fd0acfce40c17838d7542388bf8801231be9ae..6971efd1eca1be68120bea609bf9927b50d6582e 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef INCLUDED_RTOS_STANDARD_STACKINGS_H_
-#define INCLUDED_RTOS_STANDARD_STACKINGS_H_
+#ifndef OPENOCD_RTOS_RTOS_STANDARD_STACKINGS_H
+#define OPENOCD_RTOS_RTOS_STANDARD_STACKINGS_H
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -37,4 +37,4 @@ int64_t rtos_Cortex_M_stack_align(struct target *target,
        const uint8_t *stack_data, const struct rtos_register_stacking *stacking,
        int64_t stack_ptr, size_t xpsr_offset);
 
        const uint8_t *stack_data, const struct rtos_register_stacking *stacking,
        int64_t stack_ptr, size_t xpsr_offset);
 
-#endif /* ifndef INCLUDED_RTOS_STANDARD_STACKINGS_H_ */
+#endif /* OPENOCD_RTOS_RTOS_STANDARD_STACKINGS_H */
index 8c54e07887b843255cd1d6bf780ebf20aacaad4c..2b4ac4eafccd5e5a9c9b22645014031265d93d50 100644 (file)
@@ -25,8 +25,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef GDB_SERVER_H
-#define GDB_SERVER_H
+#ifndef OPENOCD_SERVER_GDB_SERVER_H
+#define OPENOCD_SERVER_GDB_SERVER_H
 
 struct image;
 struct reg;
 
 struct image;
 struct reg;
@@ -48,4 +48,4 @@ static inline struct target *get_target_from_connection(struct connection *conne
 #define ERROR_GDB_BUFFER_TOO_SMALL (-800)
 #define ERROR_GDB_TIMEOUT (-801)
 
 #define ERROR_GDB_BUFFER_TOO_SMALL (-800)
 #define ERROR_GDB_TIMEOUT (-801)
 
-#endif /* GDB_SERVER_H */
+#endif /* OPENOCD_SERVER_GDB_SERVER_H */
index c6a15bc297f056b555efae1295c7a4c24b5dc220..68ad16d55d067dba7d0038b5e398b36fe6cc0a25 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef SERVER_H
-#define SERVER_H
+#ifndef OPENOCD_SERVER_SERVER_H
+#define OPENOCD_SERVER_SERVER_H
 
 #include <helper/log.h>
 
 
 #include <helper/log.h>
 
@@ -109,4 +109,4 @@ COMMAND_HELPER(server_port_command, unsigned short *out);
 #define ERROR_SERVER_REMOTE_CLOSED             (-400)
 #define ERROR_CONNECTION_REJECTED              (-401)
 
 #define ERROR_SERVER_REMOTE_CLOSED             (-400)
 #define ERROR_CONNECTION_REJECTED              (-401)
 
-#endif /* SERVER_H */
+#endif /* OPENOCD_SERVER_SERVER_H */
index 6360a77f80dac426ca9bdd12db90f77c9b00610b..422c794eec721ec700f2e98c06836bcd5d29a3ab 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _TCL_SERVER_H_
-#define _TCL_SERVER_H_
+#ifndef OPENOCD_SERVER_TCL_SERVER_H
+#define OPENOCD_SERVER_TCL_SERVER_H
 
 #include <server/server.h>
 
 int tcl_init(void);
 int tcl_register_commands(struct command_context *cmd_ctx);
 
 
 #include <server/server.h>
 
 int tcl_init(void);
 int tcl_register_commands(struct command_context *cmd_ctx);
 
-#endif /* _TCL_SERVER_H_ */
+#endif /* OPENOCD_SERVER_TCL_SERVER_H */
index ad3981ff5c31b4f85e09a33a7a87077a59242460..04ba965708c49f85d5ab658fc3c60e22cf187af8 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef TELNET_SERVER_H
-#define TELNET_SERVER_H
+#ifndef OPENOCD_SERVER_TELNET_SERVER_H
+#define OPENOCD_SERVER_TELNET_SERVER_H
 
 #include <server/server.h>
 
 
 #include <server/server.h>
 
@@ -67,4 +67,4 @@ struct telnet_service {
 int telnet_init(char *banner);
 int telnet_register_commands(struct command_context *command_context);
 
 int telnet_init(char *banner);
 int telnet_register_commands(struct command_context *command_context);
 
-#endif /* TELNET_SERVER_H */
+#endif /* OPENOCD_SERVER_TELNET_SERVER_H */
index 0503fa0014fdc39ea2303e39c156a4509f3392e0..4101a3f853a3251ac32f5e2e6b92fc0dcec47ffb 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef SVF_H
-#define SVF_H
+#ifndef OPENOCD_SVF_SVF_H
+#define OPENOCD_SVF_SVF_H
 
 #include <jtag/jtag.h>
 
 
 #include <jtag/jtag.h>
 
@@ -44,4 +44,4 @@ int svf_add_statemove(tap_state_t goal_state);
  */
 bool svf_tap_state_is_stable(tap_state_t state);
 
  */
 bool svf_tap_state_is_stable(tap_state_t state);
 
-#endif /* SVF_H */
+#endif /* OPENOCD_SVF_SVF_H */
index cfca2745333602f397b6c0571214ef3197ec4871..d216a82440950e305f824f1a7b47a85b670d2fd4 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ALGORITHM_H
-#define ALGORITHM_H
+#ifndef OPENOCD_TARGET_ALGORITHM_H
+#define OPENOCD_TARGET_ALGORITHM_H
 
 enum param_direction {
        PARAM_IN,
 
 enum param_direction {
        PARAM_IN,
@@ -47,4 +47,4 @@ void init_reg_param(struct reg_param *param,
                char *reg_name, uint32_t size, enum param_direction dir);
 void destroy_reg_param(struct reg_param *param);
 
                char *reg_name, uint32_t size, enum param_direction dir);
 void destroy_reg_param(struct reg_param *param);
 
-#endif /* ALGORITHM_H */
+#endif /* OPENOCD_TARGET_ALGORITHM_H */
index 1053070fb1131c8b03b55f6b0f587e0d284e2af4..163db239a37867eb7bbf91610b06d4a7673b42ab 100644 (file)
@@ -22,8 +22,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef ARM_H
-#define ARM_H
+#ifndef OPENOCD_TARGET_ARM_H
+#define OPENOCD_TARGET_ARM_H
 
 #include <helper/command.h>
 #include "target.h"
 
 #include <helper/command.h>
 #include "target.h"
@@ -240,4 +240,4 @@ struct reg *arm_reg_current(struct arm *arm, unsigned regnum);
 extern struct reg arm_gdb_dummy_fp_reg;
 extern struct reg arm_gdb_dummy_fps_reg;
 
 extern struct reg arm_gdb_dummy_fp_reg;
 extern struct reg arm_gdb_dummy_fps_reg;
 
-#endif /* ARM_H */
+#endif /* OPENOCD_TARGET_ARM_H */
index 68cab3efd4e95af6d4a98cb3602cf78b43d0b783..77cc2236d7a6f815e3f965f98ca91570b934df91 100644 (file)
@@ -18,8 +18,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM11_H
-#define ARM11_H
+#ifndef OPENOCD_TARGET_ARM11_H
+#define OPENOCD_TARGET_ARM11_H
 
 #include "arm.h"
 #include "arm_dpm.h"
 
 #include "arm.h"
 #include "arm_dpm.h"
@@ -111,4 +111,4 @@ enum arm11_sc7 {
        ARM11_SC7_WCR0                          = 112,
 };
 
        ARM11_SC7_WCR0                          = 112,
 };
 
-#endif /* ARM11_H */
+#endif /* OPENOCD_TARGET_ARM11_H */
index a2944b6927083bf6accea12a500d40c4ac94ac52..541434edc4ea00e502461601490907b0c9ff74d9 100644 (file)
@@ -18,8 +18,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM11_DBGTAP_H
-#define ARM11_DBGTAP_H
+#ifndef OPENOCD_TARGET_ARM11_DBGTAP_H
+#define OPENOCD_TARGET_ARM11_DBGTAP_H
 
 #include "arm11.h"
 
 
 #include "arm11.h"
 
@@ -80,4 +80,4 @@ int arm11_read_memory_word(struct arm11_common *arm11,
 int arm11_dpm_init(struct arm11_common *arm11, uint32_t didr);
 int arm11_bpwp_flush(struct arm11_common *arm11);
 
 int arm11_dpm_init(struct arm11_common *arm11, uint32_t didr);
 int arm11_bpwp_flush(struct arm11_common *arm11);
 
-#endif /* ARM11_DBGTAP_H */
+#endif /* OPENOCD_TARGET_ARM11_DBGTAP_H */
index 87d95de7656ef416885acb677899530763799ef0..31dad9c76cd7fdf6ce7fe6fb182f8608438602d1 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM720T_H
-#define ARM720T_H
+#ifndef OPENOCD_TARGET_ARM720T_H
+#define OPENOCD_TARGET_ARM720T_H
 
 #include "arm7tdmi.h"
 #include "armv4_5_mmu.h"
 
 #include "arm7tdmi.h"
 #include "armv4_5_mmu.h"
@@ -38,4 +38,4 @@ static inline struct arm720t_common *target_to_arm720(struct target *target)
        return container_of(target->arch_info, struct arm720t_common, arm7_9_common.arm);
 }
 
        return container_of(target->arch_info, struct arm720t_common, arm7_9_common.arm);
 }
 
-#endif /* ARM720T_H */
+#endif /* OPENOCD_TARGET_ARM720T_H */
index 6bf6bea71b1d7ba33f614fa4f9f839755bb60450..044384b20fd723cb676a3fffbc9abe3ebb21c72f 100644 (file)
@@ -25,8 +25,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM7_9_COMMON_H
-#define ARM7_9_COMMON_H
+#ifndef OPENOCD_TARGET_ARM7_9_COMMON_H
+#define OPENOCD_TARGET_ARM7_9_COMMON_H
 
 #include "arm.h"
 #include "arm_jtag.h"
 
 #include "arm.h"
 #include "arm_jtag.h"
@@ -192,4 +192,4 @@ int arm7_9_endianness_callback(jtag_callback_data_t pu8_in,
                jtag_callback_data_t i_size, jtag_callback_data_t i_be,
                jtag_callback_data_t i_flip);
 
                jtag_callback_data_t i_size, jtag_callback_data_t i_be,
                jtag_callback_data_t i_flip);
 
-#endif /* ARM7_9_COMMON_H */
+#endif /* OPENOCD_TARGET_ARM7_9_COMMON_H */
index e6b0006193b13230b5c2d43efd9da2de7ae3ec69..053f64df8ea13b1bfacfc7a6de4fead9705108fe 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM7TDMI_H
-#define ARM7TDMI_H
+#ifndef OPENOCD_TARGET_ARM7TDMI_H
+#define OPENOCD_TARGET_ARM7TDMI_H
 
 #include "embeddedice.h"
 
 
 #include "embeddedice.h"
 
@@ -29,4 +29,4 @@ int arm7tdmi_init_arch_info(struct target *target,
 int arm7tdmi_init_target(struct command_context *cmd_ctx,
                struct target *target);
 
 int arm7tdmi_init_target(struct command_context *cmd_ctx,
                struct target *target);
 
-#endif /* ARM7TDMI_H */
+#endif /* OPENOCD_TARGET_ARM7TDMI_H */
index 0e982f27275e0eda42fdef0dc6688bca01c7acb4..3401b0945c3fdd0c26a90cd8bd3435df436d68e4 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM920T_H
-#define ARM920T_H
+#ifndef OPENOCD_TARGET_ARM920T_H
+#define OPENOCD_TARGET_ARM920T_H
 
 #include "arm9tdmi.h"
 #include "armv4_5_mmu.h"
 
 #include "arm9tdmi.h"
 #include "armv4_5_mmu.h"
@@ -68,4 +68,4 @@ int arm920t_enable_mmu_caches(struct target *target,
 
 extern const struct command_registration arm920t_command_handlers[];
 
 
 extern const struct command_registration arm920t_command_handlers[];
 
-#endif /* ARM920T_H */
+#endif /* OPENOCD_TARGET_ARM920T_H */
index 1272625a3ef0d06882d35bd95986b657d69a180e..02b4ef849daa5ed27286439624012f66fb216a8e 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM926EJS_H
-#define ARM926EJS_H
+#ifndef OPENOCD_TARGET_ARM926EJS_H
+#define OPENOCD_TARGET_ARM926EJS_H
 
 #include "arm9tdmi.h"
 #include "armv4_5_mmu.h"
 
 #include "arm9tdmi.h"
 #include "armv4_5_mmu.h"
@@ -52,4 +52,4 @@ int arm926ejs_soft_reset_halt(struct target *target);
 
 extern const struct command_registration arm926ejs_command_handlers[];
 
 
 extern const struct command_registration arm926ejs_command_handlers[];
 
-#endif /* ARM926EJS_H */
+#endif /* OPENOCD_TARGET_ARM926EJS_H */
index 5e5cf57fada6bfbc63903d5a36f7f9239348e7a1..ee1ef3235f02c8662d005ff136ba13900e18584f 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM946E_H
-#define ARM946E_H
+#ifndef OPENOCD_TARGET_ARM946E_H
+#define OPENOCD_TARGET_ARM946E_H
 
 #include "arm9tdmi.h"
 
 
 #include "arm9tdmi.h"
 
@@ -48,4 +48,4 @@ int arm946e_write_cp15(struct target *target, int reg_addr, uint32_t value);
 
 extern const struct command_registration arm946e_command_handlers[];
 
 
 extern const struct command_registration arm946e_command_handlers[];
 
-#endif /* ARM946E_H */
+#endif /* OPENOCD_TARGET_ARM946E_H */
index ffc29eb4efef98e31e3a4b685238bfc3895c2c20..aa2e9bb2700ba517de8ecc217a30e644a66424bb 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM966E_H
-#define ARM966E_H
+#ifndef OPENOCD_TARGET_ARM966E_H
+#define OPENOCD_TARGET_ARM966E_H
 
 #include "arm9tdmi.h"
 
 
 #include "arm9tdmi.h"
 
@@ -45,4 +45,4 @@ int arm966e_write_cp15(struct target *target, int reg_addr, uint32_t value);
 
 extern const struct command_registration arm966e_command_handlers[];
 
 
 extern const struct command_registration arm966e_command_handlers[];
 
-#endif /* ARM966E_H */
+#endif /* OPENOCD_TARGET_ARM966E_H */
index 9f9409b4649e2f3cc2816861241c2c3d366a4154..c6f0ccf0f274b969326f5185220f1f83c1e23aa6 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM9TDMI_H
-#define ARM9TDMI_H
+#ifndef OPENOCD_TARGET_ARM9TDMI_H
+#define OPENOCD_TARGET_ARM9TDMI_H
 
 #include "embeddedice.h"
 
 
 #include "embeddedice.h"
 
@@ -53,4 +53,4 @@ void arm9tdmi_branch_resume(struct target *target);
 void arm9tdmi_enable_single_step(struct target *target, uint32_t next_pc);
 void arm9tdmi_disable_single_step(struct target *target);
 
 void arm9tdmi_enable_single_step(struct target *target, uint32_t next_pc);
 void arm9tdmi_disable_single_step(struct target *target);
 
-#endif /* ARM9TDMI_H */
+#endif /* OPENOCD_TARGET_ARM9TDMI_H */
index 051c1bf0ff68000926bdc8a5b28737d6303904ea..3220d8b6d27e12c260b43a6a80cd8a9d426a6241 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM_ADI_V5_H
-#define ARM_ADI_V5_H
+#ifndef OPENOCD_TARGET_ARM_ADI_V5_H
+#define OPENOCD_TARGET_ARM_ADI_V5_H
 
 /**
  * @file
 
 /**
  * @file
@@ -504,4 +504,4 @@ int dap_to_jtag(struct target *target);
 
 extern const struct command_registration dap_command_handlers[];
 
 
 extern const struct command_registration dap_command_handlers[];
 
-#endif
+#endif /* OPENOCD_TARGET_ARM_ADI_V5_H */
index 22485602ed14486884eaad3a484c94ac7fc7048d..6f8f65d448d2d1d0c6ff781337cf846fe2a17e40 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM_DISASSEMBLER_H
-#define ARM_DISASSEMBLER_H
+#ifndef OPENOCD_TARGET_ARM_DISASSEMBLER_H
+#define OPENOCD_TARGET_ARM_DISASSEMBLER_H
 
 enum arm_instruction_type {
        ARM_UNKNOWN_INSTUCTION,
 
 enum arm_instruction_type {
        ARM_UNKNOWN_INSTUCTION,
@@ -201,4 +201,4 @@ int arm_access_size(struct arm_instruction *instruction);
 
 #define COND(opcode) (arm_condition_strings[(opcode & 0xf0000000) >> 28])
 
 
 #define COND(opcode) (arm_condition_strings[(opcode & 0xf0000000) >> 28])
 
-#endif /* ARM_DISASSEMBLER_H */
+#endif /* OPENOCD_TARGET_ARM_DISASSEMBLER_H */
index 2e18f8053c5902ba2c90b796e4be4e0d42659329..fa87baf40349890a5769d968aebd183fb60afc9d 100644 (file)
@@ -15,8 +15,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef __ARM_DPM_H
-#define __ARM_DPM_H
+#ifndef OPENOCD_TARGET_ARM_DPM_H
+#define OPENOCD_TARGET_ARM_DPM_H
 
 /**
  * @file
 
 /**
  * @file
@@ -198,4 +198,4 @@ void arm_dpm_report_wfar(struct arm_dpm *, uint32_t wfar);
 
 void arm_dpm_report_dscr(struct arm_dpm *dpm, uint32_t dcsr);
 
 
 void arm_dpm_report_dscr(struct arm_dpm *dpm, uint32_t dcsr);
 
-#endif /* __ARM_DPM_H */
+#endif /* OPENOCD_TARGET_ARM_DPM_H */
index dd9145124401c4178ba3b16f68ac3d18dc92f4a9..bb92abb84ba33d1faa4a49823eb0a7c8038418a1 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM_JTAG
-#define ARM_JTAG
+#ifndef OPENOCD_TARGET_ARM_JTAG_H
+#define OPENOCD_TARGET_ARM_JTAG_H
 
 #include <jtag/jtag.h>
 
 
 #include <jtag/jtag.h>
 
@@ -75,4 +75,4 @@ static inline void arm_le_to_h_u32(jtag_callback_data_t arg)
        *((uint32_t *)arg) = le_to_h_u32(in);
 }
 
        *((uint32_t *)arg) = le_to_h_u32(in);
 }
 
-#endif /* ARM_JTAG */
+#endif /* OPENOCD_TARGET_ARM_JTAG_H */
index b743984bfe8bfb8e9319d4d2204b276b91df797f..a53fee71ef1757d4d4aed10d3677ff50ba2f460c 100644 (file)
@@ -24,8 +24,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-#ifndef __ARM_OPCODES_H
-#define __ARM_OPCODES_H
+
+#ifndef OPENOCD_TARGET_ARM_OPCODES_H
+#define OPENOCD_TARGET_ARM_OPCODES_H
 
 /**
  * @file
 
 /**
  * @file
        ((0xB660 | (0 << 8) | ((IF)&0x3)) \
        | ((0xB660 | (0 << 8) | ((IF)&0x3)) << 16))
 
        ((0xB660 | (0 << 8) | ((IF)&0x3)) \
        | ((0xB660 | (0 << 8) | ((IF)&0x3)) << 16))
 
-#endif /* __ARM_OPCODES_H */
+#endif /* OPENOCD_TARGET_ARM_OPCODES_H */
index 1890d332fcf4d47ffc6d802c242b9fffad32e301..7b5c0b2de91e1a7e1f15ae2a6fe315f93e5cee5e 100644 (file)
@@ -16,9 +16,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM_SEMIHOSTING_H
-#define ARM_SEMIHOSTING_H
+#ifndef OPENOCD_TARGET_ARM_SEMIHOSTING_H
+#define OPENOCD_TARGET_ARM_SEMIHOSTING_H
 
 int arm_semihosting(struct target *target, int *retval);
 
 
 int arm_semihosting(struct target *target, int *retval);
 
-#endif
+#endif /* OPENOCD_TARGET_ARM_SEMIHOSTING_H */
index 8db1817a6b13cb488b2450ff6d1a4603f9d21017..5bdbf562cc33357866f32c1fccd3e80b72f81437 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM_SIMULATOR_H
-#define ARM_SIMULATOR_H
+#ifndef OPENOCD_TARGET_ARM_SIMULATOR_H
+#define OPENOCD_TARGET_ARM_SIMULATOR_H
 
 struct target;
 
 
 struct target;
 
@@ -36,4 +36,4 @@ struct arm_sim_interface {
 /* armv4_5 version */
 int arm_simulate_step(struct target *target, uint32_t *dry_run_pc);
 
 /* armv4_5 version */
 int arm_simulate_step(struct target *target, uint32_t *dry_run_pc);
 
-#endif /* ARM_SIMULATOR_H */
+#endif /* OPENOCD_TARGET_ARM_SIMULATOR_H */
index 8440f0972a16c6a3f7aef45fee0bb6a0f97b7789..3ce4ed0e56ca7089542aa5f76c878125c4ac8537 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARMV4_5_H
-#define ARMV4_5_H
+#ifndef OPENOCD_TARGET_ARMV4_5_H
+#define OPENOCD_TARGET_ARMV4_5_H
 
 /* This stuff "knows" that its callers aren't talking
  * to microcontroller profile (current Cortex-M) parts.
 
 /* This stuff "knows" that its callers aren't talking
  * to microcontroller profile (current Cortex-M) parts.
@@ -46,4 +46,4 @@ extern const int armv4_5_core_reg_map[8][17];
 /* offset into armv4_5 core register cache -- OBSOLETE, DO NOT USE! */
 enum { ARMV4_5_CPSR = 31, };
 
 /* offset into armv4_5 core register cache -- OBSOLETE, DO NOT USE! */
 enum { ARMV4_5_CPSR = 31, };
 
-#endif /* ARMV4_5_H */
+#endif /* OPENOCD_TARGET_ARMV4_5_H */
index 2aeccdfd59aa540b7f7ec5696c8abe6796e0bcc9..2fd1ca3873e332a7478dcddbe14422d426ef899e 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARMV4_5_CACHE_H
-#define ARMV4_5_CACHE_H
+#ifndef OPENOCD_TARGET_ARMV4_5_CACHE_H
+#define OPENOCD_TARGET_ARMV4_5_CACHE_H
 
 struct command_context;
 
 
 struct command_context;
 
@@ -52,4 +52,4 @@ enum {
        ARMV4_5_CACHE_RR_BIT = 0x5000,
 };
 
        ARMV4_5_CACHE_RR_BIT = 0x5000,
 };
 
-#endif /* ARMV4_5_CACHE_H */
+#endif /* OPENOCD_TARGET_ARMV4_5_CACHE_H */
index b64895c6ec1789282f7f518d927e15be742c58cd..0f521214293f3d3e297e11e1f591c7ab06e82a24 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARMV4_5_MMU_H
-#define ARMV4_5_MMU_H
+#ifndef OPENOCD_TARGET_ARMV4_5_MMU_H
+#define OPENOCD_TARGET_ARMV4_5_MMU_H
 
 #include "armv4_5_cache.h"
 
 
 #include "armv4_5_cache.h"
 
@@ -53,4 +53,4 @@ enum {
        ARMV4_5_MMU_R_BIT = 0x200
 };
 
        ARMV4_5_MMU_R_BIT = 0x200
 };
 
-#endif /* ARMV4_5_MMU_H */
+#endif /* OPENOCD_TARGET_ARMV4_5_MMU_H */
index 7d9abf10f92ae6b6d015324b44c427f1320287f6..6461ba905653d529edc93db9db2374d094ef55aa 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARMV7A_H
-#define ARMV7A_H
+#ifndef OPENOCD_TARGET_ARMV7A_H
+#define OPENOCD_TARGET_ARMV7A_H
 
 #include "arm_adi_v5.h"
 #include "armv7a_cache.h"
 
 #include "arm_adi_v5.h"
 #include "armv7a_cache.h"
@@ -184,4 +184,4 @@ int armv7a_handle_cache_info_command(struct command_context *cmd_ctx,
 
 extern const struct command_registration armv7a_command_handlers[];
 
 
 extern const struct command_registration armv7a_command_handlers[];
 
-#endif /* ARMV4_5_H */
+#endif /* OPENOCD_TARGET_ARMV7A_H */
index 4d4d94c20c1785adac6d32de68a136bb34ecbeef..e0f7eb3a58f6dad22527795297c085b5562e9bc5 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM7A_CACHE_H
-#define ARM7A_CACHE_H
+#ifndef OPENOCD_TARGET_ARM7A_CACHE_H
+#define OPENOCD_TARGET_ARM7A_CACHE_H
 
 #include "arm_jtag.h"
 #include "armv7a_cache_l2x.h"
 
 #include "arm_jtag.h"
 #include "armv7a_cache_l2x.h"
@@ -43,4 +43,4 @@ extern const struct command_registration arm7a_cache_command_handlers[];
 #define CACHE_LEVEL_HAS_D_CACHE                0x2
 #define CACHE_LEVEL_HAS_I_CACHE                0x1
 
 #define CACHE_LEVEL_HAS_D_CACHE                0x2
 #define CACHE_LEVEL_HAS_I_CACHE                0x1
 
-#endif
+#endif /* OPENOCD_TARGET_ARM7A_CACHE_H */
index 102fbedc7777dfaf971fac300ec860f29de57bc6..3d9ad8116ed524e2b36f08426c75820ed3d5ba3e 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARM7A_CACHE_L2X_H
-#define ARM7A_CACHE_L2X_H
+#ifndef OPENOCD_TARGET_ARM7A_CACHE_L2X_H
+#define OPENOCD_TARGET_ARM7A_CACHE_L2X_H
 
 #define L2X0_CACHE_LINE_SIZE           32
 
 
 #define L2X0_CACHE_LINE_SIZE           32
 
@@ -155,4 +155,4 @@ int armv7a_l2x_cache_flush_virt(struct target *target, uint32_t virt,
                                        uint32_t size);
 int arm7a_l2x_flush_all_data(struct target *target);
 
                                        uint32_t size);
 int arm7a_l2x_flush_all_data(struct target *target);
 
-#endif
+#endif /* OPENOCD_TARGET_ARM7A_CACHE_L2X_H */
index 84711b98b7fc25412ba4fb88f34ea4bbb19335fc..bd92d2d065ada59ca49b886eb708f3880425d176 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARMV7M_COMMON_H
-#define ARMV7M_COMMON_H
+#ifndef OPENOCD_TARGET_ARMV7M_H
+#define OPENOCD_TARGET_ARMV7M_H
 
 #include "arm_adi_v5.h"
 #include "arm.h"
 
 #include "arm_adi_v5.h"
 #include "arm.h"
@@ -229,4 +229,4 @@ int armv7m_maybe_skip_bkpt_inst(struct target *target, bool *inst_found);
 
 extern const struct command_registration armv7m_command_handlers[];
 
 
 extern const struct command_registration armv7m_command_handlers[];
 
-#endif /* ARMV7M_H */
+#endif /* OPENOCD_TARGET_ARMV7M_H */
index d35b637e4f7f4402a5d3c5d75be9256febe43080..4f9939464f6c909e0de92488044acc3b262ec9e4 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ARMV7M_TRACE_H
-#define ARMV7M_TRACE_H
+#ifndef OPENOCD_TARGET_ARMV7M_TRACE_H
+#define OPENOCD_TARGET_ARMV7M_TRACE_H
 
 #include <target/target.h>
 #include <command.h>
 
 #include <target/target.h>
 #include <command.h>
@@ -88,4 +88,4 @@ int armv7m_trace_tpiu_config(struct target *target);
  */
 int armv7m_trace_itm_config(struct target *target);
 
  */
 int armv7m_trace_itm_config(struct target *target);
 
-#endif
+#endif /* OPENOCD_TARGET_ARMV7M_TRACE_H */
index 59db12b25a7671dd587240ffe690cf899863db7d..3f27534a30ee52ab0e92860c4edb57507166406c 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef AVR32_AP7K
-#define AVR32_AP7K
+#ifndef OPENOCD_TARGET_AVR32_AP7K_H
+#define OPENOCD_TARGET_AVR32_AP7K_H
 
 struct target;
 
 
 struct target;
 
@@ -40,4 +40,4 @@ struct avr32_core_reg {
        struct avr32_ap7k_common *avr32_common;
 };
 
        struct avr32_ap7k_common *avr32_common;
 };
 
-#endif /*AVR32_AP7K*/
+#endif /* OPENOCD_TARGET_AVR32_AP7K_H */
index 7b6f882b000adbf08709597743aac2786401b561..b431ef4c828aff9d815b214bf7dde2a914514ed8 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef AVR32_JTAG
-#define AVR32_JTAG
+#ifndef OPENOCD_TARGET_AVR32_JTAG_H
+#define OPENOCD_TARGET_AVR32_JTAG_H
 
 #define        AVR32NUMCOREREGS        17
 
 
 #define        AVR32NUMCOREREGS        17
 
@@ -100,4 +100,4 @@ int avr32_ocd_clearbits(struct avr32_jtag *jtag, int reg, uint32_t bits);
 
 int avr32_jtag_exec(struct avr32_jtag *jtag_info, uint32_t inst);
 
 
 int avr32_jtag_exec(struct avr32_jtag *jtag_info, uint32_t inst);
 
-#endif /* AVR32_JTAG */
+#endif /* OPENOCD_TARGET_AVR32_JTAG_H */
index 2ecbea60d68ea637f93fc721f79ad474aa4be5ff..f60a12179b8e8536b3f3e6cb82ec46d665ae29e6 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef AVR32_MEM
-#define AVR32_MEM
+#ifndef OPENOCD_TARGET_AVR32_MEM_H
+#define OPENOCD_TARGET_AVR32_MEM_H
 
 int avr32_jtag_read_memory32(struct avr32_jtag *jtag_info,
                uint32_t addr, int count, uint32_t *buffer);
 
 int avr32_jtag_read_memory32(struct avr32_jtag *jtag_info,
                uint32_t addr, int count, uint32_t *buffer);
@@ -32,4 +32,4 @@ int avr32_jtag_write_memory16(struct avr32_jtag *jtag_info,
 int avr32_jtag_write_memory8(struct avr32_jtag *jtag_info,
                uint32_t addr, int count, const uint8_t *buffer);
 
 int avr32_jtag_write_memory8(struct avr32_jtag *jtag_info,
                uint32_t addr, int count, const uint8_t *buffer);
 
-#endif /* AVR32_MEM */
+#endif /* OPENOCD_TARGET_AVR32_MEM_H */
index 960ad70f87acd6badf3f70a7cb5dc70e4340ddf8..cb492a9febcebd5d6934004c0008a73e097a4005 100644 (file)
@@ -15,8 +15,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef AVR32_REGS
-#define AVR32_REGS
+#ifndef OPENOCD_TARGET_AVR32_REGS_H
+#define OPENOCD_TARGET_AVR32_REGS_H
 
 enum avr32_reg_nums {
        AVR32_REG_R0 = 0,
 
 enum avr32_reg_nums {
        AVR32_REG_R0 = 0,
@@ -41,4 +41,4 @@ enum avr32_reg_nums {
 int avr32_jtag_read_regs(struct avr32_jtag *jtag_info, uint32_t *regs);
 int avr32_jtag_write_regs(struct avr32_jtag *jtag_info, uint32_t *regs);
 
 int avr32_jtag_read_regs(struct avr32_jtag *jtag_info, uint32_t *regs);
 int avr32_jtag_write_regs(struct avr32_jtag *jtag_info, uint32_t *regs);
 
-#endif /* AVR32_REGS */
+#endif /* OPENOCD_TARGET_AVR32_REGS_H */
index 18da5fd37eb1f663ad016c56b319bf2c1f4a207a..3610eb5e325d774508be49d9a6325181d7a2eba4 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef AVRT_H
-#define AVRT_H
+#ifndef OPENOCD_TARGET_AVRT_H
+#define OPENOCD_TARGET_AVRT_H
 
 #include <jtag/jtag.h>
 
 
 #include <jtag/jtag.h>
 
@@ -34,4 +34,4 @@ int avr_jtag_sendinstr(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out);
 int avr_jtag_senddat(struct jtag_tap *tap, uint32_t *dr_in, uint32_t dr_out,
                int len);
 
 int avr_jtag_senddat(struct jtag_tap *tap, uint32_t *dr_in, uint32_t dr_out,
                int len);
 
-#endif /* AVRT_H */
+#endif /* OPENOCD_TARGET_AVRT_H */
index 63c0c5ef6159be037c90d49f4efcff4089df38a4..6e260abd870002c6267abd177f76eb00dcbc578a 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef BREAKPOINTS_H
-#define BREAKPOINTS_H
+#ifndef OPENOCD_TARGET_BREAKPOINTS_H
+#define OPENOCD_TARGET_BREAKPOINTS_H
 
 struct target;
 
 
 struct target;
 
@@ -73,4 +73,4 @@ void watchpoint_remove(struct target *target, uint32_t address);
 /* report type and address of just hit watchpoint */
 int watchpoint_hit(struct target *target, enum watchpoint_rw *rw, uint32_t *address);
 
 /* report type and address of just hit watchpoint */
 int watchpoint_hit(struct target *target, enum watchpoint_rw *rw, uint32_t *address);
 
-#endif /* BREAKPOINTS_H */
+#endif /* OPENOCD_TARGET_BREAKPOINTS_H */
index e6e9e97735fc76bb512412d21e1ebebbbab63e29..ea08c670f732ee2ce9865610a6a9daa2bf31f7cd 100644 (file)
@@ -25,8 +25,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef CORTEX_A_H
-#define CORTEX_A_H
+#ifndef OPENOCD_TARGET_CORTEX_A_H
+#define OPENOCD_TARGET_CORTEX_A_H
 
 #include "armv7a.h"
 
 
 #include "armv7a.h"
 
@@ -114,4 +114,4 @@ target_to_cortex_a(struct target *target)
        return container_of(target->arch_info, struct cortex_a_common, armv7a_common.arm);
 }
 
        return container_of(target->arch_info, struct cortex_a_common, armv7a_common.arm);
 }
 
-#endif /* CORTEX_A_H */
+#endif /* OPENOCD_TARGET_CORTEX_A_H */
index f164e68746ca34d184ded3b24bfc00638702686f..eabaac49f45e6170ed26ca29fdb69657a1ccbbfe 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef CORTEX_M_H
-#define CORTEX_M_H
+#ifndef OPENOCD_TARGET_CORTEX_M_H
+#define OPENOCD_TARGET_CORTEX_M_H
 
 #include "armv7m.h"
 
 
 #include "armv7m.h"
 
@@ -211,4 +211,4 @@ void cortex_m_enable_watchpoints(struct target *target);
 void cortex_m_dwt_setup(struct cortex_m_common *cm, struct target *target);
 void cortex_m_deinit_target(struct target *target);
 
 void cortex_m_dwt_setup(struct cortex_m_common *cm, struct target *target);
 void cortex_m_deinit_target(struct target *target);
 
-#endif /* CORTEX_M_H */
+#endif /* OPENOCD_TARGET_CORTEX_M_H */
index 17de6c0d08f69b9208beb60881d1caae644d3c98..4bb5aceaf1da0fb2cd7f3f7648e3fca24796cafd 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef DSP563XX_H
-#define DSP563XX_H
+#ifndef OPENOCD_TARGET_DSP563XX_H
+#define OPENOCD_TARGET_DSP563XX_H
 
 #include <jtag/jtag.h>
 #include <target/dsp563xx_once.h>
 
 #include <jtag/jtag.h>
 #include <target/dsp563xx_once.h>
@@ -70,4 +70,4 @@ static inline struct dsp563xx_common *target_to_dsp563xx(struct target *target)
        return target->arch_info;
 }
 
        return target->arch_info;
 }
 
-#endif /* DSP563XX_H */
+#endif /* OPENOCD_TARGET_DSP563XX_H */
index f6d2ef1649b7d9e170b0e5a9d2daa8fe64666312..da7f5e9b864986aee147ec77a224e81d7a10f39c 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef DSP563XX_ONCE_H
-#define DSP563XX_ONCE_H
+#ifndef OPENOCD_TARGET_DSP563XX_ONCE_H
+#define OPENOCD_TARGET_DSP563XX_ONCE_H
 
 #include <jtag/jtag.h>
 
 
 #include <jtag/jtag.h>
 
@@ -86,4 +86,4 @@ int dsp563xx_once_execute_sw_ir(struct jtag_tap *tap, int flush, uint32_t opcode
 /** double word instruction */
 int dsp563xx_once_execute_dw_ir(struct jtag_tap *tap, int flush, uint32_t opcode, uint32_t operand);
 
 /** double word instruction */
 int dsp563xx_once_execute_dw_ir(struct jtag_tap *tap, int flush, uint32_t opcode, uint32_t operand);
 
-#endif /* DSP563XX_ONCE_H */
+#endif /* OPENOCD_TARGET_DSP563XX_ONCE_H */
index f212d4adb1ea59c22871f915054dd75c0df8fce4..842796bc7f7fdf0be33209e996dbd8e2aed411e9 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef DSP5680XX_H
-#define DSP5680XX_H
+#ifndef OPENOCD_TARGET_DSP5680XX_H
+#define OPENOCD_TARGET_DSP5680XX_H
 
 #include <jtag/jtag.h>
 
 
 #include <jtag/jtag.h>
 
@@ -379,4 +379,4 @@ int dsp5680xx_f_lock(struct target *target);
  */
 int dsp5680xx_f_unlock(struct target *target);
 
  */
 int dsp5680xx_f_unlock(struct target *target);
 
-#endif /* DSP5680XX_H */
+#endif /* OPENOCD_TARGET_DSP5680XX_H */
index 86300e5a6bbc62e4df9174c32aab823fac97c1ed..39902fb3ec920add7511768ceed9f22a7b618e22 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef EMBEDDED_ICE_H
-#define EMBEDDED_ICE_H
+#ifndef OPENOCD_TARGET_EMBEDDEDICE_H
+#define OPENOCD_TARGET_EMBEDDEDICE_H
 
 #include "arm7_9_common.h"
 
 
 #include "arm7_9_common.h"
 
@@ -125,4 +125,4 @@ static inline void embeddedice_write_reg_inner(struct jtag_tap *tap, int reg_add
 void embeddedice_write_dcc(struct jtag_tap *tap, int reg_addr, const uint8_t *buffer,
                int little, int count);
 
 void embeddedice_write_dcc(struct jtag_tap *tap, int reg_addr, const uint8_t *buffer,
                int little, int count);
 
-#endif /* EMBEDDED_ICE_H */
+#endif /* OPENOCD_TARGET_EMBEDDEDICE_H */
index 94adf8251ea4c5c36718b731913099b0fc35ddde..680c8a1ab8f80de721030a63528a58e85f5388ad 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ETB_H
-#define ETB_H
+#ifndef OPENOCD_TARGET_ETB_H
+#define OPENOCD_TARGET_ETB_H
 
 /* ETB registers */
 enum {
 
 /* ETB registers */
 enum {
@@ -55,4 +55,4 @@ extern struct etm_capture_driver etb_capture_driver;
 
 struct reg_cache *etb_build_reg_cache(struct etb *etb);
 
 
 struct reg_cache *etb_build_reg_cache(struct etb *etb);
 
-#endif /* ETB_H */
+#endif /* OPENOCD_TARGET_ETB_H */
index 368a5b54ba7fb16cc39b745e5e2f94c61d49f69c..6a78b75641538399e1cd2cf0ac5ac0db0a4ef155 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ETM_H
-#define ETM_H
+#ifndef OPENOCD_TARGET_ETM_H
+#define OPENOCD_TARGET_ETM_H
 
 #include "trace.h"
 #include "arm_jtag.h"
 
 #include "trace.h"
 #include "arm_jtag.h"
@@ -221,4 +221,4 @@ extern const struct command_registration etm_command_handlers[];
 #define ERROR_ETM_CAPTURE_INIT_FAILED  (-1302)
 #define ERROR_ETM_ANALYSIS_FAILED      (-1303)
 
 #define ERROR_ETM_CAPTURE_INIT_FAILED  (-1302)
 #define ERROR_ETM_ANALYSIS_FAILED      (-1303)
 
-#endif /* ETM_H */
+#endif /* OPENOCD_TARGET_ETM_H */
index 8348c4160651f5682466780228b09ab86f35a33a..5a1955f37eac863d89b74e593af7aa717c88cd8c 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef ETM_DUMMY_H
-#define ETM_DUMMY_H
+#ifndef OPENOCD_TARGET_ETM_DUMMY_H
+#define OPENOCD_TARGET_ETM_DUMMY_H
 
 #include "etm.h"
 
 extern struct etm_capture_driver etm_dummy_capture_driver;
 
 
 #include "etm.h"
 
 extern struct etm_capture_driver etm_dummy_capture_driver;
 
-#endif /* ETB_H */
+#endif /* OPENOCD_TARGET_ETM_DUMMY_H */
index c3bce9e36d8ae32ca9dea2f5c1112253aaa6ec60..9bf7af35d82b2947350eb2ce0bce138d67cb4353 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef IMAGE_H
-#define IMAGE_H
+#ifndef OPENOCD_TARGET_IMAGE_H
+#define OPENOCD_TARGET_IMAGE_H
 
 #include <helper/fileio.h>
 
 
 #include <helper/fileio.h>
 
@@ -107,4 +107,4 @@ int image_calculate_checksum(uint8_t *buffer, uint32_t nbytes,
 #define ERROR_IMAGE_TEMPORARILY_UNAVAILABLE            (-1402)
 #define ERROR_IMAGE_CHECKSUM           (-1403)
 
 #define ERROR_IMAGE_TEMPORARILY_UNAVAILABLE            (-1402)
 #define ERROR_IMAGE_CHECKSUM           (-1403)
 
-#endif /* IMAGE_H */
+#endif /* OPENOCD_TARGET_IMAGE_H */
index a9e49aaff4a3f5f618e69a4676bc44b3b1e29bbe..b07a05612f0fb55e28ceec3f17ccba25a105980c 100644 (file)
@@ -29,8 +29,9 @@
  * This is the interface to the probemode operations for Lakemont 1 (LMT1).
  */
 
  * This is the interface to the probemode operations for Lakemont 1 (LMT1).
  */
 
-#ifndef LAKEMONT_H
-#define LAKEMONT_H
+#ifndef OPENOCD_TARGET_LAKEMONT_H
+#define OPENOCD_TARGET_LAKEMONT_H
+
 #include <jtag/jtag.h>
 #include <helper/types.h>
 
 #include <jtag/jtag.h>
 #include <helper/types.h>
 
@@ -102,4 +103,4 @@ int lakemont_reset_assert(struct target *t);
 int lakemont_reset_deassert(struct target *t);
 int lakemont_update_after_probemode_entry(struct target *t);
 
 int lakemont_reset_deassert(struct target *t);
 int lakemont_update_after_probemode_entry(struct target *t);
 
-#endif /* LAKEMONT_H */
+#endif /* OPENOCD_TARGET_LAKEMONT_H */
index 679249ca4916ef332c6ed1a2b0d65d0020bc8c85..bfd2cf56e7c29b1849a97377bbb92e2250386ba3 100644 (file)
@@ -21,8 +21,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef MIPS32_H
-#define MIPS32_H
+#ifndef OPENOCD_TARGET_MIPS32_H
+#define OPENOCD_TARGET_MIPS32_H
 
 #include "target.h"
 #include "mips32_pracc.h"
 
 #include "target.h"
 #include "mips32_pracc.h"
@@ -249,4 +249,4 @@ int mips32_checksum_memory(struct target *target, uint32_t address,
 int mips32_blank_check_memory(struct target *target,
                uint32_t address, uint32_t count, uint32_t *blank);
 
 int mips32_blank_check_memory(struct target *target,
                uint32_t address, uint32_t count, uint32_t *blank);
 
-#endif /*MIPS32_H*/
+#endif /* OPENOCD_TARGET_MIPS32_H */
index 8c84b429598d5b51529f151ebf0b1200201fafb2..70fe2a77eadd46790fe9774fad19aac61d3543f8 100644 (file)
@@ -21,8 +21,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef MIPS32_DMAACC_H
-#define MIPS32_DMAACC_H
+#ifndef OPENOCD_TARGET_MIPS32_DMAACC_H
+#define OPENOCD_TARGET_MIPS32_DMAACC_H
 
 #include "mips_ejtag.h"
 
 
 #include "mips_ejtag.h"
 
@@ -38,4 +38,4 @@ int mips32_dmaacc_read_mem(struct mips_ejtag *ejtag_info,
 int mips32_dmaacc_write_mem(struct mips_ejtag *ejtag_info,
                uint32_t addr, int size, int count, const void *buf);
 
 int mips32_dmaacc_write_mem(struct mips_ejtag *ejtag_info,
                uint32_t addr, int size, int count, const void *buf);
 
-#endif
+#endif /* OPENOCD_TARGET_MIPS32_DMAACC_H */
index 112110fcc1ea4803247c91899d01df37374a7260..2ede5b28809f78cda6e00c8899bc01c966396940 100644 (file)
@@ -21,8 +21,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef MIPS32_PRACC_H
-#define MIPS32_PRACC_H
+#ifndef OPENOCD_TARGET_MIPS32_PRACC_H
+#define OPENOCD_TARGET_MIPS32_PRACC_H
 
 #include <target/mips32.h>
 #include <target/mips_ejtag.h>
 
 #include <target/mips32.h>
 #include <target/mips_ejtag.h>
@@ -99,4 +99,4 @@ int mips32_cp0_read(struct mips_ejtag *ejtag_info,
 int mips32_cp0_write(struct mips_ejtag *ejtag_info,
                uint32_t val, uint32_t cp0_reg, uint32_t cp0_sel);
 
 int mips32_cp0_write(struct mips_ejtag *ejtag_info,
                uint32_t val, uint32_t cp0_reg, uint32_t cp0_sel);
 
-#endif
+#endif /* OPENOCD_TARGET_MIPS32_PRACC_H */
index 603a02d4b2e828974350a89ad16d66293fb0ca38..6ef08675da70ad7bc884cb56e095fd1e274804c0 100644 (file)
@@ -18,8 +18,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef MIPS_EJTAG
-#define MIPS_EJTAG
+#ifndef OPENOCD_TARGET_MIPS_EJTAG_H
+#define OPENOCD_TARGET_MIPS_EJTAG_H
 
 #include <jtag/jtag.h>
 
 
 #include <jtag/jtag.h>
 
@@ -232,4 +232,4 @@ static inline void mips_le_to_h_u32(jtag_callback_data_t arg)
        *((uint32_t *)arg) = le_to_h_u32(in);
 }
 
        *((uint32_t *)arg) = le_to_h_u32(in);
 }
 
-#endif /* MIPS_EJTAG */
+#endif /* OPENOCD_TARGET_MIPS_EJTAG_H */
index 27c15ae8a0ea11a17ba31a6a955630207f6254ca..cf826612549960c6e646af90761aed1a6dcfcea9 100644 (file)
@@ -21,8 +21,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef MIPS_M4K_H
-#define MIPS_M4K_H
+#ifndef OPENOCD_TARGET_MIPS_M4K_H
+#define OPENOCD_TARGET_MIPS_M4K_H
 
 struct target;
 
 
 struct target;
 
@@ -43,4 +43,4 @@ target_to_m4k(struct target *target)
 
 extern const struct command_registration mips_m4k_command_handlers[];
 
 
 extern const struct command_registration mips_m4k_command_handlers[];
 
-#endif /*MIPS_M4K_H*/
+#endif /* OPENOCD_TARGET_MIPS_M4K_H */
index 4ef362e69d7b3492ce35f14770b455e40ae55130..88af4f3aa8b1687a2fbbe1dd3be42e45273530d7 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef __NDS32_H__
-#define __NDS32_H__
+#ifndef OPENOCD_TARGET_NDS32_H
+#define OPENOCD_TARGET_NDS32_H
 
 #include <jtag/jtag.h>
 #include "target.h"
 
 #include <jtag/jtag.h>
 #include "target.h"
@@ -454,4 +454,4 @@ static inline bool nds32_reach_max_interrupt_level(struct nds32 *nds32)
        return nds32->max_interrupt_level == nds32->current_interrupt_level;
 }
 
        return nds32->max_interrupt_level == nds32->current_interrupt_level;
 }
 
-#endif /* __NDS32_H__ */
+#endif /* OPENOCD_TARGET_NDS32_H */
index fefc67d6157e1cd5cc2c1a76076c3b931d14446b..ae801ed31d5daf3700223c83e6a2dbb1bb6869b9 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __NDS32_AICE_H__
-#define __NDS32_AICE_H__
+
+#ifndef OPENOCD_TARGET_NDS32_AICE_H
+#define OPENOCD_TARGET_NDS32_AICE_H
 
 #include <jtag/aice/aice_port.h>
 
 
 #include <jtag/aice/aice_port.h>
 
@@ -157,4 +158,4 @@ static inline int aice_set_data_endian(struct aice_port_s *aice,
        return aice->port->api->set_data_endian(aice->coreid, target_data_endian);
 }
 
        return aice->port->api->set_data_endian(aice->coreid, target_data_endian);
 }
 
-#endif
+#endif /* OPENOCD_TARGET_NDS32_AICE_H */
index fd6eca231b8428d249bf0975f0409059a13c0e5d..543ba54c66af8b281f4c0cea18d014149f02e261 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef __NDS32_CMD_H__
-#define __NDS32_CMD_H__
+#ifndef OPENOCD_TARGET_NDS32_CMD_H
+#define OPENOCD_TARGET_NDS32_CMD_H
+
 #include <helper/command.h>
 
 extern const struct command_registration nds32_command_handlers[];
 
 #include <helper/command.h>
 
 extern const struct command_registration nds32_command_handlers[];
 
-#endif /* __NDS32_CMD_H__ */
+#endif /* OPENOCD_TARGET_NDS32_CMD_H */
index 491436cfccf81cee5f1912d300e9234dd501fcd4..9117cbb08a1abf74bfc0638b7046f34b4f99accd 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef __NDS32_DISASSEMBLER_H__
-#define __NDS32_DISASSEMBLER_H__
+#ifndef OPENOCD_TARGET_NDS32_DISASSEMBLER_H
+#define OPENOCD_TARGET_NDS32_DISASSEMBLER_H
 
 #include <target/nds32.h>
 
 
 #include <target/nds32.h>
 
@@ -53,4 +53,4 @@ int nds32_read_opcode(struct nds32 *nds32, uint32_t address, uint32_t *value);
 int nds32_evaluate_opcode(struct nds32 *nds32, uint32_t opcode, uint32_t address,
                struct nds32_instruction *instruction);
 
 int nds32_evaluate_opcode(struct nds32 *nds32, uint32_t opcode, uint32_t address,
                struct nds32_instruction *instruction);
 
-#endif /* __NDS32_DISASSEMBLER_H__ */
+#endif /* OPENOCD_TARGET_NDS32_DISASSEMBLER_H */
index 25ac64be26c4c13fbad0f840727def564106e07e..1dec190f1263c38228256010c62f0350a49ce236 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __NDS32_EDM_H__
-#define __NDS32_EDM_H__
+
+#ifndef OPENOCD_TARGET_NDS32_EDM_H
+#define OPENOCD_TARGET_NDS32_EDM_H
 
 /**
  * @file
 
 /**
  * @file
@@ -111,4 +112,4 @@ enum nds_memory_select {
 #define NDS_EDMSW_WDV          (1 << 0)
 #define NDS_EDMSW_RDV          (1 << 1)
 
 #define NDS_EDMSW_WDV          (1 << 0)
 #define NDS_EDMSW_RDV          (1 << 1)
 
-#endif /* __NDS32_EDM_H__ */
+#endif /* OPENOCD_TARGET_NDS32_EDM_H */
index 63e45fc6ba1fd7a80808c98b74736d16c4cda520..eb666451762cd0f9492e838d2371b9355eac6be9 100644 (file)
@@ -15,9 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __NDS32_INSN_H__
-#define __NDS32_INSN_H__
 
 
+#ifndef OPENOCD_TARGET_NDS32_INSN_H
+#define OPENOCD_TARGET_NDS32_INSN_H
 
 #define NOP                                            (0x40000009)
 #define DSB                                            (0x64000008)
 
 #define NOP                                            (0x40000009)
 #define DSB                                            (0x64000008)
@@ -75,5 +75,4 @@
 extern const int NDS32_BREAK_16;
 extern const int NDS32_BREAK_32;
 
 extern const int NDS32_BREAK_16;
 extern const int NDS32_BREAK_32;
 
-
-#endif /* __NDS32_INSN_H__ */
+#endif /* OPENOCD_TARGET_NDS32_INSN_H */
index 52fbf19bd3498035e99562d0fe4eda247c9534ce..8808cd244c436935682d4cbbf47d9df0d454370b 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __NDS32_REG_H__
-#define __NDS32_REG_H__
+
+#ifndef OPENOCD_TARGET_NDS32_REG_H
+#define OPENOCD_TARGET_NDS32_REG_H
 
 #define SRIDX(a, b, c)                 ((a << 7) | (b << 3) | c)
 #define NDS32_REGISTER_DISABLE         (0x0)
 
 #define SRIDX(a, b, c)                 ((a << 7) | (b << 3) | c)
 #define NDS32_REGISTER_DISABLE         (0x0)
@@ -321,4 +322,4 @@ const char *nds32_reg_simple_name(uint32_t number);
 const char *nds32_reg_symbolic_name(uint32_t number);
 bool nds32_reg_exception(uint32_t number, uint32_t value);
 
 const char *nds32_reg_symbolic_name(uint32_t number);
 bool nds32_reg_exception(uint32_t number, uint32_t value);
 
-#endif
+#endif /* OPENOCD_TARGET_NDS32_REG_H */
index a342d39e9d5919065283a58fd253d0d560ed860c..ada2c198bd05f4dce22861f53cc2b6e4f67e6259 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __NDS32_TLB_H__
-#define __NDS32_TLB_H__
+
+#ifndef OPENOCD_TARGET_NDS32_TLB_H
+#define OPENOCD_TARGET_NDS32_TLB_H
 
 #include "nds32.h"
 
 
 #include "nds32.h"
 
@@ -43,4 +44,4 @@ extern int nds32_probe_tlb(struct nds32 *nds32, const uint32_t virtual_address,
 extern int nds32_walk_page_table(struct nds32 *nds32, const uint32_t virtual_address,
                uint32_t *physical_address);
 
 extern int nds32_walk_page_table(struct nds32 *nds32, const uint32_t virtual_address,
                uint32_t *physical_address);
 
-#endif
+#endif /* OPENOCD_TARGET_NDS32_TLB_H */
index abc3cde46b9560ee7e348bb86a0f357e3d67d4a1..dcc08c29e301ae19a8903ceb47e46551a8136cbb 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __NDS32_V2_H__
-#define __NDS32_V2_H__
+
+#ifndef OPENOCD_TARGET_NDS32_V2_H
+#define OPENOCD_TARGET_NDS32_V2_H
 
 #include "nds32.h"
 
 
 #include "nds32.h"
 
@@ -38,5 +39,4 @@ static inline struct nds32_v2_common *target_to_nds32_v2(struct target *target)
        return container_of(target->arch_info, struct nds32_v2_common, nds32);
 }
 
        return container_of(target->arch_info, struct nds32_v2_common, nds32);
 }
 
-
-#endif /* __NDS32_V2_H__ */
+#endif /* OPENOCD_TARGET_NDS32_V2_H */
index efdf269f4fe48f120549de0f503119d9a221a9b2..a5df8fe52b9afb7de758b95ee135d72d3f01b7c6 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __NDS32_V3_H__
-#define __NDS32_V3_H__
+
+#ifndef OPENOCD_TARGET_NDS32_V3_H
+#define OPENOCD_TARGET_NDS32_V3_H
 
 #include "nds32.h"
 
 
 #include "nds32.h"
 
@@ -41,4 +42,4 @@ static inline struct nds32_v3_common *target_to_nds32_v3(struct target *target)
        return container_of(target->arch_info, struct nds32_v3_common, nds32);
 }
 
        return container_of(target->arch_info, struct nds32_v3_common, nds32);
 }
 
-#endif /* __NDS32_V3_H__ */
+#endif /* OPENOCD_TARGET_NDS32_V3_H */
index ee8c497f87b42e1def10b63a2475c29b5eb130b9..1f5df19957bdb47f594a716356bdf79e0d931804 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __NDS32_V3_COMMON_H__
-#define __NDS32_V3_COMMON_H__
+
+#ifndef OPENOCD_TARGET_NDS32_V3_COMMON_H
+#define OPENOCD_TARGET_NDS32_V3_COMMON_H
 
 #include "target.h"
 
 
 #include "target.h"
 
@@ -57,4 +58,4 @@ int nds32_v3_write_memory(struct target *target, uint32_t address,
 int nds32_v3_init_target(struct command_context *cmd_ctx,
                struct target *target);
 
 int nds32_v3_init_target(struct command_context *cmd_ctx,
                struct target *target);
 
-#endif /* __NDS32_V3_COMMON_H__ */
+#endif /* OPENOCD_TARGET_NDS32_V3_COMMON_H */
index ec886a7137bac5a1c0c2ee166d1d73ba10e0cf11..1e7427c48b158c4ed4c4baeed5563cf3456cb71c 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
-#ifndef __NDS32_V3M_H__
-#define __NDS32_V3M_H__
+
+#ifndef OPENOCD_TARGET_NDS32_V3M_H
+#define OPENOCD_TARGET_NDS32_V3M_H
 
 #include "nds32.h"
 
 
 #include "nds32.h"
 
@@ -47,5 +48,4 @@ static inline struct nds32_v3m_common *target_to_nds32_v3m(struct target *target
        return container_of(target->arch_info, struct nds32_v3m_common, nds32);
 }
 
        return container_of(target->arch_info, struct nds32_v3m_common, nds32);
 }
 
-
-#endif /* __NDS32_V3M_H__ */
+#endif /* OPENOCD_TARGET_NDS32_V3M_H */
index e67981240fa757ec6a9ee27f3d6156b248fa1a35..e7584e4c9dbf26d37afcb8cef5cf6b1090593af4 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef OOCD_TRACE_H
-#define OOCD_TRACE_H
+#ifndef OPENOCD_TARGET_OOCD_TRACE_H
+#define OPENOCD_TARGET_OOCD_TRACE_H
 
 #include <termios.h>
 
 
 #include <termios.h>
 
@@ -50,4 +50,4 @@ struct oocd_trace {
 
 extern struct etm_capture_driver oocd_trace_capture_driver;
 
 
 extern struct etm_capture_driver oocd_trace_capture_driver;
 
-#endif /* OOCD_TRACE_TRACE_H */
+#endif /* OPENOCD_TARGET_OOCD_TRACE_H */
index 3e7c1145def19b0740ef8ca3e586f37cfc43e578..f8e71215a8eba0fea0976887aa327d2d9d82a879 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _JSP_SERVER_H_
-#define _JSP_SERVER_H_
+#ifndef OPENOCD_TARGET_OPENRISC_JSP_SERVER_H
+#define OPENOCD_TARGET_OPENRISC_JSP_SERVER_H
 
 #include "or1k_tap.h"
 #include "or1k.h"
 
 #include "or1k_tap.h"
 #include "or1k.h"
@@ -14,4 +14,4 @@ struct jsp_service {
 int jsp_init(struct or1k_jtag *jtag_info, char *banner);
 int jsp_register_commands(struct command_context *cmd_ctx);
 
 int jsp_init(struct or1k_jtag *jtag_info, char *banner);
 int jsp_register_commands(struct command_context *cmd_ctx);
 
-#endif /* _JSP_SERVER_H_ */
+#endif /* OPENOCD_TARGET_OPENRISC_JSP_SERVER_H */
index 8064943326df69410f14b7857ebf82e92894daca..c456ccbe2998d90594f93c3db44f942dbb833351 100644 (file)
@@ -23,8 +23,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef OR1K_H
-#define OR1K_H
+#ifndef OPENOCD_TARGET_OPENRISC_OR1K_H
+#define OPENOCD_TARGET_OPENRISC_OR1K_H
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -155,4 +155,4 @@ enum or1k_debug_reg_nums {
  */
 #define OR1K_ICBIR_CPU_REG_ADD ((4 << 11) + 2)             /* IC Block Invalidate Register 0x2002 */
 
  */
 #define OR1K_ICBIR_CPU_REG_ADD ((4 << 11) + 2)             /* IC Block Invalidate Register 0x2002 */
 
-#endif
+#endif /* OPENOCD_TARGET_OPENRISC_OR1K_H */
index 58b39e909dcab4e810fecd4e856942cd90d7e29f..9828b0d223c8a9ebb64838cd0a83585c391121f0 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef OR1K_DU
-#define OR1K_DU
+#ifndef OPENOCD_TARGET_OPENRISC_OR1K_DU_H
+#define OPENOCD_TARGET_OPENRISC_OR1K_DU_H
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -75,5 +75,4 @@ int or1k_adv_jtag_jsp_xfer(struct or1k_jtag *jtag_info,
                                  int *out_len, unsigned char *out_buffer,
                                  int *in_len, unsigned char *in_buffer);
 
                                  int *out_len, unsigned char *out_buffer,
                                  int *in_len, unsigned char *in_buffer);
 
-#endif
-
+#endif /* OPENOCD_TARGET_OPENRISC_OR1K_DU_H */
index a4caa0183c903752b4ea24244e6d563cac055cca..2cf7da804a6ac75125cc208c9fff65f705606c36 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _OR1K_TAP_H_
-#define _OR1K_TAP_H_
+#ifndef OPENOCD_TARGET_OPENRISC_OR1K_TAP_H
+#define OPENOCD_TARGET_OPENRISC_OR1K_TAP_H
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -39,4 +39,4 @@ struct or1k_tap_ip {
        const char *name;
 };
 
        const char *name;
 };
 
-#endif
+#endif /* OPENOCD_TARGET_OPENRISC_OR1K_TAP_H */
index f343b2b18eb02dfbafcc5672b025e8a02641d3c0..d3b2c31c23b8e39a33ce080775cf2f9206c8e2f7 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef REGISTER_H
-#define REGISTER_H
+#ifndef OPENOCD_TARGET_REGISTER_H
+#define OPENOCD_TARGET_REGISTER_H
 
 struct target;
 
 
 struct target;
 
@@ -149,4 +149,4 @@ void register_cache_invalidate(struct reg_cache *cache);
 
 void register_init_dummy(struct reg *reg);
 
 
 void register_init_dummy(struct reg *reg);
 
-#endif /* REGISTER_H */
+#endif /* OPENOCD_TARGET_REGISTER_H */
index 3543bf5b4c9afae0d9917c7762a6808b86dfb8e1..c3e6c6ceae2c2177a461ecb44eb25f1d5f0b51f8 100644 (file)
@@ -16,6 +16,9 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_TARGET_SMP_H
+#define OPENOCD_TARGET_SMP_H
+
 #include "server/server.h"
 
 int gdb_read_smp_packet(struct connection *connection,
 #include "server/server.h"
 
 int gdb_read_smp_packet(struct connection *connection,
@@ -23,3 +26,4 @@ int gdb_read_smp_packet(struct connection *connection,
 int gdb_write_smp_packet(struct connection *connection,
                char const *packet, int packet_size);
 
 int gdb_write_smp_packet(struct connection *connection,
                char const *packet, int packet_size);
 
+#endif /* OPENOCD_TARGET_SMP_H */
index cecc0fb10432eebef7722b75235af16a6d840b2f..bce31105e02e4cf45460b07353a9417987c94e95 100644 (file)
@@ -28,8 +28,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef TARGET_H
-#define TARGET_H
+#ifndef OPENOCD_TARGET_TARGET_H
+#define OPENOCD_TARGET_TARGET_H
 
 #include <helper/list.h>
 
 
 #include <helper/list.h>
 
@@ -683,4 +683,4 @@ void target_handle_event(struct target *t, enum target_event e);
 
 extern bool get_target_reset_nag(void);
 
 
 extern bool get_target_reset_nag(void);
 
-#endif /* TARGET_H */
+#endif /* OPENOCD_TARGET_TARGET_H */
index fc062086312e64aedd69054449a755bcf866cfcc..1b1317338e69e390a19ab44138023ac831f17602 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef TARGET_REQUEST_H
-#define TARGET_REQUEST_H
+#ifndef OPENOCD_TARGET_TARGET_REQUEST_H
+#define OPENOCD_TARGET_TARGET_REQUEST_H
 
 struct target;
 struct command_context;
 
 struct target;
 struct command_context;
@@ -52,4 +52,4 @@ int target_request_register_commands(struct command_context *cmd_ctx);
  */
 bool target_got_message(void);
 
  */
 bool target_got_message(void);
 
-#endif /* TARGET_REQUEST_H */
+#endif /* OPENOCD_TARGET_TARGET_REQUEST_H */
index 3ad6ab0ad340ffdc147712cdc784467d8396ac68..eaa8a71cccd17f3557c074473f385020932b530f 100644 (file)
@@ -22,8 +22,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef TARGET_TYPE_H
-#define TARGET_TYPE_H
+#ifndef OPENOCD_TARGET_TARGET_TYPE_H
+#define OPENOCD_TARGET_TARGET_TYPE_H
 
 #include <jim-nvp.h>
 
 
 #include <jim-nvp.h>
 
@@ -276,4 +276,4 @@ struct target_type {
                        uint32_t max_num_samples, uint32_t *num_samples, uint32_t seconds);
 };
 
                        uint32_t max_num_samples, uint32_t *num_samples, uint32_t seconds);
 };
 
-#endif /* TARGET_TYPE_H */
+#endif /* OPENOCD_TARGET_TARGET_TYPE_H */
index 55b8ebc378bca1238cee04a5faeb1a885898642b..2966bbd94c34b5f51dde56269ca6f98d7cff932c 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef TRACE_H
-#define TRACE_H
+#ifndef OPENOCD_TARGET_TRACE_H
+#define OPENOCD_TARGET_TRACE_H
 
 struct target;
 struct command_context;
 
 struct target;
 struct command_context;
@@ -56,4 +56,4 @@ int trace_register_commands(struct command_context *cmd_ctx);
 #define ERROR_TRACE_IMAGE_UNAVAILABLE          (-1500)
 #define ERROR_TRACE_INSTRUCTION_UNAVAILABLE    (-1501)
 
 #define ERROR_TRACE_IMAGE_UNAVAILABLE          (-1500)
 #define ERROR_TRACE_INSTRUCTION_UNAVAILABLE    (-1501)
 
-#endif /* TRACE_H */
+#endif /* OPENOCD_TARGET_TRACE_H */
index 812b0822416fe70ec7f43b62ebd03f8ab44e65a9..b5877da4a10c400d4d752ff5737ff9807f1bdc2e 100644 (file)
@@ -29,8 +29,8 @@
  * This is the interface to the x86 32 bit memory and breakpoint operations.
  */
 
  * This is the interface to the x86 32 bit memory and breakpoint operations.
  */
 
-#ifndef X86_32_COMMON_H
-#define X86_32_COMMON_H
+#ifndef OPENOCD_TARGET_X86_32_COMMON_H
+#define OPENOCD_TARGET_X86_32_COMMON_H
 
 #include <jtag/jtag.h>
 #include <helper/command.h>
 
 #include <jtag/jtag.h>
 #include <helper/command.h>
@@ -327,4 +327,4 @@ int x86_32_common_remove_breakpoint(struct target *t, struct breakpoint *bp);
 int x86_32_common_add_watchpoint(struct target *t, struct watchpoint *wp);
 int x86_32_common_remove_watchpoint(struct target *t, struct watchpoint *wp);
 
 int x86_32_common_add_watchpoint(struct target *t, struct watchpoint *wp);
 int x86_32_common_remove_watchpoint(struct target *t, struct watchpoint *wp);
 
-#endif /* X86_32_COMMON_H */
+#endif /* OPENOCD_TARGET_X86_32_COMMON_H */
index 73e525863dacaded060bd7d448f177734d5b65ef..a86edb2fba6a35bc091060ee475cf38ee2e89fb4 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef XSCALE_H
-#define XSCALE_H
+#ifndef OPENOCD_TARGET_XSCALE_H
+#define OPENOCD_TARGET_XSCALE_H
 
 #include "arm.h"
 #include "armv4_5_mmu.h"
 
 #include "arm.h"
 #include "armv4_5_mmu.h"
@@ -185,4 +185,4 @@ enum {
 #define DCSR_TRAP_MASK \
        (DCSR_TF | DCSR_TI | DCSR_TD | DCSR_TA | DCSR_TS | DCSR_TU | DCSR_TR)
 
 #define DCSR_TRAP_MASK \
        (DCSR_TF | DCSR_TI | DCSR_TD | DCSR_TA | DCSR_TS | DCSR_TU | DCSR_TR)
 
-#endif /* XSCALE_H */
+#endif /* OPENOCD_TARGET_XSCALE_H */
index 28f3bd5446399f020381a88586380fad2677ce47..6c57067a34b371922440645342859ad057f82216 100644 (file)
@@ -16,8 +16,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef TRANSPORT_H
-#define TRANSPORT_H
+#ifndef OPENOCD_TRANSPORT_TRANSPORT_H
+#define OPENOCD_TRANSPORT_TRANSPORT_H
 
 #include "helper/command.h"
 
 
 #include "helper/command.h"
 
@@ -90,4 +90,4 @@ int allow_transports(struct command_context *ctx, const char * const *vector);
 
 bool transports_are_declared(void);
 
 
 bool transports_are_declared(void);
 
-#endif
+#endif /* OPENOCD_TRANSPORT_TRANSPORT_H */
index b96fab2aa4d7fdf7c584ce971be7f45c20128b88..aa0f4f0404f7c7e6fa2a474e660e5cc31a45341c 100644 (file)
@@ -16,8 +16,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef XSVF_H
-#define XSVF_H
+#ifndef OPENOCD_XSVF_XSVF_H
+#define OPENOCD_XSVF_XSVF_H
 
 #include <helper/command.h>
 
 
 #include <helper/command.h>
 
@@ -26,4 +26,4 @@ int xsvf_register_commands(struct command_context *cmd_ctx);
 #define ERROR_XSVF_EOF  (-200)
 #define ERROR_XSVF_FAILED       (-201)
 
 #define ERROR_XSVF_EOF  (-200)
 #define ERROR_XSVF_FAILED       (-201)
 
-#endif /* XSVF_H */
+#endif /* OPENOCD_XSVF_XSVF_H */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)