Remove misleading typedef and redundant suffix from struct etm_capture_driver.
return ERROR_OK;
}
-etm_capture_driver_t etb_capture_driver =
+struct etm_capture_driver etb_capture_driver =
{
.name = "etb",
.register_commands = etb_register_commands,
etb_t *etb;
};
-extern etm_capture_driver_t etb_capture_driver;
+extern struct etm_capture_driver etb_capture_driver;
reg_cache_t* etb_build_reg_cache(etb_t *etb);
/* ETM trace analysis functionality
*
*/
-extern etm_capture_driver_t etm_dummy_capture_driver;
+extern struct etm_capture_driver etm_dummy_capture_driver;
#if BUILD_OOCD_TRACE == 1
-extern etm_capture_driver_t oocd_trace_capture_driver;
+extern struct etm_capture_driver oocd_trace_capture_driver;
#endif
-static etm_capture_driver_t *etm_capture_drivers[] =
+static struct etm_capture_driver *etm_capture_drivers[] =
{
&etb_capture_driver,
&etm_dummy_capture_driver,
/* forward-declare ETM context */
struct etm;
-typedef struct etm_capture_driver_s
+struct etm_capture_driver
{
char *name;
int (*register_commands)(struct command_context_s *cmd_ctx);
int (*read_trace)(struct etm *etm_ctx);
int (*start_capture)(struct etm *etm_ctx);
int (*stop_capture)(struct etm *etm_ctx);
-} etm_capture_driver_t;
+};
enum
{
{
target_t *target; /* target this ETM is connected to */
reg_cache_t *reg_cache; /* ETM register cache */
- etm_capture_driver_t *capture_driver; /* driver used to access ETM data */
+ struct etm_capture_driver *capture_driver; /* driver used to access ETM data */
void *capture_driver_priv; /* capture driver private data */
uint32_t trigger_percent; /* how much trace buffer to fill after trigger */
trace_status_t capture_status; /* current state of capture run */
return ERROR_OK;
}
-etm_capture_driver_t etm_dummy_capture_driver =
+struct etm_capture_driver etm_dummy_capture_driver =
{
.name = "dummy",
.register_commands = etm_dummy_register_commands,
#include "etm.h"
-extern etm_capture_driver_t etm_dummy_capture_driver;
+extern struct etm_capture_driver etm_dummy_capture_driver;
#endif /* ETB_H */
return ERROR_OK;
}
-etm_capture_driver_t oocd_trace_capture_driver =
+struct etm_capture_driver oocd_trace_capture_driver =
{
.name = "oocd_trace",
.register_commands = oocd_trace_register_commands,
struct termios oldtio, newtio;
} oocd_trace_t;
-extern etm_capture_driver_t oocd_trace_capture_driver;
+extern struct etm_capture_driver oocd_trace_capture_driver;
#endif /* OOCD_TRACE_TRACE_H */