X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftarget%2Fcortex_a8.h;h=e7ea6c756d7afef9c6664c19d413765e2db19e85;hb=0f1163e823c6ca3c2a81fa296157f5dde0635fea;hp=131cddbf9138839c8f086d3a8137eb7eb184a016;hpb=a1971ecacf6450aa57192680fc201928deb46b7d;p=fw%2Fopenocd diff --git a/src/target/cortex_a8.h b/src/target/cortex_a8.h index 131cddbf9..e7ea6c756 100644 --- a/src/target/cortex_a8.h +++ b/src/target/cortex_a8.h @@ -82,23 +82,23 @@ extern char* cortex_a8_state_strings[]; #define DSCR_DTR_TX_FULL 29 #define DSCR_DTR_RX_FULL 30 -typedef struct cortex_a8_brp_s +struct cortex_a8_brp { int used; int type; uint32_t value; uint32_t control; uint8_t BRPn; -} cortex_a8_brp_t; +}; -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 { @@ -119,12 +119,12 @@ struct cortex_a8_common int brp_num; int brp_num_available; // int brp_enabled; - cortex_a8_brp_t *brp_list; + struct cortex_a8_brp *brp_list; /* 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 +137,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 */