]> git.sur5r.net Git - openocd/commitdiff
Eliminate MixedCaps symbol from public JTAG TAP API:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 5 Jun 2009 00:43:43 +0000 (00:43 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 5 Jun 2009 00:43:43 +0000 (00:43 +0000)
- 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

src/jtag/jtag.c
src/jtag/jtag.h
src/jtag/jtag_driver.c
src/jtag/zy1000.c

index e9d21d4539e3b4ed792914f4ae6777749a799a50..cfffe702221c77e1725ada60cfb0df6c40445a06 100644 (file)
@@ -987,7 +987,7 @@ static int jtag_examine_chain(void)
        }
 
        /* point at the 1st tap */
-       tap = jtag_NextEnabledTap(NULL);
+       tap = jtag_tap_next_enabled(NULL);
        if( tap == NULL ){
                LOG_ERROR("JTAG: No taps enabled?");
                return ERROR_JTAG_INIT_FAILED;
@@ -1094,7 +1094,7 @@ static int jtag_examine_chain(void)
                                                 tap->idcode);
 #endif
                        }
-                       tap = jtag_NextEnabledTap(tap);
+                       tap = jtag_tap_next_enabled(tap);
                }
                device_count++;
        }
@@ -1122,7 +1122,7 @@ static int jtag_validate_chain(void)
        tap = NULL;
        total_ir_length = 0;
        for(;;){
-               tap = jtag_NextEnabledTap(tap);
+               tap = jtag_tap_next_enabled(tap);
                if( tap == NULL ){
                        break;
                }
@@ -1146,7 +1146,7 @@ static int jtag_validate_chain(void)
        chain_pos = 0;
        int val;
        for(;;){
-               tap = jtag_NextEnabledTap(tap);
+               tap = jtag_tap_next_enabled(tap);
                if( tap == NULL ){
                        break;
                }
@@ -1677,7 +1677,7 @@ static int jtag_init_inner(struct command_context_s *cmd_ctx)
 
        LOG_DEBUG("Init JTAG chain");
 
-       tap = jtag_NextEnabledTap(NULL);
+       tap = jtag_tap_next_enabled(NULL);
        if( tap == NULL ){
                LOG_ERROR("There are no enabled taps?");
                return ERROR_JTAG_INIT_FAILED;
index b8e33563083eed38a794823d961df551193a99c1..89b1de82f5cef69a60bda641b9c37059eef037e5 100644 (file)
@@ -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(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)
        {
index 55c657e519ca67cc69edf54c97f2a189bf60904f..ec211bf130abb013e0302b865d3f8104a19f1c1a 100644 (file)
@@ -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 */
 
-       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 */
 
@@ -138,7 +138,7 @@ int interface_jtag_add_ir_scan(int in_num_fields, const scan_field_t *in_fields,
                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;
 }
@@ -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;
 
-       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)
                        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 */
 
-       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 */
 
@@ -271,7 +271,7 @@ void interface_jtag_add_dr_out(jtag_tap_t *target_tap,
 
        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)
                        bypass_devices++;
@@ -299,7 +299,7 @@ void interface_jtag_add_dr_out(jtag_tap_t *target_tap,
 
        /* 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 */
 
index b694cf8d9dc0993b37e8ed3ef8d3ba00b200d4b8..ad148f1d6d7c6c6ff41bf713d7e0f7b3c8504aef 100644 (file)
@@ -511,9 +511,9 @@ int interface_jtag_add_ir_scan(int num_fields, const scan_field_t *fields, tap_s
        int j;
        int scan_size = 0;
        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;
                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;
        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;
                tap_state_t end_state;
                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;
        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 */
                if (little)