diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-14 06:48:30 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-14 18:21:02 -0800 |
commit | a502676df7e6e99c29f207003ec02a128012d325 (patch) | |
tree | 4b144f0c09ab0f84d4c0941c87321e88878eb282 /src/target | |
parent | bc07ee82fbeb05a93f91d077d0628d4e369c5aeb (diff) | |
download | openocd+libswd-a502676df7e6e99c29f207003ec02a128012d325.tar.gz openocd+libswd-a502676df7e6e99c29f207003ec02a128012d325.tar.bz2 openocd+libswd-a502676df7e6e99c29f207003ec02a128012d325.tar.xz openocd+libswd-a502676df7e6e99c29f207003ec02a128012d325.zip |
remove unused arm_jtag_buf_to_* helpers
Removes unused arm_jtag_buf_* helpers from arm_jtag.[ch]. These could
reappear if patches are provided to conver the tree to use them, but
this code should not be in the master tree until that series is ready.
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/arm_jtag.c | 89 | ||||
-rw-r--r-- | src/target/arm_jtag.h | 17 |
2 files changed, 0 insertions, 106 deletions
diff --git a/src/target/arm_jtag.c b/src/target/arm_jtag.c index 54316b70..af626eca 100644 --- a/src/target/arm_jtag.c +++ b/src/target/arm_jtag.c @@ -114,92 +114,3 @@ int arm_jtag_setup_connection(struct arm_jtag *jtag_info) return jtag_register_event_callback(arm_jtag_reset_callback, jtag_info); } - -/* 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 *field) -{ - uint32_t *dest = priv; - *dest = flip_u32(le_to_h_u32(in_buf), 32); - return ERROR_OK; -} - -/* 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 *field) -{ - h_u32_to_le(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32)); - return ERROR_OK; -} - -/* 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 *field) -{ - h_u16_to_le(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32) & 0xffff); - return ERROR_OK; -} - -/* 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 *field) -{ - h_u32_to_be(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32)); - return ERROR_OK; -} - -/* 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 *field) -{ - h_u16_to_be(((uint8_t*)priv), flip_u32(le_to_h_u32(in_buf), 32) & 0xffff); - return ERROR_OK; -} - -/* 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 *field) -{ - uint8_t *dest = priv; - *dest = flip_u32(le_to_h_u32(in_buf), 32) & 0xff; - return ERROR_OK; -} - -/* not-flipping variants */ -/* read JTAG buffer into host-endian uint32_t */ -int arm_jtag_buf_to_u32(uint8_t *in_buf, void *priv, struct scan_field *field) -{ - uint32_t *dest = priv; - *dest = le_to_h_u32(in_buf); - return ERROR_OK; -} - -/* read JTAG buffer into little-endian uint32_t */ -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)); - return ERROR_OK; -} - -/* read JTAG buffer into little-endian uint16_t */ -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); - return ERROR_OK; -} - -/* read JTAG buffer into big-endian uint32_t */ -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)); - return ERROR_OK; -} - -/* read JTAG buffer into big-endian uint16_t */ -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); - return ERROR_OK; -} - -/* read JTAG buffer into uint8_t */ -int arm_jtag_buf_to_8(uint8_t *in_buf, void *priv, struct scan_field *field) -{ - uint8_t *dest = priv; - *dest = le_to_h_u32(in_buf) & 0xff; - return ERROR_OK; -} diff --git a/src/target/arm_jtag.h b/src/target/arm_jtag.h index 46122e46..d9e7f2aa 100644 --- a/src/target/arm_jtag.h +++ b/src/target/arm_jtag.h @@ -41,23 +41,6 @@ int arm_jtag_set_instr(struct arm_jtag *jtag_info, int arm_jtag_scann(struct arm_jtag *jtag_info, uint32_t new_scan_chain); int arm_jtag_setup_connection(struct arm_jtag *jtag_info); -/* 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 *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 *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 *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 */ -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 *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 *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 *field); - - /* use this as a static so we can inline it in -O3 and refer to it via a pointer */ static __inline__ void arm7flip32(jtag_callback_data_t arg) { |