target files shouldn't #include <target/...h>
Make these ".h" files adopt the same policy the ".c" files already follow: don't use <subsystem/...h> syntax for private interfaces. If we ever get reviewed/supported "public" interfaces they should come exclusively from some include/... directory; that'll be the time to switch to <...> syntax for any subsystem's own interfaces. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
parent
38e376d232
commit
6f929dbd93
|
@ -26,8 +26,8 @@
|
||||||
#ifndef ARM_H
|
#ifndef ARM_H
|
||||||
#define ARM_H
|
#define ARM_H
|
||||||
|
|
||||||
#include <target/target.h>
|
|
||||||
#include <helper/command.h>
|
#include <helper/command.h>
|
||||||
|
#include "target.h"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
#ifndef ARM11_H
|
#ifndef ARM11_H
|
||||||
#define ARM11_H
|
#define ARM11_H
|
||||||
|
|
||||||
#include <target/arm.h>
|
#include "arm.h"
|
||||||
#include <target/arm_dpm.h>
|
#include "arm_dpm.h"
|
||||||
|
|
||||||
#define ARM11_TAP_DEFAULT TAP_INVALID
|
#define ARM11_TAP_DEFAULT TAP_INVALID
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef ARM11_DBGTAP_H
|
#ifndef ARM11_DBGTAP_H
|
||||||
#define ARM11_DBGTAP_H
|
#define ARM11_DBGTAP_H
|
||||||
|
|
||||||
#include <target/arm11.h>
|
#include "arm11.h"
|
||||||
|
|
||||||
/* ARM11 internals */
|
/* ARM11 internals */
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
#ifndef ARM720T_H
|
#ifndef ARM720T_H
|
||||||
#define ARM720T_H
|
#define ARM720T_H
|
||||||
|
|
||||||
#include <target/arm7tdmi.h>
|
#include "arm7tdmi.h"
|
||||||
#include <target/armv4_5_mmu.h>
|
#include "armv4_5_mmu.h"
|
||||||
|
|
||||||
#define ARM720T_COMMON_MAGIC 0xa720a720
|
#define ARM720T_COMMON_MAGIC 0xa720a720
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
#ifndef ARM7_9_COMMON_H
|
#ifndef ARM7_9_COMMON_H
|
||||||
#define ARM7_9_COMMON_H
|
#define ARM7_9_COMMON_H
|
||||||
|
|
||||||
#include <target/arm.h>
|
#include "arm.h"
|
||||||
#include <target/arm_jtag.h>
|
#include "arm_jtag.h"
|
||||||
|
|
||||||
#define ARM7_9_COMMON_MAGIC 0x0a790a79 /**< */
|
#define ARM7_9_COMMON_MAGIC 0x0a790a79 /**< */
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#ifndef ARM7TDMI_H
|
#ifndef ARM7TDMI_H
|
||||||
#define ARM7TDMI_H
|
#define ARM7TDMI_H
|
||||||
|
|
||||||
#include <target/embeddedice.h>
|
#include "embeddedice.h"
|
||||||
|
|
||||||
int arm7tdmi_init_arch_info(struct target *target,
|
int arm7tdmi_init_arch_info(struct target *target,
|
||||||
struct arm7_9_common *arm7_9, struct jtag_tap *tap);
|
struct arm7_9_common *arm7_9, struct jtag_tap *tap);
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
#ifndef ARM920T_H
|
#ifndef ARM920T_H
|
||||||
#define ARM920T_H
|
#define ARM920T_H
|
||||||
|
|
||||||
#include <target/arm9tdmi.h>
|
#include "arm9tdmi.h"
|
||||||
#include <target/armv4_5_mmu.h>
|
#include "armv4_5_mmu.h"
|
||||||
|
|
||||||
#define ARM920T_COMMON_MAGIC 0xa920a920
|
#define ARM920T_COMMON_MAGIC 0xa920a920
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
#ifndef ARM926EJS_H
|
#ifndef ARM926EJS_H
|
||||||
#define ARM926EJS_H
|
#define ARM926EJS_H
|
||||||
|
|
||||||
#include <target/arm9tdmi.h>
|
#include "arm9tdmi.h"
|
||||||
#include <target/armv4_5_mmu.h>
|
#include "armv4_5_mmu.h"
|
||||||
|
|
||||||
#define ARM926EJS_COMMON_MAGIC 0xa926a926
|
#define ARM926EJS_COMMON_MAGIC 0xa926a926
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#ifndef ARM966E_H
|
#ifndef ARM966E_H
|
||||||
#define ARM966E_H
|
#define ARM966E_H
|
||||||
|
|
||||||
#include <target/arm9tdmi.h>
|
#include "arm9tdmi.h"
|
||||||
|
|
||||||
#define ARM966E_COMMON_MAGIC 0x20f920f9
|
#define ARM966E_COMMON_MAGIC 0x20f920f9
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#ifndef ARM9TDMI_H
|
#ifndef ARM9TDMI_H
|
||||||
#define ARM9TDMI_H
|
#define ARM9TDMI_H
|
||||||
|
|
||||||
#include <target/embeddedice.h>
|
#include "embeddedice.h"
|
||||||
|
|
||||||
int arm9tdmi_init_target(struct command_context *cmd_ctx,
|
int arm9tdmi_init_target(struct command_context *cmd_ctx,
|
||||||
struct target *target);
|
struct target *target);
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#ifndef ARM_ADI_V5_H
|
#ifndef ARM_ADI_V5_H
|
||||||
#define ARM_ADI_V5_H
|
#define ARM_ADI_V5_H
|
||||||
|
|
||||||
#include <target/arm_jtag.h>
|
#include "arm_jtag.h"
|
||||||
|
|
||||||
#define DAP_IR_DPACC 0xA
|
#define DAP_IR_DPACC 0xA
|
||||||
#define DAP_IR_APACC 0xB
|
#define DAP_IR_APACC 0xB
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#ifndef ARMV4_5_MMU_H
|
#ifndef ARMV4_5_MMU_H
|
||||||
#define ARMV4_5_MMU_H
|
#define ARMV4_5_MMU_H
|
||||||
|
|
||||||
#include <target/armv4_5_cache.h>
|
#include "armv4_5_cache.h"
|
||||||
|
|
||||||
struct target;
|
struct target;
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,11 @@
|
||||||
#ifndef ARMV7A_H
|
#ifndef ARMV7A_H
|
||||||
#define ARMV7A_H
|
#define ARMV7A_H
|
||||||
|
|
||||||
#include <target/arm_adi_v5.h>
|
#include "arm_adi_v5.h"
|
||||||
#include <target/arm.h>
|
#include "arm.h"
|
||||||
#include <target/armv4_5_mmu.h>
|
#include "armv4_5_mmu.h"
|
||||||
#include <target/armv4_5_cache.h>
|
#include "armv4_5_cache.h"
|
||||||
#include <target/arm_dpm.h>
|
#include "arm_dpm.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
#ifndef ARMV7M_COMMON_H
|
#ifndef ARMV7M_COMMON_H
|
||||||
#define ARMV7M_COMMON_H
|
#define ARMV7M_COMMON_H
|
||||||
|
|
||||||
#include <target/arm_adi_v5.h>
|
#include "arm_adi_v5.h"
|
||||||
#include <target/arm.h>
|
#include "arm.h"
|
||||||
|
|
||||||
/* define for enabling armv7 gdb workarounds */
|
/* define for enabling armv7 gdb workarounds */
|
||||||
#if 1
|
#if 1
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#ifndef CORTEX_A8_H
|
#ifndef CORTEX_A8_H
|
||||||
#define CORTEX_A8_H
|
#define CORTEX_A8_H
|
||||||
|
|
||||||
#include <target/armv7a.h>
|
#include "armv7a.h"
|
||||||
|
|
||||||
#define CORTEX_A8_COMMON_MAGIC 0x411fc082
|
#define CORTEX_A8_COMMON_MAGIC 0x411fc082
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef CORTEX_M3_H
|
#ifndef CORTEX_M3_H
|
||||||
#define CORTEX_M3_H
|
#define CORTEX_M3_H
|
||||||
|
|
||||||
#include <target/armv7m.h>
|
#include "armv7m.h"
|
||||||
|
|
||||||
|
|
||||||
#define CORTEX_M3_COMMON_MAGIC 0x1A451A45
|
#define CORTEX_M3_COMMON_MAGIC 0x1A451A45
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef EMBEDDED_ICE_H
|
#ifndef EMBEDDED_ICE_H
|
||||||
#define EMBEDDED_ICE_H
|
#define EMBEDDED_ICE_H
|
||||||
|
|
||||||
#include <target/arm7_9_common.h>
|
#include "arm7_9_common.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
#ifndef ETM_H
|
#ifndef ETM_H
|
||||||
#define ETM_H
|
#define ETM_H
|
||||||
|
|
||||||
#include <target/trace.h>
|
#include "trace.h"
|
||||||
#include <target/arm_jtag.h>
|
#include "arm_jtag.h"
|
||||||
|
|
||||||
struct image;
|
struct image;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#ifndef ETM_DUMMY_H
|
#ifndef ETM_DUMMY_H
|
||||||
#define ETM_DUMMY_H
|
#define ETM_DUMMY_H
|
||||||
|
|
||||||
#include <target/etm.h>
|
#include "etm.h"
|
||||||
|
|
||||||
extern struct etm_capture_driver etm_dummy_capture_driver;
|
extern struct etm_capture_driver etm_dummy_capture_driver;
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
#ifndef MIPS32_H
|
#ifndef MIPS32_H
|
||||||
#define MIPS32_H
|
#define MIPS32_H
|
||||||
|
|
||||||
#include <target/target.h>
|
#include "target.h"
|
||||||
#include <target/mips32_pracc.h>
|
#include "mips32_pracc.h"
|
||||||
|
|
||||||
|
|
||||||
#define MIPS32_COMMON_MAGIC 0xB320B320
|
#define MIPS32_COMMON_MAGIC 0xB320B320
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#ifndef MIPS32_DMAACC_H
|
#ifndef MIPS32_DMAACC_H
|
||||||
#define MIPS32_DMAACC_H
|
#define MIPS32_DMAACC_H
|
||||||
|
|
||||||
#include <target/mips_ejtag.h>
|
#include "mips_ejtag.h"
|
||||||
|
|
||||||
#define EJTAG_CTRL_DMA_BYTE 0x00000000
|
#define EJTAG_CTRL_DMA_BYTE 0x00000000
|
||||||
#define EJTAG_CTRL_DMA_HALFWORD 0x00000080
|
#define EJTAG_CTRL_DMA_HALFWORD 0x00000080
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#ifndef MIPS32_PRACC_H
|
#ifndef MIPS32_PRACC_H
|
||||||
#define MIPS32_PRACC_H
|
#define MIPS32_PRACC_H
|
||||||
|
|
||||||
#include <target/mips_ejtag.h>
|
#include "mips_ejtag.h"
|
||||||
|
|
||||||
#define MIPS32_PRACC_TEXT 0xFF200200
|
#define MIPS32_PRACC_TEXT 0xFF200200
|
||||||
//#define MIPS32_PRACC_STACK 0xFF2FFFFC
|
//#define MIPS32_PRACC_STACK 0xFF2FFFFC
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "arm.h"
|
#include "arm.h"
|
||||||
|
#include "etm.h"
|
||||||
#include "oocd_trace.h"
|
#include "oocd_trace.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
#ifndef OOCD_TRACE_H
|
#ifndef OOCD_TRACE_H
|
||||||
#define OOCD_TRACE_H
|
#define OOCD_TRACE_H
|
||||||
|
|
||||||
#include <target/etm.h>
|
|
||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
/* registers */
|
/* registers */
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
#ifndef XSCALE_H
|
#ifndef XSCALE_H
|
||||||
#define XSCALE_H
|
#define XSCALE_H
|
||||||
|
|
||||||
#include <target/arm.h>
|
#include "arm.h"
|
||||||
#include <target/armv4_5_mmu.h>
|
#include "armv4_5_mmu.h"
|
||||||
#include <target/trace.h>
|
#include "trace.h"
|
||||||
|
|
||||||
#define XSCALE_COMMON_MAGIC 0x58534341
|
#define XSCALE_COMMON_MAGIC 0x58534341
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue