struct scan_field_s -> struct scan_field
Remove obsolete suffix from struct scan_field. Somehow, these definitions did not get updated but did not cause any errors.__archive__
parent
c2edc7908f
commit
4d4b2958a5
|
@ -328,7 +328,7 @@ int str_to_buf(const char *str, int str_len, uint8_t *buf, int buf_len, int radi
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
int buf_to_u32_handler(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int buf_to_u32_handler(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
uint32_t *dest = priv;
|
uint32_t *dest = priv;
|
||||||
|
|
||||||
|
|
|
@ -90,8 +90,8 @@ int str_to_buf(const char *str, int len,
|
||||||
uint8_t *bin_buf, int buf_size, int radix);
|
uint8_t *bin_buf, int buf_size, int radix);
|
||||||
char* buf_to_str(const uint8_t *buf, int size, int radix);
|
char* buf_to_str(const uint8_t *buf, int size, int radix);
|
||||||
|
|
||||||
struct scan_field_s;
|
struct scan_field;
|
||||||
int buf_to_u32_handler(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int buf_to_u32_handler(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
|
|
||||||
#define CEIL(m, n) (((m) + (n) - 1) / (n))
|
#define CEIL(m, n) (((m) + (n) - 1) / (n))
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ int arm_jtag_setup_connection(struct arm_jtag *jtag_info)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into host-endian uint32_t, flipping bit-order */
|
/* read JTAG buffer into host-endian uint32_t, flipping bit-order */
|
||||||
int arm_jtag_buf_to_u32_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_u32_flip(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
uint32_t *dest = priv;
|
uint32_t *dest = priv;
|
||||||
*dest = flip_u32(le_to_h_u32(in_buf), 32);
|
*dest = flip_u32(le_to_h_u32(in_buf), 32);
|
||||||
|
@ -124,35 +124,35 @@ int arm_jtag_buf_to_u32_flip(uint8_t *in_buf, void *priv, struct scan_field_s *f
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into little-endian uint32_t, flipping bit-order */
|
/* read JTAG buffer into little-endian uint32_t, flipping bit-order */
|
||||||
int arm_jtag_buf_to_le32_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_le32_flip(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
h_u32_to_le(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32));
|
h_u32_to_le(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32));
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into little-endian uint16_t, flipping bit-order */
|
/* read JTAG buffer into little-endian uint16_t, flipping bit-order */
|
||||||
int arm_jtag_buf_to_le16_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_le16_flip(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
h_u16_to_le(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32) & 0xffff);
|
h_u16_to_le(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32) & 0xffff);
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into big-endian uint32_t, flipping bit-order */
|
/* read JTAG buffer into big-endian uint32_t, flipping bit-order */
|
||||||
int arm_jtag_buf_to_be32_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_be32_flip(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
h_u32_to_be(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32));
|
h_u32_to_be(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32));
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into big-endian uint16_t, flipping bit-order */
|
/* read JTAG buffer into big-endian uint16_t, flipping bit-order */
|
||||||
int arm_jtag_buf_to_be16_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_be16_flip(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
h_u16_to_be(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32) & 0xffff);
|
h_u16_to_be(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32) & 0xffff);
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into uint8_t, flipping bit-order */
|
/* read JTAG buffer into uint8_t, flipping bit-order */
|
||||||
int arm_jtag_buf_to_8_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_8_flip(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
uint8_t *dest = priv;
|
uint8_t *dest = priv;
|
||||||
*dest = flip_u32(le_to_h_u32(in_buf), 32) & 0xff;
|
*dest = flip_u32(le_to_h_u32(in_buf), 32) & 0xff;
|
||||||
|
@ -161,7 +161,7 @@ int arm_jtag_buf_to_8_flip(uint8_t *in_buf, void *priv, struct scan_field_s *fie
|
||||||
|
|
||||||
/* not-flipping variants */
|
/* not-flipping variants */
|
||||||
/* read JTAG buffer into host-endian uint32_t */
|
/* read JTAG buffer into host-endian uint32_t */
|
||||||
int arm_jtag_buf_to_u32(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_u32(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
uint32_t *dest = priv;
|
uint32_t *dest = priv;
|
||||||
*dest = le_to_h_u32(in_buf);
|
*dest = le_to_h_u32(in_buf);
|
||||||
|
@ -169,35 +169,35 @@ int arm_jtag_buf_to_u32(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into little-endian uint32_t */
|
/* read JTAG buffer into little-endian uint32_t */
|
||||||
int arm_jtag_buf_to_le32(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_le32(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
h_u32_to_le(((uint8_t*)priv), le_to_h_u32(in_buf));
|
h_u32_to_le(((uint8_t*)priv), le_to_h_u32(in_buf));
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into little-endian uint16_t */
|
/* read JTAG buffer into little-endian uint16_t */
|
||||||
int arm_jtag_buf_to_le16(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_le16(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
h_u16_to_le(((uint8_t*)priv), le_to_h_u32(in_buf) & 0xffff);
|
h_u16_to_le(((uint8_t*)priv), le_to_h_u32(in_buf) & 0xffff);
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into big-endian uint32_t */
|
/* read JTAG buffer into big-endian uint32_t */
|
||||||
int arm_jtag_buf_to_be32(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_be32(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
h_u32_to_be(((uint8_t*)priv), le_to_h_u32(in_buf));
|
h_u32_to_be(((uint8_t*)priv), le_to_h_u32(in_buf));
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into big-endian uint16_t */
|
/* read JTAG buffer into big-endian uint16_t */
|
||||||
int arm_jtag_buf_to_be16(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_be16(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
h_u16_to_be(((uint8_t*)priv), le_to_h_u32(in_buf) & 0xffff);
|
h_u16_to_be(((uint8_t*)priv), le_to_h_u32(in_buf) & 0xffff);
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read JTAG buffer into uint8_t */
|
/* read JTAG buffer into uint8_t */
|
||||||
int arm_jtag_buf_to_8(uint8_t *in_buf, void *priv, struct scan_field_s *field)
|
int arm_jtag_buf_to_8(uint8_t *in_buf, void *priv, struct scan_field *field)
|
||||||
{
|
{
|
||||||
uint8_t *dest = priv;
|
uint8_t *dest = priv;
|
||||||
*dest = le_to_h_u32(in_buf) & 0xff;
|
*dest = le_to_h_u32(in_buf) & 0xff;
|
||||||
|
|
|
@ -42,20 +42,20 @@ int arm_jtag_scann(struct arm_jtag *jtag_info, uint32_t new_scan_chain);
|
||||||
int arm_jtag_setup_connection(struct arm_jtag *jtag_info);
|
int arm_jtag_setup_connection(struct arm_jtag *jtag_info);
|
||||||
|
|
||||||
/* JTAG buffers to host, be and le buffers, flipping variants */
|
/* JTAG buffers to host, be and le buffers, flipping variants */
|
||||||
int arm_jtag_buf_to_u32_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_u32_flip(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_le32_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_le32_flip(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_le16_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_le16_flip(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_be32_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_be32_flip(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_be16_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_be16_flip(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_8_flip(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_8_flip(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
|
|
||||||
/* JTAG buffers to host, be and le buffers */
|
/* JTAG buffers to host, be and le buffers */
|
||||||
int arm_jtag_buf_to_u32(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_u32(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_le32(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_le32(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_le16(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_le16(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_be32(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_be32(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_be16(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_be16(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
int arm_jtag_buf_to_8(uint8_t *in_buf, void *priv, struct scan_field_s *field);
|
int arm_jtag_buf_to_8(uint8_t *in_buf, void *priv, struct scan_field *field);
|
||||||
|
|
||||||
|
|
||||||
/* use this as a static so we can inline it in -O3 and refer to it via a pointer */
|
/* use this as a static so we can inline it in -O3 and refer to it via a pointer */
|
||||||
|
|
Loading…
Reference in New Issue