]> git.sur5r.net Git - openocd/commitdiff
armv4_5_mmu_common_t -> struct armv4_5_mmu_common
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 16:41:27 +0000 (08:41 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:10 +0000 (11:58 -0800)
Remove misleading typedef and redundant suffix from struct armv4_5_mmu_common.

src/target/arm720t.h
src/target/arm920t.h
src/target/arm926ejs.h
src/target/armv4_5_mmu.c
src/target/armv4_5_mmu.h
src/target/armv7a.h
src/target/xscale.h

index c5e2809126a157710f9a31176a44f2457154af0e..ab9aef6ab506fd314a28f34ab1d1765081da7af6 100644 (file)
@@ -29,7 +29,7 @@ struct arm720t_common
 {
        struct arm7tdmi_common arm7tdmi_common;
        uint32_t common_magic;
-       armv4_5_mmu_common_t armv4_5_mmu;
+       struct armv4_5_mmu_common armv4_5_mmu;
        uint32_t cp15_control_reg;
        uint32_t fsr_reg;
        uint32_t far_reg;
index b2ab45983b9b28f2b0344b4ac9ba10fcb3fc0be3..4bd5cebbc90b1616f148b8411fe15e64e08880da 100644 (file)
@@ -29,7 +29,7 @@ struct arm920t_common
 {
        struct arm9tdmi_common arm9tdmi_common;
        uint32_t common_magic;
-       armv4_5_mmu_common_t armv4_5_mmu;
+       struct armv4_5_mmu_common armv4_5_mmu;
        uint32_t cp15_control_reg;
        uint32_t d_fsr;
        uint32_t i_fsr;
index ec23f1406c96aeb5ec628473d04f7a3c23afe2f8..171c58909bfb2cca47aa0ae9dc11f7cfde46c02c 100644 (file)
@@ -29,7 +29,7 @@ struct arm926ejs_common
 {
        struct arm9tdmi_common arm9tdmi_common;
        uint32_t common_magic;
-       armv4_5_mmu_common_t armv4_5_mmu;
+       struct armv4_5_mmu_common armv4_5_mmu;
        int (*read_cp15)(target_t *target, uint32_t op1, uint32_t op2, uint32_t CRn, uint32_t CRm, uint32_t *value);
        int (*write_cp15)(target_t *target, uint32_t op1, uint32_t op2, uint32_t CRn, uint32_t CRm, uint32_t value);
        uint32_t cp15_control_reg;
index 4088fd22cd4cbe0d9a9f97d4bf080ff02a33065e..64147e8709f6da7c417787e22476ea799e3e5bac 100644 (file)
 #include "armv4_5_mmu.h"
 
 
-uint32_t armv4mmu_translate_va(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu, uint32_t va, int *type, uint32_t *cb, int *domain, uint32_t *ap);
+uint32_t armv4mmu_translate_va(target_t *target, struct armv4_5_mmu_common *armv4_5_mmu, uint32_t va, int *type, uint32_t *cb, int *domain, uint32_t *ap);
 
 char* armv4_5_mmu_page_type_names[] =
 {
        "section", "large page", "small page", "tiny page"
 };
 
-uint32_t armv4_5_mmu_translate_va(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu, uint32_t va, int *type, uint32_t *cb, int *domain, uint32_t *ap)
+uint32_t armv4_5_mmu_translate_va(target_t *target, struct armv4_5_mmu_common *armv4_5_mmu, uint32_t va, int *type, uint32_t *cb, int *domain, uint32_t *ap)
 {
        uint32_t first_lvl_descriptor = 0x0;
        uint32_t second_lvl_descriptor = 0x0;
@@ -130,7 +130,7 @@ uint32_t armv4_5_mmu_translate_va(target_t *target, armv4_5_mmu_common_t *armv4_
        return ERROR_TARGET_TRANSLATION_FAULT;
 }
 
-int armv4_5_mmu_read_physical(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer)
+int armv4_5_mmu_read_physical(target_t *target, struct armv4_5_mmu_common *armv4_5_mmu, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer)
 {
        int retval;
 
@@ -150,7 +150,7 @@ int armv4_5_mmu_read_physical(target_t *target, armv4_5_mmu_common_t *armv4_5_mm
        return retval;
 }
 
-int armv4_5_mmu_write_physical(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer)
+int armv4_5_mmu_write_physical(target_t *target, struct armv4_5_mmu_common *armv4_5_mmu, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer)
 {
        int retval;
 
index b8ad0c8bc4a9b1686b3c12d220e47639cd36a74a..4357c92ffd3f735b9afdab43efbff22e4a500f4b 100644 (file)
@@ -23,7 +23,7 @@
 #include "armv4_5_cache.h"
 #include "target.h"
 
-typedef struct armv4_5_mmu_common_s
+struct armv4_5_mmu_common
 {
        uint32_t (*get_ttb)(target_t *target);
        int (*read_memory)(target_t *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer);
@@ -33,7 +33,7 @@ typedef struct armv4_5_mmu_common_s
        struct armv4_5_cache_common armv4_5_cache;
        int has_tiny_pages;
        int mmu_enabled;
-} armv4_5_mmu_common_t;
+};
 
 enum
 {
@@ -43,15 +43,15 @@ enum
 extern char* armv4_5_page_type_names[];
 
 uint32_t armv4_5_mmu_translate_va(target_t *target,
-               armv4_5_mmu_common_t *armv4_5_mmu, uint32_t va, int *type,
+               struct armv4_5_mmu_common *armv4_5_mmu, uint32_t va, int *type,
                uint32_t *cb, int *domain, uint32_t *ap);
 
 int armv4_5_mmu_read_physical(target_t *target,
-               armv4_5_mmu_common_t *armv4_5_mmu,
+               struct armv4_5_mmu_common *armv4_5_mmu,
                uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer);
 
 int armv4_5_mmu_write_physical(target_t *target,
-               armv4_5_mmu_common_t *armv4_5_mmu,
+               struct armv4_5_mmu_common *armv4_5_mmu,
                uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer);
 
 enum
index e7a7fc250605419fe478e2af1efa87aa0c6ed3e4..b12c62c18eee4a69e5851642a868b75998023b67 100644 (file)
@@ -105,7 +105,7 @@ typedef struct armv7a_common_s
        uint8_t memory_ap;
 
        /* Cache and Memory Management Unit */
-       armv4_5_mmu_common_t armv4_5_mmu;
+       struct armv4_5_mmu_common armv4_5_mmu;
        armv4_5_common_t armv4_5_common;
 
 //     int (*full_context)(struct target_s *target);
index 433ecfcf03a76620aad710c772567958f3bf8814..dd7b034652bc754ef74750fef117cde06ab8f1c9 100644 (file)
@@ -125,7 +125,7 @@ typedef struct xscale_common_s
        int arch_debug_reason;
 
        /* MMU/Caches */
-       armv4_5_mmu_common_t armv4_5_mmu;
+       struct armv4_5_mmu_common armv4_5_mmu;
        uint32_t cp15_control_reg;
 
        int fast_memory_access;