mark usage of in_handler that can be converted into user code
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 5 May 2009 19:30:13 +0000 (19:30 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 5 May 2009 19:30:13 +0000 (19:30 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1607 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 files changed:
src/pld/virtex2.c
src/target/arm11_dbgtap.c
src/target/arm720t.c
src/target/arm7tdmi.c
src/target/arm920t.c
src/target/arm926ejs.c
src/target/arm966e.c
src/target/arm9tdmi.c
src/target/arm_adi_v5.c
src/target/embeddedice.c
src/target/etb.c
src/target/xscale.c

index 7be6803..26f0f1f 100644 (file)
@@ -121,7 +121,7 @@ int virtex2_receive_32(struct pld_device_s *pld_device, int num_words, u32 *word
        scan_field.in_value = NULL;
        scan_field.in_check_value = NULL;
        scan_field.in_check_mask = NULL;
-       scan_field.in_handler = virtex2_jtag_buf_to_u32;
+       scan_field.in_handler = virtex2_jtag_buf_to_u32; /* deprecated! invoke this from user code! */
 
        virtex2_set_instr(virtex2_info->tap, 0x4); /* CFG_OUT */
 
index 2b684b9..2f47421 100644 (file)
@@ -180,7 +180,7 @@ void arm11_add_debug_SCAN_N(arm11_common_t * arm11, u8 chain, tap_state_t state)
 
        arm11_setup_field(arm11, 5, &chain, NULL, &field);
 
-       field.in_handler = arm11_in_handler_SCAN_N;
+       field.in_handler = arm11_in_handler_SCAN_N; /* deprecated! invoke this from user code! */
 
        arm11_add_dr_scan_vc(1, &field, state == ARM11_TAP_DEFAULT ? TAP_DRPAUSE : state);
 }
index 99eede2..6cd73e4 100644 (file)
@@ -126,7 +126,7 @@ int arm720t_scan_cp15(target_t *target, u32 out, u32 *in, int instruction, int c
        fields[1].in_value = NULL;
        if (in)
        {
-               fields[1].in_handler = arm_jtag_buf_to_u32_flip;
+               fields[1].in_handler = arm_jtag_buf_to_u32_flip; /* deprecated! invoke this from user code! */
                fields[1].in_handler_priv = in;
        } else
        {
index 1a448fc..c205949 100644 (file)
@@ -210,7 +210,7 @@ int arm7tdmi_clock_data_in(arm_jtag_t *jtag_info, u32 *in)
        fields[1].out_value = NULL;
        fields[1].out_mask = NULL;
        fields[1].in_value = NULL;
-       fields[1].in_handler = arm_jtag_buf_to_u32_flip;
+       fields[1].in_handler = arm_jtag_buf_to_u32_flip; /* deprecated! invoke this from user code! */
        fields[1].in_handler_priv = in;
        fields[1].in_check_value = NULL;
        fields[1].in_check_mask = NULL;
@@ -274,13 +274,13 @@ int arm7tdmi_clock_data_in_endianness(arm_jtag_t *jtag_info, void *in, int size,
        switch (size)
        {
                case 4:
-                       fields[1].in_handler = (be) ? arm_jtag_buf_to_be32_flip : arm_jtag_buf_to_le32_flip;
+                       fields[1].in_handler = (be) ? arm_jtag_buf_to_be32_flip : arm_jtag_buf_to_le32_flip; /* deprecated! invoke this from user code! */
                        break;
                case 2:
-                       fields[1].in_handler = (be) ? arm_jtag_buf_to_be16_flip : arm_jtag_buf_to_le16_flip;
+                       fields[1].in_handler = (be) ? arm_jtag_buf_to_be16_flip : arm_jtag_buf_to_le16_flip; /* deprecated! invoke this from user code! */
                        break;
                case 1:
-                       fields[1].in_handler = arm_jtag_buf_to_8_flip;
+                       fields[1].in_handler = arm_jtag_buf_to_8_flip; /* deprecated! invoke this from user code! */
                        break;
        }
        fields[1].in_handler_priv = in;
index 29f5b15..cc6ba0a 100644 (file)
@@ -153,7 +153,7 @@ int arm920t_read_cp15_physical(target_t *target, int reg_addr, u32 *value)
        jtag_add_dr_scan(4, fields, TAP_INVALID);
 
        fields[1].in_handler_priv = value;
-       fields[1].in_handler = arm_jtag_buf_to_u32;
+       fields[1].in_handler = arm_jtag_buf_to_u32; /* deprecated! invoke this from user code! */
 
        jtag_add_dr_scan(4, fields, TAP_INVALID);
 
index a6ef5e1..8b81c0b 100644 (file)
@@ -177,7 +177,7 @@ int arm926ejs_cp15_read(target_t *target, u32 op1, u32 op2, u32 CRn, u32 CRm, u3
        jtag_add_dr_scan(4, fields, TAP_INVALID);
 
        fields[0].in_handler_priv = value;
-       fields[0].in_handler = arm_jtag_buf_to_u32;
+       fields[0].in_handler = arm_jtag_buf_to_u32; /* deprecated! invoke this from user code! */
 
        /*TODO: add timeout*/
        do
index dbe7073..eee964d 100644 (file)
@@ -217,7 +217,7 @@ int arm966e_read_cp15(target_t *target, int reg_addr, u32 *value)
        jtag_add_dr_scan(3, fields, TAP_INVALID);
 
        fields[0].in_handler_priv = value;
-       fields[0].in_handler = arm_jtag_buf_to_u32;
+       fields[0].in_handler = arm_jtag_buf_to_u32; /* deprecated! invoke this from user code! */
 
        jtag_add_dr_scan(3, fields, TAP_INVALID);
 
index 1aab286..95358c4 100644 (file)
@@ -220,7 +220,7 @@ int arm9tdmi_clock_out(arm_jtag_t *jtag_info, u32 instr, u32 out, u32 *in, int s
        fields[0].in_value = NULL;
        if (in)
        {
-               fields[0].in_handler = arm_jtag_buf_to_u32;
+               fields[0].in_handler = arm_jtag_buf_to_u32; /* deprecated! invoke this from user code! */
                fields[0].in_handler_priv = in;
        }
        else
@@ -293,7 +293,7 @@ int arm9tdmi_clock_data_in(arm_jtag_t *jtag_info, u32 *in)
        fields[0].out_value = NULL;
        fields[0].out_mask = NULL;
        fields[0].in_value = NULL;
-       fields[0].in_handler = arm_jtag_buf_to_u32;
+       fields[0].in_handler = arm_jtag_buf_to_u32; /* deprecated! invoke this from user code! */
        fields[0].in_handler_priv = in;
        fields[0].in_check_value = NULL;
        fields[0].in_check_mask = NULL;
@@ -368,13 +368,13 @@ int arm9tdmi_clock_data_in_endianness(arm_jtag_t *jtag_info, void *in, int size,
        switch (size)
        {
                case 4:
-                       fields[0].in_handler = (be) ? arm_jtag_buf_to_be32 : arm_jtag_buf_to_le32;
+                       fields[0].in_handler = (be) ? arm_jtag_buf_to_be32 : arm_jtag_buf_to_le32; /* deprecated! invoke this from user code! */
                        break;
                case 2:
-                       fields[0].in_handler = (be) ? arm_jtag_buf_to_be16 : arm_jtag_buf_to_le16;
+                       fields[0].in_handler = (be) ? arm_jtag_buf_to_be16 : arm_jtag_buf_to_le16; /* deprecated! invoke this from user code! */
                        break;
                case 1:
-                       fields[0].in_handler = arm_jtag_buf_to_8;
+                       fields[0].in_handler = arm_jtag_buf_to_8; /* deprecated! invoke this from user code! */
                        break;
        }
        fields[0].in_handler_priv = in;
index b0474b6..0ce994c 100644 (file)
@@ -127,7 +127,7 @@ int adi_jtag_dp_scan_u32(arm_jtag_t *jtag_info, u8 instr, u8 reg_addr, u8 RnW, u
        fields[1].in_value = NULL;
        if (invalue)
        {
-               fields[1].in_handler = arm_jtag_buf_to_u32;
+               fields[1].in_handler = arm_jtag_buf_to_u32; /* deprecated! invoke this from user code! */
                fields[1].in_handler_priv = invalue;
        }
        else
index b663c1d..bd7fd3a 100644 (file)
@@ -352,7 +352,7 @@ int embeddedice_receive(arm_jtag_t *jtag_info, u32 *data, u32 size)
                if (size == 1)
                        buf_set_u32(fields[1].out_value, 0, 5, embeddedice_reg_arch_info[EICE_COMMS_CTRL]);
 
-               fields[0].in_handler = arm_jtag_buf_to_u32;
+               fields[0].in_handler = arm_jtag_buf_to_u32; /* deprecated! invoke this from user code! */
                fields[0].in_handler_priv = data;
                jtag_add_dr_scan(3, fields, TAP_INVALID);
 
index d9b0674..5af9b91 100644 (file)
@@ -217,7 +217,7 @@ static int etb_read_ram(etb_t *etb, u32 *data, int num_frames)
 
        jtag_add_dr_scan(3, fields, TAP_INVALID);
 
-       fields[0].in_handler = buf_to_u32_handler;
+       fields[0].in_handler = buf_to_u32_handler; /* deprecated! invoke this from user code! */
 
        for (i = 0; i < num_frames; i++)
        {
index dec1ede..d270bf4 100644 (file)
@@ -373,8 +373,8 @@ int xscale_receive(target_t *target, u32 *buffer, int num_words)
                for (i = words_done; i < num_words; i++)
                {
                        fields[0].in_value = &field0[i];
-                       fields[1].in_handler = buf_to_u32_handler;
-                       fields[1].in_handler_priv = (u8*)&field1[i];
+                       fields[1].in_handler = buf_to_u32_handler; /* deprecated! invoke this from user code! */
+                       fields[1].in_handler_priv = (u8*)&field1[i]; 
 
                        jtag_add_pathmove(3, path);
                        jtag_add_dr_scan(3, fields, TAP_IDLE);