X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fcortex_a8.h;h=393a3104b9c0744aaac2613bac4f8a79ea21d2cd;hb=ec93209f51afc09e273a4742dc0b5f2cefc15e76;hp=8728842209b9fbba10d7418354e3e4066a88dc5c;hpb=42fb6b88764fb39fd07726d7bb447a79c3951aa4;p=openocd.git diff --git a/src/target/cortex_a8.h b/src/target/cortex_a8.h index 8728842209..393a3104b9 100644 --- a/src/target/cortex_a8.h +++ b/src/target/cortex_a8.h @@ -29,10 +29,7 @@ #ifndef CORTEX_A8_H #define CORTEX_A8_H -#include "register.h" -#include "target.h" #include "armv7a.h" -#include "arm7_9_common.h" extern char* cortex_a8_state_strings[]; @@ -91,14 +88,14 @@ struct cortex_a8_brp uint8_t BRPn; }; -typedef struct cortex_a8_wrp_s +struct cortex_a8_wrp { int used; int type; uint32_t value; uint32_t control; uint8_t WRPn; -} cortex_a8_wrp_t; +}; struct cortex_a8_common { @@ -124,7 +121,7 @@ struct cortex_a8_common /* Watchpoint register pairs */ int wrp_num; int wrp_num_available; - cortex_a8_wrp_t *wrp_list; + struct cortex_a8_wrp *wrp_list; /* Interrupts */ int intlinesnum; @@ -137,13 +134,13 @@ struct cortex_a8_common }; static inline struct cortex_a8_common * -target_to_cortex_a8(struct target_s *target) +target_to_cortex_a8(struct target *target) { return container_of(target->arch_info, struct cortex_a8_common, armv7a_common.armv4_5_common); } -int cortex_a8_init_arch_info(target_t *target, +int cortex_a8_init_arch_info(struct target *target, struct cortex_a8_common *cortex_a8, struct jtag_tap *tap); #endif /* CORTEX_A8_H */