Eliminate MixedCaps symbol from public JTAG TAP API:
- Purely mechanical transformations to the source files. - Rename 'jtag_NextEnabledTap' as 'jtag_tap_next_enabled.' git-svn-id: svn://svn.berlios.de/openocd/trunk@2069 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
0d39db1109
commit
0eb5c7509d
|
@ -987,7 +987,7 @@ static int jtag_examine_chain(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* point at the 1st tap */
|
/* point at the 1st tap */
|
||||||
tap = jtag_NextEnabledTap(NULL);
|
tap = jtag_tap_next_enabled(NULL);
|
||||||
if( tap == NULL ){
|
if( tap == NULL ){
|
||||||
LOG_ERROR("JTAG: No taps enabled?");
|
LOG_ERROR("JTAG: No taps enabled?");
|
||||||
return ERROR_JTAG_INIT_FAILED;
|
return ERROR_JTAG_INIT_FAILED;
|
||||||
|
@ -1094,7 +1094,7 @@ static int jtag_examine_chain(void)
|
||||||
tap->idcode);
|
tap->idcode);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
tap = jtag_NextEnabledTap(tap);
|
tap = jtag_tap_next_enabled(tap);
|
||||||
}
|
}
|
||||||
device_count++;
|
device_count++;
|
||||||
}
|
}
|
||||||
|
@ -1122,7 +1122,7 @@ static int jtag_validate_chain(void)
|
||||||
tap = NULL;
|
tap = NULL;
|
||||||
total_ir_length = 0;
|
total_ir_length = 0;
|
||||||
for(;;){
|
for(;;){
|
||||||
tap = jtag_NextEnabledTap(tap);
|
tap = jtag_tap_next_enabled(tap);
|
||||||
if( tap == NULL ){
|
if( tap == NULL ){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1146,7 +1146,7 @@ static int jtag_validate_chain(void)
|
||||||
chain_pos = 0;
|
chain_pos = 0;
|
||||||
int val;
|
int val;
|
||||||
for(;;){
|
for(;;){
|
||||||
tap = jtag_NextEnabledTap(tap);
|
tap = jtag_tap_next_enabled(tap);
|
||||||
if( tap == NULL ){
|
if( tap == NULL ){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1677,7 +1677,7 @@ static int jtag_init_inner(struct command_context_s *cmd_ctx)
|
||||||
|
|
||||||
LOG_DEBUG("Init JTAG chain");
|
LOG_DEBUG("Init JTAG chain");
|
||||||
|
|
||||||
tap = jtag_NextEnabledTap(NULL);
|
tap = jtag_tap_next_enabled(NULL);
|
||||||
if( tap == NULL ){
|
if( tap == NULL ){
|
||||||
LOG_ERROR("There are no enabled taps?");
|
LOG_ERROR("There are no enabled taps?");
|
||||||
return ERROR_JTAG_INIT_FAILED;
|
return ERROR_JTAG_INIT_FAILED;
|
||||||
|
|
|
@ -184,7 +184,7 @@ extern jtag_tap_t* jtag_tap_by_abs_position(int abs_position);
|
||||||
extern int jtag_tap_count_enabled(void);
|
extern int jtag_tap_count_enabled(void);
|
||||||
extern int jtag_tap_count(void);
|
extern int jtag_tap_count(void);
|
||||||
|
|
||||||
static __inline__ jtag_tap_t* jtag_NextEnabledTap(jtag_tap_t* p)
|
static __inline__ jtag_tap_t* jtag_tap_next_enabled(jtag_tap_t* p)
|
||||||
{
|
{
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -96,7 +96,7 @@ int interface_jtag_add_ir_scan(int in_num_fields, const scan_field_t *in_fields,
|
||||||
|
|
||||||
/* loop over all enabled TAPs */
|
/* loop over all enabled TAPs */
|
||||||
|
|
||||||
for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
|
for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
|
||||||
{
|
{
|
||||||
/* search the input field list for fields for the current TAP */
|
/* search the input field list for fields for the current TAP */
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ int interface_jtag_add_ir_scan(int in_num_fields, const scan_field_t *in_fields,
|
||||||
field++;
|
field++;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(field == out_fields + num_taps); /* paranoia: jtag_tap_count_enabled() and jtag_NextEnabledTap() not in sync */
|
assert(field == out_fields + num_taps); /* paranoia: jtag_tap_count_enabled() and jtag_tap_next_enabled() not in sync */
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ int interface_jtag_add_dr_scan(int in_num_fields, const scan_field_t *in_fields,
|
||||||
|
|
||||||
size_t bypass_devices = 0;
|
size_t bypass_devices = 0;
|
||||||
|
|
||||||
for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
|
for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
|
||||||
{
|
{
|
||||||
if (tap->bypass)
|
if (tap->bypass)
|
||||||
bypass_devices++;
|
bypass_devices++;
|
||||||
|
@ -207,7 +207,7 @@ int interface_jtag_add_dr_scan(int in_num_fields, const scan_field_t *in_fields,
|
||||||
|
|
||||||
/* loop over all enabled TAPs */
|
/* loop over all enabled TAPs */
|
||||||
|
|
||||||
for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
|
for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
|
||||||
{
|
{
|
||||||
/* if TAP is not bypassed insert matching input fields */
|
/* if TAP is not bypassed insert matching input fields */
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ void interface_jtag_add_dr_out(jtag_tap_t *target_tap,
|
||||||
|
|
||||||
size_t bypass_devices = 0;
|
size_t bypass_devices = 0;
|
||||||
|
|
||||||
for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
|
for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
|
||||||
{
|
{
|
||||||
if (tap->bypass)
|
if (tap->bypass)
|
||||||
bypass_devices++;
|
bypass_devices++;
|
||||||
|
@ -299,7 +299,7 @@ void interface_jtag_add_dr_out(jtag_tap_t *target_tap,
|
||||||
|
|
||||||
/* loop over all enabled TAPs */
|
/* loop over all enabled TAPs */
|
||||||
|
|
||||||
for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
|
for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
|
||||||
{
|
{
|
||||||
/* if TAP is not bypassed insert matching input fields */
|
/* if TAP is not bypassed insert matching input fields */
|
||||||
|
|
||||||
|
|
|
@ -511,9 +511,9 @@ int interface_jtag_add_ir_scan(int num_fields, const scan_field_t *fields, tap_s
|
||||||
int j;
|
int j;
|
||||||
int scan_size = 0;
|
int scan_size = 0;
|
||||||
jtag_tap_t *tap, *nextTap;
|
jtag_tap_t *tap, *nextTap;
|
||||||
for(tap = jtag_NextEnabledTap(NULL); tap!= NULL; tap=nextTap)
|
for(tap = jtag_tap_next_enabled(NULL); tap!= NULL; tap=nextTap)
|
||||||
{
|
{
|
||||||
nextTap=jtag_NextEnabledTap(tap);
|
nextTap=jtag_tap_next_enabled(tap);
|
||||||
tap_state_t end_state;
|
tap_state_t end_state;
|
||||||
if (nextTap==NULL)
|
if (nextTap==NULL)
|
||||||
{
|
{
|
||||||
|
@ -580,9 +580,9 @@ int interface_jtag_add_dr_scan(int num_fields, const scan_field_t *fields, tap_s
|
||||||
|
|
||||||
int j;
|
int j;
|
||||||
jtag_tap_t *tap, *nextTap;
|
jtag_tap_t *tap, *nextTap;
|
||||||
for(tap = jtag_NextEnabledTap(NULL); tap!= NULL; tap=nextTap)
|
for(tap = jtag_tap_next_enabled(NULL); tap!= NULL; tap=nextTap)
|
||||||
{
|
{
|
||||||
nextTap=jtag_NextEnabledTap(tap);
|
nextTap=jtag_tap_next_enabled(tap);
|
||||||
int found=0;
|
int found=0;
|
||||||
tap_state_t end_state;
|
tap_state_t end_state;
|
||||||
if (nextTap==NULL)
|
if (nextTap==NULL)
|
||||||
|
@ -749,7 +749,7 @@ void embeddedice_write_dcc(jtag_tap_t *tap, int reg_addr, u8 *buffer, int little
|
||||||
{
|
{
|
||||||
// static int const reg_addr=0x5;
|
// static int const reg_addr=0x5;
|
||||||
tap_state_t end_state=jtag_get_end_state();
|
tap_state_t end_state=jtag_get_end_state();
|
||||||
if (jtag_NextEnabledTap(jtag_NextEnabledTap(NULL))==NULL)
|
if (jtag_tap_next_enabled(jtag_tap_next_enabled(NULL))==NULL)
|
||||||
{
|
{
|
||||||
/* better performance via code duplication */
|
/* better performance via code duplication */
|
||||||
if (little)
|
if (little)
|
||||||
|
|
Loading…
Reference in New Issue