arm11_sc7_action_t -> struct arm11_sc7_action
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 16:39:54 +0000 (08:39 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:09 +0000 (11:58 -0800)
Remove misleading typedef and redundant suffix from struct arm11_sc7_action.

src/target/arm11.c
src/target/arm11_dbgtap.c
src/target/arm11_dbgtap.h

index 47786b81f34e5f6e0a459beb2bb47a710096c586..e5794b8ae53ddcdf593587615fcbee25b0e88c22 100644 (file)
@@ -851,7 +851,7 @@ static int arm11_resume(struct target_s *target, int current,
 
                for (bp = target->breakpoints; bp; bp = bp->next)
                {
-                       arm11_sc7_action_t      brp[2];
+                       struct arm11_sc7_action brp[2];
 
                        brp[0].write    = 1;
                        brp[0].address  = ARM11_SC7_BVR0 + brp_num;
@@ -1074,7 +1074,7 @@ static int arm11_step(struct target_s *target, int current,
 
                /* Set up breakpoint for stepping */
 
-               arm11_sc7_action_t      brp[2];
+               struct arm11_sc7_action brp[2];
 
                brp[0].write    = 1;
                brp[0].address  = ARM11_SC7_BVR0;
index f9582381f53ca0c5224276d869b96edae25f2f8c..65d4f8210177cb5cafe15cac88c3b3fa70440b0f 100644 (file)
@@ -782,14 +782,14 @@ int arm11_run_instr_data_to_core_via_r0(struct arm11_common * arm11, uint32_t op
 
 /** Apply reads and writes to scan chain 7
  *
- * \see arm11_sc7_action_t
+ * \see struct arm11_sc7_action
  *
  * \param arm11                Target state variable.
  * \param actions      A list of read and/or write instructions
  * \param count                Number of instructions in the list.
  *
  */
-int arm11_sc7_run(struct arm11_common * arm11, arm11_sc7_action_t * actions, size_t count)
+int arm11_sc7_run(struct arm11_common * arm11, struct arm11_sc7_action * actions, size_t count)
 {
        int retval;
 
@@ -875,8 +875,8 @@ int arm11_sc7_run(struct arm11_common * arm11, arm11_sc7_action_t * actions, siz
  */
 void arm11_sc7_clear_vbw(struct arm11_common * arm11)
 {
-       arm11_sc7_action_t              clear_bw[arm11->brp + arm11->wrp + 1];
-       arm11_sc7_action_t *    pos = clear_bw;
+       struct arm11_sc7_action         clear_bw[arm11->brp + arm11->wrp + 1];
+       struct arm11_sc7_action *       pos = clear_bw;
 
        for (size_t i = 0; i < asizeof(clear_bw); i++)
        {
@@ -904,7 +904,7 @@ void arm11_sc7_clear_vbw(struct arm11_common * arm11)
  */
 void arm11_sc7_set_vcr(struct arm11_common * arm11, uint32_t value)
 {
-       arm11_sc7_action_t              set_vcr;
+       struct arm11_sc7_action         set_vcr;
 
        set_vcr.write           = true;
        set_vcr.address         = ARM11_SC7_VCR;
index 33ab3ddbcafef09151eda7cf57f62c0531060064..87b66a5065b6d06780073f2d6d3c16c613daee26 100644 (file)
@@ -45,7 +45,7 @@ int arm11_add_ir_scan_vc(int num_fields, struct scan_field *fields,
  * Used with arm11_sc7_run to make a list of read/write commands for
  * scan chain 7
  */
-typedef struct arm11_sc7_action_s
+struct arm11_sc7_action
 {
        bool write; /**< Access mode: true for write, false for read. */
        uint8_t address; /**< Register address mode. Use enum #arm11_sc7 */
@@ -54,10 +54,10 @@ typedef struct arm11_sc7_action_s
         * this receives the read value when the function returns.
         */
        uint32_t value;
-} arm11_sc7_action_t;
+};
 
 int arm11_sc7_run(struct arm11_common *arm11,
-               arm11_sc7_action_t *actions, size_t count);
+               struct arm11_sc7_action *actions, size_t count);
 
 /* Mid-level helper functions */
 void arm11_sc7_clear_vbw(struct arm11_common *arm11);