X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fcortex_a8.h;h=131cddbf9138839c8f086d3a8137eb7eb184a016;hp=b98a7de1ce088fc0993398413fcf63d5a3a7e33a;hb=a1971ecacf6450aa57192680fc201928deb46b7d;hpb=db116b1ea3c77a3c5850fccbce9e0795faa21dda diff --git a/src/target/cortex_a8.h b/src/target/cortex_a8.h index b98a7de1ce..131cddbf91 100644 --- a/src/target/cortex_a8.h +++ b/src/target/cortex_a8.h @@ -100,10 +100,10 @@ typedef struct cortex_a8_wrp_s uint8_t WRPn; } cortex_a8_wrp_t; -typedef struct cortex_a8_common_s +struct cortex_a8_common { int common_magic; - arm_jtag_t jtag_info; + struct arm_jtag jtag_info; /* Context information */ uint32_t cpudbg_dscr; @@ -133,19 +133,17 @@ typedef struct cortex_a8_common_s /* Use cortex_a8_read_regs_through_mem for fast register reads */ int fast_reg_read; - armv7a_common_t armv7a_common; - void *arch_info; -} cortex_a8_common_t; + struct armv7a_common armv7a_common; +}; -static inline struct cortex_a8_common_s * +static inline struct cortex_a8_common * target_to_cortex_a8(struct target_s *target) { - return container_of(target->arch_info, struct cortex_a8_common_s, + return container_of(target->arch_info, struct cortex_a8_common, armv7a_common.armv4_5_common); } -extern int cortex_a8_init_arch_info(target_t *target, cortex_a8_common_t *cortex_a8, jtag_tap_t *tap); -int cortex_a8_read_memory(struct target_s *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer); -int cortex_a8_write_memory(struct target_s *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer); +int cortex_a8_init_arch_info(target_t *target, + struct cortex_a8_common *cortex_a8, struct jtag_tap *tap); #endif /* CORTEX_A8_H */