|
From: <oh...@ma...> - 2009-05-05 21:30:24
|
Author: oharboe
Date: 2009-05-05 21:30:13 +0200 (Tue, 05 May 2009)
New Revision: 1607
Modified:
trunk/src/pld/virtex2.c
trunk/src/target/arm11_dbgtap.c
trunk/src/target/arm720t.c
trunk/src/target/arm7tdmi.c
trunk/src/target/arm920t.c
trunk/src/target/arm926ejs.c
trunk/src/target/arm966e.c
trunk/src/target/arm9tdmi.c
trunk/src/target/arm_adi_v5.c
trunk/src/target/embeddedice.c
trunk/src/target/etb.c
trunk/src/target/xscale.c
Log:
mark usage of in_handler that can be converted into user code
Modified: trunk/src/pld/virtex2.c
===================================================================
--- trunk/src/pld/virtex2.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/pld/virtex2.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -121,7 +121,7 @@
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 */
Modified: trunk/src/target/arm11_dbgtap.c
===================================================================
--- trunk/src/target/arm11_dbgtap.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/arm11_dbgtap.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -180,7 +180,7 @@
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);
}
Modified: trunk/src/target/arm720t.c
===================================================================
--- trunk/src/target/arm720t.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/arm720t.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -126,7 +126,7 @@
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
{
Modified: trunk/src/target/arm7tdmi.c
===================================================================
--- trunk/src/target/arm7tdmi.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/arm7tdmi.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -210,7 +210,7 @@
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 @@
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;
Modified: trunk/src/target/arm920t.c
===================================================================
--- trunk/src/target/arm920t.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/arm920t.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -153,7 +153,7 @@
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);
Modified: trunk/src/target/arm926ejs.c
===================================================================
--- trunk/src/target/arm926ejs.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/arm926ejs.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -177,7 +177,7 @@
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
Modified: trunk/src/target/arm966e.c
===================================================================
--- trunk/src/target/arm966e.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/arm966e.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -217,7 +217,7 @@
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);
Modified: trunk/src/target/arm9tdmi.c
===================================================================
--- trunk/src/target/arm9tdmi.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/arm9tdmi.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -220,7 +220,7 @@
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 @@
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 @@
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;
Modified: trunk/src/target/arm_adi_v5.c
===================================================================
--- trunk/src/target/arm_adi_v5.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/arm_adi_v5.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -127,7 +127,7 @@
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
Modified: trunk/src/target/embeddedice.c
===================================================================
--- trunk/src/target/embeddedice.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/embeddedice.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -352,7 +352,7 @@
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);
Modified: trunk/src/target/etb.c
===================================================================
--- trunk/src/target/etb.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/etb.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -217,7 +217,7 @@
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++)
{
Modified: trunk/src/target/xscale.c
===================================================================
--- trunk/src/target/xscale.c 2009-05-05 12:07:02 UTC (rev 1606)
+++ trunk/src/target/xscale.c 2009-05-05 19:30:13 UTC (rev 1607)
@@ -373,8 +373,8 @@
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);
|