image_section_t -> struct image_section
[fw/openocd] / src / target / arm11.h
index be5e77bd1a7f554e515a567b9a19c4d50eeb1cac..f277b29a4afddd2031f059f5e4997d3bef996e52 100644 (file)
@@ -64,11 +64,11 @@ do {                                                                                                                \
 } while (0)
 
 
-typedef struct arm11_register_history_s
+struct arm11_register_history
 {
        uint32_t                value;
        uint8_t         valid;
-}arm11_register_history_t;
+};
 
 enum arm11_debug_version
 {
@@ -78,7 +78,7 @@ enum arm11_debug_version
        ARM11_DEBUG_V7_CP14             = 0x04,
 };
 
-typedef struct arm11_common_s
+struct arm11_common
 {
        target_t *      target;         /**< Reference back to the owner */
 
@@ -109,7 +109,7 @@ typedef struct arm11_common_s
 
        /*@}*/
 
-       arm11_register_history_t
+       struct arm11_register_history
                reg_history[ARM11_REGCACHE_COUNT];      /**< register state before last resume */
 
        size_t  free_brps;                              /**< keep track of breakpoints allocated by arm11_add_breakpoint() */
@@ -117,7 +117,7 @@ typedef struct arm11_common_s
 
        // GA
        reg_cache_t *core_cache;
-} arm11_common_t;
+};
 
 
 /**
@@ -176,12 +176,17 @@ enum arm11_sc7
        ARM11_SC7_WCR0                          = 112,
 };
 
-typedef struct arm11_reg_state_s
+struct arm11_reg_state
 {
        uint32_t                                def_index;
        target_t *                      target;
-} arm11_reg_state_t;
+};
 
 int arm11_register_commands(struct command_context_s *cmd_ctx);
 
+int arm11_read_etm(struct arm11_common * arm11, uint8_t address, uint32_t *value);
+int arm11_write_etm(struct arm11_common * arm11, uint8_t address, uint32_t value);
+
+
+
 #endif /* ARM11_H */