Remove '_s' suffix from structs
Change-Id: I956acce316e60252b317daa41274403d87f704b8 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8340 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
92e8823ebd
commit
6b984a54c9
@@ -36,7 +36,7 @@
|
||||
#define ARMV7M_SCS_DCRSR DCB_DCRSR
|
||||
#define ARMV7M_SCS_DCRDR DCB_DCRDR
|
||||
|
||||
static inline struct hl_interface_s *target_to_adapter(struct target *target)
|
||||
static inline struct hl_interface *target_to_adapter(struct target *target)
|
||||
{
|
||||
return target->tap->priv;
|
||||
}
|
||||
@@ -44,14 +44,14 @@ static inline struct hl_interface_s *target_to_adapter(struct target *target)
|
||||
static int adapter_load_core_reg_u32(struct target *target,
|
||||
uint32_t regsel, uint32_t *value)
|
||||
{
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
return adapter->layout->api->read_reg(adapter->handle, regsel, value);
|
||||
}
|
||||
|
||||
static int adapter_store_core_reg_u32(struct target *target,
|
||||
uint32_t regsel, uint32_t value)
|
||||
{
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
return adapter->layout->api->write_reg(adapter->handle, regsel, value);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ static int adapter_examine_debug_reason(struct target *target)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int hl_dcc_read(struct hl_interface_s *hl_if, uint8_t *value, uint8_t *ctrl)
|
||||
static int hl_dcc_read(struct hl_interface *hl_if, uint8_t *value, uint8_t *ctrl)
|
||||
{
|
||||
uint16_t dcrdr;
|
||||
int retval = hl_if->layout->api->read_mem(hl_if->handle,
|
||||
@@ -90,7 +90,7 @@ static int hl_dcc_read(struct hl_interface_s *hl_if, uint8_t *value, uint8_t *ct
|
||||
static int hl_target_request_data(struct target *target,
|
||||
uint32_t size, uint8_t *buffer)
|
||||
{
|
||||
struct hl_interface_s *hl_if = target_to_adapter(target);
|
||||
struct hl_interface *hl_if = target_to_adapter(target);
|
||||
uint8_t data;
|
||||
uint8_t ctrl;
|
||||
uint32_t i;
|
||||
@@ -113,7 +113,7 @@ static int hl_handle_target_request(void *priv)
|
||||
|
||||
if (!target_was_examined(target))
|
||||
return ERROR_OK;
|
||||
struct hl_interface_s *hl_if = target_to_adapter(target);
|
||||
struct hl_interface *hl_if = target_to_adapter(target);
|
||||
|
||||
if (!target->dbg_msg_enabled)
|
||||
return ERROR_OK;
|
||||
@@ -227,7 +227,7 @@ static int adapter_load_context(struct target *target)
|
||||
|
||||
static int adapter_debug_entry(struct target *target)
|
||||
{
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
struct arm *arm = &armv7m->arm;
|
||||
struct reg *r;
|
||||
@@ -286,7 +286,7 @@ static int adapter_debug_entry(struct target *target)
|
||||
static int adapter_poll(struct target *target)
|
||||
{
|
||||
enum target_state state;
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
enum target_state prev_target_state = target->state;
|
||||
|
||||
@@ -329,7 +329,7 @@ static int adapter_poll(struct target *target)
|
||||
static int hl_assert_reset(struct target *target)
|
||||
{
|
||||
int res = ERROR_OK;
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
bool use_srst_fallback = true;
|
||||
|
||||
@@ -412,7 +412,7 @@ static int hl_deassert_reset(struct target *target)
|
||||
static int adapter_halt(struct target *target)
|
||||
{
|
||||
int res;
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
|
||||
LOG_DEBUG("%s", __func__);
|
||||
|
||||
@@ -439,7 +439,7 @@ static int adapter_resume(struct target *target, int current,
|
||||
int debug_execution)
|
||||
{
|
||||
int res;
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
uint32_t resume_pc;
|
||||
struct breakpoint *breakpoint = NULL;
|
||||
@@ -529,7 +529,7 @@ static int adapter_step(struct target *target, int current,
|
||||
target_addr_t address, int handle_breakpoints)
|
||||
{
|
||||
int res;
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
struct armv7m_common *armv7m = target_to_armv7m(target);
|
||||
struct breakpoint *breakpoint = NULL;
|
||||
struct reg *pc = armv7m->arm.pc;
|
||||
@@ -593,7 +593,7 @@ static int adapter_read_memory(struct target *target, target_addr_t address,
|
||||
uint32_t size, uint32_t count,
|
||||
uint8_t *buffer)
|
||||
{
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
|
||||
if (!count || !buffer)
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
@@ -608,7 +608,7 @@ static int adapter_write_memory(struct target *target, target_addr_t address,
|
||||
uint32_t size, uint32_t count,
|
||||
const uint8_t *buffer)
|
||||
{
|
||||
struct hl_interface_s *adapter = target_to_adapter(target);
|
||||
struct hl_interface *adapter = target_to_adapter(target);
|
||||
|
||||
if (!count || !buffer)
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user