diff options
Diffstat (limited to 'include')
159 files changed, 4339 insertions, 7224 deletions
diff --git a/include/asm-mips/addrspace.h b/include/asm-mips/addrspace.h index 0b3ff9c484..0bb7a93b7a 100644 --- a/include/asm-mips/addrspace.h +++ b/include/asm-mips/addrspace.h | |||
@@ -123,10 +123,10 @@ | |||
123 | /* | 123 | /* |
124 | * 64-bit address conversions | 124 | * 64-bit address conversions |
125 | */ | 125 | */ |
126 | #define PHYS_TO_XKSEG_UNCACHED(p) PHYS_TO_XKPHYS(K_CALG_UNCACHED,(p)) | 126 | #define PHYS_TO_XKSEG_UNCACHED(p) PHYS_TO_XKPHYS(K_CALG_UNCACHED, (p)) |
127 | #define PHYS_TO_XKSEG_CACHED(p) PHYS_TO_XKPHYS(K_CALG_COH_SHAREABLE,(p)) | 127 | #define PHYS_TO_XKSEG_CACHED(p) PHYS_TO_XKPHYS(K_CALG_COH_SHAREABLE, (p)) |
128 | #define XKPHYS_TO_PHYS(p) ((p) & TO_PHYS_MASK) | 128 | #define XKPHYS_TO_PHYS(p) ((p) & TO_PHYS_MASK) |
129 | #define PHYS_TO_XKPHYS(cm,a) (_CONST64_(0x8000000000000000) | \ | 129 | #define PHYS_TO_XKPHYS(cm, a) (_CONST64_(0x8000000000000000) | \ |
130 | ((cm)<<59) | (a)) | 130 | ((cm)<<59) | (a)) |
131 | 131 | ||
132 | /* | 132 | /* |
diff --git a/include/asm-mips/asm.h b/include/asm-mips/asm.h index 838eb3144d..12e17581b8 100644 --- a/include/asm-mips/asm.h +++ b/include/asm-mips/asm.h | |||
@@ -21,11 +21,11 @@ | |||
21 | 21 | ||
22 | #ifndef CAT | 22 | #ifndef CAT |
23 | #ifdef __STDC__ | 23 | #ifdef __STDC__ |
24 | #define __CAT(str1,str2) str1##str2 | 24 | #define __CAT(str1, str2) str1##str2 |
25 | #else | 25 | #else |
26 | #define __CAT(str1,str2) str1/**/str2 | 26 | #define __CAT(str1, str2) str1/**/str2 |
27 | #endif | 27 | #endif |
28 | #define CAT(str1,str2) __CAT(str1,str2) | 28 | #define CAT(str1, str2) __CAT(str1, str2) |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* | 31 | /* |
@@ -51,9 +51,9 @@ | |||
51 | #define LEAF(symbol) \ | 51 | #define LEAF(symbol) \ |
52 | .globl symbol; \ | 52 | .globl symbol; \ |
53 | .align 2; \ | 53 | .align 2; \ |
54 | .type symbol,@function; \ | 54 | .type symbol, @function; \ |
55 | .ent symbol,0; \ | 55 | .ent symbol, 0; \ |
56 | symbol: .frame sp,0,ra | 56 | symbol: .frame sp, 0, ra |
57 | 57 | ||
58 | /* | 58 | /* |
59 | * NESTED - declare nested routine entry point | 59 | * NESTED - declare nested routine entry point |
@@ -61,8 +61,8 @@ symbol: .frame sp,0,ra | |||
61 | #define NESTED(symbol, framesize, rpc) \ | 61 | #define NESTED(symbol, framesize, rpc) \ |
62 | .globl symbol; \ | 62 | .globl symbol; \ |
63 | .align 2; \ | 63 | .align 2; \ |
64 | .type symbol,@function; \ | 64 | .type symbol, @function; \ |
65 | .ent symbol,0; \ | 65 | .ent symbol, 0; \ |
66 | symbol: .frame sp, framesize, rpc | 66 | symbol: .frame sp, framesize, rpc |
67 | 67 | ||
68 | /* | 68 | /* |
@@ -70,7 +70,7 @@ symbol: .frame sp, framesize, rpc | |||
70 | */ | 70 | */ |
71 | #define END(function) \ | 71 | #define END(function) \ |
72 | .end function; \ | 72 | .end function; \ |
73 | .size function,.-function | 73 | .size function, .-function |
74 | 74 | ||
75 | /* | 75 | /* |
76 | * EXPORT - export definition of symbol | 76 | * EXPORT - export definition of symbol |
@@ -84,7 +84,7 @@ symbol: | |||
84 | */ | 84 | */ |
85 | #define FEXPORT(symbol) \ | 85 | #define FEXPORT(symbol) \ |
86 | .globl symbol; \ | 86 | .globl symbol; \ |
87 | .type symbol,@function; \ | 87 | .type symbol, @function; \ |
88 | symbol: | 88 | symbol: |
89 | 89 | ||
90 | /* | 90 | /* |
@@ -97,7 +97,7 @@ symbol = value | |||
97 | #define PANIC(msg) \ | 97 | #define PANIC(msg) \ |
98 | .set push; \ | 98 | .set push; \ |
99 | .set reorder; \ | 99 | .set reorder; \ |
100 | PTR_LA a0,8f; \ | 100 | PTR_LA a0, 8f; \ |
101 | jal panic; \ | 101 | jal panic; \ |
102 | 9: b 9b; \ | 102 | 9: b 9b; \ |
103 | .set pop; \ | 103 | .set pop; \ |
@@ -110,7 +110,7 @@ symbol = value | |||
110 | #define PRINT(string) \ | 110 | #define PRINT(string) \ |
111 | .set push; \ | 111 | .set push; \ |
112 | .set reorder; \ | 112 | .set reorder; \ |
113 | PTR_LA a0,8f; \ | 113 | PTR_LA a0, 8f; \ |
114 | jal printk; \ | 114 | jal printk; \ |
115 | .set pop; \ | 115 | .set pop; \ |
116 | TEXT(string) | 116 | TEXT(string) |
@@ -146,19 +146,19 @@ symbol = value | |||
146 | #define PREF(hint,addr) \ | 146 | #define PREF(hint,addr) \ |
147 | .set push; \ | 147 | .set push; \ |
148 | .set mips4; \ | 148 | .set mips4; \ |
149 | pref hint,addr; \ | 149 | pref hint, addr; \ |
150 | .set pop | 150 | .set pop |
151 | 151 | ||
152 | #define PREFX(hint,addr) \ | 152 | #define PREFX(hint,addr) \ |
153 | .set push; \ | 153 | .set push; \ |
154 | .set mips4; \ | 154 | .set mips4; \ |
155 | prefx hint,addr; \ | 155 | prefx hint, addr; \ |
156 | .set pop | 156 | .set pop |
157 | 157 | ||
158 | #else /* !CONFIG_CPU_HAS_PREFETCH */ | 158 | #else /* !CONFIG_CPU_HAS_PREFETCH */ |
159 | 159 | ||
160 | #define PREF(hint,addr) | 160 | #define PREF(hint, addr) |
161 | #define PREFX(hint,addr) | 161 | #define PREFX(hint, addr) |
162 | 162 | ||
163 | #endif /* !CONFIG_CPU_HAS_PREFETCH */ | 163 | #endif /* !CONFIG_CPU_HAS_PREFETCH */ |
164 | 164 | ||
@@ -166,43 +166,43 @@ symbol = value | |||
166 | * MIPS ISA IV/V movn/movz instructions and equivalents for older CPUs. | 166 | * MIPS ISA IV/V movn/movz instructions and equivalents for older CPUs. |
167 | */ | 167 | */ |
168 | #if (_MIPS_ISA == _MIPS_ISA_MIPS1) | 168 | #if (_MIPS_ISA == _MIPS_ISA_MIPS1) |
169 | #define MOVN(rd,rs,rt) \ | 169 | #define MOVN(rd, rs, rt) \ |
170 | .set push; \ | 170 | .set push; \ |
171 | .set reorder; \ | 171 | .set reorder; \ |
172 | beqz rt,9f; \ | 172 | beqz rt, 9f; \ |
173 | move rd,rs; \ | 173 | move rd, rs; \ |
174 | .set pop; \ | 174 | .set pop; \ |
175 | 9: | 175 | 9: |
176 | #define MOVZ(rd,rs,rt) \ | 176 | #define MOVZ(rd, rs, rt) \ |
177 | .set push; \ | 177 | .set push; \ |
178 | .set reorder; \ | 178 | .set reorder; \ |
179 | bnez rt,9f; \ | 179 | bnez rt, 9f; \ |
180 | move rd,rs; \ | 180 | move rd, rs; \ |
181 | .set pop; \ | 181 | .set pop; \ |
182 | 9: | 182 | 9: |
183 | #endif /* _MIPS_ISA == _MIPS_ISA_MIPS1 */ | 183 | #endif /* _MIPS_ISA == _MIPS_ISA_MIPS1 */ |
184 | #if (_MIPS_ISA == _MIPS_ISA_MIPS2) || (_MIPS_ISA == _MIPS_ISA_MIPS3) | 184 | #if (_MIPS_ISA == _MIPS_ISA_MIPS2) || (_MIPS_ISA == _MIPS_ISA_MIPS3) |
185 | #define MOVN(rd,rs,rt) \ | 185 | #define MOVN(rd, rs, rt) \ |
186 | .set push; \ | 186 | .set push; \ |
187 | .set noreorder; \ | 187 | .set noreorder; \ |
188 | bnezl rt,9f; \ | 188 | bnezl rt, 9f; \ |
189 | move rd,rs; \ | 189 | move rd, rs; \ |
190 | .set pop; \ | 190 | .set pop; \ |
191 | 9: | 191 | 9: |
192 | #define MOVZ(rd,rs,rt) \ | 192 | #define MOVZ(rd, rs, rt) \ |
193 | .set push; \ | 193 | .set push; \ |
194 | .set noreorder; \ | 194 | .set noreorder; \ |
195 | beqzl rt,9f; \ | 195 | beqzl rt, 9f; \ |
196 | move rd,rs; \ | 196 | move rd, rs; \ |
197 | .set pop; \ | 197 | .set pop; \ |
198 | 9: | 198 | 9: |
199 | #endif /* (_MIPS_ISA == _MIPS_ISA_MIPS2) || (_MIPS_ISA == _MIPS_ISA_MIPS3) */ | 199 | #endif /* (_MIPS_ISA == _MIPS_ISA_MIPS2) || (_MIPS_ISA == _MIPS_ISA_MIPS3) */ |
200 | #if (_MIPS_ISA == _MIPS_ISA_MIPS4 ) || (_MIPS_ISA == _MIPS_ISA_MIPS5) || \ | 200 | #if (_MIPS_ISA == _MIPS_ISA_MIPS4 ) || (_MIPS_ISA == _MIPS_ISA_MIPS5) || \ |
201 | (_MIPS_ISA == _MIPS_ISA_MIPS32) || (_MIPS_ISA == _MIPS_ISA_MIPS64) | 201 | (_MIPS_ISA == _MIPS_ISA_MIPS32) || (_MIPS_ISA == _MIPS_ISA_MIPS64) |
202 | #define MOVN(rd,rs,rt) \ | 202 | #define MOVN(rd, rs, rt) \ |
203 | movn rd,rs,rt | 203 | movn rd, rs, rt |
204 | #define MOVZ(rd,rs,rt) \ | 204 | #define MOVZ(rd, rs, rt) \ |
205 | movz rd,rs,rt | 205 | movz rd, rs, rt |
206 | #endif /* MIPS IV, MIPS V, MIPS32 or MIPS64 */ | 206 | #endif /* MIPS IV, MIPS V, MIPS32 or MIPS64 */ |
207 | 207 | ||
208 | /* | 208 | /* |
@@ -396,6 +396,6 @@ symbol = value | |||
396 | #define MTC0 dmtc0 | 396 | #define MTC0 dmtc0 |
397 | #endif | 397 | #endif |
398 | 398 | ||
399 | #define SSNOP sll zero,zero,1 | 399 | #define SSNOP sll zero, zero, 1 |
400 | 400 | ||
401 | #endif /* __ASM_ASM_H */ | 401 | #endif /* __ASM_ASM_H */ |
diff --git a/include/asm-mips/asmmacro.h b/include/asm-mips/asmmacro.h index c5f20df780..7a88175580 100644 --- a/include/asm-mips/asmmacro.h +++ b/include/asm-mips/asmmacro.h | |||
@@ -56,27 +56,27 @@ | |||
56 | * Temporary until all gas have MT ASE support | 56 | * Temporary until all gas have MT ASE support |
57 | */ | 57 | */ |
58 | .macro DMT reg=0 | 58 | .macro DMT reg=0 |
59 | .word (0x41600bc1 | (\reg << 16)) | 59 | .word 0x41600bc1 | (\reg << 16) |
60 | .endm | 60 | .endm |
61 | 61 | ||
62 | .macro EMT reg=0 | 62 | .macro EMT reg=0 |
63 | .word (0x41600be1 | (\reg << 16)) | 63 | .word 0x41600be1 | (\reg << 16) |
64 | .endm | 64 | .endm |
65 | 65 | ||
66 | .macro DVPE reg=0 | 66 | .macro DVPE reg=0 |
67 | .word (0x41600001 | (\reg << 16)) | 67 | .word 0x41600001 | (\reg << 16) |
68 | .endm | 68 | .endm |
69 | 69 | ||
70 | .macro EVPE reg=0 | 70 | .macro EVPE reg=0 |
71 | .word (0x41600021 | (\reg << 16)) | 71 | .word 0x41600021 | (\reg << 16) |
72 | .endm | 72 | .endm |
73 | 73 | ||
74 | .macro MFTR rt=0, rd=0, u=0, sel=0 | 74 | .macro MFTR rt=0, rd=0, u=0, sel=0 |
75 | .word (0x41000000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel)) | 75 | .word 0x41000000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel) |
76 | .endm | 76 | .endm |
77 | 77 | ||
78 | .macro MTTR rt=0, rd=0, u=0, sel=0 | 78 | .macro MTTR rt=0, rd=0, u=0, sel=0 |
79 | .word (0x41800000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel)) | 79 | .word 0x41800000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel) |
80 | .endm | 80 | .endm |
81 | 81 | ||
82 | #endif /* _ASM_ASMMACRO_H */ | 82 | #endif /* _ASM_ASMMACRO_H */ |
diff --git a/include/asm-mips/atomic.h b/include/asm-mips/atomic.h index 7d8003769a..a798d6299a 100644 --- a/include/asm-mips/atomic.h +++ b/include/asm-mips/atomic.h | |||
@@ -39,7 +39,7 @@ typedef struct { volatile int counter; } atomic_t; | |||
39 | * | 39 | * |
40 | * Atomically sets the value of @v to @i. | 40 | * Atomically sets the value of @v to @i. |
41 | */ | 41 | */ |
42 | #define atomic_set(v,i) ((v)->counter = (i)) | 42 | #define atomic_set(v, i) ((v)->counter = (i)) |
43 | 43 | ||
44 | /* | 44 | /* |
45 | * atomic_add - add integer to atomic variable | 45 | * atomic_add - add integer to atomic variable |
@@ -335,8 +335,8 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u) | |||
335 | } | 335 | } |
336 | #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0) | 336 | #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0) |
337 | 337 | ||
338 | #define atomic_dec_return(v) atomic_sub_return(1,(v)) | 338 | #define atomic_dec_return(v) atomic_sub_return(1, (v)) |
339 | #define atomic_inc_return(v) atomic_add_return(1,(v)) | 339 | #define atomic_inc_return(v) atomic_add_return(1, (v)) |
340 | 340 | ||
341 | /* | 341 | /* |
342 | * atomic_sub_and_test - subtract value from variable and test result | 342 | * atomic_sub_and_test - subtract value from variable and test result |
@@ -347,7 +347,7 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u) | |||
347 | * true if the result is zero, or false for all | 347 | * true if the result is zero, or false for all |
348 | * other cases. | 348 | * other cases. |
349 | */ | 349 | */ |
350 | #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) | 350 | #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0) |
351 | 351 | ||
352 | /* | 352 | /* |
353 | * atomic_inc_and_test - increment and test | 353 | * atomic_inc_and_test - increment and test |
@@ -381,7 +381,7 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u) | |||
381 | * | 381 | * |
382 | * Atomically increments @v by 1. | 382 | * Atomically increments @v by 1. |
383 | */ | 383 | */ |
384 | #define atomic_inc(v) atomic_add(1,(v)) | 384 | #define atomic_inc(v) atomic_add(1, (v)) |
385 | 385 | ||
386 | /* | 386 | /* |
387 | * atomic_dec - decrement and test | 387 | * atomic_dec - decrement and test |
@@ -389,7 +389,7 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u) | |||
389 | * | 389 | * |
390 | * Atomically decrements @v by 1. | 390 | * Atomically decrements @v by 1. |
391 | */ | 391 | */ |
392 | #define atomic_dec(v) atomic_sub(1,(v)) | 392 | #define atomic_dec(v) atomic_sub(1, (v)) |
393 | 393 | ||
394 | /* | 394 | /* |
395 | * atomic_add_negative - add and test if negative | 395 | * atomic_add_negative - add and test if negative |
@@ -400,7 +400,7 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u) | |||
400 | * if the result is negative, or false when | 400 | * if the result is negative, or false when |
401 | * result is greater than or equal to zero. | 401 | * result is greater than or equal to zero. |
402 | */ | 402 | */ |
403 | #define atomic_add_negative(i,v) (atomic_add_return(i, (v)) < 0) | 403 | #define atomic_add_negative(i, v) (atomic_add_return(i, (v)) < 0) |
404 | 404 | ||
405 | #ifdef CONFIG_64BIT | 405 | #ifdef CONFIG_64BIT |
406 | 406 | ||
@@ -420,7 +420,7 @@ typedef struct { volatile long counter; } atomic64_t; | |||
420 | * @v: pointer of type atomic64_t | 420 | * @v: pointer of type atomic64_t |
421 | * @i: required value | 421 | * @i: required value |
422 | */ | 422 | */ |
423 | #define atomic64_set(v,i) ((v)->counter = (i)) | 423 | #define atomic64_set(v, i) ((v)->counter = (i)) |
424 | 424 | ||
425 | /* | 425 | /* |
426 | * atomic64_add - add integer to atomic variable | 426 | * atomic64_add - add integer to atomic variable |
@@ -718,8 +718,8 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) | |||
718 | 718 | ||
719 | #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0) | 719 | #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0) |
720 | 720 | ||
721 | #define atomic64_dec_return(v) atomic64_sub_return(1,(v)) | 721 | #define atomic64_dec_return(v) atomic64_sub_return(1, (v)) |
722 | #define atomic64_inc_return(v) atomic64_add_return(1,(v)) | 722 | #define atomic64_inc_return(v) atomic64_add_return(1, (v)) |
723 | 723 | ||
724 | /* | 724 | /* |
725 | * atomic64_sub_and_test - subtract value from variable and test result | 725 | * atomic64_sub_and_test - subtract value from variable and test result |
@@ -730,7 +730,7 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) | |||
730 | * true if the result is zero, or false for all | 730 | * true if the result is zero, or false for all |
731 | * other cases. | 731 | * other cases. |
732 | */ | 732 | */ |
733 | #define atomic64_sub_and_test(i,v) (atomic64_sub_return((i), (v)) == 0) | 733 | #define atomic64_sub_and_test(i, v) (atomic64_sub_return((i), (v)) == 0) |
734 | 734 | ||
735 | /* | 735 | /* |
736 | * atomic64_inc_and_test - increment and test | 736 | * atomic64_inc_and_test - increment and test |
@@ -764,7 +764,7 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) | |||
764 | * | 764 | * |
765 | * Atomically increments @v by 1. | 765 | * Atomically increments @v by 1. |
766 | */ | 766 | */ |
767 | #define atomic64_inc(v) atomic64_add(1,(v)) | 767 | #define atomic64_inc(v) atomic64_add(1, (v)) |
768 | 768 | ||
769 | /* | 769 | /* |
770 | * atomic64_dec - decrement and test | 770 | * atomic64_dec - decrement and test |
@@ -772,7 +772,7 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) | |||
772 | * | 772 | * |
773 | * Atomically decrements @v by 1. | 773 | * Atomically decrements @v by 1. |
774 | */ | 774 | */ |
775 | #define atomic64_dec(v) atomic64_sub(1,(v)) | 775 | #define atomic64_dec(v) atomic64_sub(1, (v)) |
776 | 776 | ||
777 | /* | 777 | /* |
778 | * atomic64_add_negative - add and test if negative | 778 | * atomic64_add_negative - add and test if negative |
@@ -783,7 +783,7 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) | |||
783 | * if the result is negative, or false when | 783 | * if the result is negative, or false when |
784 | * result is greater than or equal to zero. | 784 | * result is greater than or equal to zero. |
785 | */ | 785 | */ |
786 | #define atomic64_add_negative(i,v) (atomic64_add_return(i, (v)) < 0) | 786 | #define atomic64_add_negative(i, v) (atomic64_add_return(i, (v)) < 0) |
787 | 787 | ||
788 | #endif /* CONFIG_64BIT */ | 788 | #endif /* CONFIG_64BIT */ |
789 | 789 | ||
diff --git a/include/asm-mips/bitops.h b/include/asm-mips/bitops.h index 148bc79557..899357a72a 100644 --- a/include/asm-mips/bitops.h +++ b/include/asm-mips/bitops.h | |||
@@ -19,14 +19,14 @@ | |||
19 | #include <asm/sgidefs.h> | 19 | #include <asm/sgidefs.h> |
20 | #include <asm/war.h> | 20 | #include <asm/war.h> |
21 | 21 | ||
22 | #if (_MIPS_SZLONG == 32) | 22 | #if _MIPS_SZLONG == 32 |
23 | #define SZLONG_LOG 5 | 23 | #define SZLONG_LOG 5 |
24 | #define SZLONG_MASK 31UL | 24 | #define SZLONG_MASK 31UL |
25 | #define __LL "ll " | 25 | #define __LL "ll " |
26 | #define __SC "sc " | 26 | #define __SC "sc " |
27 | #define __INS "ins " | 27 | #define __INS "ins " |
28 | #define __EXT "ext " | 28 | #define __EXT "ext " |
29 | #elif (_MIPS_SZLONG == 64) | 29 | #elif _MIPS_SZLONG == 64 |
30 | #define SZLONG_LOG 6 | 30 | #define SZLONG_LOG 6 |
31 | #define SZLONG_MASK 63UL | 31 | #define SZLONG_MASK 63UL |
32 | #define __LL "lld " | 32 | #define __LL "lld " |
@@ -461,7 +461,7 @@ static inline int __ilog2(unsigned long x) | |||
461 | int lz; | 461 | int lz; |
462 | 462 | ||
463 | if (sizeof(x) == 4) { | 463 | if (sizeof(x) == 4) { |
464 | __asm__ ( | 464 | __asm__( |
465 | " .set push \n" | 465 | " .set push \n" |
466 | " .set mips32 \n" | 466 | " .set mips32 \n" |
467 | " clz %0, %1 \n" | 467 | " clz %0, %1 \n" |
@@ -474,7 +474,7 @@ static inline int __ilog2(unsigned long x) | |||
474 | 474 | ||
475 | BUG_ON(sizeof(x) != 8); | 475 | BUG_ON(sizeof(x) != 8); |
476 | 476 | ||
477 | __asm__ ( | 477 | __asm__( |
478 | " .set push \n" | 478 | " .set push \n" |
479 | " .set mips64 \n" | 479 | " .set mips64 \n" |
480 | " dclz %0, %1 \n" | 480 | " dclz %0, %1 \n" |
@@ -508,7 +508,7 @@ static inline unsigned long __ffs(unsigned long word) | |||
508 | */ | 508 | */ |
509 | static inline int fls(int word) | 509 | static inline int fls(int word) |
510 | { | 510 | { |
511 | __asm__ ("clz %0, %1" : "=r" (word) : "r" (word)); | 511 | __asm__("clz %0, %1" : "=r" (word) : "r" (word)); |
512 | 512 | ||
513 | return 32 - word; | 513 | return 32 - word; |
514 | } | 514 | } |
@@ -516,7 +516,7 @@ static inline int fls(int word) | |||
516 | #if defined(CONFIG_64BIT) && defined(CONFIG_CPU_MIPS64) | 516 | #if defined(CONFIG_64BIT) && defined(CONFIG_CPU_MIPS64) |
517 | static inline int fls64(__u64 word) | 517 | static inline int fls64(__u64 word) |
518 | { | 518 | { |
519 | __asm__ ("dclz %0, %1" : "=r" (word) : "r" (word)); | 519 | __asm__("dclz %0, %1" : "=r" (word) : "r" (word)); |
520 | 520 | ||
521 | return 64 - word; | 521 | return 64 - word; |
522 | } | 522 | } |
diff --git a/include/asm-mips/bootinfo.h b/include/asm-mips/bootinfo.h index c0f052b37b..b2dd9b33de 100644 --- a/include/asm-mips/bootinfo.h +++ b/include/asm-mips/bootinfo.h | |||
@@ -15,21 +15,19 @@ | |||
15 | #include <asm/setup.h> | 15 | #include <asm/setup.h> |
16 | 16 | ||
17 | /* | 17 | /* |
18 | * The MACH_GROUP_ IDs are the equivalent to PCI vendor IDs; the remaining | 18 | * The MACH_ IDs are sort of equivalent to PCI product IDs. As such the |
19 | * MACH_ values equivalent to product IDs. As such the numbers do not | 19 | * numbers do not necessarily reflect technical relations or similarities |
20 | * necessarily reflect technical relations or similarities between systems. | 20 | * between systems. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | /* | 23 | /* |
24 | * Valid machtype values for group unknown | 24 | * Valid machtype values for group unknown |
25 | */ | 25 | */ |
26 | #define MACH_GROUP_UNKNOWN 0 /* whatever... */ | ||
27 | #define MACH_UNKNOWN 0 /* whatever... */ | 26 | #define MACH_UNKNOWN 0 /* whatever... */ |
28 | 27 | ||
29 | /* | 28 | /* |
30 | * Valid machtype values for group JAZZ | 29 | * Valid machtype values for group JAZZ |
31 | */ | 30 | */ |
32 | #define MACH_GROUP_JAZZ 1 /* Jazz */ | ||
33 | #define MACH_ACER_PICA_61 0 /* Acer PICA-61 (PICA1) */ | 31 | #define MACH_ACER_PICA_61 0 /* Acer PICA-61 (PICA1) */ |
34 | #define MACH_MIPS_MAGNUM_4000 1 /* Mips Magnum 4000 "RC4030" */ | 32 | #define MACH_MIPS_MAGNUM_4000 1 /* Mips Magnum 4000 "RC4030" */ |
35 | #define MACH_OLIVETTI_M700 2 /* Olivetti M700-10 (-15 ??) */ | 33 | #define MACH_OLIVETTI_M700 2 /* Olivetti M700-10 (-15 ??) */ |
@@ -37,7 +35,6 @@ | |||
37 | /* | 35 | /* |
38 | * Valid machtype for group DEC | 36 | * Valid machtype for group DEC |
39 | */ | 37 | */ |
40 | #define MACH_GROUP_DEC 2 /* Digital Equipment */ | ||
41 | #define MACH_DSUNKNOWN 0 | 38 | #define MACH_DSUNKNOWN 0 |
42 | #define MACH_DS23100 1 /* DECstation 2100 or 3100 */ | 39 | #define MACH_DS23100 1 /* DECstation 2100 or 3100 */ |
43 | #define MACH_DS5100 2 /* DECsystem 5100 */ | 40 | #define MACH_DS5100 2 /* DECsystem 5100 */ |
@@ -53,26 +50,22 @@ | |||
53 | /* | 50 | /* |
54 | * Valid machtype for group ARC | 51 | * Valid machtype for group ARC |
55 | */ | 52 | */ |
56 | #define MACH_GROUP_ARC 3 /* Deskstation */ | ||
57 | #define MACH_DESKSTATION_RPC44 0 /* Deskstation rPC44 */ | 53 | #define MACH_DESKSTATION_RPC44 0 /* Deskstation rPC44 */ |
58 | #define MACH_DESKSTATION_TYNE 1 /* Deskstation Tyne */ | 54 | #define MACH_DESKSTATION_TYNE 1 /* Deskstation Tyne */ |
59 | 55 | ||
60 | /* | 56 | /* |
61 | * Valid machtype for group SNI_RM | 57 | * Valid machtype for group SNI_RM |
62 | */ | 58 | */ |
63 | #define MACH_GROUP_SNI_RM 4 /* Siemens Nixdorf RM series */ | ||
64 | #define MACH_SNI_RM200_PCI 0 /* RM200/RM300/RM400 PCI series */ | 59 | #define MACH_SNI_RM200_PCI 0 /* RM200/RM300/RM400 PCI series */ |
65 | 60 | ||
66 | /* | 61 | /* |
67 | * Valid machtype for group ACN | 62 | * Valid machtype for group ACN |
68 | */ | 63 | */ |
69 | #define MACH_GROUP_ACN 5 | ||
70 | #define MACH_ACN_MIPS_BOARD 0 /* ACN MIPS single board */ | 64 | #define MACH_ACN_MIPS_BOARD 0 /* ACN MIPS single board */ |
71 | 65 | ||
72 | /* | 66 | /* |
73 | * Valid machtype for group SGI | 67 | * Valid machtype for group SGI |
74 | */ | 68 | */ |
75 | #define MACH_GROUP_SGI 6 /* Silicon Graphics */ | ||
76 | #define MACH_SGI_IP22 0 /* Indy, Indigo2, Challenge S */ | 69 | #define MACH_SGI_IP22 0 /* Indy, Indigo2, Challenge S */ |
77 | #define MACH_SGI_IP27 1 /* Origin 200, Origin 2000, Onyx 2 */ | 70 | #define MACH_SGI_IP27 1 /* Origin 200, Origin 2000, Onyx 2 */ |
78 | #define MACH_SGI_IP28 2 /* Indigo2 Impact */ | 71 | #define MACH_SGI_IP28 2 /* Indigo2 Impact */ |
@@ -82,26 +75,22 @@ | |||
82 | /* | 75 | /* |
83 | * Valid machtype for group COBALT | 76 | * Valid machtype for group COBALT |
84 | */ | 77 | */ |
85 | #define MACH_GROUP_COBALT 7 /* Cobalt servers */ | ||
86 | #define MACH_COBALT_27 0 /* Proto "27" hardware */ | 78 | #define MACH_COBALT_27 0 /* Proto "27" hardware */ |
87 | 79 | ||
88 | /* | 80 | /* |
89 | * Valid machtype for group BAGET | 81 | * Valid machtype for group BAGET |
90 | */ | 82 | */ |
91 | #define MACH_GROUP_BAGET 9 /* Baget */ | ||
92 | #define MACH_BAGET201 0 /* BT23-201 */ | 83 | #define MACH_BAGET201 0 /* BT23-201 */ |
93 | #define MACH_BAGET202 1 /* BT23-202 */ | 84 | #define MACH_BAGET202 1 /* BT23-202 */ |
94 | 85 | ||
95 | /* | 86 | /* |
96 | * Cosine boards. | 87 | * Cosine boards. |
97 | */ | 88 | */ |
98 | #define MACH_GROUP_COSINE 10 /* CoSine Orion */ | ||
99 | #define MACH_COSINE_ORION 0 | 89 | #define MACH_COSINE_ORION 0 |
100 | 90 | ||
101 | /* | 91 | /* |
102 | * Valid machtype for group MOMENCO | 92 | * Valid machtype for group MOMENCO |
103 | */ | 93 | */ |
104 | #define MACH_GROUP_MOMENCO 12 /* Momentum Boards */ | ||
105 | #define MACH_MOMENCO_OCELOT 0 | 94 | #define MACH_MOMENCO_OCELOT 0 |
106 | #define MACH_MOMENCO_OCELOT_G 1 /* no more supported (may 2007) */ | 95 | #define MACH_MOMENCO_OCELOT_G 1 /* no more supported (may 2007) */ |
107 | #define MACH_MOMENCO_OCELOT_C 2 /* no more supported (jun 2007) */ | 96 | #define MACH_MOMENCO_OCELOT_C 2 /* no more supported (jun 2007) */ |
@@ -111,7 +100,6 @@ | |||
111 | /* | 100 | /* |
112 | * Valid machtype for group PHILIPS | 101 | * Valid machtype for group PHILIPS |
113 | */ | 102 | */ |
114 | #define MACH_GROUP_PHILIPS 14 | ||
115 | #define MACH_PHILIPS_NINO 0 /* Nino */ | 103 | #define MACH_PHILIPS_NINO 0 /* Nino */ |
116 | #define MACH_PHILIPS_VELO 1 /* Velo */ | 104 | #define MACH_PHILIPS_VELO 1 /* Velo */ |
117 | #define MACH_PHILIPS_JBS 2 /* JBS */ | 105 | #define MACH_PHILIPS_JBS 2 /* JBS */ |
@@ -120,13 +108,11 @@ | |||
120 | /* | 108 | /* |
121 | * Valid machtype for group SIBYTE | 109 | * Valid machtype for group SIBYTE |
122 | */ | 110 | */ |
123 | #define MACH_GROUP_SIBYTE 16 /* Sibyte / Broadcom */ | ||
124 | #define MACH_SWARM 0 | 111 | #define MACH_SWARM 0 |
125 | 112 | ||
126 | /* | 113 | /* |
127 | * Valid machtypes for group Toshiba | 114 | * Valid machtypes for group Toshiba |
128 | */ | 115 | */ |
129 | #define MACH_GROUP_TOSHIBA 17 /* Toshiba Reference Systems TSBREF */ | ||
130 | #define MACH_PALLAS 0 | 116 | #define MACH_PALLAS 0 |
131 | #define MACH_TOPAS 1 | 117 | #define MACH_TOPAS 1 |
132 | #define MACH_JMR 2 | 118 | #define MACH_JMR 2 |
@@ -138,7 +124,6 @@ | |||
138 | /* | 124 | /* |
139 | * Valid machtype for group Alchemy | 125 | * Valid machtype for group Alchemy |
140 | */ | 126 | */ |
141 | #define MACH_GROUP_ALCHEMY 18 /* AMD Alchemy */ | ||
142 | #define MACH_PB1000 0 /* Au1000-based eval board */ | 127 | #define MACH_PB1000 0 /* Au1000-based eval board */ |
143 | #define MACH_PB1100 1 /* Au1100-based eval board */ | 128 | #define MACH_PB1100 1 /* Au1100-based eval board */ |
144 | #define MACH_PB1500 2 /* Au1500-based eval board */ | 129 | #define MACH_PB1500 2 /* Au1500-based eval board */ |
@@ -160,7 +145,6 @@ | |||
160 | * FIXME: MACH_GROUPs should be by _MANUFACTURER_ of * the device, not by | 145 | * FIXME: MACH_GROUPs should be by _MANUFACTURER_ of * the device, not by |
161 | * technical properties, so no new additions to this group. | 146 | * technical properties, so no new additions to this group. |
162 | */ | 147 | */ |
163 | #define MACH_GROUP_NEC_VR41XX 19 | ||
164 | #define MACH_NEC_OSPREY 0 /* Osprey eval board */ | 148 | #define MACH_NEC_OSPREY 0 /* Osprey eval board */ |
165 | #define MACH_NEC_EAGLE 1 /* NEC Eagle/Hawk board */ | 149 | #define MACH_NEC_EAGLE 1 /* NEC Eagle/Hawk board */ |
166 | #define MACH_ZAO_CAPCELLA 2 /* ZAO Networks Capcella */ | 150 | #define MACH_ZAO_CAPCELLA 2 /* ZAO Networks Capcella */ |
@@ -171,32 +155,33 @@ | |||
171 | #define MACH_TANBAC_TB0229 7 /* TANBAC TB0229 (VR4131DIMM) */ | 155 | #define MACH_TANBAC_TB0229 7 /* TANBAC TB0229 (VR4131DIMM) */ |
172 | #define MACH_NEC_CMBVR4133 8 /* CMB VR4133 Board */ | 156 | #define MACH_NEC_CMBVR4133 8 /* CMB VR4133 Board */ |
173 | 157 | ||
174 | #define MACH_GROUP_HP_LJ 20 /* Hewlett Packard LaserJet */ | ||
175 | #define MACH_HP_LASERJET 1 | 158 | #define MACH_HP_LASERJET 1 |
176 | 159 | ||
177 | /* | 160 | /* |
161 | * Valid machtype for group LASAT | ||
162 | */ | ||
163 | #define MACH_LASAT_100 0 /* Masquerade II/SP100/SP50/SP25 */ | ||
164 | #define MACH_LASAT_200 1 /* Masquerade PRO/SP200 */ | ||
165 | |||
166 | /* | ||
178 | * Valid machtype for group TITAN | 167 | * Valid machtype for group TITAN |
179 | */ | 168 | */ |
180 | #define MACH_GROUP_TITAN 22 /* PMC-Sierra Titan */ | ||
181 | #define MACH_TITAN_YOSEMITE 1 /* PMC-Sierra Yosemite */ | 169 | #define MACH_TITAN_YOSEMITE 1 /* PMC-Sierra Yosemite */ |
182 | #define MACH_TITAN_EXCITE 2 /* Basler eXcite */ | 170 | #define MACH_TITAN_EXCITE 2 /* Basler eXcite */ |
183 | 171 | ||
184 | /* | 172 | /* |
185 | * Valid machtype for group NEC EMMA2RH | 173 | * Valid machtype for group NEC EMMA2RH |
186 | */ | 174 | */ |
187 | #define MACH_GROUP_NEC_EMMA2RH 25 /* NEC EMMA2RH (was 23) */ | ||
188 | #define MACH_NEC_MARKEINS 0 /* NEC EMMA2RH Mark-eins */ | 175 | #define MACH_NEC_MARKEINS 0 /* NEC EMMA2RH Mark-eins */ |
189 | 176 | ||
190 | /* | 177 | /* |
191 | * Valid machtype for group LEMOTE | 178 | * Valid machtype for group LEMOTE |
192 | */ | 179 | */ |
193 | #define MACH_GROUP_LEMOTE 27 | ||
194 | #define MACH_LEMOTE_FULONG 0 | 180 | #define MACH_LEMOTE_FULONG 0 |
195 | 181 | ||
196 | /* | 182 | /* |
197 | * Valid machtype for group PMC-MSP | 183 | * Valid machtype for group PMC-MSP |
198 | */ | 184 | */ |
199 | #define MACH_GROUP_MSP 26 /* PMC-Sierra MSP boards/CPUs */ | ||
200 | #define MACH_MSP4200_EVAL 0 /* PMC-Sierra MSP4200 Evaluation */ | 185 | #define MACH_MSP4200_EVAL 0 /* PMC-Sierra MSP4200 Evaluation */ |
201 | #define MACH_MSP4200_GW 1 /* PMC-Sierra MSP4200 Gateway demo */ | 186 | #define MACH_MSP4200_GW 1 /* PMC-Sierra MSP4200 Gateway demo */ |
202 | #define MACH_MSP4200_FPGA 2 /* PMC-Sierra MSP4200 Emulation */ | 187 | #define MACH_MSP4200_FPGA 2 /* PMC-Sierra MSP4200 Emulation */ |
@@ -205,15 +190,19 @@ | |||
205 | #define MACH_MSP7120_FPGA 5 /* PMC-Sierra MSP7120 Emulation */ | 190 | #define MACH_MSP7120_FPGA 5 /* PMC-Sierra MSP7120 Emulation */ |
206 | #define MACH_MSP_OTHER 255 /* PMC-Sierra unknown board type */ | 191 | #define MACH_MSP_OTHER 255 /* PMC-Sierra unknown board type */ |
207 | 192 | ||
208 | #define MACH_GROUP_WINDRIVER 28 /* Windriver boards */ | ||
209 | #define MACH_WRPPMC 1 | 193 | #define MACH_WRPPMC 1 |
210 | 194 | ||
195 | /* | ||
196 | * Valid machtype for group Broadcom | ||
197 | */ | ||
198 | #define MACH_GROUP_BRCM 23 /* Broadcom */ | ||
199 | #define MACH_BCM47XX 1 /* Broadcom BCM47XX */ | ||
200 | |||
211 | #define CL_SIZE COMMAND_LINE_SIZE | 201 | #define CL_SIZE COMMAND_LINE_SIZE |
212 | 202 | ||
213 | const char *get_system_type(void); | 203 | const char *get_system_type(void); |
214 | 204 | ||
215 | extern unsigned long mips_machtype; | 205 | extern unsigned long mips_machtype; |
216 | extern unsigned long mips_machgroup; | ||
217 | 206 | ||
218 | #define BOOT_MEM_MAP_MAX 32 | 207 | #define BOOT_MEM_MAP_MAX 32 |
219 | #define BOOT_MEM_RAM 1 | 208 | #define BOOT_MEM_RAM 1 |
diff --git a/include/asm-mips/byteorder.h b/include/asm-mips/byteorder.h index eee83cbdf2..fe7dc2d59b 100644 --- a/include/asm-mips/byteorder.h +++ b/include/asm-mips/byteorder.h | |||
@@ -65,9 +65,9 @@ static __inline__ __attribute_const__ __u64 ___arch__swab64(__u64 x) | |||
65 | 65 | ||
66 | #endif /* __GNUC__ */ | 66 | #endif /* __GNUC__ */ |
67 | 67 | ||
68 | #if defined (__MIPSEB__) | 68 | #if defined(__MIPSEB__) |
69 | # include <linux/byteorder/big_endian.h> | 69 | # include <linux/byteorder/big_endian.h> |
70 | #elif defined (__MIPSEL__) | 70 | #elif defined(__MIPSEL__) |
71 | # include <linux/byteorder/little_endian.h> | 71 | # include <linux/byteorder/little_endian.h> |
72 | #else | 72 | #else |
73 | # error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???" | 73 | # error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???" |
diff --git a/include/asm-mips/cmpxchg.h b/include/asm-mips/cmpxchg.h index c5b4708e00..a5ec0e5dc5 100644 --- a/include/asm-mips/cmpxchg.h +++ b/include/asm-mips/cmpxchg.h | |||
@@ -72,7 +72,7 @@ | |||
72 | */ | 72 | */ |
73 | extern void __cmpxchg_called_with_bad_pointer(void); | 73 | extern void __cmpxchg_called_with_bad_pointer(void); |
74 | 74 | ||
75 | #define __cmpxchg(ptr,old,new,barrier) \ | 75 | #define __cmpxchg(ptr, old, new, barrier) \ |
76 | ({ \ | 76 | ({ \ |
77 | __typeof__(ptr) __ptr = (ptr); \ | 77 | __typeof__(ptr) __ptr = (ptr); \ |
78 | __typeof__(*(ptr)) __old = (old); \ | 78 | __typeof__(*(ptr)) __old = (old); \ |
@@ -102,6 +102,6 @@ extern void __cmpxchg_called_with_bad_pointer(void); | |||
102 | }) | 102 | }) |
103 | 103 | ||
104 | #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_llsc_mb()) | 104 | #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_llsc_mb()) |
105 | #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new,) | 105 | #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new, ) |
106 | 106 | ||
107 | #endif /* __ASM_CMPXCHG_H */ | 107 | #endif /* __ASM_CMPXCHG_H */ |
diff --git a/include/asm-mips/cpu-features.h b/include/asm-mips/cpu-features.h index d95a83e3e1..f6bd308f04 100644 --- a/include/asm-mips/cpu-features.h +++ b/include/asm-mips/cpu-features.h | |||
@@ -9,11 +9,14 @@ | |||
9 | #ifndef __ASM_CPU_FEATURES_H | 9 | #ifndef __ASM_CPU_FEATURES_H |
10 | #define __ASM_CPU_FEATURES_H | 10 | #define __ASM_CPU_FEATURES_H |
11 | 11 | ||
12 | |||
13 | #include <asm/cpu.h> | 12 | #include <asm/cpu.h> |
14 | #include <asm/cpu-info.h> | 13 | #include <asm/cpu-info.h> |
15 | #include <cpu-feature-overrides.h> | 14 | #include <cpu-feature-overrides.h> |
16 | 15 | ||
16 | #ifndef current_cpu_type | ||
17 | #define current_cpu_type() current_cpu_data.cputype | ||
18 | #endif | ||
19 | |||
17 | /* | 20 | /* |
18 | * SMP assumption: Options of CPU 0 are a superset of all processors. | 21 | * SMP assumption: Options of CPU 0 are a superset of all processors. |
19 | * This is true for all known MIPS systems. | 22 | * This is true for all known MIPS systems. |
@@ -35,9 +38,6 @@ | |||
35 | #ifndef cpu_has_tx39_cache | 38 | #ifndef cpu_has_tx39_cache |
36 | #define cpu_has_tx39_cache (cpu_data[0].options & MIPS_CPU_TX39_CACHE) | 39 | #define cpu_has_tx39_cache (cpu_data[0].options & MIPS_CPU_TX39_CACHE) |
37 | #endif | 40 | #endif |
38 | #ifndef cpu_has_sb1_cache | ||
39 | #define cpu_has_sb1_cache (cpu_data[0].options & MIPS_CPU_SB1_CACHE) | ||
40 | #endif | ||
41 | #ifndef cpu_has_fpu | 41 | #ifndef cpu_has_fpu |
42 | #define cpu_has_fpu (current_cpu_data.options & MIPS_CPU_FPU) | 42 | #define cpu_has_fpu (current_cpu_data.options & MIPS_CPU_FPU) |
43 | #define raw_cpu_has_fpu (raw_current_cpu_data.options & MIPS_CPU_FPU) | 43 | #define raw_cpu_has_fpu (raw_current_cpu_data.options & MIPS_CPU_FPU) |
diff --git a/include/asm-mips/cpu-info.h b/include/asm-mips/cpu-info.h index 22fe8453fc..94f1c81723 100644 --- a/include/asm-mips/cpu-info.h +++ b/include/asm-mips/cpu-info.h | |||
@@ -14,10 +14,6 @@ | |||
14 | 14 | ||
15 | #include <asm/cache.h> | 15 | #include <asm/cache.h> |
16 | 16 | ||
17 | #ifdef CONFIG_SGI_IP27 | ||
18 | #include <asm/sn/types.h> | ||
19 | #endif | ||
20 | |||
21 | /* | 17 | /* |
22 | * Descriptor for a cache | 18 | * Descriptor for a cache |
23 | */ | 19 | */ |
@@ -43,20 +39,6 @@ struct cache_desc { | |||
43 | struct cpuinfo_mips { | 39 | struct cpuinfo_mips { |
44 | unsigned long udelay_val; | 40 | unsigned long udelay_val; |
45 | unsigned long asid_cache; | 41 | unsigned long asid_cache; |
46 | #if defined(CONFIG_SGI_IP27) | ||
47 | // cpuid_t p_cpuid; /* PROM assigned cpuid */ | ||
48 | cnodeid_t p_nodeid; /* my node ID in compact-id-space */ | ||
49 | nasid_t p_nasid; /* my node ID in numa-as-id-space */ | ||
50 | unsigned char p_slice; /* Physical position on node board */ | ||
51 | #endif | ||
52 | #if 0 | ||
53 | unsigned long loops_per_sec; | ||
54 | unsigned long ipi_count; | ||
55 | unsigned long irq_attempt[NR_IRQS]; | ||
56 | unsigned long smp_local_irq_count; | ||
57 | unsigned long prof_multiplier; | ||
58 | unsigned long prof_counter; | ||
59 | #endif | ||
60 | 42 | ||
61 | /* | 43 | /* |
62 | * Capability and feature descriptor structure for MIPS CPU | 44 | * Capability and feature descriptor structure for MIPS CPU |
@@ -92,4 +74,7 @@ extern struct cpuinfo_mips cpu_data[]; | |||
92 | extern void cpu_probe(void); | 74 | extern void cpu_probe(void); |
93 | extern void cpu_report(void); | 75 | extern void cpu_report(void); |
94 | 76 | ||
77 | extern const char *__cpu_name[]; | ||
78 | #define cpu_name_string() __cpu_name[smp_processor_id()] | ||
79 | |||
95 | #endif /* __ASM_CPU_INFO_H */ | 80 | #endif /* __ASM_CPU_INFO_H */ |
diff --git a/include/asm-mips/cpu.h b/include/asm-mips/cpu.h index 3857358fb6..54fc18a4e5 100644 --- a/include/asm-mips/cpu.h +++ b/include/asm-mips/cpu.h | |||
@@ -106,6 +106,13 @@ | |||
106 | #define PRID_IMP_SR71000 0x0400 | 106 | #define PRID_IMP_SR71000 0x0400 |
107 | 107 | ||
108 | /* | 108 | /* |
109 | * These are the PRID's for when 23:16 == PRID_COMP_BROADCOM | ||
110 | */ | ||
111 | |||
112 | #define PRID_IMP_BCM4710 0x4000 | ||
113 | #define PRID_IMP_BCM3302 0x9000 | ||
114 | |||
115 | /* | ||
109 | * Definitions for 7:0 on legacy processors | 116 | * Definitions for 7:0 on legacy processors |
110 | */ | 117 | */ |
111 | 118 | ||
@@ -150,75 +157,55 @@ | |||
150 | 157 | ||
151 | #define FPIR_IMP_NONE 0x0000 | 158 | #define FPIR_IMP_NONE 0x0000 |
152 | 159 | ||
153 | #define CPU_UNKNOWN 0 | 160 | enum cpu_type_enum { |
154 | #define CPU_R2000 1 | 161 | CPU_UNKNOWN, |
155 | #define CPU_R3000 2 | 162 | |
156 | #define CPU_R3000A 3 | 163 | /* |
157 | #define CPU_R3041 4 | 164 | * R2000 class processors |
158 | #define CPU_R3051 5 | 165 | */ |
159 | #define CPU_R3052 6 | 166 | CPU_R2000, CPU_R3000, CPU_R3000A, CPU_R3041, CPU_R3051, CPU_R3052, |
160 | #define CPU_R3081 7 | 167 | CPU_R3081, CPU_R3081E, |
161 | #define CPU_R3081E 8 | 168 | |
162 | #define CPU_R4000PC 9 | 169 | /* |
163 | #define CPU_R4000SC 10 | 170 | * R6000 class processors |
164 | #define CPU_R4000MC 11 | 171 | */ |
165 | #define CPU_R4200 12 | 172 | CPU_R6000, CPU_R6000A, |
166 | #define CPU_R4400PC 13 | 173 | |
167 | #define CPU_R4400SC 14 | 174 | /* |
168 | #define CPU_R4400MC 15 | 175 | * R4000 class processors |
169 | #define CPU_R4600 16 | 176 | */ |
170 | #define CPU_R6000 17 | 177 | CPU_R4000PC, CPU_R4000SC, CPU_R4000MC, CPU_R4200, CPU_R4300, CPU_R4310, |
171 | #define CPU_R6000A 18 | 178 | CPU_R4400PC, CPU_R4400SC, CPU_R4400MC, CPU_R4600, CPU_R4640, CPU_R4650, |
172 | #define CPU_R8000 19 | 179 | CPU_R4700, CPU_R5000, CPU_R5000A, CPU_R5500, CPU_NEVADA, CPU_R5432, |
173 | #define CPU_R10000 20 | 180 | CPU_R10000, CPU_R12000, CPU_R14000, CPU_VR41XX, CPU_VR4111, CPU_VR4121, |
174 | #define CPU_R12000 21 | 181 | CPU_VR4122, CPU_VR4131, CPU_VR4133, CPU_VR4181, CPU_VR4181A, CPU_RM7000, |
175 | #define CPU_R4300 22 | 182 | CPU_SR71000, CPU_RM9000, CPU_TX49XX, |
176 | #define CPU_R4650 23 | 183 | |
177 | #define CPU_R4700 24 | 184 | /* |
178 | #define CPU_R5000 25 | 185 | * R8000 class processors |
179 | #define CPU_R5000A 26 | 186 | */ |
180 | #define CPU_R4640 27 | 187 | CPU_R8000, |
181 | #define CPU_NEVADA 28 | 188 | |
182 | #define CPU_RM7000 29 | 189 | /* |
183 | #define CPU_R5432 30 | 190 | * TX3900 class processors |
184 | #define CPU_4KC 31 | 191 | */ |
185 | #define CPU_5KC 32 | 192 | CPU_TX3912, CPU_TX3922, CPU_TX3927, |
186 | #define CPU_R4310 33 | 193 | |
187 | #define CPU_SB1 34 | 194 | /* |
188 | #define CPU_TX3912 35 | 195 | * MIPS32 class processors |
189 | #define CPU_TX3922 36 | 196 | */ |
190 | #define CPU_TX3927 37 | 197 | CPU_4KC, CPU_4KEC, CPU_4KSC, CPU_24K, CPU_34K, CPU_74K, CPU_AU1000, |
191 | #define CPU_AU1000 38 | 198 | CPU_AU1100, CPU_AU1200, CPU_AU1500, CPU_AU1550, CPU_PR4450, |
192 | #define CPU_4KEC 39 | 199 | CPU_BCM3302, CPU_BCM4710, |
193 | #define CPU_4KSC 40 | 200 | |
194 | #define CPU_VR41XX 41 | 201 | /* |
195 | #define CPU_R5500 42 | 202 | * MIPS64 class processors |
196 | #define CPU_TX49XX 43 | 203 | */ |
197 | #define CPU_AU1500 44 | 204 | CPU_5KC, CPU_20KC, CPU_25KF, CPU_SB1, CPU_SB1A, CPU_LOONGSON2, |
198 | #define CPU_20KC 45 | 205 | |
199 | #define CPU_VR4111 46 | 206 | CPU_LAST |
200 | #define CPU_VR4121 47 | 207 | }; |
201 | #define CPU_VR4122 48 | 208 | |
202 | #define CPU_VR4131 49 | ||
203 | #define CPU_VR4181 50 | ||
204 | #define CPU_VR4181A 51 | ||
205 | #define CPU_AU1100 52 | ||
206 | #define CPU_SR71000 53 | ||
207 | #define CPU_RM9000 54 | ||
208 | #define CPU_25KF 55 | ||
209 | #define CPU_VR4133 56 | ||
210 | #define CPU_AU1550 57 | ||
211 | #define CPU_24K 58 | ||
212 | #define CPU_AU1200 59 | ||
213 | #define CPU_34K 60 | ||
214 | #define CPU_PR4450 61 | ||
215 | #define CPU_SB1A 62 | ||
216 | #define CPU_74K 63 | ||
217 | #define CPU_R14000 64 | ||
218 | #define CPU_LOONGSON1 65 | ||
219 | #define CPU_LOONGSON2 66 | ||
220 | |||
221 | #define CPU_LAST 66 | ||
222 | 209 | ||
223 | /* | 210 | /* |
224 | * ISA Level encodings | 211 | * ISA Level encodings |
@@ -247,24 +234,23 @@ | |||
247 | #define MIPS_CPU_3K_CACHE 0x00000004 /* R3000-style caches */ | 234 | #define MIPS_CPU_3K_CACHE 0x00000004 /* R3000-style caches */ |
248 | #define MIPS_CPU_4K_CACHE 0x00000008 /* R4000-style caches */ | 235 | #define MIPS_CPU_4K_CACHE 0x00000008 /* R4000-style caches */ |
249 | #define MIPS_CPU_TX39_CACHE 0x00000010 /* TX3900-style caches */ | 236 | #define MIPS_CPU_TX39_CACHE 0x00000010 /* TX3900-style caches */ |
250 | #define MIPS_CPU_SB1_CACHE 0x00000020 /* SB1-style caches */ | 237 | #define MIPS_CPU_FPU 0x00000020 /* CPU has FPU */ |
251 | #define MIPS_CPU_FPU 0x00000040 /* CPU has FPU */ | 238 | #define MIPS_CPU_32FPR 0x00000040 /* 32 dbl. prec. FP registers */ |
252 | #define MIPS_CPU_32FPR 0x00000080 /* 32 dbl. prec. FP registers */ | 239 | #define MIPS_CPU_COUNTER 0x00000080 /* Cycle count/compare */ |
253 | #define MIPS_CPU_COUNTER 0x00000100 /* Cycle count/compare */ | 240 | #define MIPS_CPU_WATCH 0x00000100 /* watchpoint registers */ |
254 | #define MIPS_CPU_WATCH 0x00000200 /* watchpoint registers */ | 241 | #define MIPS_CPU_DIVEC 0x00000200 /* dedicated interrupt vector */ |
255 | #define MIPS_CPU_DIVEC 0x00000400 /* dedicated interrupt vector */ | 242 | #define MIPS_CPU_VCE 0x00000400 /* virt. coherence conflict possible */ |
256 | #define MIPS_CPU_VCE 0x00000800 /* virt. coherence conflict possible */ | 243 | #define MIPS_CPU_CACHE_CDEX_P 0x00000800 /* Create_Dirty_Exclusive CACHE op */ |
257 | #define MIPS_CPU_CACHE_CDEX_P 0x00001000 /* Create_Dirty_Exclusive CACHE op */ | 244 | #define MIPS_CPU_CACHE_CDEX_S 0x00001000 /* ... same for seconary cache ... */ |
258 | #define MIPS_CPU_CACHE_CDEX_S 0x00002000 /* ... same for seconary cache ... */ | 245 | #define MIPS_CPU_MCHECK 0x00002000 /* Machine check exception */ |
259 | #define MIPS_CPU_MCHECK 0x00004000 /* Machine check exception */ | 246 | #define MIPS_CPU_EJTAG 0x00004000 /* EJTAG exception */ |
260 | #define MIPS_CPU_EJTAG 0x00008000 /* EJTAG exception */ | 247 | #define MIPS_CPU_NOFPUEX 0x00008000 /* no FPU exception */ |
261 | #define MIPS_CPU_NOFPUEX 0x00010000 /* no FPU exception */ | 248 | #define MIPS_CPU_LLSC 0x00010000 /* CPU has ll/sc instructions */ |
262 | #define MIPS_CPU_LLSC 0x00020000 /* CPU has ll/sc instructions */ | 249 | #define MIPS_CPU_INCLUSIVE_CACHES 0x00020000 /* P-cache subset enforced */ |
263 | #define MIPS_CPU_INCLUSIVE_CACHES 0x00040000 /* P-cache subset enforced */ | 250 | #define MIPS_CPU_PREFETCH 0x00040000 /* CPU has usable prefetch */ |
264 | #define MIPS_CPU_PREFETCH 0x00080000 /* CPU has usable prefetch */ | 251 | #define MIPS_CPU_VINT 0x00080000 /* CPU supports MIPSR2 vectored interrupts */ |
265 | #define MIPS_CPU_VINT 0x00100000 /* CPU supports MIPSR2 vectored interrupts */ | 252 | #define MIPS_CPU_VEIC 0x00100000 /* CPU supports MIPSR2 external interrupt controller mode */ |
266 | #define MIPS_CPU_VEIC 0x00200000 /* CPU supports MIPSR2 external interrupt controller mode */ | 253 | #define MIPS_CPU_ULRI 0x00200000 /* CPU has ULRI feature */ |
267 | #define MIPS_CPU_ULRI 0x00400000 /* CPU has ULRI feature */ | ||
268 | 254 | ||
269 | /* | 255 | /* |
270 | * CPU ASE encodings | 256 | * CPU ASE encodings |
diff --git a/include/asm-mips/delay.h b/include/asm-mips/delay.h index 223d156efb..fab32131e9 100644 --- a/include/asm-mips/delay.h +++ b/include/asm-mips/delay.h | |||
@@ -81,7 +81,7 @@ static inline void __udelay(unsigned long usecs, unsigned long lpj) | |||
81 | 81 | ||
82 | #define __udelay_val cpu_data[raw_smp_processor_id()].udelay_val | 82 | #define __udelay_val cpu_data[raw_smp_processor_id()].udelay_val |
83 | 83 | ||
84 | #define udelay(usecs) __udelay((usecs),__udelay_val) | 84 | #define udelay(usecs) __udelay((usecs), __udelay_val) |
85 | 85 | ||
86 | /* make sure "usecs *= ..." in udelay do not overflow. */ | 86 | /* make sure "usecs *= ..." in udelay do not overflow. */ |
87 | #if HZ >= 1000 | 87 | #if HZ >= 1000 |
diff --git a/include/asm-mips/elf.h b/include/asm-mips/elf.h index e7d95d4817..766f91ad5c 100644 --- a/include/asm-mips/elf.h +++ b/include/asm-mips/elf.h | |||
@@ -319,7 +319,7 @@ do { \ | |||
319 | struct task_struct; | 319 | struct task_struct; |
320 | 320 | ||
321 | extern void elf_dump_regs(elf_greg_t *, struct pt_regs *regs); | 321 | extern void elf_dump_regs(elf_greg_t *, struct pt_regs *regs); |
322 | extern int dump_task_regs (struct task_struct *, elf_gregset_t *); | 322 | extern int dump_task_regs(struct task_struct *, elf_gregset_t *); |
323 | extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *); | 323 | extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *); |
324 | 324 | ||
325 | #define ELF_CORE_COPY_REGS(elf_regs, regs) \ | 325 | #define ELF_CORE_COPY_REGS(elf_regs, regs) \ |
diff --git a/include/asm-mips/fixmap.h b/include/asm-mips/fixmap.h index 02c8a13fc8..f27b96cfac 100644 --- a/include/asm-mips/fixmap.h +++ b/include/asm-mips/fixmap.h | |||
@@ -60,8 +60,8 @@ enum fixed_addresses { | |||
60 | __end_of_fixed_addresses | 60 | __end_of_fixed_addresses |
61 | }; | 61 | }; |
62 | 62 | ||
63 | extern void __set_fixmap (enum fixed_addresses idx, | 63 | extern void __set_fixmap(enum fixed_addresses idx, |
64 | unsigned long phys, pgprot_t flags); | 64 | unsigned long phys, pgprot_t flags); |
65 | 65 | ||
66 | #define set_fixmap(idx, phys) \ | 66 | #define set_fixmap(idx, phys) \ |
67 | __set_fixmap(idx, phys, PAGE_KERNEL) | 67 | __set_fixmap(idx, phys, PAGE_KERNEL) |
diff --git a/include/asm-mips/floppy.h b/include/asm-mips/floppy.h index aa1ef8b352..a62d0990c8 100644 --- a/include/asm-mips/floppy.h +++ b/include/asm-mips/floppy.h | |||
@@ -10,9 +10,11 @@ | |||
10 | #ifndef _ASM_FLOPPY_H | 10 | #ifndef _ASM_FLOPPY_H |
11 | #define _ASM_FLOPPY_H | 11 | #define _ASM_FLOPPY_H |
12 | 12 | ||
13 | #include <linux/dma-mapping.h> | ||
14 | |||
13 | static inline void fd_cacheflush(char * addr, long size) | 15 | static inline void fd_cacheflush(char * addr, long size) |
14 | { | 16 | { |
15 | dma_cache_wback_inv((unsigned long)addr,size); | 17 | dma_cache_sync(NULL, addr, size, DMA_BIDIRECTIONAL); |
16 | } | 18 | } |
17 | 19 | ||
18 | #define MAX_BUFFER_SECTORS 24 | 20 | #define MAX_BUFFER_SECTORS 24 |
@@ -47,7 +49,7 @@ static inline void fd_cacheflush(char * addr, long size) | |||
47 | * Actually this needs to be a bit more complicated since the so much different | 49 | * Actually this needs to be a bit more complicated since the so much different |
48 | * hardware available with MIPS CPUs ... | 50 | * hardware available with MIPS CPUs ... |
49 | */ | 51 | */ |
50 | #define CROSS_64KB(a,s) ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64) | 52 | #define CROSS_64KB(a, s) ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64) |
51 | 53 | ||
52 | #define EXTRA_FLOPPY_PARAMS | 54 | #define EXTRA_FLOPPY_PARAMS |
53 | 55 | ||
diff --git a/include/asm-mips/futex.h b/include/asm-mips/futex.h index b623882bce..3e7e30d4f4 100644 --- a/include/asm-mips/futex.h +++ b/include/asm-mips/futex.h | |||
@@ -75,7 +75,7 @@ | |||
75 | } | 75 | } |
76 | 76 | ||
77 | static inline int | 77 | static inline int |
78 | futex_atomic_op_inuser (int encoded_op, int __user *uaddr) | 78 | futex_atomic_op_inuser(int encoded_op, int __user *uaddr) |
79 | { | 79 | { |
80 | int op = (encoded_op >> 28) & 7; | 80 | int op = (encoded_op >> 28) & 7; |
81 | int cmp = (encoded_op >> 24) & 15; | 81 | int cmp = (encoded_op >> 24) & 15; |
diff --git a/include/asm-mips/arc/hinv.h b/include/asm-mips/fw/arc/hinv.h index ee792bf040..e6ff4add04 100644 --- a/include/asm-mips/arc/hinv.h +++ b/include/asm-mips/fw/arc/hinv.h | |||
@@ -4,7 +4,8 @@ | |||
4 | #ifndef _ASM_ARC_HINV_H | 4 | #ifndef _ASM_ARC_HINV_H |
5 | #define _ASM_ARC_HINV_H | 5 | #define _ASM_ARC_HINV_H |
6 | 6 | ||
7 | #include <asm/arc/types.h> | 7 | #include <asm/sgidefs.h> |
8 | #include <asm/fw/arc/types.h> | ||
8 | 9 | ||
9 | /* configuration query defines */ | 10 | /* configuration query defines */ |
10 | typedef enum configclass { | 11 | typedef enum configclass { |
@@ -110,7 +111,7 @@ union key_u { | |||
110 | ULONG FullKey; | 111 | ULONG FullKey; |
111 | }; | 112 | }; |
112 | 113 | ||
113 | #if _MIPS_SIM == _ABI64 | 114 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
114 | #define SGI_ARCS_VERS 64 /* sgi 64-bit version */ | 115 | #define SGI_ARCS_VERS 64 /* sgi 64-bit version */ |
115 | #define SGI_ARCS_REV 0 /* rev .00 */ | 116 | #define SGI_ARCS_REV 0 /* rev .00 */ |
116 | #else | 117 | #else |
diff --git a/include/asm-mips/arc/types.h b/include/asm-mips/fw/arc/types.h index b9adcd6f08..b9adcd6f08 100644 --- a/include/asm-mips/arc/types.h +++ b/include/asm-mips/fw/arc/types.h | |||
diff --git a/include/asm-mips/fw/cfe/cfe_api.h b/include/asm-mips/fw/cfe/cfe_api.h new file mode 100644 index 0000000000..41cf050b68 --- /dev/null +++ b/include/asm-mips/fw/cfe/cfe_api.h | |||
@@ -0,0 +1,185 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2000, 2001, 2002 Broadcom Corporation | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version 2 | ||
7 | * of the License, or (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
17 | */ | ||
18 | |||
19 | /* ********************************************************************* | ||
20 | * | ||
21 | * Broadcom Common Firmware Environment (CFE) | ||
22 | * | ||
23 | * Device function prototypes File: cfe_api.h | ||
24 | * | ||
25 | * This file contains declarations for doing callbacks to | ||
26 | * cfe from an application. It should be the only header | ||
27 | * needed by the application to use this library | ||
28 | * | ||
29 | * Authors: Mitch Lichtenberg, Chris Demetriou | ||
30 | * | ||
31 | ********************************************************************* */ | ||
32 | |||
33 | #ifndef CFE_API_H | ||
34 | #define CFE_API_H | ||
35 | |||
36 | /* | ||
37 | * Apply customizations here for different OSes. These need to: | ||
38 | * * typedef uint64_t, int64_t, intptr_t, uintptr_t. | ||
39 | * * define cfe_strlen() if use of an existing function is desired. | ||
40 | * * define CFE_API_IMPL_NAMESPACE if API functions are to use | ||
41 | * names in the implementation namespace. | ||
42 | * Also, optionally, if the build environment does not do so automatically, | ||
43 | * CFE_API_* can be defined here as desired. | ||
44 | */ | ||
45 | /* Begin customization. */ | ||
46 | #include <linux/types.h> | ||
47 | #include <linux/string.h> | ||
48 | |||
49 | typedef long intptr_t; | ||
50 | |||
51 | #define cfe_strlen strlen | ||
52 | |||
53 | #define CFE_API_ALL | ||
54 | #define CFE_API_STRLEN_CUSTOM | ||
55 | /* End customization. */ | ||
56 | |||
57 | |||
58 | /* ********************************************************************* | ||
59 | * Constants | ||
60 | ********************************************************************* */ | ||
61 | |||
62 | /* Seal indicating CFE's presence, passed to user program. */ | ||
63 | #define CFE_EPTSEAL 0x43464531 | ||
64 | |||
65 | #define CFE_MI_RESERVED 0 /* memory is reserved, do not use */ | ||
66 | #define CFE_MI_AVAILABLE 1 /* memory is available */ | ||
67 | |||
68 | #define CFE_FLG_WARMSTART 0x00000001 | ||
69 | #define CFE_FLG_FULL_ARENA 0x00000001 | ||
70 | #define CFE_FLG_ENV_PERMANENT 0x00000001 | ||
71 | |||
72 | #define CFE_CPU_CMD_START 1 | ||
73 | #define CFE_CPU_CMD_STOP 0 | ||
74 | |||
75 | #define CFE_STDHANDLE_CONSOLE 0 | ||
76 | |||
77 | #define CFE_DEV_NETWORK 1 | ||
78 | #define CFE_DEV_DISK 2 | ||
79 | #define CFE_DEV_FLASH 3 | ||
80 | #define CFE_DEV_SERIAL 4 | ||
81 | #define CFE_DEV_CPU 5 | ||
82 | #define CFE_DEV_NVRAM 6 | ||
83 | #define CFE_DEV_CLOCK 7 | ||
84 | #define CFE_DEV_OTHER 8 | ||
85 | #define CFE_DEV_MASK 0x0F | ||
86 | |||
87 | #define CFE_CACHE_FLUSH_D 1 | ||
88 | #define CFE_CACHE_INVAL_I 2 | ||
89 | #define CFE_CACHE_INVAL_D 4 | ||
90 | #define CFE_CACHE_INVAL_L2 8 | ||
91 | |||
92 | #define CFE_FWI_64BIT 0x00000001 | ||
93 | #define CFE_FWI_32BIT 0x00000002 | ||
94 | #define CFE_FWI_RELOC 0x00000004 | ||
95 | #define CFE_FWI_UNCACHED 0x00000008 | ||
96 | #define CFE_FWI_MULTICPU 0x00000010 | ||
97 | #define CFE_FWI_FUNCSIM 0x00000020 | ||
98 | #define CFE_FWI_RTLSIM 0x00000040 | ||
99 | |||
100 | typedef struct { | ||
101 | int64_t fwi_version; /* major, minor, eco version */ | ||
102 | int64_t fwi_totalmem; /* total installed mem */ | ||
103 | int64_t fwi_flags; /* various flags */ | ||
104 | int64_t fwi_boardid; /* board ID */ | ||
105 | int64_t fwi_bootarea_va; /* VA of boot area */ | ||
106 | int64_t fwi_bootarea_pa; /* PA of boot area */ | ||
107 | int64_t fwi_bootarea_size; /* size of boot area */ | ||
108 | } cfe_fwinfo_t; | ||
109 | |||
110 | |||
111 | /* | ||
112 | * cfe_strlen is handled specially: If already defined, it has been | ||
113 | * overridden in this environment with a standard strlen-like function. | ||
114 | */ | ||
115 | #ifdef cfe_strlen | ||
116 | # define CFE_API_STRLEN_CUSTOM | ||
117 | #else | ||
118 | # ifdef CFE_API_IMPL_NAMESPACE | ||
119 | # define cfe_strlen(a) __cfe_strlen(a) | ||
120 | # endif | ||
121 | int cfe_strlen(char *name); | ||
122 | #endif | ||
123 | |||
124 | /* | ||
125 | * Defines and prototypes for functions which take no arguments. | ||
126 | */ | ||
127 | #ifdef CFE_API_IMPL_NAMESPACE | ||
128 | int64_t __cfe_getticks(void); | ||
129 | #define cfe_getticks() __cfe_getticks() | ||
130 | #else | ||
131 | int64_t cfe_getticks(void); | ||
132 | #endif | ||
133 | |||
134 | /* | ||
135 | * Defines and prototypes for the rest of the functions. | ||
136 | */ | ||
137 | #ifdef CFE_API_IMPL_NAMESPACE | ||
138 | #define cfe_close(a) __cfe_close(a) | ||
139 | #define cfe_cpu_start(a, b, c, d, e) __cfe_cpu_start(a, b, c, d, e) | ||
140 | #define cfe_cpu_stop(a) __cfe_cpu_stop(a) | ||
141 | #define cfe_enumenv(a, b, d, e, f) __cfe_enumenv(a, b, d, e, f) | ||
142 | #define cfe_enummem(a, b, c, d, e) __cfe_enummem(a, b, c, d, e) | ||
143 | #define cfe_exit(a, b) __cfe_exit(a, b) | ||
144 | #define cfe_flushcache(a) __cfe_cacheflush(a) | ||
145 | #define cfe_getdevinfo(a) __cfe_getdevinfo(a) | ||
146 | #define cfe_getenv(a, b, c) __cfe_getenv(a, b, c) | ||
147 | #define cfe_getfwinfo(a) __cfe_getfwinfo(a) | ||
148 | #define cfe_getstdhandle(a) __cfe_getstdhandle(a) | ||
149 | #define cfe_init(a, b) __cfe_init(a, b) | ||
150 | #define cfe_inpstat(a) __cfe_inpstat(a) | ||
151 | #define cfe_ioctl(a, b, c, d, e, f) __cfe_ioctl(a, b, c, d, e, f) | ||
152 | #define cfe_open(a) __cfe_open(a) | ||
153 | #define cfe_read(a, b, c) __cfe_read(a, b, c) | ||
154 | #define cfe_readblk(a, b, c, d) __cfe_readblk(a, b, c, d) | ||
155 | #define cfe_setenv(a, b) __cfe_setenv(a, b) | ||
156 | #define cfe_write(a, b, c) __cfe_write(a, b, c) | ||
157 | #define cfe_writeblk(a, b, c, d __cfe_writeblk(a, b, c, d) | ||
158 | #endif /* CFE_API_IMPL_NAMESPACE */ | ||
159 | |||
160 | int cfe_close(int handle); | ||
161 | int cfe_cpu_start(int cpu, void (*fn) (void), long sp, long gp, long a1); | ||
162 | int cfe_cpu_stop(int cpu); | ||
163 | int cfe_enumenv(int idx, char *name, int namelen, char *val, int vallen); | ||
164 | int cfe_enummem(int idx, int flags, uint64_t * start, uint64_t * length, | ||
165 | uint64_t * type); | ||
166 | int cfe_exit(int warm, int status); | ||
167 | int cfe_flushcache(int flg); | ||
168 | int cfe_getdevinfo(char *name); | ||
169 | int cfe_getenv(char *name, char *dest, int destlen); | ||
170 | int cfe_getfwinfo(cfe_fwinfo_t * info); | ||
171 | int cfe_getstdhandle(int flg); | ||
172 | int cfe_init(uint64_t handle, uint64_t ept); | ||
173 | int cfe_inpstat(int handle); | ||
174 | int cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer, | ||
175 | int length, int *retlen, uint64_t offset); | ||
176 | int cfe_open(char *name); | ||
177 | int cfe_read(int handle, unsigned char *buffer, int length); | ||
178 | int cfe_readblk(int handle, int64_t offset, unsigned char *buffer, | ||
179 | int length); | ||
180 | int cfe_setenv(char *name, char *val); | ||
181 | int cfe_write(int handle, unsigned char *buffer, int length); | ||
182 | int cfe_writeblk(int handle, int64_t offset, unsigned char *buffer, | ||
183 | int length); | ||
184 | |||
185 | #endif /* CFE_API_H */ | ||
diff --git a/include/asm-mips/fw/cfe/cfe_error.h b/include/asm-mips/fw/cfe/cfe_error.h new file mode 100644 index 0000000000..975f00002c --- /dev/null +++ b/include/asm-mips/fw/cfe/cfe_error.h | |||
@@ -0,0 +1,85 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2000, 2001, 2002 Broadcom Corporation | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version 2 | ||
7 | * of the License, or (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
17 | */ | ||
18 | |||
19 | /* ********************************************************************* | ||
20 | * | ||
21 | * Broadcom Common Firmware Environment (CFE) | ||
22 | * | ||
23 | * Error codes File: cfe_error.h | ||
24 | * | ||
25 | * CFE's global error code list is here. | ||
26 | * | ||
27 | * Author: Mitch Lichtenberg | ||
28 | * | ||
29 | ********************************************************************* */ | ||
30 | |||
31 | |||
32 | #define CFE_OK 0 | ||
33 | #define CFE_ERR -1 /* generic error */ | ||
34 | #define CFE_ERR_INV_COMMAND -2 | ||
35 | #define CFE_ERR_EOF -3 | ||
36 | #define CFE_ERR_IOERR -4 | ||
37 | #define CFE_ERR_NOMEM -5 | ||
38 | #define CFE_ERR_DEVNOTFOUND -6 | ||
39 | #define CFE_ERR_DEVOPEN -7 | ||
40 | #define CFE_ERR_INV_PARAM -8 | ||
41 | #define CFE_ERR_ENVNOTFOUND -9 | ||
42 | #define CFE_ERR_ENVREADONLY -10 | ||
43 | |||
44 | #define CFE_ERR_NOTELF -11 | ||
45 | #define CFE_ERR_NOT32BIT -12 | ||
46 | #define CFE_ERR_WRONGENDIAN -13 | ||
47 | #define CFE_ERR_BADELFVERS -14 | ||
48 | #define CFE_ERR_NOTMIPS -15 | ||
49 | #define CFE_ERR_BADELFFMT -16 | ||
50 | #define CFE_ERR_BADADDR -17 | ||
51 | |||
52 | #define CFE_ERR_FILENOTFOUND -18 | ||
53 | #define CFE_ERR_UNSUPPORTED -19 | ||
54 | |||
55 | #define CFE_ERR_HOSTUNKNOWN -20 | ||
56 | |||
57 | #define CFE_ERR_TIMEOUT -21 | ||
58 | |||
59 | #define CFE_ERR_PROTOCOLERR -22 | ||
60 | |||
61 | #define CFE_ERR_NETDOWN -23 | ||
62 | #define CFE_ERR_NONAMESERVER -24 | ||
63 | |||
64 | #define CFE_ERR_NOHANDLES -25 | ||
65 | #define CFE_ERR_ALREADYBOUND -26 | ||
66 | |||
67 | #define CFE_ERR_CANNOTSET -27 | ||
68 | #define CFE_ERR_NOMORE -28 | ||
69 | #define CFE_ERR_BADFILESYS -29 | ||
70 | #define CFE_ERR_FSNOTAVAIL -30 | ||
71 | |||
72 | #define CFE_ERR_INVBOOTBLOCK -31 | ||
73 | #define CFE_ERR_WRONGDEVTYPE -32 | ||
74 | #define CFE_ERR_BBCHECKSUM -33 | ||
75 | #define CFE_ERR_BOOTPROGCHKSUM -34 | ||
76 | |||
77 | #define CFE_ERR_LDRNOTAVAIL -35 | ||
78 | |||
79 | #define CFE_ERR_NOTREADY -36 | ||
80 | |||
81 | #define CFE_ERR_GETMEM -37 | ||
82 | #define CFE_ERR_SETMEM -38 | ||
83 | |||
84 | #define CFE_ERR_NOTCONN -39 | ||
85 | #define CFE_ERR_ADDRINUSE -40 | ||
diff --git a/include/asm-mips/hazards.h b/include/asm-mips/hazards.h index 6a5fa32f61..2de638f84c 100644 --- a/include/asm-mips/hazards.h +++ b/include/asm-mips/hazards.h | |||
@@ -10,11 +10,12 @@ | |||
10 | #ifndef _ASM_HAZARDS_H | 10 | #ifndef _ASM_HAZARDS_H |
11 | #define _ASM_HAZARDS_H | 11 | #define _ASM_HAZARDS_H |
12 | 12 | ||
13 | |||
14 | #ifdef __ASSEMBLY__ | 13 | #ifdef __ASSEMBLY__ |
15 | #define ASMMACRO(name, code...) .macro name; code; .endm | 14 | #define ASMMACRO(name, code...) .macro name; code; .endm |
16 | #else | 15 | #else |
17 | 16 | ||
17 | #include <asm/cpu-features.h> | ||
18 | |||
18 | #define ASMMACRO(name, code...) \ | 19 | #define ASMMACRO(name, code...) \ |
19 | __asm__(".macro " #name "; " #code "; .endm"); \ | 20 | __asm__(".macro " #name "; " #code "; .endm"); \ |
20 | \ | 21 | \ |
@@ -86,6 +87,57 @@ do { \ | |||
86 | : "=r" (tmp)); \ | 87 | : "=r" (tmp)); \ |
87 | } while (0) | 88 | } while (0) |
88 | 89 | ||
90 | #elif defined(CONFIG_CPU_MIPSR1) | ||
91 | |||
92 | /* | ||
93 | * These are slightly complicated by the fact that we guarantee R1 kernels to | ||
94 | * run fine on R2 processors. | ||
95 | */ | ||
96 | ASMMACRO(mtc0_tlbw_hazard, | ||
97 | _ssnop; _ssnop; _ehb | ||
98 | ) | ||
99 | ASMMACRO(tlbw_use_hazard, | ||
100 | _ssnop; _ssnop; _ssnop; _ehb | ||
101 | ) | ||
102 | ASMMACRO(tlb_probe_hazard, | ||
103 | _ssnop; _ssnop; _ssnop; _ehb | ||
104 | ) | ||
105 | ASMMACRO(irq_enable_hazard, | ||
106 | _ssnop; _ssnop; _ssnop; _ehb | ||
107 | ) | ||
108 | ASMMACRO(irq_disable_hazard, | ||
109 | _ssnop; _ssnop; _ssnop; _ehb | ||
110 | ) | ||
111 | ASMMACRO(back_to_back_c0_hazard, | ||
112 | _ssnop; _ssnop; _ssnop; _ehb | ||
113 | ) | ||
114 | /* | ||
115 | * gcc has a tradition of misscompiling the previous construct using the | ||
116 | * address of a label as argument to inline assembler. Gas otoh has the | ||
117 | * annoying difference between la and dla which are only usable for 32-bit | ||
118 | * rsp. 64-bit code, so can't be used without conditional compilation. | ||
119 | * The alterantive is switching the assembler to 64-bit code which happens | ||
120 | * to work right even for 32-bit code ... | ||
121 | */ | ||
122 | #define __instruction_hazard() \ | ||
123 | do { \ | ||
124 | unsigned long tmp; \ | ||
125 | \ | ||
126 | __asm__ __volatile__( \ | ||
127 | " .set mips64r2 \n" \ | ||
128 | " dla %0, 1f \n" \ | ||
129 | " jr.hb %0 \n" \ | ||
130 | " .set mips0 \n" \ | ||
131 | "1: \n" \ | ||
132 | : "=r" (tmp)); \ | ||
133 | } while (0) | ||
134 | |||
135 | #define instruction_hazard() \ | ||
136 | do { \ | ||
137 | if (cpu_has_mips_r2) \ | ||
138 | __instruction_hazard(); \ | ||
139 | } while (0) | ||
140 | |||
89 | #elif defined(CONFIG_CPU_R10000) | 141 | #elif defined(CONFIG_CPU_R10000) |
90 | 142 | ||
91 | /* | 143 | /* |
@@ -193,7 +245,7 @@ ASMMACRO(enable_fpu_hazard, | |||
193 | .set mips64; | 245 | .set mips64; |
194 | .set noreorder; | 246 | .set noreorder; |
195 | _ssnop; | 247 | _ssnop; |
196 | bnezl $0,.+4; | 248 | bnezl $0, .+4; |
197 | _ssnop; | 249 | _ssnop; |
198 | .set pop | 250 | .set pop |
199 | ) | 251 | ) |
diff --git a/include/asm-mips/hw_irq.h b/include/asm-mips/hw_irq.h index 458d9fdc76..aca05a43a9 100644 --- a/include/asm-mips/hw_irq.h +++ b/include/asm-mips/hw_irq.h | |||
@@ -8,15 +8,8 @@ | |||
8 | #ifndef __ASM_HW_IRQ_H | 8 | #ifndef __ASM_HW_IRQ_H |
9 | #define __ASM_HW_IRQ_H | 9 | #define __ASM_HW_IRQ_H |
10 | 10 | ||
11 | #include <linux/profile.h> | ||
12 | #include <asm/atomic.h> | 11 | #include <asm/atomic.h> |
13 | 12 | ||
14 | extern void disable_8259A_irq(unsigned int irq); | ||
15 | extern void enable_8259A_irq(unsigned int irq); | ||
16 | extern int i8259A_irq_pending(unsigned int irq); | ||
17 | extern void make_8259A_irq(unsigned int irq); | ||
18 | extern void init_8259A(int aeoi); | ||
19 | |||
20 | extern atomic_t irq_err_count; | 13 | extern atomic_t irq_err_count; |
21 | 14 | ||
22 | /* | 15 | /* |
diff --git a/include/asm-mips/i8253.h b/include/asm-mips/i8253.h new file mode 100644 index 0000000000..8f689d7df6 --- /dev/null +++ b/include/asm-mips/i8253.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * Machine specific IO port address definition for generic. | ||
3 | * Written by Osamu Tomita <tomita@cinet.co.jp> | ||
4 | */ | ||
5 | #ifndef _MACH_IO_PORTS_H | ||
6 | #define _MACH_IO_PORTS_H | ||
7 | |||
8 | /* i8253A PIT registers */ | ||
9 | #define PIT_MODE 0x43 | ||
10 | #define PIT_CH0 0x40 | ||
11 | #define PIT_CH2 0x42 | ||
12 | |||
13 | /* i8259A PIC registers */ | ||
14 | #define PIC_MASTER_CMD 0x20 | ||
15 | #define PIC_MASTER_IMR 0x21 | ||
16 | #define PIC_MASTER_ISR PIC_MASTER_CMD | ||
17 | #define PIC_MASTER_POLL PIC_MASTER_ISR | ||
18 | #define PIC_MASTER_OCW3 PIC_MASTER_ISR | ||
19 | #define PIC_SLAVE_CMD 0xa0 | ||
20 | #define PIC_SLAVE_IMR 0xa1 | ||
21 | |||
22 | /* i8259A PIC related value */ | ||
23 | #define PIC_CASCADE_IR 2 | ||
24 | #define MASTER_ICW4_DEFAULT 0x01 | ||
25 | #define SLAVE_ICW4_DEFAULT 0x01 | ||
26 | #define PIC_ICW4_AEOI 2 | ||
27 | |||
28 | extern void setup_pit_timer(void); | ||
29 | |||
30 | #endif /* !_MACH_IO_PORTS_H */ | ||
diff --git a/include/asm-mips/i8259.h b/include/asm-mips/i8259.h index e88a01607f..8572a2d904 100644 --- a/include/asm-mips/i8259.h +++ b/include/asm-mips/i8259.h | |||
@@ -37,9 +37,8 @@ | |||
37 | 37 | ||
38 | extern spinlock_t i8259A_lock; | 38 | extern spinlock_t i8259A_lock; |
39 | 39 | ||
40 | extern void init_8259A(int auto_eoi); | 40 | extern int i8259A_irq_pending(unsigned int irq); |
41 | extern void enable_8259A_irq(unsigned int irq); | 41 | extern void make_8259A_irq(unsigned int irq); |
42 | extern void disable_8259A_irq(unsigned int irq); | ||
43 | 42 | ||
44 | extern void init_i8259_irqs(void); | 43 | extern void init_i8259_irqs(void); |
45 | 44 | ||
diff --git a/include/asm-mips/inventory.h b/include/asm-mips/inventory.h index 92d90f75a6..cc88aed23f 100644 --- a/include/asm-mips/inventory.h +++ b/include/asm-mips/inventory.h | |||
@@ -17,8 +17,8 @@ typedef struct inventory_s { | |||
17 | 17 | ||
18 | extern int inventory_items; | 18 | extern int inventory_items; |
19 | 19 | ||
20 | extern void add_to_inventory (int class, int type, int controller, int unit, int state); | 20 | extern void add_to_inventory(int class, int type, int controller, int unit, int state); |
21 | extern int dump_inventory_to_user (void __user *userbuf, int size); | 21 | extern int dump_inventory_to_user(void __user *userbuf, int size); |
22 | extern int __init init_inventory(void); | 22 | extern int __init init_inventory(void); |
23 | 23 | ||
24 | #endif /* __ASM_INVENTORY_H */ | 24 | #endif /* __ASM_INVENTORY_H */ |
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h index 7ba92890ea..2cd8323c85 100644 --- a/include/asm-mips/io.h +++ b/include/asm-mips/io.h | |||
@@ -40,11 +40,11 @@ | |||
40 | * hardware. An example use would be for flash memory that's used for | 40 | * hardware. An example use would be for flash memory that's used for |
41 | * execute in place. | 41 | * execute in place. |
42 | */ | 42 | */ |
43 | # define __raw_ioswabb(a,x) (x) | 43 | # define __raw_ioswabb(a, x) (x) |
44 | # define __raw_ioswabw(a,x) (x) | 44 | # define __raw_ioswabw(a, x) (x) |
45 | # define __raw_ioswabl(a,x) (x) | 45 | # define __raw_ioswabl(a, x) (x) |
46 | # define __raw_ioswabq(a,x) (x) | 46 | # define __raw_ioswabq(a, x) (x) |
47 | # define ____raw_ioswabq(a,x) (x) | 47 | # define ____raw_ioswabq(a, x) (x) |
48 | 48 | ||
49 | /* ioswab[bwlq], __mem_ioswab[bwlq] are defined in mangle-port.h */ | 49 | /* ioswab[bwlq], __mem_ioswab[bwlq] are defined in mangle-port.h */ |
50 | 50 | ||
@@ -561,9 +561,9 @@ extern void (*_dma_cache_wback_inv)(unsigned long start, unsigned long size); | |||
561 | extern void (*_dma_cache_wback)(unsigned long start, unsigned long size); | 561 | extern void (*_dma_cache_wback)(unsigned long start, unsigned long size); |
562 | extern void (*_dma_cache_inv)(unsigned long start, unsigned long size); | 562 | extern void (*_dma_cache_inv)(unsigned long start, unsigned long size); |
563 | 563 | ||
564 | #define dma_cache_wback_inv(start, size) _dma_cache_wback_inv(start,size) | 564 | #define dma_cache_wback_inv(start, size) _dma_cache_wback_inv(start, size) |
565 | #define dma_cache_wback(start, size) _dma_cache_wback(start,size) | 565 | #define dma_cache_wback(start, size) _dma_cache_wback(start, size) |
566 | #define dma_cache_inv(start, size) _dma_cache_inv(start,size) | 566 | #define dma_cache_inv(start, size) _dma_cache_inv(start, size) |
567 | 567 | ||
568 | #else /* Sane hardware */ | 568 | #else /* Sane hardware */ |
569 | 569 | ||
@@ -587,7 +587,7 @@ extern void (*_dma_cache_inv)(unsigned long start, unsigned long size); | |||
587 | #define __CSR_32_ADJUST 0 | 587 | #define __CSR_32_ADJUST 0 |
588 | #endif | 588 | #endif |
589 | 589 | ||
590 | #define csr_out32(v,a) (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST) = (v)) | 590 | #define csr_out32(v, a) (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST) = (v)) |
591 | #define csr_in32(a) (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST)) | 591 | #define csr_in32(a) (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST)) |
592 | 592 | ||
593 | /* | 593 | /* |
diff --git a/include/asm-mips/ioctl.h b/include/asm-mips/ioctl.h index 2036fcb9f1..85067e248a 100644 --- a/include/asm-mips/ioctl.h +++ b/include/asm-mips/ioctl.h | |||
@@ -54,7 +54,7 @@ | |||
54 | #define _IOC_IN 0x80000000 | 54 | #define _IOC_IN 0x80000000 |
55 | #define _IOC_INOUT (IOC_IN|IOC_OUT) | 55 | #define _IOC_INOUT (IOC_IN|IOC_OUT) |
56 | 56 | ||
57 | #define _IOC(dir,type,nr,size) \ | 57 | #define _IOC(dir, type, nr, size) \ |
58 | (((dir) << _IOC_DIRSHIFT) | \ | 58 | (((dir) << _IOC_DIRSHIFT) | \ |
59 | ((type) << _IOC_TYPESHIFT) | \ | 59 | ((type) << _IOC_TYPESHIFT) | \ |
60 | ((nr) << _IOC_NRSHIFT) | \ | 60 | ((nr) << _IOC_NRSHIFT) | \ |
@@ -68,13 +68,13 @@ extern unsigned int __invalid_size_argument_for_IOC; | |||
68 | sizeof(t) : __invalid_size_argument_for_IOC) | 68 | sizeof(t) : __invalid_size_argument_for_IOC) |
69 | 69 | ||
70 | /* used to create numbers */ | 70 | /* used to create numbers */ |
71 | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) | 71 | #define _IO(type, nr) _IOC(_IOC_NONE, (type), (nr), 0) |
72 | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) | 72 | #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) |
73 | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) | 73 | #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) |
74 | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) | 74 | #define _IOWR(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) |
75 | #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) | 75 | #define _IOR_BAD(type, nr, size) _IOC(_IOC_READ, (type), (nr), sizeof(size)) |
76 | #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) | 76 | #define _IOW_BAD(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), sizeof(size)) |
77 | #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) | 77 | #define _IOWR_BAD(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), sizeof(size)) |
78 | 78 | ||
79 | 79 | ||
80 | /* used to decode them.. */ | 80 | /* used to decode them.. */ |
diff --git a/include/asm-mips/ioctls.h b/include/asm-mips/ioctls.h index 5097cbf183..3f04a995ec 100644 --- a/include/asm-mips/ioctls.h +++ b/include/asm-mips/ioctls.h | |||
@@ -77,12 +77,12 @@ | |||
77 | #define TIOCSBRK 0x5427 /* BSD compatibility */ | 77 | #define TIOCSBRK 0x5427 /* BSD compatibility */ |
78 | #define TIOCCBRK 0x5428 /* BSD compatibility */ | 78 | #define TIOCCBRK 0x5428 /* BSD compatibility */ |
79 | #define TIOCGSID 0x7416 /* Return the session ID of FD */ | 79 | #define TIOCGSID 0x7416 /* Return the session ID of FD */ |
80 | #define TCGETS2 _IOR('T',0x2A, struct termios2) | 80 | #define TCGETS2 _IOR('T', 0x2A, struct termios2) |
81 | #define TCSETS2 _IOW('T',0x2B, struct termios2) | 81 | #define TCSETS2 _IOW('T', 0x2B, struct termios2) |
82 | #define TCSETSW2 _IOW('T',0x2C, struct termios2) | 82 | #define TCSETSW2 _IOW('T', 0x2C, struct termios2) |
83 | #define TCSETSF2 _IOW('T',0x2D, struct termios2) | 83 | #define TCSETSF2 _IOW('T', 0x2D, struct termios2) |
84 | #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ | 84 | #define TIOCGPTN _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ |
85 | #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ | 85 | #define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */ |
86 | 86 | ||
87 | /* I hope the range from 0x5480 on is free ... */ | 87 | /* I hope the range from 0x5480 on is free ... */ |
88 | #define TIOCSCTTY 0x5480 /* become controlling tty */ | 88 | #define TIOCSCTTY 0x5480 /* become controlling tty */ |
diff --git a/include/asm-mips/ip32/machine.h b/include/asm-mips/ip32/machine.h deleted file mode 100644 index 1b631b8da6..0000000000 --- a/include/asm-mips/ip32/machine.h +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | /* | ||
2 | * machine.h -- Machine/group probing for ip32 | ||
3 | * | ||
4 | * Copyright (C) 2001 Keith M Wesolowski | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file COPYING in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | #ifndef _ASM_IP32_MACHINE_H | ||
11 | #define _ASM_IP32_MACHINE_H | ||
12 | |||
13 | |||
14 | #ifdef CONFIG_SGI_IP32 | ||
15 | |||
16 | #define SGI_MACH_O2 0x3201 | ||
17 | |||
18 | #endif /* CONFIG_SGI_IP32 */ | ||
19 | |||
20 | #endif /* _ASM_SGI_MACHINE_H */ | ||
diff --git a/include/asm-mips/irq.h b/include/asm-mips/irq.h index 2cb52cf8bd..a58f0eecc6 100644 --- a/include/asm-mips/irq.h +++ b/include/asm-mips/irq.h | |||
@@ -46,6 +46,38 @@ static inline void smtc_im_ack_irq(unsigned int irq) | |||
46 | 46 | ||
47 | #endif /* CONFIG_MIPS_MT_SMTC */ | 47 | #endif /* CONFIG_MIPS_MT_SMTC */ |
48 | 48 | ||
49 | #ifdef CONFIG_MIPS_MT_SMTC_IRQAFF | ||
50 | #include <linux/cpumask.h> | ||
51 | |||
52 | extern void plat_set_irq_affinity(unsigned int irq, cpumask_t affinity); | ||
53 | extern void smtc_forward_irq(unsigned int irq); | ||
54 | |||
55 | /* | ||
56 | * IRQ affinity hook invoked at the beginning of interrupt dispatch | ||
57 | * if option is enabled. | ||
58 | * | ||
59 | * Up through Linux 2.6.22 (at least) cpumask operations are very | ||
60 | * inefficient on MIPS. Initial prototypes of SMTC IRQ affinity | ||
61 | * used a "fast path" per-IRQ-descriptor cache of affinity information | ||
62 | * to reduce latency. As there is a project afoot to optimize the | ||
63 | * cpumask implementations, this version is optimistically assuming | ||
64 | * that cpumask.h macro overhead is reasonable during interrupt dispatch. | ||
65 | */ | ||
66 | #define IRQ_AFFINITY_HOOK(irq) \ | ||
67 | do { \ | ||
68 | if (!cpu_isset(smp_processor_id(), irq_desc[irq].affinity)) { \ | ||
69 | smtc_forward_irq(irq); \ | ||
70 | irq_exit(); \ | ||
71 | return; \ | ||
72 | } \ | ||
73 | } while (0) | ||
74 | |||
75 | #else /* Not doing SMTC affinity */ | ||
76 | |||
77 | #define IRQ_AFFINITY_HOOK(irq) do { } while (0) | ||
78 | |||
79 | #endif /* CONFIG_MIPS_MT_SMTC_IRQAFF */ | ||
80 | |||
49 | #ifdef CONFIG_MIPS_MT_SMTC_IM_BACKSTOP | 81 | #ifdef CONFIG_MIPS_MT_SMTC_IM_BACKSTOP |
50 | 82 | ||
51 | /* | 83 | /* |
@@ -56,13 +88,27 @@ static inline void smtc_im_ack_irq(unsigned int irq) | |||
56 | */ | 88 | */ |
57 | #define __DO_IRQ_SMTC_HOOK(irq) \ | 89 | #define __DO_IRQ_SMTC_HOOK(irq) \ |
58 | do { \ | 90 | do { \ |
91 | IRQ_AFFINITY_HOOK(irq); \ | ||
59 | if (irq_hwmask[irq] & 0x0000ff00) \ | 92 | if (irq_hwmask[irq] & 0x0000ff00) \ |
60 | write_c0_tccontext(read_c0_tccontext() & \ | 93 | write_c0_tccontext(read_c0_tccontext() & \ |
61 | ~(irq_hwmask[irq] & 0x0000ff00)); \ | 94 | ~(irq_hwmask[irq] & 0x0000ff00)); \ |
95 | } while (0) | ||
96 | |||
97 | #define __NO_AFFINITY_IRQ_SMTC_HOOK(irq) \ | ||
98 | do { \ | ||
99 | if (irq_hwmask[irq] & 0x0000ff00) \ | ||
100 | write_c0_tccontext(read_c0_tccontext() & \ | ||
101 | ~(irq_hwmask[irq] & 0x0000ff00)); \ | ||
62 | } while (0) | 102 | } while (0) |
103 | |||
63 | #else | 104 | #else |
64 | 105 | ||
65 | #define __DO_IRQ_SMTC_HOOK(irq) do { } while (0) | 106 | #define __DO_IRQ_SMTC_HOOK(irq) \ |
107 | do { \ | ||
108 | IRQ_AFFINITY_HOOK(irq); \ | ||
109 | } while (0) | ||
110 | #define __NO_AFFINITY_IRQ_SMTC_HOOK(irq) do { } while (0) | ||
111 | |||
66 | #endif | 112 | #endif |
67 | 113 | ||
68 | /* | 114 | /* |
@@ -81,6 +127,23 @@ do { \ | |||
81 | irq_exit(); \ | 127 | irq_exit(); \ |
82 | } while (0) | 128 | } while (0) |
83 | 129 | ||
130 | #ifdef CONFIG_MIPS_MT_SMTC_IRQAFF | ||
131 | /* | ||
132 | * To avoid inefficient and in some cases pathological re-checking of | ||
133 | * IRQ affinity, we have this variant that skips the affinity check. | ||
134 | */ | ||
135 | |||
136 | |||
137 | #define do_IRQ_no_affinity(irq) \ | ||
138 | do { \ | ||
139 | irq_enter(); \ | ||
140 | __NO_AFFINITY_IRQ_SMTC_HOOK(irq); \ | ||
141 | generic_handle_irq(irq); \ | ||
142 | irq_exit(); \ | ||
143 | } while (0) | ||
144 | |||
145 | #endif /* CONFIG_MIPS_MT_SMTC_IRQAFF */ | ||
146 | |||
84 | extern void arch_init_irq(void); | 147 | extern void arch_init_irq(void); |
85 | extern void spurious_interrupt(void); | 148 | extern void spurious_interrupt(void); |
86 | 149 | ||
diff --git a/include/asm-mips/irq_gt641xx.h b/include/asm-mips/irq_gt641xx.h new file mode 100644 index 0000000000..f9a7c3ac2e --- /dev/null +++ b/include/asm-mips/irq_gt641xx.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | * Galileo/Marvell GT641xx IRQ definitions. | ||
3 | * | ||
4 | * Copyright (C) 2007 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | #ifndef _ASM_IRQ_GT641XX_H | ||
21 | #define _ASM_IRQ_GT641XX_H | ||
22 | |||
23 | #ifndef GT641XX_IRQ_BASE | ||
24 | #define GT641XX_IRQ_BASE 8 | ||
25 | #endif | ||
26 | |||
27 | #define GT641XX_MEMORY_OUT_OF_RANGE_IRQ (GT641XX_IRQ_BASE + 1) | ||
28 | #define GT641XX_DMA_OUT_OF_RANGE_IRQ (GT641XX_IRQ_BASE + 2) | ||
29 | #define GT641XX_CPU_ACCESS_OUT_OF_RANGE_IRQ (GT641XX_IRQ_BASE + 3) | ||
30 | #define GT641XX_DMA0_IRQ (GT641XX_IRQ_BASE + 4) | ||
31 | #define GT641XX_DMA1_IRQ (GT641XX_IRQ_BASE + 5) | ||
32 | #define GT641XX_DMA2_IRQ (GT641XX_IRQ_BASE + 6) | ||
33 | #define GT641XX_DMA3_IRQ (GT641XX_IRQ_BASE + 7) | ||
34 | #define GT641XX_TIMER0_IRQ (GT641XX_IRQ_BASE + 8) | ||
35 | #define GT641XX_TIMER1_IRQ (GT641XX_IRQ_BASE + 9) | ||
36 | #define GT641XX_TIMER2_IRQ (GT641XX_IRQ_BASE + 10) | ||
37 | #define GT641XX_TIMER3_IRQ (GT641XX_IRQ_BASE + 11) | ||
38 | #define GT641XX_PCI_0_MASTER_READ_ERROR_IRQ (GT641XX_IRQ_BASE + 12) | ||
39 | #define GT641XX_PCI_0_SLAVE_WRITE_ERROR_IRQ (GT641XX_IRQ_BASE + 13) | ||
40 | #define GT641XX_PCI_0_MASTER_WRITE_ERROR_IRQ (GT641XX_IRQ_BASE + 14) | ||
41 | #define GT641XX_PCI_0_SLAVE_READ_ERROR_IRQ (GT641XX_IRQ_BASE + 15) | ||
42 | #define GT641XX_PCI_0_ADDRESS_ERROR_IRQ (GT641XX_IRQ_BASE + 16) | ||
43 | #define GT641XX_MEMORY_ERROR_IRQ (GT641XX_IRQ_BASE + 17) | ||
44 | #define GT641XX_PCI_0_MASTER_ABORT_IRQ (GT641XX_IRQ_BASE + 18) | ||
45 | #define GT641XX_PCI_0_TARGET_ABORT_IRQ (GT641XX_IRQ_BASE + 19) | ||
46 | #define GT641XX_PCI_0_RETRY_TIMEOUT_IRQ (GT641XX_IRQ_BASE + 20) | ||
47 | #define GT641XX_CPU_INT0_IRQ (GT641XX_IRQ_BASE + 21) | ||
48 | #define GT641XX_CPU_INT1_IRQ (GT641XX_IRQ_BASE + 22) | ||
49 | #define GT641XX_CPU_INT2_IRQ (GT641XX_IRQ_BASE + 23) | ||
50 | #define GT641XX_CPU_INT3_IRQ (GT641XX_IRQ_BASE + 24) | ||
51 | #define GT641XX_CPU_INT4_IRQ (GT641XX_IRQ_BASE + 25) | ||
52 | #define GT641XX_PCI_INT0_IRQ (GT641XX_IRQ_BASE + 26) | ||
53 | #define GT641XX_PCI_INT1_IRQ (GT641XX_IRQ_BASE + 27) | ||
54 | #define GT641XX_PCI_INT2_IRQ (GT641XX_IRQ_BASE + 28) | ||
55 | #define GT641XX_PCI_INT3_IRQ (GT641XX_IRQ_BASE + 29) | ||
56 | |||
57 | extern void gt641xx_irq_dispatch(void); | ||
58 | extern void gt641xx_irq_init(void); | ||
59 | |||
60 | #endif /* _ASM_IRQ_GT641XX_H */ | ||
diff --git a/include/asm-mips/irqflags.h b/include/asm-mips/irqflags.h index e459fa05db..881e886650 100644 --- a/include/asm-mips/irqflags.h +++ b/include/asm-mips/irqflags.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/compiler.h> | 16 | #include <linux/compiler.h> |
17 | #include <asm/hazards.h> | 17 | #include <asm/hazards.h> |
18 | 18 | ||
19 | __asm__ ( | 19 | __asm__( |
20 | " .macro raw_local_irq_enable \n" | 20 | " .macro raw_local_irq_enable \n" |
21 | " .set push \n" | 21 | " .set push \n" |
22 | " .set reorder \n" | 22 | " .set reorder \n" |
@@ -65,7 +65,7 @@ static inline void raw_local_irq_enable(void) | |||
65 | * | 65 | * |
66 | * Workaround: mask EXL bit of the result or place a nop before mfc0. | 66 | * Workaround: mask EXL bit of the result or place a nop before mfc0. |
67 | */ | 67 | */ |
68 | __asm__ ( | 68 | __asm__( |
69 | " .macro raw_local_irq_disable\n" | 69 | " .macro raw_local_irq_disable\n" |
70 | " .set push \n" | 70 | " .set push \n" |
71 | " .set noat \n" | 71 | " .set noat \n" |
@@ -96,7 +96,7 @@ static inline void raw_local_irq_disable(void) | |||
96 | : "memory"); | 96 | : "memory"); |
97 | } | 97 | } |
98 | 98 | ||
99 | __asm__ ( | 99 | __asm__( |
100 | " .macro raw_local_save_flags flags \n" | 100 | " .macro raw_local_save_flags flags \n" |
101 | " .set push \n" | 101 | " .set push \n" |
102 | " .set reorder \n" | 102 | " .set reorder \n" |
@@ -113,7 +113,7 @@ __asm__ __volatile__( \ | |||
113 | "raw_local_save_flags %0" \ | 113 | "raw_local_save_flags %0" \ |
114 | : "=r" (x)) | 114 | : "=r" (x)) |
115 | 115 | ||
116 | __asm__ ( | 116 | __asm__( |
117 | " .macro raw_local_irq_save result \n" | 117 | " .macro raw_local_irq_save result \n" |
118 | " .set push \n" | 118 | " .set push \n" |
119 | " .set reorder \n" | 119 | " .set reorder \n" |
@@ -145,7 +145,7 @@ __asm__ __volatile__( \ | |||
145 | : /* no inputs */ \ | 145 | : /* no inputs */ \ |
146 | : "memory") | 146 | : "memory") |
147 | 147 | ||
148 | __asm__ ( | 148 | __asm__( |
149 | " .macro raw_local_irq_restore flags \n" | 149 | " .macro raw_local_irq_restore flags \n" |
150 | " .set push \n" | 150 | " .set push \n" |
151 | " .set noreorder \n" | 151 | " .set noreorder \n" |
diff --git a/include/asm-mips/jazz.h b/include/asm-mips/jazz.h index 81cbf004fd..83f449dec9 100644 --- a/include/asm-mips/jazz.h +++ b/include/asm-mips/jazz.h | |||
@@ -185,37 +185,25 @@ typedef struct { | |||
185 | #define JAZZ_IO_IRQ_ENABLE 0xe0010002 | 185 | #define JAZZ_IO_IRQ_ENABLE 0xe0010002 |
186 | 186 | ||
187 | /* | 187 | /* |
188 | * JAZZ interrupt enable bits | ||
189 | */ | ||
190 | #define JAZZ_IE_PARALLEL (1 << 0) | ||
191 | #define JAZZ_IE_FLOPPY (1 << 1) | ||
192 | #define JAZZ_IE_SOUND (1 << 2) | ||
193 | #define JAZZ_IE_VIDEO (1 << 3) | ||
194 | #define JAZZ_IE_ETHERNET (1 << 4) | ||
195 | #define JAZZ_IE_SCSI (1 << 5) | ||
196 | #define JAZZ_IE_KEYBOARD (1 << 6) | ||
197 | #define JAZZ_IE_MOUSE (1 << 7) | ||
198 | #define JAZZ_IE_SERIAL1 (1 << 8) | ||
199 | #define JAZZ_IE_SERIAL2 (1 << 9) | ||
200 | |||
201 | /* | ||
202 | * JAZZ Interrupt Level definitions | 188 | * JAZZ Interrupt Level definitions |
203 | * | 189 | * |
204 | * This is somewhat broken. For reasons which nobody can remember anymore | 190 | * This is somewhat broken. For reasons which nobody can remember anymore |
205 | * we remap the Jazz interrupts to the usual ISA style interrupt numbers. | 191 | * we remap the Jazz interrupts to the usual ISA style interrupt numbers. |
206 | */ | 192 | */ |
207 | #define JAZZ_PARALLEL_IRQ 16 | 193 | #define JAZZ_IRQ_START 24 |
208 | #define JAZZ_FLOPPY_IRQ 17 | 194 | #define JAZZ_IRQ_END (24 + 9) |
209 | #define JAZZ_SOUND_IRQ 18 | 195 | #define JAZZ_PARALLEL_IRQ (JAZZ_IRQ_START + 0) |
210 | #define JAZZ_VIDEO_IRQ 19 | 196 | #define JAZZ_FLOPPY_IRQ (JAZZ_IRQ_START + 1) |
211 | #define JAZZ_ETHERNET_IRQ 20 | 197 | #define JAZZ_SOUND_IRQ (JAZZ_IRQ_START + 2) |
212 | #define JAZZ_SCSI_IRQ 21 | 198 | #define JAZZ_VIDEO_IRQ (JAZZ_IRQ_START + 3) |
213 | #define JAZZ_KEYBOARD_IRQ 22 | 199 | #define JAZZ_ETHERNET_IRQ (JAZZ_IRQ_START + 4) |
214 | #define JAZZ_MOUSE_IRQ 23 | 200 | #define JAZZ_SCSI_IRQ (JAZZ_IRQ_START + 5) |
215 | #define JAZZ_SERIAL1_IRQ 24 | 201 | #define JAZZ_KEYBOARD_IRQ (JAZZ_IRQ_START + 6) |
216 | #define JAZZ_SERIAL2_IRQ 25 | 202 | #define JAZZ_MOUSE_IRQ (JAZZ_IRQ_START + 7) |
217 | 203 | #define JAZZ_SERIAL1_IRQ (JAZZ_IRQ_START + 8) | |
218 | #define JAZZ_TIMER_IRQ 31 | 204 | #define JAZZ_SERIAL2_IRQ (JAZZ_IRQ_START + 9) |
205 | |||
206 | #define JAZZ_TIMER_IRQ (MIPS_CPU_IRQ_BASE+6) | ||
219 | 207 | ||
220 | 208 | ||
221 | /* | 209 | /* |
diff --git a/include/asm-mips/jazzdma.h b/include/asm-mips/jazzdma.h index 0a205b77e5..8bb37bba68 100644 --- a/include/asm-mips/jazzdma.h +++ b/include/asm-mips/jazzdma.h | |||
@@ -7,7 +7,6 @@ | |||
7 | /* | 7 | /* |
8 | * Prototypes and macros | 8 | * Prototypes and macros |
9 | */ | 9 | */ |
10 | extern void vdma_init(void); | ||
11 | extern unsigned long vdma_alloc(unsigned long paddr, unsigned long size); | 10 | extern unsigned long vdma_alloc(unsigned long paddr, unsigned long size); |
12 | extern int vdma_free(unsigned long laddr); | 11 | extern int vdma_free(unsigned long laddr); |
13 | extern int vdma_remap(unsigned long laddr, unsigned long paddr, | 12 | extern int vdma_remap(unsigned long laddr, unsigned long paddr, |
diff --git a/include/asm-mips/jmr3927/tx3927.h b/include/asm-mips/jmr3927/tx3927.h index 4be2f25f70..211bcf47ff 100644 --- a/include/asm-mips/jmr3927/tx3927.h +++ b/include/asm-mips/jmr3927/tx3927.h | |||
@@ -53,23 +53,23 @@ struct tx3927_dma_reg { | |||
53 | #include <asm/byteorder.h> | 53 | #include <asm/byteorder.h> |
54 | 54 | ||
55 | #ifdef __BIG_ENDIAN | 55 | #ifdef __BIG_ENDIAN |
56 | #define endian_def_s2(e1,e2) \ | 56 | #define endian_def_s2(e1, e2) \ |
57 | volatile unsigned short e1,e2 | 57 | volatile unsigned short e1, e2 |
58 | #define endian_def_sb2(e1,e2,e3) \ | 58 | #define endian_def_sb2(e1, e2, e3) \ |
59 | volatile unsigned short e1;volatile unsigned char e2,e3 | 59 | volatile unsigned short e1;volatile unsigned char e2, e3 |
60 | #define endian_def_b2s(e1,e2,e3) \ | 60 | #define endian_def_b2s(e1, e2, e3) \ |
61 | volatile unsigned char e1,e2;volatile unsigned short e3 | 61 | volatile unsigned char e1, e2;volatile unsigned short e3 |
62 | #define endian_def_b4(e1,e2,e3,e4) \ | 62 | #define endian_def_b4(e1, e2, e3, e4) \ |
63 | volatile unsigned char e1,e2,e3,e4 | 63 | volatile unsigned char e1, e2, e3, e4 |
64 | #else | 64 | #else |
65 | #define endian_def_s2(e1,e2) \ | 65 | #define endian_def_s2(e1, e2) \ |
66 | volatile unsigned short e2,e1 | 66 | volatile unsigned short e2, e1 |
67 | #define endian_def_sb2(e1,e2,e3) \ | 67 | #define endian_def_sb2(e1, e2, e3) \ |
68 | volatile unsigned char e3,e2;volatile unsigned short e1 | 68 | volatile unsigned char e3, e2;volatile unsigned short e1 |
69 | #define endian_def_b2s(e1,e2,e3) \ | 69 | #define endian_def_b2s(e1, e2, e3) \ |
70 | volatile unsigned short e3;volatile unsigned char e2,e1 | 70 | volatile unsigned short e3;volatile unsigned char e2, e1 |
71 | #define endian_def_b4(e1,e2,e3,e4) \ | 71 | #define endian_def_b4(e1, e2, e3, e4) \ |
72 | volatile unsigned char e4,e3,e2,e1 | 72 | volatile unsigned char e4, e3, e2, e1 |
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | struct tx3927_pcic_reg { | 75 | struct tx3927_pcic_reg { |
diff --git a/include/asm-mips/lasat/ds1603.h b/include/asm-mips/lasat/ds1603.h new file mode 100644 index 0000000000..edcd7544b3 --- /dev/null +++ b/include/asm-mips/lasat/ds1603.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #include <asm/addrspace.h> | ||
2 | |||
3 | /* Lasat 100 */ | ||
4 | #define DS1603_REG_100 (KSEG1ADDR(0x1c810000)) | ||
5 | #define DS1603_RST_100 (1 << 2) | ||
6 | #define DS1603_CLK_100 (1 << 0) | ||
7 | #define DS1603_DATA_SHIFT_100 1 | ||
8 | #define DS1603_DATA_100 (1 << DS1603_DATA_SHIFT_100) | ||
9 | |||
10 | /* Lasat 200 */ | ||
11 | #define DS1603_REG_200 (KSEG1ADDR(0x11000000)) | ||
12 | #define DS1603_RST_200 (1 << 3) | ||
13 | #define DS1603_CLK_200 (1 << 4) | ||
14 | #define DS1603_DATA_200 (1 << 5) | ||
15 | |||
16 | #define DS1603_DATA_REG_200 (DS1603_REG_200 + 0x10000) | ||
17 | #define DS1603_DATA_READ_SHIFT_200 9 | ||
18 | #define DS1603_DATA_READ_200 (1 << DS1603_DATA_READ_SHIFT_200) | ||
diff --git a/include/asm-mips/lasat/eeprom.h b/include/asm-mips/lasat/eeprom.h new file mode 100644 index 0000000000..3dac203697 --- /dev/null +++ b/include/asm-mips/lasat/eeprom.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #include <asm/addrspace.h> | ||
2 | |||
3 | /* lasat 100 */ | ||
4 | #define AT93C_REG_100 KSEG1ADDR(0x1c810000) | ||
5 | #define AT93C_RDATA_REG_100 AT93C_REG_100 | ||
6 | #define AT93C_RDATA_SHIFT_100 4 | ||
7 | #define AT93C_WDATA_SHIFT_100 4 | ||
8 | #define AT93C_CS_M_100 (1 << 5) | ||
9 | #define AT93C_CLK_M_100 (1 << 3) | ||
10 | |||
11 | /* lasat 200 */ | ||
12 | #define AT93C_REG_200 KSEG1ADDR(0x11000000) | ||
13 | #define AT93C_RDATA_REG_200 (AT93C_REG_200+0x10000) | ||
14 | #define AT93C_RDATA_SHIFT_200 8 | ||
15 | #define AT93C_WDATA_SHIFT_200 2 | ||
16 | #define AT93C_CS_M_200 (1 << 0) | ||
17 | #define AT93C_CLK_M_200 (1 << 1) | ||
diff --git a/include/asm-mips/lasat/head.h b/include/asm-mips/lasat/head.h new file mode 100644 index 0000000000..f5589f31a1 --- /dev/null +++ b/include/asm-mips/lasat/head.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Image header stuff | ||
3 | */ | ||
4 | #ifndef _HEAD_H | ||
5 | #define _HEAD_H | ||
6 | |||
7 | #define LASAT_K_MAGIC0_VAL 0xfedeabba | ||
8 | #define LASAT_K_MAGIC1_VAL 0x00bedead | ||
9 | |||
10 | #ifndef _LANGUAGE_ASSEMBLY | ||
11 | #include <linux/types.h> | ||
12 | struct bootloader_header { | ||
13 | u32 magic[2]; | ||
14 | u32 version; | ||
15 | u32 image_start; | ||
16 | u32 image_size; | ||
17 | u32 kernel_start; | ||
18 | u32 kernel_entry; | ||
19 | }; | ||
20 | #endif | ||
21 | |||
22 | #endif /* _HEAD_H */ | ||
diff --git a/include/asm-mips/lasat/lasat.h b/include/asm-mips/lasat/lasat.h new file mode 100644 index 0000000000..ea04d9262e --- /dev/null +++ b/include/asm-mips/lasat/lasat.h | |||
@@ -0,0 +1,256 @@ | |||
1 | /* | ||
2 | * lasat.h | ||
3 | * | ||
4 | * Thomas Horsten <thh@lasat.com> | ||
5 | * Copyright (C) 2000 LASAT Networks A/S. | ||
6 | * | ||
7 | * This program is free software; you can distribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License (Version 2) as | ||
9 | * published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
14 | * for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. | ||
19 | * | ||
20 | * Configuration for LASAT boards, loads the appropriate include files. | ||
21 | */ | ||
22 | #ifndef _LASAT_H | ||
23 | #define _LASAT_H | ||
24 | |||
25 | #ifndef _LANGUAGE_ASSEMBLY | ||
26 | |||
27 | extern struct lasat_misc { | ||
28 | volatile u32 *reset_reg; | ||
29 | volatile u32 *flash_wp_reg; | ||
30 | u32 flash_wp_bit; | ||
31 | } *lasat_misc; | ||
32 | |||
33 | enum lasat_mtdparts { | ||
34 | LASAT_MTD_BOOTLOADER, | ||
35 | LASAT_MTD_SERVICE, | ||
36 | LASAT_MTD_NORMAL, | ||
37 | LASAT_MTD_CONFIG, | ||
38 | LASAT_MTD_FS, | ||
39 | LASAT_MTD_LAST | ||
40 | }; | ||
41 | |||
42 | /* | ||
43 | * The format of the data record in the EEPROM. | ||
44 | * See Documentation/LASAT/eeprom.txt for a detailed description | ||
45 | * of the fields in this struct, and the LASAT Hardware Configuration | ||
46 | * field specification for a detailed description of the config | ||
47 | * field. | ||
48 | */ | ||
49 | #include <linux/types.h> | ||
50 | |||
51 | #define LASAT_EEPROM_VERSION 7 | ||
52 | struct lasat_eeprom_struct { | ||
53 | unsigned int version; | ||
54 | unsigned int cfg[3]; | ||
55 | unsigned char hwaddr[6]; | ||
56 | unsigned char print_partno[12]; | ||
57 | unsigned char term0; | ||
58 | unsigned char print_serial[14]; | ||
59 | unsigned char term1; | ||
60 | unsigned char prod_partno[12]; | ||
61 | unsigned char term2; | ||
62 | unsigned char prod_serial[14]; | ||
63 | unsigned char term3; | ||
64 | unsigned char passwd_hash[16]; | ||
65 | unsigned char pwdnull; | ||
66 | unsigned char vendid; | ||
67 | unsigned char ts_ref; | ||
68 | unsigned char ts_signoff; | ||
69 | unsigned char reserved[11]; | ||
70 | unsigned char debugaccess; | ||
71 | unsigned short prid; | ||
72 | unsigned int serviceflag; | ||
73 | unsigned int ipaddr; | ||
74 | unsigned int netmask; | ||
75 | unsigned int crc32; | ||
76 | }; | ||
77 | |||
78 | struct lasat_eeprom_struct_pre7 { | ||
79 | unsigned int version; | ||
80 | unsigned int flags[3]; | ||
81 | unsigned char hwaddr0[6]; | ||
82 | unsigned char hwaddr1[6]; | ||
83 | unsigned char print_partno[9]; | ||
84 | unsigned char term0; | ||
85 | unsigned char print_serial[14]; | ||
86 | unsigned char term1; | ||
87 | unsigned char prod_partno[9]; | ||
88 | unsigned char term2; | ||
89 | unsigned char prod_serial[14]; | ||
90 | unsigned char term3; | ||
91 | unsigned char passwd_hash[24]; | ||
92 | unsigned char pwdnull; | ||
93 | unsigned char vendor; | ||
94 | unsigned char ts_ref; | ||
95 | unsigned char ts_signoff; | ||
96 | unsigned char reserved[6]; | ||
97 | unsigned int writecount; | ||
98 | unsigned int ipaddr; | ||
99 | unsigned int netmask; | ||
100 | unsigned int crc32; | ||
101 | }; | ||
102 | |||
103 | /* Configuration descriptor encoding - see the doc for details */ | ||
104 | |||
105 | #define LASAT_W0_DSCTYPE(v) (((v)) & 0xf) | ||
106 | #define LASAT_W0_BMID(v) (((v) >> 0x04) & 0xf) | ||
107 | #define LASAT_W0_CPUTYPE(v) (((v) >> 0x08) & 0xf) | ||
108 | #define LASAT_W0_BUSSPEED(v) (((v) >> 0x0c) & 0xf) | ||
109 | #define LASAT_W0_CPUCLK(v) (((v) >> 0x10) & 0xf) | ||
110 | #define LASAT_W0_SDRAMBANKSZ(v) (((v) >> 0x14) & 0xf) | ||
111 | #define LASAT_W0_SDRAMBANKS(v) (((v) >> 0x18) & 0xf) | ||
112 | #define LASAT_W0_L2CACHE(v) (((v) >> 0x1c) & 0xf) | ||
113 | |||
114 | #define LASAT_W1_EDHAC(v) (((v)) & 0xf) | ||
115 | #define LASAT_W1_HIFN(v) (((v) >> 0x04) & 0x1) | ||
116 | #define LASAT_W1_ISDN(v) (((v) >> 0x05) & 0x1) | ||
117 | #define LASAT_W1_IDE(v) (((v) >> 0x06) & 0x1) | ||
118 | #define LASAT_W1_HDLC(v) (((v) >> 0x07) & 0x1) | ||
119 | #define LASAT_W1_USVERSION(v) (((v) >> 0x08) & 0x1) | ||
120 | #define LASAT_W1_4MACS(v) (((v) >> 0x09) & 0x1) | ||
121 | #define LASAT_W1_EXTSERIAL(v) (((v) >> 0x0a) & 0x1) | ||
122 | #define LASAT_W1_FLASHSIZE(v) (((v) >> 0x0c) & 0xf) | ||
123 | #define LASAT_W1_PCISLOTS(v) (((v) >> 0x10) & 0xf) | ||
124 | #define LASAT_W1_PCI1OPT(v) (((v) >> 0x14) & 0xf) | ||
125 | #define LASAT_W1_PCI2OPT(v) (((v) >> 0x18) & 0xf) | ||
126 | #define LASAT_W1_PCI3OPT(v) (((v) >> 0x1c) & 0xf) | ||
127 | |||
128 | /* Routines specific to LASAT boards */ | ||
129 | |||
130 | #define LASAT_BMID_MASQUERADE2 0 | ||
131 | #define LASAT_BMID_MASQUERADEPRO 1 | ||
132 | #define LASAT_BMID_SAFEPIPE25 2 | ||
133 | #define LASAT_BMID_SAFEPIPE50 3 | ||
134 | #define LASAT_BMID_SAFEPIPE100 4 | ||
135 | #define LASAT_BMID_SAFEPIPE5000 5 | ||
136 | #define LASAT_BMID_SAFEPIPE7000 6 | ||
137 | #define LASAT_BMID_SAFEPIPE1000 7 | ||
138 | #if 0 | ||
139 | #define LASAT_BMID_SAFEPIPE30 7 | ||
140 | #define LASAT_BMID_SAFEPIPE5100 8 | ||
141 | #define LASAT_BMID_SAFEPIPE7100 9 | ||
142 | #endif | ||
143 | #define LASAT_BMID_UNKNOWN 0xf | ||
144 | #define LASAT_MAX_BMID_NAMES 9 /* no larger than 15! */ | ||
145 | |||
146 | #define LASAT_HAS_EDHAC (1 << 0) | ||
147 | #define LASAT_EDHAC_FAST (1 << 1) | ||
148 | #define LASAT_HAS_EADI (1 << 2) | ||
149 | #define LASAT_HAS_HIFN (1 << 3) | ||
150 | #define LASAT_HAS_ISDN (1 << 4) | ||
151 | #define LASAT_HAS_LEASEDLINE_IF (1 << 5) | ||
152 | #define LASAT_HAS_HDC (1 << 6) | ||
153 | |||
154 | #define LASAT_PRID_MASQUERADE2 0 | ||
155 | #define LASAT_PRID_MASQUERADEPRO 1 | ||
156 | #define LASAT_PRID_SAFEPIPE25 2 | ||
157 | #define LASAT_PRID_SAFEPIPE50 3 | ||
158 | #define LASAT_PRID_SAFEPIPE100 4 | ||
159 | #define LASAT_PRID_SAFEPIPE5000 5 | ||
160 | #define LASAT_PRID_SAFEPIPE7000 6 | ||
161 | #define LASAT_PRID_SAFEPIPE30 7 | ||
162 | #define LASAT_PRID_SAFEPIPE5100 8 | ||
163 | #define LASAT_PRID_SAFEPIPE7100 9 | ||
164 | |||
165 | #define LASAT_PRID_SAFEPIPE1110 10 | ||
166 | #define LASAT_PRID_SAFEPIPE3020 11 | ||
167 | #define LASAT_PRID_SAFEPIPE3030 12 | ||
168 | #define LASAT_PRID_SAFEPIPE5020 13 | ||
169 | #define LASAT_PRID_SAFEPIPE5030 14 | ||
170 | #define LASAT_PRID_SAFEPIPE1120 15 | ||
171 | #define LASAT_PRID_SAFEPIPE1130 16 | ||
172 | #define LASAT_PRID_SAFEPIPE6010 17 | ||
173 | #define LASAT_PRID_SAFEPIPE6110 18 | ||
174 | #define LASAT_PRID_SAFEPIPE6210 19 | ||
175 | #define LASAT_PRID_SAFEPIPE1020 20 | ||
176 | #define LASAT_PRID_SAFEPIPE1040 21 | ||
177 | #define LASAT_PRID_SAFEPIPE1060 22 | ||
178 | |||
179 | struct lasat_info { | ||
180 | unsigned int li_cpu_hz; | ||
181 | unsigned int li_bus_hz; | ||
182 | unsigned int li_bmid; | ||
183 | unsigned int li_memsize; | ||
184 | unsigned int li_flash_size; | ||
185 | unsigned int li_prid; | ||
186 | unsigned char li_bmstr[16]; | ||
187 | unsigned char li_namestr[32]; | ||
188 | unsigned char li_typestr[16]; | ||
189 | /* Info on the Flash layout */ | ||
190 | unsigned int li_flash_base; | ||
191 | unsigned long li_flashpart_base[LASAT_MTD_LAST]; | ||
192 | unsigned long li_flashpart_size[LASAT_MTD_LAST]; | ||
193 | struct lasat_eeprom_struct li_eeprom_info; | ||
194 | unsigned int li_eeprom_upgrade_version; | ||
195 | unsigned int li_debugaccess; | ||
196 | }; | ||
197 | |||
198 | extern struct lasat_info lasat_board_info; | ||
199 | |||
200 | static inline unsigned long lasat_flash_partition_start(int partno) | ||
201 | { | ||
202 | if (partno < 0 || partno >= LASAT_MTD_LAST) | ||
203 | return 0; | ||
204 | |||
205 | return lasat_board_info.li_flashpart_base[partno]; | ||
206 | } | ||
207 | |||
208 | static inline unsigned long lasat_flash_partition_size(int partno) | ||
209 | { | ||
210 | if (partno < 0 || partno >= LASAT_MTD_LAST) | ||
211 | return 0; | ||
212 | |||
213 | return lasat_board_info.li_flashpart_size[partno]; | ||
214 | } | ||
215 | |||
216 | /* Called from setup() to initialize the global board_info struct */ | ||
217 | extern int lasat_init_board_info(void); | ||
218 | |||
219 | /* Write the modified EEPROM info struct */ | ||
220 | extern void lasat_write_eeprom_info(void); | ||
221 | |||
222 | #define N_MACHTYPES 2 | ||
223 | /* for calibration of delays */ | ||
224 | |||
225 | /* the lasat_ndelay function is necessary because it is used at an | ||
226 | * early stage of the boot process where ndelay is not calibrated. | ||
227 | * It is used for the bit-banging rtc and eeprom drivers */ | ||
228 | |||
229 | #include <linux/delay.h> | ||
230 | |||
231 | /* calculating with the slowest board with 100 MHz clock */ | ||
232 | #define LASAT_100_DIVIDER 20 | ||
233 | /* All 200's run at 250 MHz clock */ | ||
234 | #define LASAT_200_DIVIDER 8 | ||
235 | |||
236 | extern unsigned int lasat_ndelay_divider; | ||
237 | |||
238 | static inline void lasat_ndelay(unsigned int ns) | ||
239 | { | ||
240 | __delay(ns / lasat_ndelay_divider); | ||
241 | } | ||
242 | |||
243 | #endif /* !defined (_LANGUAGE_ASSEMBLY) */ | ||
244 | |||
245 | #define LASAT_SERVICEMODE_MAGIC_1 0xdeadbeef | ||
246 | #define LASAT_SERVICEMODE_MAGIC_2 0xfedeabba | ||
247 | |||
248 | /* Lasat 100 boards */ | ||
249 | #define LASAT_GT_BASE (KSEG1ADDR(0x14000000)) | ||
250 | |||
251 | /* Lasat 200 boards */ | ||
252 | #define Vrc5074_PHYS_BASE 0x1fa00000 | ||
253 | #define Vrc5074_BASE (KSEG1ADDR(Vrc5074_PHYS_BASE)) | ||
254 | #define PCI_WINDOW1 0x1a000000 | ||
255 | |||
256 | #endif /* _LASAT_H */ | ||
diff --git a/include/asm-mips/lasat/lasatint.h b/include/asm-mips/lasat/lasatint.h new file mode 100644 index 0000000000..065474feec --- /dev/null +++ b/include/asm-mips/lasat/lasatint.h | |||
@@ -0,0 +1,12 @@ | |||
1 | #define LASATINT_END 16 | ||
2 | |||
3 | /* lasat 100 */ | ||
4 | #define LASAT_INT_STATUS_REG_100 (KSEG1ADDR(0x1c880000)) | ||
5 | #define LASAT_INT_MASK_REG_100 (KSEG1ADDR(0x1c890000)) | ||
6 | #define LASATINT_MASK_SHIFT_100 0 | ||
7 | |||
8 | /* lasat 200 */ | ||
9 | #define LASAT_INT_STATUS_REG_200 (KSEG1ADDR(0x1104003c)) | ||
10 | #define LASAT_INT_MASK_REG_200 (KSEG1ADDR(0x1104003c)) | ||
11 | #define LASATINT_MASK_SHIFT_200 16 | ||
12 | |||
diff --git a/include/asm-mips/lasat/picvue.h b/include/asm-mips/lasat/picvue.h new file mode 100644 index 0000000000..42a492edc4 --- /dev/null +++ b/include/asm-mips/lasat/picvue.h | |||
@@ -0,0 +1,15 @@ | |||
1 | /* Lasat 100 */ | ||
2 | #define PVC_REG_100 KSEG1ADDR(0x1c820000) | ||
3 | #define PVC_DATA_SHIFT_100 0 | ||
4 | #define PVC_DATA_M_100 0xFF | ||
5 | #define PVC_E_100 (1 << 8) | ||
6 | #define PVC_RW_100 (1 << 9) | ||
7 | #define PVC_RS_100 (1 << 10) | ||
8 | |||
9 | /* Lasat 200 */ | ||
10 | #define PVC_REG_200 KSEG1ADDR(0x11000000) | ||
11 | #define PVC_DATA_SHIFT_200 24 | ||
12 | #define PVC_DATA_M_200 (0xFF << PVC_DATA_SHIFT_200) | ||
13 | #define PVC_E_200 (1 << 16) | ||
14 | #define PVC_RW_200 (1 << 17) | ||
15 | #define PVC_RS_200 (1 << 18) | ||
diff --git a/include/asm-mips/lasat/serial.h b/include/asm-mips/lasat/serial.h new file mode 100644 index 0000000000..bafe68b106 --- /dev/null +++ b/include/asm-mips/lasat/serial.h | |||
@@ -0,0 +1,13 @@ | |||
1 | #include <asm/lasat/lasat.h> | ||
2 | |||
3 | /* Lasat 100 boards serial configuration */ | ||
4 | #define LASAT_BASE_BAUD_100 (7372800 / 16) | ||
5 | #define LASAT_UART_REGS_BASE_100 0x1c8b0000 | ||
6 | #define LASAT_UART_REGS_SHIFT_100 2 | ||
7 | #define LASATINT_UART_100 8 | ||
8 | |||
9 | /* * LASAT 200 boards serial configuration */ | ||
10 | #define LASAT_BASE_BAUD_200 (100000000 / 16 / 12) | ||
11 | #define LASAT_UART_REGS_BASE_200 (Vrc5074_PHYS_BASE + 0x0300) | ||
12 | #define LASAT_UART_REGS_SHIFT_200 3 | ||
13 | #define LASATINT_UART_200 13 | ||
diff --git a/include/asm-mips/linkage.h b/include/asm-mips/linkage.h index b6185d3cfe..e9a940d1b0 100644 --- a/include/asm-mips/linkage.h +++ b/include/asm-mips/linkage.h | |||
@@ -5,4 +5,6 @@ | |||
5 | #include <asm/asm.h> | 5 | #include <asm/asm.h> |
6 | #endif | 6 | #endif |
7 | 7 | ||
8 | #define __weak __attribute__((weak)) | ||
9 | |||
8 | #endif | 10 | #endif |
diff --git a/include/asm-mips/local.h b/include/asm-mips/local.h index f9a5ce5c9a..f96fd59e08 100644 --- a/include/asm-mips/local.h +++ b/include/asm-mips/local.h | |||
@@ -15,10 +15,10 @@ typedef struct | |||
15 | #define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) } | 15 | #define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) } |
16 | 16 | ||
17 | #define local_read(l) atomic_long_read(&(l)->a) | 17 | #define local_read(l) atomic_long_read(&(l)->a) |
18 | #define local_set(l,i) atomic_long_set(&(l)->a, (i)) | 18 | #define local_set(l, i) atomic_long_set(&(l)->a, (i)) |
19 | 19 | ||
20 | #define local_add(i,l) atomic_long_add((i),(&(l)->a)) | 20 | #define local_add(i, l) atomic_long_add((i), (&(l)->a)) |
21 | #define local_sub(i,l) atomic_long_sub((i),(&(l)->a)) | 21 | #define local_sub(i, l) atomic_long_sub((i), (&(l)->a)) |
22 | #define local_inc(l) atomic_long_inc(&(l)->a) | 22 | #define local_inc(l) atomic_long_inc(&(l)->a) |
23 | #define local_dec(l) atomic_long_dec(&(l)->a) | 23 | #define local_dec(l) atomic_long_dec(&(l)->a) |
24 | 24 | ||
@@ -117,7 +117,7 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
117 | 117 | ||
118 | #define local_cmpxchg(l, o, n) \ | 118 | #define local_cmpxchg(l, o, n) \ |
119 | ((long)cmpxchg_local(&((l)->a.counter), (o), (n))) | 119 | ((long)cmpxchg_local(&((l)->a.counter), (o), (n))) |
120 | #define local_xchg(l, n) (xchg_local(&((l)->a.counter),(n))) | 120 | #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n))) |
121 | 121 | ||
122 | /** | 122 | /** |
123 | * local_add_unless - add unless the number is a given value | 123 | * local_add_unless - add unless the number is a given value |
@@ -138,8 +138,8 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
138 | }) | 138 | }) |
139 | #define local_inc_not_zero(l) local_add_unless((l), 1, 0) | 139 | #define local_inc_not_zero(l) local_add_unless((l), 1, 0) |
140 | 140 | ||
141 | #define local_dec_return(l) local_sub_return(1,(l)) | 141 | #define local_dec_return(l) local_sub_return(1, (l)) |
142 | #define local_inc_return(l) local_add_return(1,(l)) | 142 | #define local_inc_return(l) local_add_return(1, (l)) |
143 | 143 | ||
144 | /* | 144 | /* |
145 | * local_sub_and_test - subtract value from variable and test result | 145 | * local_sub_and_test - subtract value from variable and test result |
@@ -150,7 +150,7 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
150 | * true if the result is zero, or false for all | 150 | * true if the result is zero, or false for all |
151 | * other cases. | 151 | * other cases. |
152 | */ | 152 | */ |
153 | #define local_sub_and_test(i,l) (local_sub_return((i), (l)) == 0) | 153 | #define local_sub_and_test(i, l) (local_sub_return((i), (l)) == 0) |
154 | 154 | ||
155 | /* | 155 | /* |
156 | * local_inc_and_test - increment and test | 156 | * local_inc_and_test - increment and test |
@@ -181,7 +181,7 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
181 | * if the result is negative, or false when | 181 | * if the result is negative, or false when |
182 | * result is greater than or equal to zero. | 182 | * result is greater than or equal to zero. |
183 | */ | 183 | */ |
184 | #define local_add_negative(i,l) (local_add_return(i, (l)) < 0) | 184 | #define local_add_negative(i, l) (local_add_return(i, (l)) < 0) |
185 | 185 | ||
186 | /* Use these for per-cpu local_t variables: on some archs they are | 186 | /* Use these for per-cpu local_t variables: on some archs they are |
187 | * much more efficient than these naive implementations. Note they take | 187 | * much more efficient than these naive implementations. Note they take |
@@ -190,8 +190,8 @@ static __inline__ long local_sub_return(long i, local_t * l) | |||
190 | 190 | ||
191 | #define __local_inc(l) ((l)->a.counter++) | 191 | #define __local_inc(l) ((l)->a.counter++) |
192 | #define __local_dec(l) ((l)->a.counter++) | 192 | #define __local_dec(l) ((l)->a.counter++) |
193 | #define __local_add(i,l) ((l)->a.counter+=(i)) | 193 | #define __local_add(i, l) ((l)->a.counter+=(i)) |
194 | #define __local_sub(i,l) ((l)->a.counter-=(i)) | 194 | #define __local_sub(i, l) ((l)->a.counter-=(i)) |
195 | 195 | ||
196 | /* Need to disable preemption for the cpu local counters otherwise we could | 196 | /* Need to disable preemption for the cpu local counters otherwise we could |
197 | still access a variable of a previous CPU in a non atomic way. */ | 197 | still access a variable of a previous CPU in a non atomic way. */ |
diff --git a/include/asm-mips/mach-au1x00/au1000.h b/include/asm-mips/mach-au1x00/au1000.h index 58fca8a5a9..10f613f23c 100644 --- a/include/asm-mips/mach-au1x00/au1000.h +++ b/include/asm-mips/mach-au1x00/au1000.h | |||
@@ -951,25 +951,25 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
951 | /* Programmable Counters 0 and 1 */ | 951 | /* Programmable Counters 0 and 1 */ |
952 | #define SYS_BASE 0xB1900000 | 952 | #define SYS_BASE 0xB1900000 |
953 | #define SYS_COUNTER_CNTRL (SYS_BASE + 0x14) | 953 | #define SYS_COUNTER_CNTRL (SYS_BASE + 0x14) |
954 | #define SYS_CNTRL_E1S (1<<23) | 954 | # define SYS_CNTRL_E1S (1<<23) |
955 | #define SYS_CNTRL_T1S (1<<20) | 955 | # define SYS_CNTRL_T1S (1<<20) |
956 | #define SYS_CNTRL_M21 (1<<19) | 956 | # define SYS_CNTRL_M21 (1<<19) |
957 | #define SYS_CNTRL_M11 (1<<18) | 957 | # define SYS_CNTRL_M11 (1<<18) |
958 | #define SYS_CNTRL_M01 (1<<17) | 958 | # define SYS_CNTRL_M01 (1<<17) |
959 | #define SYS_CNTRL_C1S (1<<16) | 959 | # define SYS_CNTRL_C1S (1<<16) |
960 | #define SYS_CNTRL_BP (1<<14) | 960 | # define SYS_CNTRL_BP (1<<14) |
961 | #define SYS_CNTRL_EN1 (1<<13) | 961 | # define SYS_CNTRL_EN1 (1<<13) |
962 | #define SYS_CNTRL_BT1 (1<<12) | 962 | # define SYS_CNTRL_BT1 (1<<12) |
963 | #define SYS_CNTRL_EN0 (1<<11) | 963 | # define SYS_CNTRL_EN0 (1<<11) |
964 | #define SYS_CNTRL_BT0 (1<<10) | 964 | # define SYS_CNTRL_BT0 (1<<10) |
965 | #define SYS_CNTRL_E0 (1<<8) | 965 | # define SYS_CNTRL_E0 (1<<8) |
966 | #define SYS_CNTRL_E0S (1<<7) | 966 | # define SYS_CNTRL_E0S (1<<7) |
967 | #define SYS_CNTRL_32S (1<<5) | 967 | # define SYS_CNTRL_32S (1<<5) |
968 | #define SYS_CNTRL_T0S (1<<4) | 968 | # define SYS_CNTRL_T0S (1<<4) |
969 | #define SYS_CNTRL_M20 (1<<3) | 969 | # define SYS_CNTRL_M20 (1<<3) |
970 | #define SYS_CNTRL_M10 (1<<2) | 970 | # define SYS_CNTRL_M10 (1<<2) |
971 | #define SYS_CNTRL_M00 (1<<1) | 971 | # define SYS_CNTRL_M00 (1<<1) |
972 | #define SYS_CNTRL_C0S (1<<0) | 972 | # define SYS_CNTRL_C0S (1<<0) |
973 | 973 | ||
974 | /* Programmable Counter 0 Registers */ | 974 | /* Programmable Counter 0 Registers */ |
975 | #define SYS_TOYTRIM (SYS_BASE + 0) | 975 | #define SYS_TOYTRIM (SYS_BASE + 0) |
@@ -989,34 +989,34 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
989 | 989 | ||
990 | /* I2S Controller */ | 990 | /* I2S Controller */ |
991 | #define I2S_DATA 0xB1000000 | 991 | #define I2S_DATA 0xB1000000 |
992 | #define I2S_DATA_MASK (0xffffff) | 992 | # define I2S_DATA_MASK (0xffffff) |
993 | #define I2S_CONFIG 0xB1000004 | 993 | #define I2S_CONFIG 0xB1000004 |
994 | #define I2S_CONFIG_XU (1<<25) | 994 | # define I2S_CONFIG_XU (1<<25) |
995 | #define I2S_CONFIG_XO (1<<24) | 995 | # define I2S_CONFIG_XO (1<<24) |
996 | #define I2S_CONFIG_RU (1<<23) | 996 | # define I2S_CONFIG_RU (1<<23) |
997 | #define I2S_CONFIG_RO (1<<22) | 997 | # define I2S_CONFIG_RO (1<<22) |
998 | #define I2S_CONFIG_TR (1<<21) | 998 | # define I2S_CONFIG_TR (1<<21) |
999 | #define I2S_CONFIG_TE (1<<20) | 999 | # define I2S_CONFIG_TE (1<<20) |
1000 | #define I2S_CONFIG_TF (1<<19) | 1000 | # define I2S_CONFIG_TF (1<<19) |
1001 | #define I2S_CONFIG_RR (1<<18) | 1001 | # define I2S_CONFIG_RR (1<<18) |
1002 | #define I2S_CONFIG_RE (1<<17) | 1002 | # define I2S_CONFIG_RE (1<<17) |
1003 | #define I2S_CONFIG_RF (1<<16) | 1003 | # define I2S_CONFIG_RF (1<<16) |
1004 | #define I2S_CONFIG_PD (1<<11) | 1004 | # define I2S_CONFIG_PD (1<<11) |
1005 | #define I2S_CONFIG_LB (1<<10) | 1005 | # define I2S_CONFIG_LB (1<<10) |
1006 | #define I2S_CONFIG_IC (1<<9) | 1006 | # define I2S_CONFIG_IC (1<<9) |
1007 | #define I2S_CONFIG_FM_BIT 7 | 1007 | # define I2S_CONFIG_FM_BIT 7 |
1008 | #define I2S_CONFIG_FM_MASK (0x3 << I2S_CONFIG_FM_BIT) | 1008 | # define I2S_CONFIG_FM_MASK (0x3 << I2S_CONFIG_FM_BIT) |
1009 | #define I2S_CONFIG_FM_I2S (0x0 << I2S_CONFIG_FM_BIT) | 1009 | # define I2S_CONFIG_FM_I2S (0x0 << I2S_CONFIG_FM_BIT) |
1010 | #define I2S_CONFIG_FM_LJ (0x1 << I2S_CONFIG_FM_BIT) | 1010 | # define I2S_CONFIG_FM_LJ (0x1 << I2S_CONFIG_FM_BIT) |
1011 | #define I2S_CONFIG_FM_RJ (0x2 << I2S_CONFIG_FM_BIT) | 1011 | # define I2S_CONFIG_FM_RJ (0x2 << I2S_CONFIG_FM_BIT) |
1012 | #define I2S_CONFIG_TN (1<<6) | 1012 | # define I2S_CONFIG_TN (1<<6) |
1013 | #define I2S_CONFIG_RN (1<<5) | 1013 | # define I2S_CONFIG_RN (1<<5) |
1014 | #define I2S_CONFIG_SZ_BIT 0 | 1014 | # define I2S_CONFIG_SZ_BIT 0 |
1015 | #define I2S_CONFIG_SZ_MASK (0x1F << I2S_CONFIG_SZ_BIT) | 1015 | # define I2S_CONFIG_SZ_MASK (0x1F << I2S_CONFIG_SZ_BIT) |
1016 | 1016 | ||
1017 | #define I2S_CONTROL 0xB1000008 | 1017 | #define I2S_CONTROL 0xB1000008 |
1018 | #define I2S_CONTROL_D (1<<1) | 1018 | # define I2S_CONTROL_D (1<<1) |
1019 | #define I2S_CONTROL_CE (1<<0) | 1019 | # define I2S_CONTROL_CE (1<<0) |
1020 | 1020 | ||
1021 | /* USB Host Controller */ | 1021 | /* USB Host Controller */ |
1022 | #ifndef USB_OHCI_LEN | 1022 | #ifndef USB_OHCI_LEN |
@@ -1034,38 +1034,38 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
1034 | #define USBD_EP5RD 0xB0200014 | 1034 | #define USBD_EP5RD 0xB0200014 |
1035 | #define USBD_INTEN 0xB0200018 | 1035 | #define USBD_INTEN 0xB0200018 |
1036 | #define USBD_INTSTAT 0xB020001C | 1036 | #define USBD_INTSTAT 0xB020001C |
1037 | #define USBDEV_INT_SOF (1<<12) | 1037 | # define USBDEV_INT_SOF (1<<12) |
1038 | #define USBDEV_INT_HF_BIT 6 | 1038 | # define USBDEV_INT_HF_BIT 6 |
1039 | #define USBDEV_INT_HF_MASK (0x3f << USBDEV_INT_HF_BIT) | 1039 | # define USBDEV_INT_HF_MASK (0x3f << USBDEV_INT_HF_BIT) |
1040 | #define USBDEV_INT_CMPLT_BIT 0 | 1040 | # define USBDEV_INT_CMPLT_BIT 0 |
1041 | #define USBDEV_INT_CMPLT_MASK (0x3f << USBDEV_INT_CMPLT_BIT) | 1041 | # define USBDEV_INT_CMPLT_MASK (0x3f << USBDEV_INT_CMPLT_BIT) |
1042 | #define USBD_CONFIG 0xB0200020 | 1042 | #define USBD_CONFIG 0xB0200020 |
1043 | #define USBD_EP0CS 0xB0200024 | 1043 | #define USBD_EP0CS 0xB0200024 |
1044 | #define USBD_EP2CS 0xB0200028 | 1044 | #define USBD_EP2CS 0xB0200028 |
1045 | #define USBD_EP3CS 0xB020002C | 1045 | #define USBD_EP3CS 0xB020002C |
1046 | #define USBD_EP4CS 0xB0200030 | 1046 | #define USBD_EP4CS 0xB0200030 |
1047 | #define USBD_EP5CS 0xB0200034 | 1047 | #define USBD_EP5CS 0xB0200034 |
1048 | #define USBDEV_CS_SU (1<<14) | 1048 | # define USBDEV_CS_SU (1<<14) |
1049 | #define USBDEV_CS_NAK (1<<13) | 1049 | # define USBDEV_CS_NAK (1<<13) |
1050 | #define USBDEV_CS_ACK (1<<12) | 1050 | # define USBDEV_CS_ACK (1<<12) |
1051 | #define USBDEV_CS_BUSY (1<<11) | 1051 | # define USBDEV_CS_BUSY (1<<11) |
1052 | #define USBDEV_CS_TSIZE_BIT 1 | 1052 | # define USBDEV_CS_TSIZE_BIT 1 |
1053 | #define USBDEV_CS_TSIZE_MASK (0x3ff << USBDEV_CS_TSIZE_BIT) | 1053 | # define USBDEV_CS_TSIZE_MASK (0x3ff << USBDEV_CS_TSIZE_BIT) |
1054 | #define USBDEV_CS_STALL (1<<0) | 1054 | # define USBDEV_CS_STALL (1<<0) |
1055 | #define USBD_EP0RDSTAT 0xB0200040 | 1055 | #define USBD_EP0RDSTAT 0xB0200040 |
1056 | #define USBD_EP0WRSTAT 0xB0200044 | 1056 | #define USBD_EP0WRSTAT 0xB0200044 |
1057 | #define USBD_EP2WRSTAT 0xB0200048 | 1057 | #define USBD_EP2WRSTAT 0xB0200048 |
1058 | #define USBD_EP3WRSTAT 0xB020004C | 1058 | #define USBD_EP3WRSTAT 0xB020004C |
1059 | #define USBD_EP4RDSTAT 0xB0200050 | 1059 | #define USBD_EP4RDSTAT 0xB0200050 |
1060 | #define USBD_EP5RDSTAT 0xB0200054 | 1060 | #define USBD_EP5RDSTAT 0xB0200054 |
1061 | #define USBDEV_FSTAT_FLUSH (1<<6) | 1061 | # define USBDEV_FSTAT_FLUSH (1<<6) |
1062 | #define USBDEV_FSTAT_UF (1<<5) | 1062 | # define USBDEV_FSTAT_UF (1<<5) |
1063 | #define USBDEV_FSTAT_OF (1<<4) | 1063 | # define USBDEV_FSTAT_OF (1<<4) |
1064 | #define USBDEV_FSTAT_FCNT_BIT 0 | 1064 | # define USBDEV_FSTAT_FCNT_BIT 0 |
1065 | #define USBDEV_FSTAT_FCNT_MASK (0x0f << USBDEV_FSTAT_FCNT_BIT) | 1065 | # define USBDEV_FSTAT_FCNT_MASK (0x0f << USBDEV_FSTAT_FCNT_BIT) |
1066 | #define USBD_ENABLE 0xB0200058 | 1066 | #define USBD_ENABLE 0xB0200058 |
1067 | #define USBDEV_ENABLE (1<<1) | 1067 | # define USBDEV_ENABLE (1<<1) |
1068 | #define USBDEV_CE (1<<0) | 1068 | # define USBDEV_CE (1<<0) |
1069 | 1069 | ||
1070 | #endif /* !CONFIG_SOC_AU1200 */ | 1070 | #endif /* !CONFIG_SOC_AU1200 */ |
1071 | 1071 | ||
@@ -1073,55 +1073,55 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
1073 | 1073 | ||
1074 | /* 4 byte offsets from AU1000_ETH_BASE */ | 1074 | /* 4 byte offsets from AU1000_ETH_BASE */ |
1075 | #define MAC_CONTROL 0x0 | 1075 | #define MAC_CONTROL 0x0 |
1076 | #define MAC_RX_ENABLE (1<<2) | 1076 | # define MAC_RX_ENABLE (1<<2) |
1077 | #define MAC_TX_ENABLE (1<<3) | 1077 | # define MAC_TX_ENABLE (1<<3) |
1078 | #define MAC_DEF_CHECK (1<<5) | 1078 | # define MAC_DEF_CHECK (1<<5) |
1079 | #define MAC_SET_BL(X) (((X)&0x3)<<6) | 1079 | # define MAC_SET_BL(X) (((X)&0x3)<<6) |
1080 | #define MAC_AUTO_PAD (1<<8) | 1080 | # define MAC_AUTO_PAD (1<<8) |
1081 | #define MAC_DISABLE_RETRY (1<<10) | 1081 | # define MAC_DISABLE_RETRY (1<<10) |
1082 | #define MAC_DISABLE_BCAST (1<<11) | 1082 | # define MAC_DISABLE_BCAST (1<<11) |
1083 | #define MAC_LATE_COL (1<<12) | 1083 | # define MAC_LATE_COL (1<<12) |
1084 | #define MAC_HASH_MODE (1<<13) | 1084 | # define MAC_HASH_MODE (1<<13) |
1085 | #define MAC_HASH_ONLY (1<<15) | 1085 | # define MAC_HASH_ONLY (1<<15) |
1086 | #define MAC_PASS_ALL (1<<16) | 1086 | # define MAC_PASS_ALL (1<<16) |
1087 | #define MAC_INVERSE_FILTER (1<<17) | 1087 | # define MAC_INVERSE_FILTER (1<<17) |
1088 | #define MAC_PROMISCUOUS (1<<18) | 1088 | # define MAC_PROMISCUOUS (1<<18) |
1089 | #define MAC_PASS_ALL_MULTI (1<<19) | 1089 | # define MAC_PASS_ALL_MULTI (1<<19) |
1090 | #define MAC_FULL_DUPLEX (1<<20) | 1090 | # define MAC_FULL_DUPLEX (1<<20) |
1091 | #define MAC_NORMAL_MODE 0 | 1091 | # define MAC_NORMAL_MODE 0 |
1092 | #define MAC_INT_LOOPBACK (1<<21) | 1092 | # define MAC_INT_LOOPBACK (1<<21) |
1093 | #define MAC_EXT_LOOPBACK (1<<22) | 1093 | # define MAC_EXT_LOOPBACK (1<<22) |
1094 | #define MAC_DISABLE_RX_OWN (1<<23) | 1094 | # define MAC_DISABLE_RX_OWN (1<<23) |
1095 | #define MAC_BIG_ENDIAN (1<<30) | 1095 | # define MAC_BIG_ENDIAN (1<<30) |
1096 | #define MAC_RX_ALL (1<<31) | 1096 | # define MAC_RX_ALL (1<<31) |
1097 | #define MAC_ADDRESS_HIGH 0x4 | 1097 | #define MAC_ADDRESS_HIGH 0x4 |
1098 | #define MAC_ADDRESS_LOW 0x8 | 1098 | #define MAC_ADDRESS_LOW 0x8 |
1099 | #define MAC_MCAST_HIGH 0xC | 1099 | #define MAC_MCAST_HIGH 0xC |
1100 | #define MAC_MCAST_LOW 0x10 | 1100 | #define MAC_MCAST_LOW 0x10 |
1101 | #define MAC_MII_CNTRL 0x14 | 1101 | #define MAC_MII_CNTRL 0x14 |
1102 | #define MAC_MII_BUSY (1<<0) | 1102 | # define MAC_MII_BUSY (1<<0) |
1103 | #define MAC_MII_READ 0 | 1103 | # define MAC_MII_READ 0 |
1104 | #define MAC_MII_WRITE (1<<1) | 1104 | # define MAC_MII_WRITE (1<<1) |
1105 | #define MAC_SET_MII_SELECT_REG(X) (((X)&0x1f)<<6) | 1105 | # define MAC_SET_MII_SELECT_REG(X) (((X)&0x1f)<<6) |
1106 | #define MAC_SET_MII_SELECT_PHY(X) (((X)&0x1f)<<11) | 1106 | # define MAC_SET_MII_SELECT_PHY(X) (((X)&0x1f)<<11) |
1107 | #define MAC_MII_DATA 0x18 | 1107 | #define MAC_MII_DATA 0x18 |
1108 | #define MAC_FLOW_CNTRL 0x1C | 1108 | #define MAC_FLOW_CNTRL 0x1C |
1109 | #define MAC_FLOW_CNTRL_BUSY (1<<0) | 1109 | # define MAC_FLOW_CNTRL_BUSY (1<<0) |
1110 | #define MAC_FLOW_CNTRL_ENABLE (1<<1) | 1110 | # define MAC_FLOW_CNTRL_ENABLE (1<<1) |
1111 | #define MAC_PASS_CONTROL (1<<2) | 1111 | # define MAC_PASS_CONTROL (1<<2) |
1112 | #define MAC_SET_PAUSE(X) (((X)&0xffff)<<16) | 1112 | # define MAC_SET_PAUSE(X) (((X)&0xffff)<<16) |
1113 | #define MAC_VLAN1_TAG 0x20 | 1113 | #define MAC_VLAN1_TAG 0x20 |
1114 | #define MAC_VLAN2_TAG 0x24 | 1114 | #define MAC_VLAN2_TAG 0x24 |
1115 | 1115 | ||
1116 | /* Ethernet Controller Enable */ | 1116 | /* Ethernet Controller Enable */ |
1117 | 1117 | ||
1118 | #define MAC_EN_CLOCK_ENABLE (1<<0) | 1118 | # define MAC_EN_CLOCK_ENABLE (1<<0) |
1119 | #define MAC_EN_RESET0 (1<<1) | 1119 | # define MAC_EN_RESET0 (1<<1) |
1120 | #define MAC_EN_TOSS (0<<2) | 1120 | # define MAC_EN_TOSS (0<<2) |
1121 | #define MAC_EN_CACHEABLE (1<<3) | 1121 | # define MAC_EN_CACHEABLE (1<<3) |
1122 | #define MAC_EN_RESET1 (1<<4) | 1122 | # define MAC_EN_RESET1 (1<<4) |
1123 | #define MAC_EN_RESET2 (1<<5) | 1123 | # define MAC_EN_RESET2 (1<<5) |
1124 | #define MAC_DMA_RESET (1<<6) | 1124 | # define MAC_DMA_RESET (1<<6) |
1125 | 1125 | ||
1126 | /* Ethernet Controller DMA Channels */ | 1126 | /* Ethernet Controller DMA Channels */ |
1127 | 1127 | ||
@@ -1129,22 +1129,22 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
1129 | #define MAC1_TX_DMA_ADDR 0xB4004200 | 1129 | #define MAC1_TX_DMA_ADDR 0xB4004200 |
1130 | /* offsets from MAC_TX_RING_ADDR address */ | 1130 | /* offsets from MAC_TX_RING_ADDR address */ |
1131 | #define MAC_TX_BUFF0_STATUS 0x0 | 1131 | #define MAC_TX_BUFF0_STATUS 0x0 |
1132 | #define TX_FRAME_ABORTED (1<<0) | 1132 | # define TX_FRAME_ABORTED (1<<0) |
1133 | #define TX_JAB_TIMEOUT (1<<1) | 1133 | # define TX_JAB_TIMEOUT (1<<1) |
1134 | #define TX_NO_CARRIER (1<<2) | 1134 | # define TX_NO_CARRIER (1<<2) |
1135 | #define TX_LOSS_CARRIER (1<<3) | 1135 | # define TX_LOSS_CARRIER (1<<3) |
1136 | #define TX_EXC_DEF (1<<4) | 1136 | # define TX_EXC_DEF (1<<4) |
1137 | #define TX_LATE_COLL_ABORT (1<<5) | 1137 | # define TX_LATE_COLL_ABORT (1<<5) |
1138 | #define TX_EXC_COLL (1<<6) | 1138 | # define TX_EXC_COLL (1<<6) |
1139 | #define TX_UNDERRUN (1<<7) | 1139 | # define TX_UNDERRUN (1<<7) |
1140 | #define TX_DEFERRED (1<<8) | 1140 | # define TX_DEFERRED (1<<8) |
1141 | #define TX_LATE_COLL (1<<9) | 1141 | # define TX_LATE_COLL (1<<9) |
1142 | #define TX_COLL_CNT_MASK (0xF<<10) | 1142 | # define TX_COLL_CNT_MASK (0xF<<10) |
1143 | #define TX_PKT_RETRY (1<<31) | 1143 | # define TX_PKT_RETRY (1<<31) |
1144 | #define MAC_TX_BUFF0_ADDR 0x4 | 1144 | #define MAC_TX_BUFF0_ADDR 0x4 |
1145 | #define TX_DMA_ENABLE (1<<0) | 1145 | # define TX_DMA_ENABLE (1<<0) |
1146 | #define TX_T_DONE (1<<1) | 1146 | # define TX_T_DONE (1<<1) |
1147 | #define TX_GET_DMA_BUFFER(X) (((X)>>2)&0x3) | 1147 | # define TX_GET_DMA_BUFFER(X) (((X)>>2)&0x3) |
1148 | #define MAC_TX_BUFF0_LEN 0x8 | 1148 | #define MAC_TX_BUFF0_LEN 0x8 |
1149 | #define MAC_TX_BUFF1_STATUS 0x10 | 1149 | #define MAC_TX_BUFF1_STATUS 0x10 |
1150 | #define MAC_TX_BUFF1_ADDR 0x14 | 1150 | #define MAC_TX_BUFF1_ADDR 0x14 |
@@ -1160,34 +1160,34 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
1160 | #define MAC1_RX_DMA_ADDR 0xB4004300 | 1160 | #define MAC1_RX_DMA_ADDR 0xB4004300 |
1161 | /* offsets from MAC_RX_RING_ADDR */ | 1161 | /* offsets from MAC_RX_RING_ADDR */ |
1162 | #define MAC_RX_BUFF0_STATUS 0x0 | 1162 | #define MAC_RX_BUFF0_STATUS 0x0 |
1163 | #define RX_FRAME_LEN_MASK 0x3fff | 1163 | # define RX_FRAME_LEN_MASK 0x3fff |
1164 | #define RX_WDOG_TIMER (1<<14) | 1164 | # define RX_WDOG_TIMER (1<<14) |
1165 | #define RX_RUNT (1<<15) | 1165 | # define RX_RUNT (1<<15) |
1166 | #define RX_OVERLEN (1<<16) | 1166 | # define RX_OVERLEN (1<<16) |
1167 | #define RX_COLL (1<<17) | 1167 | # define RX_COLL (1<<17) |
1168 | #define RX_ETHER (1<<18) | 1168 | # define RX_ETHER (1<<18) |
1169 | #define RX_MII_ERROR (1<<19) | 1169 | # define RX_MII_ERROR (1<<19) |
1170 | #define RX_DRIBBLING (1<<20) | 1170 | # define RX_DRIBBLING (1<<20) |
1171 | #define RX_CRC_ERROR (1<<21) | 1171 | # define RX_CRC_ERROR (1<<21) |
1172 | #define RX_VLAN1 (1<<22) | 1172 | # define RX_VLAN1 (1<<22) |
1173 | #define RX_VLAN2 (1<<23) | 1173 | # define RX_VLAN2 (1<<23) |
1174 | #define RX_LEN_ERROR (1<<24) | 1174 | # define RX_LEN_ERROR (1<<24) |
1175 | #define RX_CNTRL_FRAME (1<<25) | 1175 | # define RX_CNTRL_FRAME (1<<25) |
1176 | #define RX_U_CNTRL_FRAME (1<<26) | 1176 | # define RX_U_CNTRL_FRAME (1<<26) |
1177 | #define RX_MCAST_FRAME (1<<27) | 1177 | # define RX_MCAST_FRAME (1<<27) |
1178 | #define RX_BCAST_FRAME (1<<28) | 1178 | # define RX_BCAST_FRAME (1<<28) |
1179 | #define RX_FILTER_FAIL (1<<29) | 1179 | # define RX_FILTER_FAIL (1<<29) |
1180 | #define RX_PACKET_FILTER (1<<30) | 1180 | # define RX_PACKET_FILTER (1<<30) |
1181 | #define RX_MISSED_FRAME (1<<31) | 1181 | # define RX_MISSED_FRAME (1<<31) |
1182 | 1182 | ||
1183 | #define RX_ERROR (RX_WDOG_TIMER | RX_RUNT | RX_OVERLEN | \ | 1183 | # define RX_ERROR (RX_WDOG_TIMER | RX_RUNT | RX_OVERLEN | \ |
1184 | RX_COLL | RX_MII_ERROR | RX_CRC_ERROR | \ | 1184 | RX_COLL | RX_MII_ERROR | RX_CRC_ERROR | \ |
1185 | RX_LEN_ERROR | RX_U_CNTRL_FRAME | RX_MISSED_FRAME) | 1185 | RX_LEN_ERROR | RX_U_CNTRL_FRAME | RX_MISSED_FRAME) |
1186 | #define MAC_RX_BUFF0_ADDR 0x4 | 1186 | #define MAC_RX_BUFF0_ADDR 0x4 |
1187 | #define RX_DMA_ENABLE (1<<0) | 1187 | # define RX_DMA_ENABLE (1<<0) |
1188 | #define RX_T_DONE (1<<1) | 1188 | # define RX_T_DONE (1<<1) |
1189 | #define RX_GET_DMA_BUFFER(X) (((X)>>2)&0x3) | 1189 | # define RX_GET_DMA_BUFFER(X) (((X)>>2)&0x3) |
1190 | #define RX_SET_BUFF_ADDR(X) ((X)&0xffffffc0) | 1190 | # define RX_SET_BUFF_ADDR(X) ((X)&0xffffffc0) |
1191 | #define MAC_RX_BUFF1_STATUS 0x10 | 1191 | #define MAC_RX_BUFF1_STATUS 0x10 |
1192 | #define MAC_RX_BUFF1_ADDR 0x14 | 1192 | #define MAC_RX_BUFF1_ADDR 0x14 |
1193 | #define MAC_RX_BUFF2_STATUS 0x20 | 1193 | #define MAC_RX_BUFF2_STATUS 0x20 |
@@ -1298,44 +1298,44 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
1298 | 1298 | ||
1299 | /* SSIO */ | 1299 | /* SSIO */ |
1300 | #define SSI0_STATUS 0xB1600000 | 1300 | #define SSI0_STATUS 0xB1600000 |
1301 | #define SSI_STATUS_BF (1<<4) | 1301 | # define SSI_STATUS_BF (1<<4) |
1302 | #define SSI_STATUS_OF (1<<3) | 1302 | # define SSI_STATUS_OF (1<<3) |
1303 | #define SSI_STATUS_UF (1<<2) | 1303 | # define SSI_STATUS_UF (1<<2) |
1304 | #define SSI_STATUS_D (1<<1) | 1304 | # define SSI_STATUS_D (1<<1) |
1305 | #define SSI_STATUS_B (1<<0) | 1305 | # define SSI_STATUS_B (1<<0) |
1306 | #define SSI0_INT 0xB1600004 | 1306 | #define SSI0_INT 0xB1600004 |
1307 | #define SSI_INT_OI (1<<3) | 1307 | # define SSI_INT_OI (1<<3) |
1308 | #define SSI_INT_UI (1<<2) | 1308 | # define SSI_INT_UI (1<<2) |
1309 | #define SSI_INT_DI (1<<1) | 1309 | # define SSI_INT_DI (1<<1) |
1310 | #define SSI0_INT_ENABLE 0xB1600008 | 1310 | #define SSI0_INT_ENABLE 0xB1600008 |
1311 | #define SSI_INTE_OIE (1<<3) | 1311 | # define SSI_INTE_OIE (1<<3) |
1312 | #define SSI_INTE_UIE (1<<2) | 1312 | # define SSI_INTE_UIE (1<<2) |
1313 | #define SSI_INTE_DIE (1<<1) | 1313 | # define SSI_INTE_DIE (1<<1) |
1314 | #define SSI0_CONFIG 0xB1600020 | 1314 | #define SSI0_CONFIG 0xB1600020 |
1315 | #define SSI_CONFIG_AO (1<<24) | 1315 | # define SSI_CONFIG_AO (1<<24) |
1316 | #define SSI_CONFIG_DO (1<<23) | 1316 | # define SSI_CONFIG_DO (1<<23) |
1317 | #define SSI_CONFIG_ALEN_BIT 20 | 1317 | # define SSI_CONFIG_ALEN_BIT 20 |
1318 | #define SSI_CONFIG_ALEN_MASK (0x7<<20) | 1318 | # define SSI_CONFIG_ALEN_MASK (0x7<<20) |
1319 | #define SSI_CONFIG_DLEN_BIT 16 | 1319 | # define SSI_CONFIG_DLEN_BIT 16 |
1320 | #define SSI_CONFIG_DLEN_MASK (0x7<<16) | 1320 | # define SSI_CONFIG_DLEN_MASK (0x7<<16) |
1321 | #define SSI_CONFIG_DD (1<<11) | 1321 | # define SSI_CONFIG_DD (1<<11) |
1322 | #define SSI_CONFIG_AD (1<<10) | 1322 | # define SSI_CONFIG_AD (1<<10) |
1323 | #define SSI_CONFIG_BM_BIT 8 | 1323 | # define SSI_CONFIG_BM_BIT 8 |
1324 | #define SSI_CONFIG_BM_MASK (0x3<<8) | 1324 | # define SSI_CONFIG_BM_MASK (0x3<<8) |
1325 | #define SSI_CONFIG_CE (1<<7) | 1325 | # define SSI_CONFIG_CE (1<<7) |
1326 | #define SSI_CONFIG_DP (1<<6) | 1326 | # define SSI_CONFIG_DP (1<<6) |
1327 | #define SSI_CONFIG_DL (1<<5) | 1327 | # define SSI_CONFIG_DL (1<<5) |
1328 | #define SSI_CONFIG_EP (1<<4) | 1328 | # define SSI_CONFIG_EP (1<<4) |
1329 | #define SSI0_ADATA 0xB1600024 | 1329 | #define SSI0_ADATA 0xB1600024 |
1330 | #define SSI_AD_D (1<<24) | 1330 | # define SSI_AD_D (1<<24) |
1331 | #define SSI_AD_ADDR_BIT 16 | 1331 | # define SSI_AD_ADDR_BIT 16 |
1332 | #define SSI_AD_ADDR_MASK (0xff<<16) | 1332 | # define SSI_AD_ADDR_MASK (0xff<<16) |
1333 | #define SSI_AD_DATA_BIT 0 | 1333 | # define SSI_AD_DATA_BIT 0 |
1334 | #define SSI_AD_DATA_MASK (0xfff<<0) | 1334 | # define SSI_AD_DATA_MASK (0xfff<<0) |
1335 | #define SSI0_CLKDIV 0xB1600028 | 1335 | #define SSI0_CLKDIV 0xB1600028 |
1336 | #define SSI0_CONTROL 0xB1600100 | 1336 | #define SSI0_CONTROL 0xB1600100 |
1337 | #define SSI_CONTROL_CD (1<<1) | 1337 | # define SSI_CONTROL_CD (1<<1) |
1338 | #define SSI_CONTROL_E (1<<0) | 1338 | # define SSI_CONTROL_E (1<<0) |
1339 | 1339 | ||
1340 | /* SSI1 */ | 1340 | /* SSI1 */ |
1341 | #define SSI1_STATUS 0xB1680000 | 1341 | #define SSI1_STATUS 0xB1680000 |
@@ -1401,75 +1401,75 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
1401 | #define IR_RING_ADDR_CMPR (IRDA_BASE+0x14) | 1401 | #define IR_RING_ADDR_CMPR (IRDA_BASE+0x14) |
1402 | #define IR_INT_CLEAR (IRDA_BASE+0x18) | 1402 | #define IR_INT_CLEAR (IRDA_BASE+0x18) |
1403 | #define IR_CONFIG_1 (IRDA_BASE+0x20) | 1403 | #define IR_CONFIG_1 (IRDA_BASE+0x20) |
1404 | #define IR_RX_INVERT_LED (1<<0) | 1404 | # define IR_RX_INVERT_LED (1<<0) |
1405 | #define IR_TX_INVERT_LED (1<<1) | 1405 | # define IR_TX_INVERT_LED (1<<1) |
1406 | #define IR_ST (1<<2) | 1406 | # define IR_ST (1<<2) |
1407 | #define IR_SF (1<<3) | 1407 | # define IR_SF (1<<3) |
1408 | #define IR_SIR (1<<4) | 1408 | # define IR_SIR (1<<4) |
1409 | #define IR_MIR (1<<5) | 1409 | # define IR_MIR (1<<5) |
1410 | #define IR_FIR (1<<6) | 1410 | # define IR_FIR (1<<6) |
1411 | #define IR_16CRC (1<<7) | 1411 | # define IR_16CRC (1<<7) |
1412 | #define IR_TD (1<<8) | 1412 | # define IR_TD (1<<8) |
1413 | #define IR_RX_ALL (1<<9) | 1413 | # define IR_RX_ALL (1<<9) |
1414 | #define IR_DMA_ENABLE (1<<10) | 1414 | # define IR_DMA_ENABLE (1<<10) |
1415 | #define IR_RX_ENABLE (1<<11) | 1415 | # define IR_RX_ENABLE (1<<11) |
1416 | #define IR_TX_ENABLE (1<<12) | 1416 | # define IR_TX_ENABLE (1<<12) |
1417 | #define IR_LOOPBACK (1<<14) | 1417 | # define IR_LOOPBACK (1<<14) |
1418 | #define IR_SIR_MODE (IR_SIR | IR_DMA_ENABLE | \ | 1418 | # define IR_SIR_MODE (IR_SIR | IR_DMA_ENABLE | \ |
1419 | IR_RX_ALL | IR_RX_ENABLE | IR_SF | IR_16CRC) | 1419 | IR_RX_ALL | IR_RX_ENABLE | IR_SF | IR_16CRC) |
1420 | #define IR_SIR_FLAGS (IRDA_BASE+0x24) | 1420 | #define IR_SIR_FLAGS (IRDA_BASE+0x24) |
1421 | #define IR_ENABLE (IRDA_BASE+0x28) | 1421 | #define IR_ENABLE (IRDA_BASE+0x28) |
1422 | #define IR_RX_STATUS (1<<9) | 1422 | # define IR_RX_STATUS (1<<9) |
1423 | #define IR_TX_STATUS (1<<10) | 1423 | # define IR_TX_STATUS (1<<10) |
1424 | #define IR_READ_PHY_CONFIG (IRDA_BASE+0x2C) | 1424 | #define IR_READ_PHY_CONFIG (IRDA_BASE+0x2C) |
1425 | #define IR_WRITE_PHY_CONFIG (IRDA_BASE+0x30) | 1425 | #define IR_WRITE_PHY_CONFIG (IRDA_BASE+0x30) |
1426 | #define IR_MAX_PKT_LEN (IRDA_BASE+0x34) | 1426 | #define IR_MAX_PKT_LEN (IRDA_BASE+0x34) |
1427 | #define IR_RX_BYTE_CNT (IRDA_BASE+0x38) | 1427 | #define IR_RX_BYTE_CNT (IRDA_BASE+0x38) |
1428 | #define IR_CONFIG_2 (IRDA_BASE+0x3C) | 1428 | #define IR_CONFIG_2 (IRDA_BASE+0x3C) |
1429 | #define IR_MODE_INV (1<<0) | 1429 | # define IR_MODE_INV (1<<0) |
1430 | #define IR_ONE_PIN (1<<1) | 1430 | # define IR_ONE_PIN (1<<1) |
1431 | #define IR_INTERFACE_CONFIG (IRDA_BASE+0x40) | 1431 | #define IR_INTERFACE_CONFIG (IRDA_BASE+0x40) |
1432 | 1432 | ||
1433 | /* GPIO */ | 1433 | /* GPIO */ |
1434 | #define SYS_PINFUNC 0xB190002C | 1434 | #define SYS_PINFUNC 0xB190002C |
1435 | #define SYS_PF_USB (1<<15) /* 2nd USB device/host */ | 1435 | # define SYS_PF_USB (1<<15) /* 2nd USB device/host */ |
1436 | #define SYS_PF_U3 (1<<14) /* GPIO23/U3TXD */ | 1436 | # define SYS_PF_U3 (1<<14) /* GPIO23/U3TXD */ |
1437 | #define SYS_PF_U2 (1<<13) /* GPIO22/U2TXD */ | 1437 | # define SYS_PF_U2 (1<<13) /* GPIO22/U2TXD */ |
1438 | #define SYS_PF_U1 (1<<12) /* GPIO21/U1TXD */ | 1438 | # define SYS_PF_U1 (1<<12) /* GPIO21/U1TXD */ |
1439 | #define SYS_PF_SRC (1<<11) /* GPIO6/SROMCKE */ | 1439 | # define SYS_PF_SRC (1<<11) /* GPIO6/SROMCKE */ |
1440 | #define SYS_PF_CK5 (1<<10) /* GPIO3/CLK5 */ | 1440 | # define SYS_PF_CK5 (1<<10) /* GPIO3/CLK5 */ |
1441 | #define SYS_PF_CK4 (1<<9) /* GPIO2/CLK4 */ | 1441 | # define SYS_PF_CK4 (1<<9) /* GPIO2/CLK4 */ |
1442 | #define SYS_PF_IRF (1<<8) /* GPIO15/IRFIRSEL */ | 1442 | # define SYS_PF_IRF (1<<8) /* GPIO15/IRFIRSEL */ |
1443 | #define SYS_PF_UR3 (1<<7) /* GPIO[14:9]/UART3 */ | 1443 | # define SYS_PF_UR3 (1<<7) /* GPIO[14:9]/UART3 */ |
1444 | #define SYS_PF_I2D (1<<6) /* GPIO8/I2SDI */ | 1444 | # define SYS_PF_I2D (1<<6) /* GPIO8/I2SDI */ |
1445 | #define SYS_PF_I2S (1<<5) /* I2S/GPIO[29:31] */ | 1445 | # define SYS_PF_I2S (1<<5) /* I2S/GPIO[29:31] */ |
1446 | #define SYS_PF_NI2 (1<<4) /* NI2/GPIO[24:28] */ | 1446 | # define SYS_PF_NI2 (1<<4) /* NI2/GPIO[24:28] */ |
1447 | #define SYS_PF_U0 (1<<3) /* U0TXD/GPIO20 */ | 1447 | # define SYS_PF_U0 (1<<3) /* U0TXD/GPIO20 */ |
1448 | #define SYS_PF_RD (1<<2) /* IRTXD/GPIO19 */ | 1448 | # define SYS_PF_RD (1<<2) /* IRTXD/GPIO19 */ |
1449 | #define SYS_PF_A97 (1<<1) /* AC97/SSL1 */ | 1449 | # define SYS_PF_A97 (1<<1) /* AC97/SSL1 */ |
1450 | #define SYS_PF_S0 (1<<0) /* SSI_0/GPIO[16:18] */ | 1450 | # define SYS_PF_S0 (1<<0) /* SSI_0/GPIO[16:18] */ |
1451 | 1451 | ||
1452 | /* Au1100 Only */ | 1452 | /* Au1100 Only */ |
1453 | #define SYS_PF_PC (1<<18) /* PCMCIA/GPIO[207:204] */ | 1453 | # define SYS_PF_PC (1<<18) /* PCMCIA/GPIO[207:204] */ |
1454 | #define SYS_PF_LCD (1<<17) /* extern lcd/GPIO[203:200] */ | 1454 | # define SYS_PF_LCD (1<<17) /* extern lcd/GPIO[203:200] */ |
1455 | #define SYS_PF_CS (1<<16) /* EXTCLK0/32khz to gpio2 */ | 1455 | # define SYS_PF_CS (1<<16) /* EXTCLK0/32khz to gpio2 */ |
1456 | #define SYS_PF_EX0 (1<<9) /* gpio2/clock */ | 1456 | # define SYS_PF_EX0 (1<<9) /* gpio2/clock */ |
1457 | 1457 | ||
1458 | /* Au1550 Only. Redefines lots of pins */ | 1458 | /* Au1550 Only. Redefines lots of pins */ |
1459 | #define SYS_PF_PSC2_MASK (7 << 17) | 1459 | # define SYS_PF_PSC2_MASK (7 << 17) |
1460 | #define SYS_PF_PSC2_AC97 (0) | 1460 | # define SYS_PF_PSC2_AC97 (0) |
1461 | #define SYS_PF_PSC2_SPI (0) | 1461 | # define SYS_PF_PSC2_SPI (0) |
1462 | #define SYS_PF_PSC2_I2S (1 << 17) | 1462 | # define SYS_PF_PSC2_I2S (1 << 17) |
1463 | #define SYS_PF_PSC2_SMBUS (3 << 17) | 1463 | # define SYS_PF_PSC2_SMBUS (3 << 17) |
1464 | #define SYS_PF_PSC2_GPIO (7 << 17) | 1464 | # define SYS_PF_PSC2_GPIO (7 << 17) |
1465 | #define SYS_PF_PSC3_MASK (7 << 20) | 1465 | # define SYS_PF_PSC3_MASK (7 << 20) |
1466 | #define SYS_PF_PSC3_AC97 (0) | 1466 | # define SYS_PF_PSC3_AC97 (0) |
1467 | #define SYS_PF_PSC3_SPI (0) | 1467 | # define SYS_PF_PSC3_SPI (0) |
1468 | #define SYS_PF_PSC3_I2S (1 << 20) | 1468 | # define SYS_PF_PSC3_I2S (1 << 20) |
1469 | #define SYS_PF_PSC3_SMBUS (3 << 20) | 1469 | # define SYS_PF_PSC3_SMBUS (3 << 20) |
1470 | #define SYS_PF_PSC3_GPIO (7 << 20) | 1470 | # define SYS_PF_PSC3_GPIO (7 << 20) |
1471 | #define SYS_PF_PSC1_S1 (1 << 1) | 1471 | # define SYS_PF_PSC1_S1 (1 << 1) |
1472 | #define SYS_PF_MUST_BE_SET ((1 << 5) | (1 << 2)) | 1472 | # define SYS_PF_MUST_BE_SET ((1 << 5) | (1 << 2)) |
1473 | 1473 | ||
1474 | /* Au1200 Only */ | 1474 | /* Au1200 Only */ |
1475 | #ifdef CONFIG_SOC_AU1200 | 1475 | #ifdef CONFIG_SOC_AU1200 |
@@ -1530,104 +1530,104 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
1530 | 1530 | ||
1531 | /* Clock Controller */ | 1531 | /* Clock Controller */ |
1532 | #define SYS_FREQCTRL0 0xB1900020 | 1532 | #define SYS_FREQCTRL0 0xB1900020 |
1533 | #define SYS_FC_FRDIV2_BIT 22 | 1533 | # define SYS_FC_FRDIV2_BIT 22 |
1534 | #define SYS_FC_FRDIV2_MASK (0xff << SYS_FC_FRDIV2_BIT) | 1534 | # define SYS_FC_FRDIV2_MASK (0xff << SYS_FC_FRDIV2_BIT) |
1535 | #define SYS_FC_FE2 (1<<21) | 1535 | # define SYS_FC_FE2 (1<<21) |
1536 | #define SYS_FC_FS2 (1<<20) | 1536 | # define SYS_FC_FS2 (1<<20) |
1537 | #define SYS_FC_FRDIV1_BIT 12 | 1537 | # define SYS_FC_FRDIV1_BIT 12 |
1538 | #define SYS_FC_FRDIV1_MASK (0xff << SYS_FC_FRDIV1_BIT) | 1538 | # define SYS_FC_FRDIV1_MASK (0xff << SYS_FC_FRDIV1_BIT) |
1539 | #define SYS_FC_FE1 (1<<11) | 1539 | # define SYS_FC_FE1 (1<<11) |
1540 | #define SYS_FC_FS1 (1<<10) | 1540 | # define SYS_FC_FS1 (1<<10) |
1541 | #define SYS_FC_FRDIV0_BIT 2 | 1541 | # define SYS_FC_FRDIV0_BIT 2 |
1542 | #define SYS_FC_FRDIV0_MASK (0xff << SYS_FC_FRDIV0_BIT) | 1542 | # define SYS_FC_FRDIV0_MASK (0xff << SYS_FC_FRDIV0_BIT) |
1543 | #define SYS_FC_FE0 (1<<1) | 1543 | # define SYS_FC_FE0 (1<<1) |
1544 | #define SYS_FC_FS0 (1<<0) | 1544 | # define SYS_FC_FS0 (1<<0) |
1545 | #define SYS_FREQCTRL1 0xB1900024 | 1545 | #define SYS_FREQCTRL1 0xB1900024 |
1546 | #define SYS_FC_FRDIV5_BIT 22 | 1546 | # define SYS_FC_FRDIV5_BIT 22 |
1547 | #define SYS_FC_FRDIV5_MASK (0xff << SYS_FC_FRDIV5_BIT) | 1547 | # define SYS_FC_FRDIV5_MASK (0xff << SYS_FC_FRDIV5_BIT) |
1548 | #define SYS_FC_FE5 (1<<21) | 1548 | # define SYS_FC_FE5 (1<<21) |
1549 | #define SYS_FC_FS5 (1<<20) | 1549 | # define SYS_FC_FS5 (1<<20) |
1550 | #define SYS_FC_FRDIV4_BIT 12 | 1550 | # define SYS_FC_FRDIV4_BIT 12 |
1551 | #define SYS_FC_FRDIV4_MASK (0xff << SYS_FC_FRDIV4_BIT) | 1551 | # define SYS_FC_FRDIV4_MASK (0xff << SYS_FC_FRDIV4_BIT) |
1552 | #define SYS_FC_FE4 (1<<11) | 1552 | # define SYS_FC_FE4 (1<<11) |
1553 | #define SYS_FC_FS4 (1<<10) | 1553 | # define SYS_FC_FS4 (1<<10) |
1554 | #define SYS_FC_FRDIV3_BIT 2 | 1554 | # define SYS_FC_FRDIV3_BIT 2 |
1555 | #define SYS_FC_FRDIV3_MASK (0xff << SYS_FC_FRDIV3_BIT) | 1555 | # define SYS_FC_FRDIV3_MASK (0xff << SYS_FC_FRDIV3_BIT) |
1556 | #define SYS_FC_FE3 (1<<1) | 1556 | # define SYS_FC_FE3 (1<<1) |
1557 | #define SYS_FC_FS3 (1<<0) | 1557 | # define SYS_FC_FS3 (1<<0) |
1558 | #define SYS_CLKSRC 0xB1900028 | 1558 | #define SYS_CLKSRC 0xB1900028 |
1559 | #define SYS_CS_ME1_BIT 27 | 1559 | # define SYS_CS_ME1_BIT 27 |
1560 | #define SYS_CS_ME1_MASK (0x7<<SYS_CS_ME1_BIT) | 1560 | # define SYS_CS_ME1_MASK (0x7<<SYS_CS_ME1_BIT) |
1561 | #define SYS_CS_DE1 (1<<26) | 1561 | # define SYS_CS_DE1 (1<<26) |
1562 | #define SYS_CS_CE1 (1<<25) | 1562 | # define SYS_CS_CE1 (1<<25) |
1563 | #define SYS_CS_ME0_BIT 22 | 1563 | # define SYS_CS_ME0_BIT 22 |
1564 | #define SYS_CS_ME0_MASK (0x7<<SYS_CS_ME0_BIT) | 1564 | # define SYS_CS_ME0_MASK (0x7<<SYS_CS_ME0_BIT) |
1565 | #define SYS_CS_DE0 (1<<21) | 1565 | # define SYS_CS_DE0 (1<<21) |
1566 | #define SYS_CS_CE0 (1<<20) | 1566 | # define SYS_CS_CE0 (1<<20) |
1567 | #define SYS_CS_MI2_BIT 17 | 1567 | # define SYS_CS_MI2_BIT 17 |
1568 | #define SYS_CS_MI2_MASK (0x7<<SYS_CS_MI2_BIT) | 1568 | # define SYS_CS_MI2_MASK (0x7<<SYS_CS_MI2_BIT) |
1569 | #define SYS_CS_DI2 (1<<16) | 1569 | # define SYS_CS_DI2 (1<<16) |
1570 | #define SYS_CS_CI2 (1<<15) | 1570 | # define SYS_CS_CI2 (1<<15) |
1571 | #ifdef CONFIG_SOC_AU1100 | 1571 | #ifdef CONFIG_SOC_AU1100 |
1572 | #define SYS_CS_ML_BIT 7 | 1572 | # define SYS_CS_ML_BIT 7 |
1573 | #define SYS_CS_ML_MASK (0x7<<SYS_CS_ML_BIT) | 1573 | # define SYS_CS_ML_MASK (0x7<<SYS_CS_ML_BIT) |
1574 | #define SYS_CS_DL (1<<6) | 1574 | # define SYS_CS_DL (1<<6) |
1575 | #define SYS_CS_CL (1<<5) | 1575 | # define SYS_CS_CL (1<<5) |
1576 | #else | 1576 | #else |
1577 | #define SYS_CS_MUH_BIT 12 | 1577 | # define SYS_CS_MUH_BIT 12 |
1578 | #define SYS_CS_MUH_MASK (0x7<<SYS_CS_MUH_BIT) | 1578 | # define SYS_CS_MUH_MASK (0x7<<SYS_CS_MUH_BIT) |
1579 | #define SYS_CS_DUH (1<<11) | 1579 | # define SYS_CS_DUH (1<<11) |
1580 | #define SYS_CS_CUH (1<<10) | 1580 | # define SYS_CS_CUH (1<<10) |
1581 | #define SYS_CS_MUD_BIT 7 | 1581 | # define SYS_CS_MUD_BIT 7 |
1582 | #define SYS_CS_MUD_MASK (0x7<<SYS_CS_MUD_BIT) | 1582 | # define SYS_CS_MUD_MASK (0x7<<SYS_CS_MUD_BIT) |
1583 | #define SYS_CS_DUD (1<<6) | 1583 | # define SYS_CS_DUD (1<<6) |
1584 | #define SYS_CS_CUD (1<<5) | 1584 | # define SYS_CS_CUD (1<<5) |
1585 | #endif | 1585 | #endif |
1586 | #define SYS_CS_MIR_BIT 2 | 1586 | # define SYS_CS_MIR_BIT 2 |
1587 | #define SYS_CS_MIR_MASK (0x7<<SYS_CS_MIR_BIT) | 1587 | # define SYS_CS_MIR_MASK (0x7<<SYS_CS_MIR_BIT) |
1588 | #define SYS_CS_DIR (1<<1) | 1588 | # define SYS_CS_DIR (1<<1) |
1589 | #define SYS_CS_CIR (1<<0) | 1589 | # define SYS_CS_CIR (1<<0) |
1590 | 1590 | ||
1591 | #define SYS_CS_MUX_AUX 0x1 | 1591 | # define SYS_CS_MUX_AUX 0x1 |
1592 | #define SYS_CS_MUX_FQ0 0x2 | 1592 | # define SYS_CS_MUX_FQ0 0x2 |
1593 | #define SYS_CS_MUX_FQ1 0x3 | 1593 | # define SYS_CS_MUX_FQ1 0x3 |
1594 | #define SYS_CS_MUX_FQ2 0x4 | 1594 | # define SYS_CS_MUX_FQ2 0x4 |
1595 | #define SYS_CS_MUX_FQ3 0x5 | 1595 | # define SYS_CS_MUX_FQ3 0x5 |
1596 | #define SYS_CS_MUX_FQ4 0x6 | 1596 | # define SYS_CS_MUX_FQ4 0x6 |
1597 | #define SYS_CS_MUX_FQ5 0x7 | 1597 | # define SYS_CS_MUX_FQ5 0x7 |
1598 | #define SYS_CPUPLL 0xB1900060 | 1598 | #define SYS_CPUPLL 0xB1900060 |
1599 | #define SYS_AUXPLL 0xB1900064 | 1599 | #define SYS_AUXPLL 0xB1900064 |
1600 | 1600 | ||
1601 | /* AC97 Controller */ | 1601 | /* AC97 Controller */ |
1602 | #define AC97C_CONFIG 0xB0000000 | 1602 | #define AC97C_CONFIG 0xB0000000 |
1603 | #define AC97C_RECV_SLOTS_BIT 13 | 1603 | # define AC97C_RECV_SLOTS_BIT 13 |
1604 | #define AC97C_RECV_SLOTS_MASK (0x3ff << AC97C_RECV_SLOTS_BIT) | 1604 | # define AC97C_RECV_SLOTS_MASK (0x3ff << AC97C_RECV_SLOTS_BIT) |
1605 | #define AC97C_XMIT_SLOTS_BIT 3 | 1605 | # define AC97C_XMIT_SLOTS_BIT 3 |
1606 | #define AC97C_XMIT_SLOTS_MASK (0x3ff << AC97C_XMIT_SLOTS_BIT) | 1606 | # define AC97C_XMIT_SLOTS_MASK (0x3ff << AC97C_XMIT_SLOTS_BIT) |
1607 | #define AC97C_SG (1<<2) | 1607 | # define AC97C_SG (1<<2) |
1608 | #define AC97C_SYNC (1<<1) | 1608 | # define AC97C_SYNC (1<<1) |
1609 | #define AC97C_RESET (1<<0) | 1609 | # define AC97C_RESET (1<<0) |
1610 | #define AC97C_STATUS 0xB0000004 | 1610 | #define AC97C_STATUS 0xB0000004 |
1611 | #define AC97C_XU (1<<11) | 1611 | # define AC97C_XU (1<<11) |
1612 | #define AC97C_XO (1<<10) | 1612 | # define AC97C_XO (1<<10) |
1613 | #define AC97C_RU (1<<9) | 1613 | # define AC97C_RU (1<<9) |
1614 | #define AC97C_RO (1<<8) | 1614 | # define AC97C_RO (1<<8) |
1615 | #define AC97C_READY (1<<7) | 1615 | # define AC97C_READY (1<<7) |
1616 | #define AC97C_CP (1<<6) | 1616 | # define AC97C_CP (1<<6) |
1617 | #define AC97C_TR (1<<5) | 1617 | # define AC97C_TR (1<<5) |
1618 | #define AC97C_TE (1<<4) | 1618 | # define AC97C_TE (1<<4) |
1619 | #define AC97C_TF (1<<3) | 1619 | # define AC97C_TF (1<<3) |
1620 | #define AC97C_RR (1<<2) | 1620 | # define AC97C_RR (1<<2) |
1621 | #define AC97C_RE (1<<1) | 1621 | # define AC97C_RE (1<<1) |
1622 | #define AC97C_RF (1<<0) | 1622 | # define AC97C_RF (1<<0) |
1623 | #define AC97C_DATA 0xB0000008 | 1623 | #define AC97C_DATA 0xB0000008 |
1624 | #define AC97C_CMD 0xB000000C | 1624 | #define AC97C_CMD 0xB000000C |
1625 | #define AC97C_WD_BIT 16 | 1625 | # define AC97C_WD_BIT 16 |
1626 | #define AC97C_READ (1<<7) | 1626 | # define AC97C_READ (1<<7) |
1627 | #define AC97C_INDEX_MASK 0x7f | 1627 | # define AC97C_INDEX_MASK 0x7f |
1628 | #define AC97C_CNTRL 0xB0000010 | 1628 | #define AC97C_CNTRL 0xB0000010 |
1629 | #define AC97C_RS (1<<1) | 1629 | # define AC97C_RS (1<<1) |
1630 | #define AC97C_CE (1<<0) | 1630 | # define AC97C_CE (1<<0) |
1631 | 1631 | ||
1632 | 1632 | ||
1633 | /* Secure Digital (SD) Controller */ | 1633 | /* Secure Digital (SD) Controller */ |
@@ -1636,12 +1636,12 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
1636 | #define SD1_XMIT_FIFO 0xB0680000 | 1636 | #define SD1_XMIT_FIFO 0xB0680000 |
1637 | #define SD1_RECV_FIFO 0xB0680004 | 1637 | #define SD1_RECV_FIFO 0xB0680004 |
1638 | 1638 | ||
1639 | #if defined (CONFIG_SOC_AU1500) || defined(CONFIG_SOC_AU1550) | 1639 | #if defined(CONFIG_SOC_AU1500) || defined(CONFIG_SOC_AU1550) |
1640 | /* Au1500 PCI Controller */ | 1640 | /* Au1500 PCI Controller */ |
1641 | #define Au1500_CFG_BASE 0xB4005000 // virtual, kseg0 addr | 1641 | #define Au1500_CFG_BASE 0xB4005000 // virtual, kseg0 addr |
1642 | #define Au1500_PCI_CMEM (Au1500_CFG_BASE + 0) | 1642 | #define Au1500_PCI_CMEM (Au1500_CFG_BASE + 0) |
1643 | #define Au1500_PCI_CFG (Au1500_CFG_BASE + 4) | 1643 | #define Au1500_PCI_CFG (Au1500_CFG_BASE + 4) |
1644 | #define PCI_ERROR ((1<<22) | (1<<23) | (1<<24) | (1<<25) | (1<<26) | (1<<27)) | 1644 | # define PCI_ERROR ((1<<22) | (1<<23) | (1<<24) | (1<<25) | (1<<26) | (1<<27)) |
1645 | #define Au1500_PCI_B2BMASK_CCH (Au1500_CFG_BASE + 8) | 1645 | #define Au1500_PCI_B2BMASK_CCH (Au1500_CFG_BASE + 8) |
1646 | #define Au1500_PCI_B2B0_VID (Au1500_CFG_BASE + 0xC) | 1646 | #define Au1500_PCI_B2B0_VID (Au1500_CFG_BASE + 0xC) |
1647 | #define Au1500_PCI_B2B1_ID (Au1500_CFG_BASE + 0x10) | 1647 | #define Au1500_PCI_B2B1_ID (Au1500_CFG_BASE + 0x10) |
diff --git a/include/asm-mips/mach-au1x00/au1xxx_dbdma.h b/include/asm-mips/mach-au1x00/au1xxx_dbdma.h index eeb0c3115b..93d507cea5 100644 --- a/include/asm-mips/mach-au1x00/au1xxx_dbdma.h +++ b/include/asm-mips/mach-au1x00/au1xxx_dbdma.h | |||
@@ -199,7 +199,7 @@ typedef volatile struct au1xxx_ddma_desc { | |||
199 | #define DSCR_CMD0_ALWAYS 31 | 199 | #define DSCR_CMD0_ALWAYS 31 |
200 | #define DSCR_NDEV_IDS 32 | 200 | #define DSCR_NDEV_IDS 32 |
201 | /* THis macro is used to find/create custom device types */ | 201 | /* THis macro is used to find/create custom device types */ |
202 | #define DSCR_DEV2CUSTOM_ID(x,d) (((((x)&0xFFFF)<<8)|0x32000000)|((d)&0xFF)) | 202 | #define DSCR_DEV2CUSTOM_ID(x, d) (((((x)&0xFFFF)<<8)|0x32000000)|((d)&0xFF)) |
203 | #define DSCR_CUSTOM2DEV_ID(x) ((x)&0xFF) | 203 | #define DSCR_CUSTOM2DEV_ID(x) ((x)&0xFF) |
204 | 204 | ||
205 | 205 | ||
@@ -373,14 +373,14 @@ void * au1xxx_ddma_get_nextptr_virt(au1x_ddma_desc_t *dp); | |||
373 | Some compatibilty macros -- | 373 | Some compatibilty macros -- |
374 | Needed to make changes to API without breaking existing drivers | 374 | Needed to make changes to API without breaking existing drivers |
375 | */ | 375 | */ |
376 | #define au1xxx_dbdma_put_source(chanid,buf,nbytes)_au1xxx_dbdma_put_source(chanid, buf, nbytes, DDMA_FLAGS_IE) | 376 | #define au1xxx_dbdma_put_source(chanid, buf, nbytes)_au1xxx_dbdma_put_source(chanid, buf, nbytes, DDMA_FLAGS_IE) |
377 | #define au1xxx_dbdma_put_source_flags(chanid,buf,nbytes,flags) _au1xxx_dbdma_put_source(chanid, buf, nbytes, flags) | 377 | #define au1xxx_dbdma_put_source_flags(chanid, buf, nbytes, flags) _au1xxx_dbdma_put_source(chanid, buf, nbytes, flags) |
378 | #define put_source_flags(chanid,buf,nbytes,flags) au1xxx_dbdma_put_source_flags(chanid,buf,nbytes,flags) | 378 | #define put_source_flags(chanid, buf, nbytes, flags) au1xxx_dbdma_put_source_flags(chanid, buf, nbytes, flags) |
379 | 379 | ||
380 | 380 | ||
381 | #define au1xxx_dbdma_put_dest(chanid,buf,nbytes) _au1xxx_dbdma_put_dest(chanid, buf, nbytes, DDMA_FLAGS_IE) | 381 | #define au1xxx_dbdma_put_dest(chanid, buf, nbytes) _au1xxx_dbdma_put_dest(chanid, buf, nbytes, DDMA_FLAGS_IE) |
382 | #define au1xxx_dbdma_put_dest_flags(chanid,buf,nbytes,flags) _au1xxx_dbdma_put_dest(chanid, buf, nbytes, flags) | 382 | #define au1xxx_dbdma_put_dest_flags(chanid, buf, nbytes, flags) _au1xxx_dbdma_put_dest(chanid, buf, nbytes, flags) |
383 | #define put_dest_flags(chanid,buf,nbytes,flags) au1xxx_dbdma_put_dest_flags(chanid,buf,nbytes,flags) | 383 | #define put_dest_flags(chanid, buf, nbytes, flags) au1xxx_dbdma_put_dest_flags(chanid, buf, nbytes, flags) |
384 | 384 | ||
385 | /* | 385 | /* |
386 | * Flags for the put_source/put_dest functions. | 386 | * Flags for the put_source/put_dest functions. |
diff --git a/include/asm-mips/mach-au1x00/au1xxx_ide.h b/include/asm-mips/mach-au1x00/au1xxx_ide.h index 4663e8b415..aef0edbfe4 100644 --- a/include/asm-mips/mach-au1x00/au1xxx_ide.h +++ b/include/asm-mips/mach-au1x00/au1xxx_ide.h | |||
@@ -136,7 +136,7 @@ void auide_outl(u32 addr, unsigned long port); | |||
136 | void auide_outsw(unsigned long port, void *addr, u32 count); | 136 | void auide_outsw(unsigned long port, void *addr, u32 count); |
137 | void auide_outsl(unsigned long port, void *addr, u32 count); | 137 | void auide_outsl(unsigned long port, void *addr, u32 count); |
138 | static void auide_tune_drive(ide_drive_t *drive, byte pio); | 138 | static void auide_tune_drive(ide_drive_t *drive, byte pio); |
139 | static int auide_tune_chipset (ide_drive_t *drive, u8 speed); | 139 | static int auide_tune_chipset(ide_drive_t *drive, u8 speed); |
140 | static int auide_ddma_init( _auide_hwif *auide ); | 140 | static int auide_ddma_init( _auide_hwif *auide ); |
141 | static void auide_setup_ports(hw_regs_t *hw, _auide_hwif *ahwif); | 141 | static void auide_setup_ports(hw_regs_t *hw, _auide_hwif *ahwif); |
142 | int __init auide_probe(void); | 142 | int __init auide_probe(void); |
diff --git a/include/asm-mips/mach-au1x00/war.h b/include/asm-mips/mach-au1x00/war.h new file mode 100644 index 0000000000..dd57d03d68 --- /dev/null +++ b/include/asm-mips/mach-au1x00/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_AU1X00_WAR_H | ||
9 | #define __ASM_MIPS_MACH_AU1X00_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_AU1X00_WAR_H */ | ||
diff --git a/include/asm-mips/mach-bcm47xx/bcm47xx.h b/include/asm-mips/mach-bcm47xx/bcm47xx.h new file mode 100644 index 0000000000..d008f47a28 --- /dev/null +++ b/include/asm-mips/mach-bcm47xx/bcm47xx.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version 2 | ||
7 | * of the License, or (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
17 | */ | ||
18 | |||
19 | #ifndef __ASM_BCM47XX_H | ||
20 | #define __ASM_BCM47XX_H | ||
21 | |||
22 | /* SSB bus */ | ||
23 | extern struct ssb_bus ssb_bcm47xx; | ||
24 | |||
25 | #endif /* __ASM_BCM47XX_H */ | ||
diff --git a/include/asm-mips/mach-bcm47xx/gpio.h b/include/asm-mips/mach-bcm47xx/gpio.h new file mode 100644 index 0000000000..cfc8f4d618 --- /dev/null +++ b/include/asm-mips/mach-bcm47xx/gpio.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net> | ||
7 | */ | ||
8 | |||
9 | #ifndef __BCM47XX_GPIO_H | ||
10 | #define __BCM47XX_GPIO_H | ||
11 | |||
12 | #define BCM47XX_EXTIF_GPIO_LINES 5 | ||
13 | #define BCM47XX_CHIPCO_GPIO_LINES 16 | ||
14 | |||
15 | extern int bcm47xx_gpio_to_irq(unsigned gpio); | ||
16 | extern int bcm47xx_gpio_get_value(unsigned gpio); | ||
17 | extern void bcm47xx_gpio_set_value(unsigned gpio, int value); | ||
18 | extern int bcm47xx_gpio_direction_input(unsigned gpio); | ||
19 | extern int bcm47xx_gpio_direction_output(unsigned gpio, int value); | ||
20 | |||
21 | static inline int gpio_request(unsigned gpio, const char *label) | ||
22 | { | ||
23 | return 0; | ||
24 | } | ||
25 | |||
26 | static inline void gpio_free(unsigned gpio) | ||
27 | { | ||
28 | } | ||
29 | |||
30 | static inline int gpio_to_irq(unsigned gpio) | ||
31 | { | ||
32 | return bcm47xx_gpio_to_irq(gpio); | ||
33 | } | ||
34 | |||
35 | static inline int gpio_get_value(unsigned gpio) | ||
36 | { | ||
37 | return bcm47xx_gpio_get_value(gpio); | ||
38 | } | ||
39 | |||
40 | static inline void gpio_set_value(unsigned gpio, int value) | ||
41 | { | ||
42 | bcm47xx_gpio_set_value(gpio, value); | ||
43 | } | ||
44 | |||
45 | static inline int gpio_direction_input(unsigned gpio) | ||
46 | { | ||
47 | return bcm47xx_gpio_direction_input(gpio); | ||
48 | } | ||
49 | |||
50 | static inline int gpio_direction_output(unsigned gpio, int value) | ||
51 | { | ||
52 | return bcm47xx_gpio_direction_output(gpio, value); | ||
53 | } | ||
54 | |||
55 | |||
56 | /* cansleep wrappers */ | ||
57 | #include <asm-generic/gpio.h> | ||
58 | |||
59 | #endif /* __BCM47XX_GPIO_H */ | ||
diff --git a/include/asm-mips/mach-bcm47xx/war.h b/include/asm-mips/mach-bcm47xx/war.h new file mode 100644 index 0000000000..4a2b7986b5 --- /dev/null +++ b/include/asm-mips/mach-bcm47xx/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_BCM947XX_WAR_H | ||
9 | #define __ASM_MIPS_MACH_BCM947XX_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_BCM947XX_WAR_H */ | ||
diff --git a/include/asm-mips/mach-cobalt/cobalt.h b/include/asm-mips/mach-cobalt/cobalt.h index 9c9d2b998c..a79e7caf3a 100644 --- a/include/asm-mips/mach-cobalt/cobalt.h +++ b/include/asm-mips/mach-cobalt/cobalt.h | |||
@@ -12,71 +12,16 @@ | |||
12 | #ifndef __ASM_COBALT_H | 12 | #ifndef __ASM_COBALT_H |
13 | #define __ASM_COBALT_H | 13 | #define __ASM_COBALT_H |
14 | 14 | ||
15 | #include <irq.h> | ||
16 | |||
17 | /* | ||
18 | * i8259 legacy interrupts used on Cobalt: | ||
19 | * | ||
20 | * 8 - RTC | ||
21 | * 9 - PCI | ||
22 | * 14 - IDE0 | ||
23 | * 15 - IDE1 | ||
24 | */ | ||
25 | #define COBALT_QUBE_SLOT_IRQ 9 | ||
26 | |||
27 | /* | ||
28 | * CPU IRQs are 16 ... 23 | ||
29 | */ | ||
30 | #define COBALT_CPU_IRQ MIPS_CPU_IRQ_BASE | ||
31 | |||
32 | #define COBALT_GALILEO_IRQ (COBALT_CPU_IRQ + 2) | ||
33 | #define COBALT_RAQ_SCSI_IRQ (COBALT_CPU_IRQ + 3) | ||
34 | #define COBALT_ETH0_IRQ (COBALT_CPU_IRQ + 3) | ||
35 | #define COBALT_QUBE1_ETH0_IRQ (COBALT_CPU_IRQ + 4) | ||
36 | #define COBALT_ETH1_IRQ (COBALT_CPU_IRQ + 4) | ||
37 | #define COBALT_SERIAL_IRQ (COBALT_CPU_IRQ + 5) | ||
38 | #define COBALT_SCSI_IRQ (COBALT_CPU_IRQ + 5) | ||
39 | #define COBALT_VIA_IRQ (COBALT_CPU_IRQ + 6) /* Chained to VIA ISA bridge */ | ||
40 | |||
41 | /* | 15 | /* |
42 | * PCI configuration space manifest constants. These are wired into | 16 | * The Cobalt board ID information. |
43 | * the board layout according to the PCI spec to enable the software | ||
44 | * to probe the hardware configuration space in a well defined manner. | ||
45 | * | ||
46 | * The PCI_DEVSHFT() macro transforms these values into numbers | ||
47 | * suitable for passing as the dev parameter to the various | ||
48 | * pcibios_read/write_config routines. | ||
49 | */ | 17 | */ |
50 | #define COBALT_PCICONF_CPU 0x06 | 18 | extern int cobalt_board_id; |
51 | #define COBALT_PCICONF_ETH0 0x07 | ||
52 | #define COBALT_PCICONF_RAQSCSI 0x08 | ||
53 | #define COBALT_PCICONF_VIA 0x09 | ||
54 | #define COBALT_PCICONF_PCISLOT 0x0A | ||
55 | #define COBALT_PCICONF_ETH1 0x0C | ||
56 | |||
57 | 19 | ||
58 | /* | ||
59 | * The Cobalt board id information. The boards have an ID number wired | ||
60 | * into the VIA that is available in the high nibble of register 94. | ||
61 | * This register is available in the VIA configuration space through the | ||
62 | * interface routines qube_pcibios_read/write_config. See cobalt/pci.c | ||
63 | */ | ||
64 | #define VIA_COBALT_BRD_ID_REG 0x94 | ||
65 | #define VIA_COBALT_BRD_REG_to_ID(reg) ((unsigned char) (reg) >> 4) | ||
66 | #define COBALT_BRD_ID_QUBE1 0x3 | 20 | #define COBALT_BRD_ID_QUBE1 0x3 |
67 | #define COBALT_BRD_ID_RAQ1 0x4 | 21 | #define COBALT_BRD_ID_RAQ1 0x4 |
68 | #define COBALT_BRD_ID_QUBE2 0x5 | 22 | #define COBALT_BRD_ID_QUBE2 0x5 |
69 | #define COBALT_BRD_ID_RAQ2 0x6 | 23 | #define COBALT_BRD_ID_RAQ2 0x6 |
70 | 24 | ||
71 | extern int cobalt_board_id; | ||
72 | |||
73 | #define COBALT_LED_PORT (*(volatile unsigned char *) CKSEG1ADDR(0x1c000000)) | ||
74 | # define COBALT_LED_BAR_LEFT (1 << 0) /* Qube */ | ||
75 | # define COBALT_LED_BAR_RIGHT (1 << 1) /* Qube */ | ||
76 | # define COBALT_LED_WEB (1 << 2) /* RaQ */ | ||
77 | # define COBALT_LED_POWER_OFF (1 << 3) /* RaQ */ | ||
78 | # define COBALT_LED_RESET 0x0f | ||
79 | |||
80 | #define COBALT_KEY_PORT ((~*(volatile unsigned int *) CKSEG1ADDR(0x1d000000) >> 24) & COBALT_KEY_MASK) | 25 | #define COBALT_KEY_PORT ((~*(volatile unsigned int *) CKSEG1ADDR(0x1d000000) >> 24) & COBALT_KEY_MASK) |
81 | # define COBALT_KEY_CLEAR (1 << 1) | 26 | # define COBALT_KEY_CLEAR (1 << 1) |
82 | # define COBALT_KEY_LEFT (1 << 2) | 27 | # define COBALT_KEY_LEFT (1 << 2) |
@@ -87,6 +32,4 @@ extern int cobalt_board_id; | |||
87 | # define COBALT_KEY_SELECT (1 << 7) | 32 | # define COBALT_KEY_SELECT (1 << 7) |
88 | # define COBALT_KEY_MASK 0xfe | 33 | # define COBALT_KEY_MASK 0xfe |
89 | 34 | ||
90 | #define COBALT_UART ((volatile unsigned char *) CKSEG1ADDR(0x1c800000)) | ||
91 | |||
92 | #endif /* __ASM_COBALT_H */ | 35 | #endif /* __ASM_COBALT_H */ |
diff --git a/include/asm-mips/mach-cobalt/cpu-feature-overrides.h b/include/asm-mips/mach-cobalt/cpu-feature-overrides.h index d38f069d9e..b3314cf531 100644 --- a/include/asm-mips/mach-cobalt/cpu-feature-overrides.h +++ b/include/asm-mips/mach-cobalt/cpu-feature-overrides.h | |||
@@ -14,7 +14,6 @@ | |||
14 | #define cpu_has_3k_cache 0 | 14 | #define cpu_has_3k_cache 0 |
15 | #define cpu_has_4k_cache 1 | 15 | #define cpu_has_4k_cache 1 |
16 | #define cpu_has_tx39_cache 0 | 16 | #define cpu_has_tx39_cache 0 |
17 | #define cpu_has_sb1_cache 0 | ||
18 | #define cpu_has_fpu 1 | 17 | #define cpu_has_fpu 1 |
19 | #define cpu_has_32fpr 1 | 18 | #define cpu_has_32fpr 1 |
20 | #define cpu_has_counter 1 | 19 | #define cpu_has_counter 1 |
diff --git a/include/asm-mips/mach-cobalt/irq.h b/include/asm-mips/mach-cobalt/irq.h new file mode 100644 index 0000000000..179d0e850b --- /dev/null +++ b/include/asm-mips/mach-cobalt/irq.h | |||
@@ -0,0 +1,58 @@ | |||
1 | /* | ||
2 | * Cobalt IRQ definitions. | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | * | ||
8 | * Copyright (C) 1997 Cobalt Microserver | ||
9 | * Copyright (C) 1997, 2003 Ralf Baechle | ||
10 | * Copyright (C) 2001-2003 Liam Davies (ldavies@agile.tv) | ||
11 | * Copyright (C) 2007 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | ||
12 | */ | ||
13 | #ifndef _ASM_COBALT_IRQ_H | ||
14 | #define _ASM_COBALT_IRQ_H | ||
15 | |||
16 | /* | ||
17 | * i8259 interrupts used on Cobalt: | ||
18 | * | ||
19 | * 8 - RTC | ||
20 | * 9 - PCI slot | ||
21 | * 14 - IDE0 | ||
22 | * 15 - IDE1(no connector on board) | ||
23 | */ | ||
24 | #define I8259A_IRQ_BASE 0 | ||
25 | |||
26 | #define PCISLOT_IRQ (I8259A_IRQ_BASE + 9) | ||
27 | |||
28 | /* | ||
29 | * CPU interrupts used on Cobalt: | ||
30 | * | ||
31 | * 0 - Software interrupt 0 (unused) | ||
32 | * 1 - Software interrupt 0 (unused) | ||
33 | * 2 - cascade GT64111 | ||
34 | * 3 - ethernet or SCSI host controller | ||
35 | * 4 - ethernet | ||
36 | * 5 - 16550 UART | ||
37 | * 6 - cascade i8259 | ||
38 | * 7 - CP0 counter (unused) | ||
39 | */ | ||
40 | #define MIPS_CPU_IRQ_BASE 16 | ||
41 | |||
42 | #define GT641XX_CASCADE_IRQ (MIPS_CPU_IRQ_BASE + 2) | ||
43 | #define RAQ2_SCSI_IRQ (MIPS_CPU_IRQ_BASE + 3) | ||
44 | #define ETH0_IRQ (MIPS_CPU_IRQ_BASE + 3) | ||
45 | #define QUBE1_ETH0_IRQ (MIPS_CPU_IRQ_BASE + 4) | ||
46 | #define ETH1_IRQ (MIPS_CPU_IRQ_BASE + 4) | ||
47 | #define SERIAL_IRQ (MIPS_CPU_IRQ_BASE + 5) | ||
48 | #define SCSI_IRQ (MIPS_CPU_IRQ_BASE + 5) | ||
49 | #define I8259_CASCADE_IRQ (MIPS_CPU_IRQ_BASE + 6) | ||
50 | |||
51 | |||
52 | #define GT641XX_IRQ_BASE 24 | ||
53 | |||
54 | #include <asm/irq_gt641xx.h> | ||
55 | |||
56 | #define NR_IRQS (GT641XX_PCI_INT3_IRQ + 1) | ||
57 | |||
58 | #endif /* _ASM_COBALT_IRQ_H */ | ||
diff --git a/include/asm-mips/mach-cobalt/war.h b/include/asm-mips/mach-cobalt/war.h new file mode 100644 index 0000000000..97884fd18a --- /dev/null +++ b/include/asm-mips/mach-cobalt/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_COBALT_WAR_H | ||
9 | #define __ASM_MIPS_MACH_COBALT_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_COBALT_WAR_H */ | ||
diff --git a/include/asm-mips/mach-dec/war.h b/include/asm-mips/mach-dec/war.h new file mode 100644 index 0000000000..ca5e2ef909 --- /dev/null +++ b/include/asm-mips/mach-dec/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_DEC_WAR_H | ||
9 | #define __ASM_MIPS_MACH_DEC_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_DEC_WAR_H */ | ||
diff --git a/include/asm-mips/mach-emma2rh/war.h b/include/asm-mips/mach-emma2rh/war.h new file mode 100644 index 0000000000..b660a4c30e --- /dev/null +++ b/include/asm-mips/mach-emma2rh/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_EMMA2RH_WAR_H | ||
9 | #define __ASM_MIPS_MACH_EMMA2RH_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_EMMA2RH_WAR_H */ | ||
diff --git a/include/asm-mips/mach-excite/cpu-feature-overrides.h b/include/asm-mips/mach-excite/cpu-feature-overrides.h index 07f4322c23..107104c3cd 100644 --- a/include/asm-mips/mach-excite/cpu-feature-overrides.h +++ b/include/asm-mips/mach-excite/cpu-feature-overrides.h | |||
@@ -34,6 +34,11 @@ | |||
34 | #define cpu_has_nofpuex 0 | 34 | #define cpu_has_nofpuex 0 |
35 | #define cpu_has_64bits 1 | 35 | #define cpu_has_64bits 1 |
36 | 36 | ||
37 | #define cpu_has_mips32r1 0 | ||
38 | #define cpu_has_mips32r2 0 | ||
39 | #define cpu_has_mips64r1 0 | ||
40 | #define cpu_has_mips64r2 0 | ||
41 | |||
37 | #define cpu_has_inclusive_pcaches 0 | 42 | #define cpu_has_inclusive_pcaches 0 |
38 | 43 | ||
39 | #define cpu_dcache_line_size() 32 | 44 | #define cpu_dcache_line_size() 32 |
diff --git a/include/asm-mips/mach-excite/war.h b/include/asm-mips/mach-excite/war.h new file mode 100644 index 0000000000..1f82180c15 --- /dev/null +++ b/include/asm-mips/mach-excite/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_EXCITE_WAR_H | ||
9 | #define __ASM_MIPS_MACH_EXCITE_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 1 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 1 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_EXCITE_WAR_H */ | ||
diff --git a/include/asm-mips/mach-generic/mangle-port.h b/include/asm-mips/mach-generic/mangle-port.h index 6e1b0c075d..f49dc99021 100644 --- a/include/asm-mips/mach-generic/mangle-port.h +++ b/include/asm-mips/mach-generic/mangle-port.h | |||
@@ -27,25 +27,25 @@ | |||
27 | */ | 27 | */ |
28 | #if defined(CONFIG_SWAP_IO_SPACE) | 28 | #if defined(CONFIG_SWAP_IO_SPACE) |
29 | 29 | ||
30 | # define ioswabb(a,x) (x) | 30 | # define ioswabb(a, x) (x) |
31 | # define __mem_ioswabb(a,x) (x) | 31 | # define __mem_ioswabb(a, x) (x) |
32 | # define ioswabw(a,x) le16_to_cpu(x) | 32 | # define ioswabw(a, x) le16_to_cpu(x) |
33 | # define __mem_ioswabw(a,x) (x) | 33 | # define __mem_ioswabw(a, x) (x) |
34 | # define ioswabl(a,x) le32_to_cpu(x) | 34 | # define ioswabl(a, x) le32_to_cpu(x) |
35 | # define __mem_ioswabl(a,x) (x) | 35 | # define __mem_ioswabl(a, x) (x) |
36 | # define ioswabq(a,x) le64_to_cpu(x) | 36 | # define ioswabq(a, x) le64_to_cpu(x) |
37 | # define __mem_ioswabq(a,x) (x) | 37 | # define __mem_ioswabq(a, x) (x) |
38 | 38 | ||
39 | #else | 39 | #else |
40 | 40 | ||
41 | # define ioswabb(a,x) (x) | 41 | # define ioswabb(a, x) (x) |
42 | # define __mem_ioswabb(a,x) (x) | 42 | # define __mem_ioswabb(a, x) (x) |
43 | # define ioswabw(a,x) (x) | 43 | # define ioswabw(a, x) (x) |
44 | # define __mem_ioswabw(a,x) cpu_to_le16(x) | 44 | # define __mem_ioswabw(a, x) cpu_to_le16(x) |
45 | # define ioswabl(a,x) (x) | 45 | # define ioswabl(a, x) (x) |
46 | # define __mem_ioswabl(a,x) cpu_to_le32(x) | 46 | # define __mem_ioswabl(a, x) cpu_to_le32(x) |
47 | # define ioswabq(a,x) (x) | 47 | # define ioswabq(a, x) (x) |
48 | # define __mem_ioswabq(a,x) cpu_to_le32(x) | 48 | # define __mem_ioswabq(a, x) cpu_to_le32(x) |
49 | 49 | ||
50 | #endif | 50 | #endif |
51 | 51 | ||
diff --git a/include/asm-mips/mach-ip22/war.h b/include/asm-mips/mach-ip22/war.h new file mode 100644 index 0000000000..a44fa9656a --- /dev/null +++ b/include/asm-mips/mach-ip22/war.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_IP22_WAR_H | ||
9 | #define __ASM_MIPS_MACH_IP22_WAR_H | ||
10 | |||
11 | /* | ||
12 | * R4600 CPU modules for the Indy come with both V1.7 and V2.0 processors. | ||
13 | */ | ||
14 | |||
15 | #define R4600_V1_INDEX_ICACHEOP_WAR 1 | ||
16 | #define R4600_V1_HIT_CACHEOP_WAR 1 | ||
17 | #define R4600_V2_HIT_CACHEOP_WAR 1 | ||
18 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
19 | #define BCM1250_M3_WAR 0 | ||
20 | #define SIBYTE_1956_WAR 0 | ||
21 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
22 | #define MIPS_CACHE_SYNC_WAR 0 | ||
23 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
24 | #define RM9000_CDEX_SMP_WAR 0 | ||
25 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
26 | #define R10000_LLSC_WAR 0 | ||
27 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
28 | |||
29 | #endif /* __ASM_MIPS_MACH_IP22_WAR_H */ | ||
diff --git a/include/asm-mips/mach-ip27/irq.h b/include/asm-mips/mach-ip27/irq.h index 25f0c3f39a..cf4384bfa8 100644 --- a/include/asm-mips/mach-ip27/irq.h +++ b/include/asm-mips/mach-ip27/irq.h | |||
@@ -17,4 +17,6 @@ | |||
17 | */ | 17 | */ |
18 | #define NR_IRQS 256 | 18 | #define NR_IRQS 256 |
19 | 19 | ||
20 | #include_next <irq.h> | ||
21 | |||
20 | #endif /* __ASM_MACH_IP27_IRQ_H */ | 22 | #endif /* __ASM_MACH_IP27_IRQ_H */ |
diff --git a/include/asm-mips/mach-ip27/mangle-port.h b/include/asm-mips/mach-ip27/mangle-port.h index d615312a45..f6e4912ea0 100644 --- a/include/asm-mips/mach-ip27/mangle-port.h +++ b/include/asm-mips/mach-ip27/mangle-port.h | |||
@@ -13,13 +13,13 @@ | |||
13 | #define __swizzle_addr_l(port) (port) | 13 | #define __swizzle_addr_l(port) (port) |
14 | #define __swizzle_addr_q(port) (port) | 14 | #define __swizzle_addr_q(port) (port) |
15 | 15 | ||
16 | # define ioswabb(a,x) (x) | 16 | # define ioswabb(a, x) (x) |
17 | # define __mem_ioswabb(a,x) (x) | 17 | # define __mem_ioswabb(a, x) (x) |
18 | # define ioswabw(a,x) (x) | 18 | # define ioswabw(a, x) (x) |
19 | # define __mem_ioswabw(a,x) cpu_to_le16(x) | 19 | # define __mem_ioswabw(a, x) cpu_to_le16(x) |
20 | # define ioswabl(a,x) (x) | 20 | # define ioswabl(a, x) (x) |
21 | # define __mem_ioswabl(a,x) cpu_to_le32(x) | 21 | # define __mem_ioswabl(a, x) cpu_to_le32(x) |
22 | # define ioswabq(a,x) (x) | 22 | # define ioswabq(a, x) (x) |
23 | # define __mem_ioswabq(a,x) cpu_to_le32(x) | 23 | # define __mem_ioswabq(a, x) cpu_to_le32(x) |
24 | 24 | ||
25 | #endif /* __ASM_MACH_IP27_MANGLE_PORT_H */ | 25 | #endif /* __ASM_MACH_IP27_MANGLE_PORT_H */ |
diff --git a/include/asm-mips/mach-ip27/topology.h b/include/asm-mips/mach-ip27/topology.h index 61d9be3f31..372291f53f 100644 --- a/include/asm-mips/mach-ip27/topology.h +++ b/include/asm-mips/mach-ip27/topology.h | |||
@@ -2,9 +2,27 @@ | |||
2 | #define _ASM_MACH_TOPOLOGY_H 1 | 2 | #define _ASM_MACH_TOPOLOGY_H 1 |
3 | 3 | ||
4 | #include <asm/sn/hub.h> | 4 | #include <asm/sn/hub.h> |
5 | #include <asm/sn/types.h> | ||
5 | #include <asm/mmzone.h> | 6 | #include <asm/mmzone.h> |
6 | 7 | ||
7 | #define cpu_to_node(cpu) (cpu_data[(cpu)].p_nodeid) | 8 | struct cpuinfo_ip27 { |
9 | // cpuid_t p_cpuid; /* PROM assigned cpuid */ | ||
10 | cnodeid_t p_nodeid; /* my node ID in compact-id-space */ | ||
11 | nasid_t p_nasid; /* my node ID in numa-as-id-space */ | ||
12 | unsigned char p_slice; /* Physical position on node board */ | ||
13 | #if 0 | ||
14 | unsigned long loops_per_sec; | ||
15 | unsigned long ipi_count; | ||
16 | unsigned long irq_attempt[NR_IRQS]; | ||
17 | unsigned long smp_local_irq_count; | ||
18 | unsigned long prof_multiplier; | ||
19 | unsigned long prof_counter; | ||
20 | #endif | ||
21 | }; | ||
22 | |||
23 | extern struct cpuinfo_ip27 sn_cpu_info[NR_CPUS]; | ||
24 | |||
25 | #define cpu_to_node(cpu) (sn_cpu_info[(cpu)].p_nodeid) | ||
8 | #define parent_node(node) (node) | 26 | #define parent_node(node) (node) |
9 | #define node_to_cpumask(node) (hub_data(node)->h_cpus) | 27 | #define node_to_cpumask(node) (hub_data(node)->h_cpus) |
10 | #define node_to_first_cpu(node) (first_cpu(node_to_cpumask(node))) | 28 | #define node_to_first_cpu(node) (first_cpu(node_to_cpumask(node))) |
diff --git a/include/asm-mips/mach-ip27/war.h b/include/asm-mips/mach-ip27/war.h new file mode 100644 index 0000000000..e2ddcc9b1f --- /dev/null +++ b/include/asm-mips/mach-ip27/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_IP27_WAR_H | ||
9 | #define __ASM_MIPS_MACH_IP27_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 1 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_IP27_WAR_H */ | ||
diff --git a/include/asm-mips/mach-ip32/kmalloc.h b/include/asm-mips/mach-ip32/kmalloc.h index f6198a21fb..b1e0be60f7 100644 --- a/include/asm-mips/mach-ip32/kmalloc.h +++ b/include/asm-mips/mach-ip32/kmalloc.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define __ASM_MACH_IP32_KMALLOC_H | 2 | #define __ASM_MACH_IP32_KMALLOC_H |
3 | 3 | ||
4 | 4 | ||
5 | #if defined(CONFIG_CPU_R5000) || defined (CONFIG_CPU_RM7000) | 5 | #if defined(CONFIG_CPU_R5000) || defined(CONFIG_CPU_RM7000) |
6 | #define ARCH_KMALLOC_MINALIGN 32 | 6 | #define ARCH_KMALLOC_MINALIGN 32 |
7 | #else | 7 | #else |
8 | #define ARCH_KMALLOC_MINALIGN 128 | 8 | #define ARCH_KMALLOC_MINALIGN 128 |
diff --git a/include/asm-mips/mach-ip32/mangle-port.h b/include/asm-mips/mach-ip32/mangle-port.h index 81320eb553..f1d0f1756a 100644 --- a/include/asm-mips/mach-ip32/mangle-port.h +++ b/include/asm-mips/mach-ip32/mangle-port.h | |||
@@ -14,13 +14,13 @@ | |||
14 | #define __swizzle_addr_l(port) (port) | 14 | #define __swizzle_addr_l(port) (port) |
15 | #define __swizzle_addr_q(port) (port) | 15 | #define __swizzle_addr_q(port) (port) |
16 | 16 | ||
17 | # define ioswabb(a,x) (x) | 17 | # define ioswabb(a, x) (x) |
18 | # define __mem_ioswabb(a,x) (x) | 18 | # define __mem_ioswabb(a, x) (x) |
19 | # define ioswabw(a,x) (x) | 19 | # define ioswabw(a, x) (x) |
20 | # define __mem_ioswabw(a,x) cpu_to_le16(x) | 20 | # define __mem_ioswabw(a, x) cpu_to_le16(x) |
21 | # define ioswabl(a,x) (x) | 21 | # define ioswabl(a, x) (x) |
22 | # define __mem_ioswabl(a,x) cpu_to_le32(x) | 22 | # define __mem_ioswabl(a, x) cpu_to_le32(x) |
23 | # define ioswabq(a,x) (x) | 23 | # define ioswabq(a, x) (x) |
24 | # define __mem_ioswabq(a,x) cpu_to_le32(x) | 24 | # define __mem_ioswabq(a, x) cpu_to_le32(x) |
25 | 25 | ||
26 | #endif /* __ASM_MACH_IP32_MANGLE_PORT_H */ | 26 | #endif /* __ASM_MACH_IP32_MANGLE_PORT_H */ |
diff --git a/include/asm-mips/mach-ip32/war.h b/include/asm-mips/mach-ip32/war.h new file mode 100644 index 0000000000..d194056dcd --- /dev/null +++ b/include/asm-mips/mach-ip32/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_IP32_WAR_H | ||
9 | #define __ASM_MIPS_MACH_IP32_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 1 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_IP32_WAR_H */ | ||
diff --git a/include/asm-mips/mach-jazz/mc146818rtc.h b/include/asm-mips/mach-jazz/mc146818rtc.h index f44fdba199..987f727afe 100644 --- a/include/asm-mips/mach-jazz/mc146818rtc.h +++ b/include/asm-mips/mach-jazz/mc146818rtc.h | |||
@@ -4,12 +4,15 @@ | |||
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (C) 1998, 2001, 03 by Ralf Baechle | 6 | * Copyright (C) 1998, 2001, 03 by Ralf Baechle |
7 | * Copyright (C) 2007 Thomas Bogendoerfer | ||
7 | * | 8 | * |
8 | * RTC routines for Jazz style attached Dallas chip. | 9 | * RTC routines for Jazz style attached Dallas chip. |
9 | */ | 10 | */ |
10 | #ifndef __ASM_MACH_JAZZ_MC146818RTC_H | 11 | #ifndef __ASM_MACH_JAZZ_MC146818RTC_H |
11 | #define __ASM_MACH_JAZZ_MC146818RTC_H | 12 | #define __ASM_MACH_JAZZ_MC146818RTC_H |
12 | 13 | ||
14 | #include <linux/delay.h> | ||
15 | |||
13 | #include <asm/io.h> | 16 | #include <asm/io.h> |
14 | #include <asm/jazz.h> | 17 | #include <asm/jazz.h> |
15 | 18 | ||
@@ -19,16 +22,17 @@ | |||
19 | static inline unsigned char CMOS_READ(unsigned long addr) | 22 | static inline unsigned char CMOS_READ(unsigned long addr) |
20 | { | 23 | { |
21 | outb_p(addr, RTC_PORT(0)); | 24 | outb_p(addr, RTC_PORT(0)); |
22 | 25 | return *(volatile char *)JAZZ_RTC_BASE; | |
23 | return *(char *)JAZZ_RTC_BASE; | ||
24 | } | 26 | } |
25 | 27 | ||
26 | static inline void CMOS_WRITE(unsigned char data, unsigned long addr) | 28 | static inline void CMOS_WRITE(unsigned char data, unsigned long addr) |
27 | { | 29 | { |
28 | outb_p(addr, RTC_PORT(0)); | 30 | outb_p(addr, RTC_PORT(0)); |
29 | *(char *)JAZZ_RTC_BASE = data; | 31 | *(volatile char *)JAZZ_RTC_BASE = data; |
30 | } | 32 | } |
31 | 33 | ||
32 | #define RTC_ALWAYS_BCD 0 | 34 | #define RTC_ALWAYS_BCD 0 |
33 | 35 | ||
36 | #define mc146818_decode_year(year) ((year) + 1980) | ||
37 | |||
34 | #endif /* __ASM_MACH_JAZZ_MC146818RTC_H */ | 38 | #endif /* __ASM_MACH_JAZZ_MC146818RTC_H */ |
diff --git a/include/asm-mips/mach-jazz/war.h b/include/asm-mips/mach-jazz/war.h new file mode 100644 index 0000000000..6158ee861b --- /dev/null +++ b/include/asm-mips/mach-jazz/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_JAZZ_WAR_H | ||
9 | #define __ASM_MIPS_MACH_JAZZ_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_JAZZ_WAR_H */ | ||
diff --git a/include/asm-mips/mach-jmr3927/mangle-port.h b/include/asm-mips/mach-jmr3927/mangle-port.h index 501a202631..11bffcd104 100644 --- a/include/asm-mips/mach-jmr3927/mangle-port.h +++ b/include/asm-mips/mach-jmr3927/mangle-port.h | |||
@@ -6,13 +6,13 @@ extern unsigned long __swizzle_addr_b(unsigned long port); | |||
6 | #define __swizzle_addr_l(port) (port) | 6 | #define __swizzle_addr_l(port) (port) |
7 | #define __swizzle_addr_q(port) (port) | 7 | #define __swizzle_addr_q(port) (port) |
8 | 8 | ||
9 | #define ioswabb(a,x) (x) | 9 | #define ioswabb(a, x) (x) |
10 | #define __mem_ioswabb(a,x) (x) | 10 | #define __mem_ioswabb(a, x) (x) |
11 | #define ioswabw(a,x) le16_to_cpu(x) | 11 | #define ioswabw(a, x) le16_to_cpu(x) |
12 | #define __mem_ioswabw(a,x) (x) | 12 | #define __mem_ioswabw(a, x) (x) |
13 | #define ioswabl(a,x) le32_to_cpu(x) | 13 | #define ioswabl(a, x) le32_to_cpu(x) |
14 | #define __mem_ioswabl(a,x) (x) | 14 | #define __mem_ioswabl(a, x) (x) |
15 | #define ioswabq(a,x) le64_to_cpu(x) | 15 | #define ioswabq(a, x) le64_to_cpu(x) |
16 | #define __mem_ioswabq(a,x) (x) | 16 | #define __mem_ioswabq(a, x) (x) |
17 | 17 | ||
18 | #endif /* __ASM_MACH_JMR3927_MANGLE_PORT_H */ | 18 | #endif /* __ASM_MACH_JMR3927_MANGLE_PORT_H */ |
diff --git a/include/asm-mips/mach-jmr3927/war.h b/include/asm-mips/mach-jmr3927/war.h new file mode 100644 index 0000000000..1ff55fb3fb --- /dev/null +++ b/include/asm-mips/mach-jmr3927/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_JMR3927_WAR_H | ||
9 | #define __ASM_MIPS_MACH_JMR3927_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_JMR3927_WAR_H */ | ||
diff --git a/include/asm-mips/mach-lasat/mach-gt64120.h b/include/asm-mips/mach-lasat/mach-gt64120.h new file mode 100644 index 0000000000..1a9ad45cc1 --- /dev/null +++ b/include/asm-mips/mach-lasat/mach-gt64120.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * This is a direct copy of the ev96100.h file, with a global | ||
3 | * search and replace. The numbers are the same. | ||
4 | * | ||
5 | * The reason I'm duplicating this is so that the 64120/96100 | ||
6 | * defines won't be confusing in the source code. | ||
7 | */ | ||
8 | #ifndef _ASM_GT64120_LASAT_GT64120_DEP_H | ||
9 | #define _ASM_GT64120_LASAT_GT64120_DEP_H | ||
10 | |||
11 | /* | ||
12 | * GT64120 config space base address on Lasat 100 | ||
13 | */ | ||
14 | #define GT64120_BASE (KSEG1ADDR(0x14000000)) | ||
15 | |||
16 | /* | ||
17 | * PCI Bus allocation | ||
18 | * | ||
19 | * (Guessing ...) | ||
20 | */ | ||
21 | #define GT_PCI_MEM_BASE 0x12000000UL | ||
22 | #define GT_PCI_MEM_SIZE 0x02000000UL | ||
23 | #define GT_PCI_IO_BASE 0x10000000UL | ||
24 | #define GT_PCI_IO_SIZE 0x02000000UL | ||
25 | #define GT_ISA_IO_BASE PCI_IO_BASE | ||
26 | |||
27 | #endif /* _ASM_GT64120_LASAT_GT64120_DEP_H */ | ||
diff --git a/include/asm-mips/mach-lasat/war.h b/include/asm-mips/mach-lasat/war.h new file mode 100644 index 0000000000..bb1e0325c9 --- /dev/null +++ b/include/asm-mips/mach-lasat/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_LASAT_WAR_H | ||
9 | #define __ASM_MIPS_MACH_LASAT_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_LASAT_WAR_H */ | ||
diff --git a/include/asm-mips/mach-lemote/war.h b/include/asm-mips/mach-lemote/war.h new file mode 100644 index 0000000000..05f89e0f2a --- /dev/null +++ b/include/asm-mips/mach-lemote/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_LEMOTE_WAR_H | ||
9 | #define __ASM_MIPS_MACH_LEMOTE_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_LEMOTE_WAR_H */ | ||
diff --git a/include/asm-mips/mach-mips/mach-gt64120.h b/include/asm-mips/mach-mips/mach-gt64120.h index 511f7cf3a6..0f863148f3 100644 --- a/include/asm-mips/mach-mips/mach-gt64120.h +++ b/include/asm-mips/mach-mips/mach-gt64120.h | |||
@@ -16,13 +16,4 @@ extern unsigned long _pcictrl_gt64120; | |||
16 | */ | 16 | */ |
17 | #define GT64120_BASE _pcictrl_gt64120 | 17 | #define GT64120_BASE _pcictrl_gt64120 |
18 | 18 | ||
19 | /* | ||
20 | * PCI Bus allocation | ||
21 | */ | ||
22 | #define GT_PCI_MEM_BASE 0x12000000UL | ||
23 | #define GT_PCI_MEM_SIZE 0x02000000UL | ||
24 | #define GT_PCI_IO_BASE 0x10000000UL | ||
25 | #define GT_PCI_IO_SIZE 0x02000000UL | ||
26 | #define GT_ISA_IO_BASE PCI_IO_BASE | ||
27 | |||
28 | #endif /* _ASM_MACH_MIPS_MACH_GT64120_DEP_H */ | 19 | #endif /* _ASM_MACH_MIPS_MACH_GT64120_DEP_H */ |
diff --git a/include/asm-mips/mach-mips/war.h b/include/asm-mips/mach-mips/war.h new file mode 100644 index 0000000000..7c6931d5f4 --- /dev/null +++ b/include/asm-mips/mach-mips/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_MIPS_WAR_H | ||
9 | #define __ASM_MIPS_MACH_MIPS_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 1 | ||
18 | #define MIPS_CACHE_SYNC_WAR 1 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 1 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_MIPS_WAR_H */ | ||
diff --git a/include/asm-mips/mach-mipssim/war.h b/include/asm-mips/mach-mipssim/war.h new file mode 100644 index 0000000000..c8a74a3515 --- /dev/null +++ b/include/asm-mips/mach-mipssim/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_MIPSSIM_WAR_H | ||
9 | #define __ASM_MIPS_MACH_MIPSSIM_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_MIPSSIM_WAR_H */ | ||
diff --git a/include/asm-mips/mach-pb1x00/pb1000.h b/include/asm-mips/mach-pb1x00/pb1000.h index 50c1e413a6..b52e0e7ee3 100644 --- a/include/asm-mips/mach-pb1x00/pb1000.h +++ b/include/asm-mips/mach-pb1x00/pb1000.h | |||
@@ -32,38 +32,38 @@ | |||
32 | #define PCMCIA_NUM_SOCKS (PCMCIA_MAX_SOCK+1) | 32 | #define PCMCIA_NUM_SOCKS (PCMCIA_MAX_SOCK+1) |
33 | 33 | ||
34 | #define PB1000_PCR 0xBE000000 | 34 | #define PB1000_PCR 0xBE000000 |
35 | #define PCR_SLOT_0_VPP0 (1<<0) | 35 | # define PCR_SLOT_0_VPP0 (1<<0) |
36 | #define PCR_SLOT_0_VPP1 (1<<1) | 36 | # define PCR_SLOT_0_VPP1 (1<<1) |
37 | #define PCR_SLOT_0_VCC0 (1<<2) | 37 | # define PCR_SLOT_0_VCC0 (1<<2) |
38 | #define PCR_SLOT_0_VCC1 (1<<3) | 38 | # define PCR_SLOT_0_VCC1 (1<<3) |
39 | #define PCR_SLOT_0_RST (1<<4) | 39 | # define PCR_SLOT_0_RST (1<<4) |
40 | 40 | ||
41 | #define PCR_SLOT_1_VPP0 (1<<8) | 41 | # define PCR_SLOT_1_VPP0 (1<<8) |
42 | #define PCR_SLOT_1_VPP1 (1<<9) | 42 | # define PCR_SLOT_1_VPP1 (1<<9) |
43 | #define PCR_SLOT_1_VCC0 (1<<10) | 43 | # define PCR_SLOT_1_VCC0 (1<<10) |
44 | #define PCR_SLOT_1_VCC1 (1<<11) | 44 | # define PCR_SLOT_1_VCC1 (1<<11) |
45 | #define PCR_SLOT_1_RST (1<<12) | 45 | # define PCR_SLOT_1_RST (1<<12) |
46 | 46 | ||
47 | #define PB1000_MDR 0xBE000004 | 47 | #define PB1000_MDR 0xBE000004 |
48 | #define MDR_PI (1<<5) /* pcmcia int latch */ | 48 | # define MDR_PI (1<<5) /* pcmcia int latch */ |
49 | #define MDR_EPI (1<<14) /* enable pcmcia int */ | 49 | # define MDR_EPI (1<<14) /* enable pcmcia int */ |
50 | #define MDR_CPI (1<<15) /* clear pcmcia int */ | 50 | # define MDR_CPI (1<<15) /* clear pcmcia int */ |
51 | 51 | ||
52 | #define PB1000_ACR1 0xBE000008 | 52 | #define PB1000_ACR1 0xBE000008 |
53 | #define ACR1_SLOT_0_CD1 (1<<0) /* card detect 1 */ | 53 | # define ACR1_SLOT_0_CD1 (1<<0) /* card detect 1 */ |
54 | #define ACR1_SLOT_0_CD2 (1<<1) /* card detect 2 */ | 54 | # define ACR1_SLOT_0_CD2 (1<<1) /* card detect 2 */ |
55 | #define ACR1_SLOT_0_READY (1<<2) /* ready */ | 55 | # define ACR1_SLOT_0_READY (1<<2) /* ready */ |
56 | #define ACR1_SLOT_0_STATUS (1<<3) /* status change */ | 56 | # define ACR1_SLOT_0_STATUS (1<<3) /* status change */ |
57 | #define ACR1_SLOT_0_VS1 (1<<4) /* voltage sense 1 */ | 57 | # define ACR1_SLOT_0_VS1 (1<<4) /* voltage sense 1 */ |
58 | #define ACR1_SLOT_0_VS2 (1<<5) /* voltage sense 2 */ | 58 | # define ACR1_SLOT_0_VS2 (1<<5) /* voltage sense 2 */ |
59 | #define ACR1_SLOT_0_INPACK (1<<6) /* inpack pin status */ | 59 | # define ACR1_SLOT_0_INPACK (1<<6) /* inpack pin status */ |
60 | #define ACR1_SLOT_1_CD1 (1<<8) /* card detect 1 */ | 60 | # define ACR1_SLOT_1_CD1 (1<<8) /* card detect 1 */ |
61 | #define ACR1_SLOT_1_CD2 (1<<9) /* card detect 2 */ | 61 | # define ACR1_SLOT_1_CD2 (1<<9) /* card detect 2 */ |
62 | #define ACR1_SLOT_1_READY (1<<10) /* ready */ | 62 | # define ACR1_SLOT_1_READY (1<<10) /* ready */ |
63 | #define ACR1_SLOT_1_STATUS (1<<11) /* status change */ | 63 | # define ACR1_SLOT_1_STATUS (1<<11) /* status change */ |
64 | #define ACR1_SLOT_1_VS1 (1<<12) /* voltage sense 1 */ | 64 | # define ACR1_SLOT_1_VS1 (1<<12) /* voltage sense 1 */ |
65 | #define ACR1_SLOT_1_VS2 (1<<13) /* voltage sense 2 */ | 65 | # define ACR1_SLOT_1_VS2 (1<<13) /* voltage sense 2 */ |
66 | #define ACR1_SLOT_1_INPACK (1<<14) /* inpack pin status */ | 66 | # define ACR1_SLOT_1_INPACK (1<<14) /* inpack pin status */ |
67 | 67 | ||
68 | #define CPLD_AUX0 0xBE00000C | 68 | #define CPLD_AUX0 0xBE00000C |
69 | #define CPLD_AUX1 0xBE000010 | 69 | #define CPLD_AUX1 0xBE000010 |
diff --git a/include/asm-mips/mach-pb1x00/pb1100.h b/include/asm-mips/mach-pb1x00/pb1100.h index 4c5a1cd018..63aa3926b2 100644 --- a/include/asm-mips/mach-pb1x00/pb1100.h +++ b/include/asm-mips/mach-pb1x00/pb1100.h | |||
@@ -29,44 +29,44 @@ | |||
29 | 29 | ||
30 | #define PB1100_IDENT 0xAE000000 | 30 | #define PB1100_IDENT 0xAE000000 |
31 | #define BOARD_STATUS_REG 0xAE000004 | 31 | #define BOARD_STATUS_REG 0xAE000004 |
32 | #define PB1100_ROM_SEL (1<<15) | 32 | # define PB1100_ROM_SEL (1<<15) |
33 | #define PB1100_ROM_SIZ (1<<14) | 33 | # define PB1100_ROM_SIZ (1<<14) |
34 | #define PB1100_SWAP_BOOT (1<<13) | 34 | # define PB1100_SWAP_BOOT (1<<13) |
35 | #define PB1100_FLASH_WP (1<<12) | 35 | # define PB1100_FLASH_WP (1<<12) |
36 | #define PB1100_ROM_H_STS (1<<11) | 36 | # define PB1100_ROM_H_STS (1<<11) |
37 | #define PB1100_ROM_L_STS (1<<10) | 37 | # define PB1100_ROM_L_STS (1<<10) |
38 | #define PB1100_FLASH_H_STS (1<<9) | 38 | # define PB1100_FLASH_H_STS (1<<9) |
39 | #define PB1100_FLASH_L_STS (1<<8) | 39 | # define PB1100_FLASH_L_STS (1<<8) |
40 | #define PB1100_SRAM_SIZ (1<<7) | 40 | # define PB1100_SRAM_SIZ (1<<7) |
41 | #define PB1100_TSC_BUSY (1<<6) | 41 | # define PB1100_TSC_BUSY (1<<6) |
42 | #define PB1100_PCMCIA_VS_MASK (3<<4) | 42 | # define PB1100_PCMCIA_VS_MASK (3<<4) |
43 | #define PB1100_RS232_CD (1<<3) | 43 | # define PB1100_RS232_CD (1<<3) |
44 | #define PB1100_RS232_CTS (1<<2) | 44 | # define PB1100_RS232_CTS (1<<2) |
45 | #define PB1100_RS232_DSR (1<<1) | 45 | # define PB1100_RS232_DSR (1<<1) |
46 | #define PB1100_RS232_RI (1<<0) | 46 | # define PB1100_RS232_RI (1<<0) |
47 | 47 | ||
48 | #define PB1100_IRDA_RS232 0xAE00000C | 48 | #define PB1100_IRDA_RS232 0xAE00000C |
49 | #define PB1100_IRDA_FULL (0<<14) /* full power */ | 49 | # define PB1100_IRDA_FULL (0<<14) /* full power */ |
50 | #define PB1100_IRDA_SHUTDOWN (1<<14) | 50 | # define PB1100_IRDA_SHUTDOWN (1<<14) |
51 | #define PB1100_IRDA_TT (2<<14) /* 2/3 power */ | 51 | # define PB1100_IRDA_TT (2<<14) /* 2/3 power */ |
52 | #define PB1100_IRDA_OT (3<<14) /* 1/3 power */ | 52 | # define PB1100_IRDA_OT (3<<14) /* 1/3 power */ |
53 | #define PB1100_IRDA_FIR (1<<13) | 53 | # define PB1100_IRDA_FIR (1<<13) |
54 | 54 | ||
55 | #define PCMCIA_BOARD_REG 0xAE000010 | 55 | #define PCMCIA_BOARD_REG 0xAE000010 |
56 | #define PB1100_SD_WP1_RO (1<<15) /* read only */ | 56 | # define PB1100_SD_WP1_RO (1<<15) /* read only */ |
57 | #define PB1100_SD_WP0_RO (1<<14) /* read only */ | 57 | # define PB1100_SD_WP0_RO (1<<14) /* read only */ |
58 | #define PB1100_SD_PWR1 (1<<11) /* applies power to SD1 */ | 58 | # define PB1100_SD_PWR1 (1<<11) /* applies power to SD1 */ |
59 | #define PB1100_SD_PWR0 (1<<10) /* applies power to SD0 */ | 59 | # define PB1100_SD_PWR0 (1<<10) /* applies power to SD0 */ |
60 | #define PB1100_SEL_SD_CONN1 (1<<9) | 60 | # define PB1100_SEL_SD_CONN1 (1<<9) |
61 | #define PB1100_SEL_SD_CONN0 (1<<8) | 61 | # define PB1100_SEL_SD_CONN0 (1<<8) |
62 | #define PC_DEASSERT_RST (1<<7) | 62 | # define PC_DEASSERT_RST (1<<7) |
63 | #define PC_DRV_EN (1<<4) | 63 | # define PC_DRV_EN (1<<4) |
64 | 64 | ||
65 | #define PB1100_G_CONTROL 0xAE000014 /* graphics control */ | 65 | #define PB1100_G_CONTROL 0xAE000014 /* graphics control */ |
66 | 66 | ||
67 | #define PB1100_RST_VDDI 0xAE00001C | 67 | #define PB1100_RST_VDDI 0xAE00001C |
68 | #define PB1100_SOFT_RESET (1<<15) /* clear to reset the board */ | 68 | # define PB1100_SOFT_RESET (1<<15) /* clear to reset the board */ |
69 | #define PB1100_VDDI_MASK (0x1F) | 69 | # define PB1100_VDDI_MASK (0x1F) |
70 | 70 | ||
71 | #define PB1100_LEDS 0xAE000018 | 71 | #define PB1100_LEDS 0xAE000018 |
72 | 72 | ||
diff --git a/include/asm-mips/mach-pnx8550/kernel-entry-init.h b/include/asm-mips/mach-pnx8550/kernel-entry-init.h index 57102fa9da..bdde00c919 100644 --- a/include/asm-mips/mach-pnx8550/kernel-entry-init.h +++ b/include/asm-mips/mach-pnx8550/kernel-entry-init.h | |||
@@ -44,7 +44,7 @@ cache_begin: li t0, (1<<28) | |||
44 | mfc0 t0, CP0_CONFIG, 7 | 44 | mfc0 t0, CP0_CONFIG, 7 |
45 | HAZARD_CP0 | 45 | HAZARD_CP0 |
46 | 46 | ||
47 | and t0,~((1<<19) | (1<<20)) /* TLB/MAP cleared */ | 47 | and t0, ~((1<<19) | (1<<20)) /* TLB/MAP cleared */ |
48 | mtc0 t0, CP0_CONFIG, 7 | 48 | mtc0 t0, CP0_CONFIG, 7 |
49 | HAZARD_CP0 | 49 | HAZARD_CP0 |
50 | 50 | ||
@@ -200,10 +200,10 @@ pr4450_instr_cache_invalidated: | |||
200 | 200 | ||
201 | icache_invd_loop: | 201 | icache_invd_loop: |
202 | /* 9 == register t1 */ | 202 | /* 9 == register t1 */ |
203 | .word (CACHE_OPC | (9 << 21) | (Index_Invalidate_I << 16) | \ | 203 | .word CACHE_OPC | (9 << 21) | (Index_Invalidate_I << 16) | \ |
204 | (0 * ICACHE_SET_SIZE)) /* invalidate inst cache WAY0 */ | 204 | (0 * ICACHE_SET_SIZE) /* invalidate inst cache WAY0 */ |
205 | .word (CACHE_OPC | (9 << 21) | (Index_Invalidate_I << 16) | \ | 205 | .word CACHE_OPC | (9 << 21) | (Index_Invalidate_I << 16) | \ |
206 | (1 * ICACHE_SET_SIZE)) /* invalidate inst cache WAY1 */ | 206 | (1 * ICACHE_SET_SIZE) /* invalidate inst cache WAY1 */ |
207 | 207 | ||
208 | addiu t1, t1, ICACHE_LINE_SIZE /* T1 = next cache line index */ | 208 | addiu t1, t1, ICACHE_LINE_SIZE /* T1 = next cache line index */ |
209 | bne t2, zero, icache_invd_loop /* T2 = 0 if all sets invalidated */ | 209 | bne t2, zero, icache_invd_loop /* T2 = 0 if all sets invalidated */ |
@@ -235,14 +235,14 @@ pr4450_instr_cache_invalidated: | |||
235 | 235 | ||
236 | dcache_wbinvd_loop: | 236 | dcache_wbinvd_loop: |
237 | /* 9 == register t1 */ | 237 | /* 9 == register t1 */ |
238 | .word (CACHE_OPC | (9 << 21) | (Index_Writeback_Inv_D << 16) | \ | 238 | .word CACHE_OPC | (9 << 21) | (Index_Writeback_Inv_D << 16) | \ |
239 | (0 * DCACHE_SET_SIZE)) /* writeback/invalidate WAY0 */ | 239 | (0 * DCACHE_SET_SIZE) /* writeback/invalidate WAY0 */ |
240 | .word (CACHE_OPC | (9 << 21) | (Index_Writeback_Inv_D << 16) | \ | 240 | .word CACHE_OPC | (9 << 21) | (Index_Writeback_Inv_D << 16) | \ |
241 | (1 * DCACHE_SET_SIZE)) /* writeback/invalidate WAY1 */ | 241 | (1 * DCACHE_SET_SIZE) /* writeback/invalidate WAY1 */ |
242 | .word (CACHE_OPC | (9 << 21) | (Index_Writeback_Inv_D << 16) | \ | 242 | .word CACHE_OPC | (9 << 21) | (Index_Writeback_Inv_D << 16) | \ |
243 | (2 * DCACHE_SET_SIZE)) /* writeback/invalidate WAY2 */ | 243 | (2 * DCACHE_SET_SIZE) /* writeback/invalidate WAY2 */ |
244 | .word (CACHE_OPC | (9 << 21) | (Index_Writeback_Inv_D << 16) | \ | 244 | .word CACHE_OPC | (9 << 21) | (Index_Writeback_Inv_D << 16) | \ |
245 | (3 * DCACHE_SET_SIZE)) /* writeback/invalidate WAY3 */ | 245 | (3 * DCACHE_SET_SIZE) /* writeback/invalidate WAY3 */ |
246 | 246 | ||
247 | addiu t1, t1, DCACHE_LINE_SIZE /* T1 = next data cache line index */ | 247 | addiu t1, t1, DCACHE_LINE_SIZE /* T1 = next data cache line index */ |
248 | bne t2, zero, dcache_wbinvd_loop /* T2 = 0 when wbinvd entire cache */ | 248 | bne t2, zero, dcache_wbinvd_loop /* T2 = 0 when wbinvd entire cache */ |
diff --git a/include/asm-mips/mach-pnx8550/uart.h b/include/asm-mips/mach-pnx8550/uart.h index 814a7a15ab..ad7608d448 100644 --- a/include/asm-mips/mach-pnx8550/uart.h +++ b/include/asm-mips/mach-pnx8550/uart.h | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | /* early macros needed for prom/kgdb */ | 16 | /* early macros needed for prom/kgdb */ |
17 | 17 | ||
18 | #define ip3106_lcr(base,port) *(volatile u32 *)(base+(port*0x1000) + 0x000) | 18 | #define ip3106_lcr(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x000) |
19 | #define ip3106_mcr(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x004) | 19 | #define ip3106_mcr(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x004) |
20 | #define ip3106_baud(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x008) | 20 | #define ip3106_baud(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x008) |
21 | #define ip3106_cfg(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x00C) | 21 | #define ip3106_cfg(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x00C) |
diff --git a/include/asm-mips/mach-pnx8550/war.h b/include/asm-mips/mach-pnx8550/war.h new file mode 100644 index 0000000000..d0458dd082 --- /dev/null +++ b/include/asm-mips/mach-pnx8550/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_PNX8550_WAR_H | ||
9 | #define __ASM_MIPS_MACH_PNX8550_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_PNX8550_WAR_H */ | ||
diff --git a/include/asm-mips/mach-qemu/war.h b/include/asm-mips/mach-qemu/war.h new file mode 100644 index 0000000000..0eaf0c548a --- /dev/null +++ b/include/asm-mips/mach-qemu/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_QEMU_WAR_H | ||
9 | #define __ASM_MIPS_MACH_QEMU_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_QEMU_WAR_H */ | ||
diff --git a/include/asm-mips/mach-rm/war.h b/include/asm-mips/mach-rm/war.h new file mode 100644 index 0000000000..948d3129a1 --- /dev/null +++ b/include/asm-mips/mach-rm/war.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_RM_WAR_H | ||
9 | #define __ASM_MIPS_MACH_RM_WAR_H | ||
10 | |||
11 | /* | ||
12 | * The RM200C seems to have been shipped only with V2.0 R4600s | ||
13 | */ | ||
14 | |||
15 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
16 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
17 | #define R4600_V2_HIT_CACHEOP_WAR 1 | ||
18 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
19 | #define BCM1250_M3_WAR 0 | ||
20 | #define SIBYTE_1956_WAR 0 | ||
21 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
22 | #define MIPS_CACHE_SYNC_WAR 0 | ||
23 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
24 | #define RM9000_CDEX_SMP_WAR 0 | ||
25 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
26 | #define R10000_LLSC_WAR 0 | ||
27 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
28 | |||
29 | #endif /* __ASM_MIPS_MACH_RM_WAR_H */ | ||
diff --git a/include/asm-mips/mach-sibyte/cpu-feature-overrides.h b/include/asm-mips/mach-sibyte/cpu-feature-overrides.h index 63d5bf649a..1c1f92415b 100644 --- a/include/asm-mips/mach-sibyte/cpu-feature-overrides.h +++ b/include/asm-mips/mach-sibyte/cpu-feature-overrides.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #define __ASM_MACH_SIBYTE_CPU_FEATURE_OVERRIDES_H | 9 | #define __ASM_MACH_SIBYTE_CPU_FEATURE_OVERRIDES_H |
10 | 10 | ||
11 | /* | 11 | /* |
12 | * Sibyte are MIPS64 processors weired to a specific configuration | 12 | * Sibyte are MIPS64 processors wired to a specific configuration |
13 | */ | 13 | */ |
14 | #define cpu_has_watch 1 | 14 | #define cpu_has_watch 1 |
15 | #define cpu_has_mips16 0 | 15 | #define cpu_has_mips16 0 |
@@ -33,6 +33,11 @@ | |||
33 | #define cpu_has_nofpuex 0 | 33 | #define cpu_has_nofpuex 0 |
34 | #define cpu_has_64bits 1 | 34 | #define cpu_has_64bits 1 |
35 | 35 | ||
36 | #define cpu_has_mips32r1 1 | ||
37 | #define cpu_has_mips32r2 0 | ||
38 | #define cpu_has_mips64r1 1 | ||
39 | #define cpu_has_mips64r2 0 | ||
40 | |||
36 | #define cpu_has_inclusive_pcaches 0 | 41 | #define cpu_has_inclusive_pcaches 0 |
37 | 42 | ||
38 | #define cpu_dcache_line_size() 32 | 43 | #define cpu_dcache_line_size() 32 |
diff --git a/include/asm-mips/mach-sibyte/war.h b/include/asm-mips/mach-sibyte/war.h new file mode 100644 index 0000000000..7950ef4f03 --- /dev/null +++ b/include/asm-mips/mach-sibyte/war.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_SIBYTE_WAR_H | ||
9 | #define __ASM_MIPS_MACH_SIBYTE_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | |||
16 | #if defined(CONFIG_SB1_PASS_1_WORKAROUNDS) || \ | ||
17 | defined(CONFIG_SB1_PASS_2_WORKAROUNDS) | ||
18 | |||
19 | #define BCM1250_M3_WAR 1 | ||
20 | #define SIBYTE_1956_WAR 1 | ||
21 | |||
22 | #else | ||
23 | |||
24 | #define BCM1250_M3_WAR 0 | ||
25 | #define SIBYTE_1956_WAR 0 | ||
26 | |||
27 | #endif | ||
28 | |||
29 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
30 | #define MIPS_CACHE_SYNC_WAR 0 | ||
31 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
32 | #define RM9000_CDEX_SMP_WAR 0 | ||
33 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
34 | #define R10000_LLSC_WAR 0 | ||
35 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
36 | |||
37 | #endif /* __ASM_MIPS_MACH_SIBYTE_WAR_H */ | ||
diff --git a/include/asm-mips/mach-tx49xx/war.h b/include/asm-mips/mach-tx49xx/war.h new file mode 100644 index 0000000000..39b5d1177c --- /dev/null +++ b/include/asm-mips/mach-tx49xx/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_TX49XX_WAR_H | ||
9 | #define __ASM_MIPS_MACH_TX49XX_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 1 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_TX49XX_WAR_H */ | ||
diff --git a/include/asm-mips/mach-vr41xx/war.h b/include/asm-mips/mach-vr41xx/war.h new file mode 100644 index 0000000000..56a3892641 --- /dev/null +++ b/include/asm-mips/mach-vr41xx/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_VR41XX_WAR_H | ||
9 | #define __ASM_MIPS_MACH_VR41XX_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_VR41XX_WAR_H */ | ||
diff --git a/include/asm-mips/mach-wrppmc/mach-gt64120.h b/include/asm-mips/mach-wrppmc/mach-gt64120.h index ba9205a045..00d8bf6164 100644 --- a/include/asm-mips/mach-wrppmc/mach-gt64120.h +++ b/include/asm-mips/mach-wrppmc/mach-gt64120.h | |||
@@ -43,7 +43,6 @@ | |||
43 | #define GT_PCI_MEM_SIZE 0x02000000UL | 43 | #define GT_PCI_MEM_SIZE 0x02000000UL |
44 | #define GT_PCI_IO_BASE 0x11000000UL | 44 | #define GT_PCI_IO_BASE 0x11000000UL |
45 | #define GT_PCI_IO_SIZE 0x02000000UL | 45 | #define GT_PCI_IO_SIZE 0x02000000UL |
46 | #define GT_ISA_IO_BASE PCI_IO_BASE | ||
47 | 46 | ||
48 | /* | 47 | /* |
49 | * PCI interrupts will come in on either the INTA or INTD interrups lines, | 48 | * PCI interrupts will come in on either the INTA or INTD interrups lines, |
diff --git a/include/asm-mips/mach-wrppmc/war.h b/include/asm-mips/mach-wrppmc/war.h new file mode 100644 index 0000000000..ac48629bb1 --- /dev/null +++ b/include/asm-mips/mach-wrppmc/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_WRPPMC_WAR_H | ||
9 | #define __ASM_MIPS_MACH_WRPPMC_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 0 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 1 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_WRPPMC_WAR_H */ | ||
diff --git a/include/asm-mips/mach-yosemite/war.h b/include/asm-mips/mach-yosemite/war.h new file mode 100644 index 0000000000..e5c6d53efc --- /dev/null +++ b/include/asm-mips/mach-yosemite/war.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | ||
7 | */ | ||
8 | #ifndef __ASM_MIPS_MACH_YOSEMITE_WAR_H | ||
9 | #define __ASM_MIPS_MACH_YOSEMITE_WAR_H | ||
10 | |||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
13 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
14 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
15 | #define BCM1250_M3_WAR 0 | ||
16 | #define SIBYTE_1956_WAR 0 | ||
17 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
18 | #define MIPS_CACHE_SYNC_WAR 0 | ||
19 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
20 | #define RM9000_CDEX_SMP_WAR 1 | ||
21 | #define ICACHE_REFILLS_WORKAROUND_WAR 1 | ||
22 | #define R10000_LLSC_WAR 0 | ||
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | ||
24 | |||
25 | #endif /* __ASM_MIPS_MACH_YOSEMITE_WAR_H */ | ||
diff --git a/include/asm-mips/mc146818-time.h b/include/asm-mips/mc146818-time.h index 41ac8d363c..cdc379a0a9 100644 --- a/include/asm-mips/mc146818-time.h +++ b/include/asm-mips/mc146818-time.h | |||
@@ -63,8 +63,8 @@ static inline int mc146818_set_rtc_mmss(unsigned long nowtime) | |||
63 | BIN_TO_BCD(real_seconds); | 63 | BIN_TO_BCD(real_seconds); |
64 | BIN_TO_BCD(real_minutes); | 64 | BIN_TO_BCD(real_minutes); |
65 | } | 65 | } |
66 | CMOS_WRITE(real_seconds,RTC_SECONDS); | 66 | CMOS_WRITE(real_seconds, RTC_SECONDS); |
67 | CMOS_WRITE(real_minutes,RTC_MINUTES); | 67 | CMOS_WRITE(real_minutes, RTC_MINUTES); |
68 | } else { | 68 | } else { |
69 | printk(KERN_WARNING | 69 | printk(KERN_WARNING |
70 | "set_rtc_mmss: can't update from %d to %d\n", | 70 | "set_rtc_mmss: can't update from %d to %d\n", |
diff --git a/include/asm-mips/mips-boards/bonito64.h b/include/asm-mips/mips-boards/bonito64.h index dc3fc32eed..a0f04bb99c 100644 --- a/include/asm-mips/mips-boards/bonito64.h +++ b/include/asm-mips/mips-boards/bonito64.h | |||
@@ -387,7 +387,7 @@ extern unsigned long _pcictrl_bonito_pcicfg; | |||
387 | #define BONITO_PCIMAP_PCIMAP_LO2 0x0003f000 | 387 | #define BONITO_PCIMAP_PCIMAP_LO2 0x0003f000 |
388 | #define BONITO_PCIMAP_PCIMAP_LO2_SHIFT 12 | 388 | #define BONITO_PCIMAP_PCIMAP_LO2_SHIFT 12 |
389 | #define BONITO_PCIMAP_PCIMAP_2 0x00040000 | 389 | #define BONITO_PCIMAP_PCIMAP_2 0x00040000 |
390 | #define BONITO_PCIMAP_WIN(WIN,ADDR) ((((ADDR)>>26) & BONITO_PCIMAP_PCIMAP_LO0) << ((WIN)*6)) | 390 | #define BONITO_PCIMAP_WIN(WIN, ADDR) ((((ADDR)>>26) & BONITO_PCIMAP_PCIMAP_LO0) << ((WIN)*6)) |
391 | 391 | ||
392 | #define BONITO_PCIMAP_WINSIZE (1<<26) | 392 | #define BONITO_PCIMAP_WINSIZE (1<<26) |
393 | #define BONITO_PCIMAP_WINOFFSET(ADDR) ((ADDR) & (BONITO_PCIMAP_WINSIZE - 1)) | 393 | #define BONITO_PCIMAP_WINOFFSET(ADDR) ((ADDR) & (BONITO_PCIMAP_WINSIZE - 1)) |
@@ -412,19 +412,19 @@ extern unsigned long _pcictrl_bonito_pcicfg; | |||
412 | 412 | ||
413 | #define BONITO_PCIMEMBASECFG_ASHIFT 23 | 413 | #define BONITO_PCIMEMBASECFG_ASHIFT 23 |
414 | #define BONITO_PCIMEMBASECFG_AMASK 0x007fffff | 414 | #define BONITO_PCIMEMBASECFG_AMASK 0x007fffff |
415 | #define BONITO_PCIMEMBASECFGSIZE(WIN,SIZE) (((~((SIZE)-1))>>(BONITO_PCIMEMBASECFG_ASHIFT-BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) | 415 | #define BONITO_PCIMEMBASECFGSIZE(WIN, SIZE) (((~((SIZE)-1))>>(BONITO_PCIMEMBASECFG_ASHIFT-BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) |
416 | #define BONITO_PCIMEMBASECFGBASE(WIN,BASE) (((BASE)>>(BONITO_PCIMEMBASECFG_ASHIFT-BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS_SHIFT)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS) | 416 | #define BONITO_PCIMEMBASECFGBASE(WIN, BASE) (((BASE)>>(BONITO_PCIMEMBASECFG_ASHIFT-BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS_SHIFT)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS) |
417 | 417 | ||
418 | #define BONITO_PCIMEMBASECFG_SIZE(WIN,CFG) (((((~(CFG)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK)) << (BONITO_PCIMEMBASECFG_ASHIFT - BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT)) | BONITO_PCIMEMBASECFG_AMASK) | 418 | #define BONITO_PCIMEMBASECFG_SIZE(WIN, CFG) (((((~(CFG)) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK)) << (BONITO_PCIMEMBASECFG_ASHIFT - BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT)) | BONITO_PCIMEMBASECFG_AMASK) |
419 | 419 | ||
420 | 420 | ||
421 | #define BONITO_PCIMEMBASECFG_ADDRMASK(WIN,CFG) ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT) | 421 | #define BONITO_PCIMEMBASECFG_ADDRMASK(WIN, CFG) ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT) |
422 | #define BONITO_PCIMEMBASECFG_ADDRMASK(WIN,CFG) ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT) | 422 | #define BONITO_PCIMEMBASECFG_ADDRMASK(WIN, CFG) ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_MASK_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT) |
423 | #define BONITO_PCIMEMBASECFG_ADDRTRANS(WIN,CFG) ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT) | 423 | #define BONITO_PCIMEMBASECFG_ADDRTRANS(WIN, CFG) ((((CFG) & BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS) >> BONITO_PCIMEMBASECFG_MEMBASE##WIN##_TRANS_SHIFT) << BONITO_PCIMEMBASECFG_ASHIFT) |
424 | 424 | ||
425 | #define BONITO_PCITOPHYS(WIN,ADDR,CFG) ( \ | 425 | #define BONITO_PCITOPHYS(WIN, ADDR, CFG) ( \ |
426 | (((ADDR) & (~(BONITO_PCIMEMBASECFG_MASK))) & (~(BONITO_PCIMEMBASECFG_ADDRMASK(WIN,CFG)))) | \ | 426 | (((ADDR) & (~(BONITO_PCIMEMBASECFG_MASK))) & (~(BONITO_PCIMEMBASECFG_ADDRMASK(WIN, CFG)))) | \ |
427 | (BONITO_PCIMEMBASECFG_ADDRTRANS(WIN,CFG)) \ | 427 | (BONITO_PCIMEMBASECFG_ADDRTRANS(WIN, CFG)) \ |
428 | ) | 428 | ) |
429 | 429 | ||
430 | /* PCICmd */ | 430 | /* PCICmd */ |
diff --git a/include/asm-mips/mips-boards/malta.h b/include/asm-mips/mips-boards/malta.h index eec91001bb..93bf4e51b8 100644 --- a/include/asm-mips/mips-boards/malta.h +++ b/include/asm-mips/mips-boards/malta.h | |||
@@ -72,7 +72,7 @@ static inline unsigned long get_msc_port_base(unsigned long reg) | |||
72 | 72 | ||
73 | #define SMSC_CONFIG_ACTIVATE_ENABLE 1 | 73 | #define SMSC_CONFIG_ACTIVATE_ENABLE 1 |
74 | 74 | ||
75 | #define SMSC_WRITE(x,a) outb(x,a) | 75 | #define SMSC_WRITE(x, a) outb(x, a) |
76 | 76 | ||
77 | #define MALTA_JMPRS_REG 0x1f000210 | 77 | #define MALTA_JMPRS_REG 0x1f000210 |
78 | 78 | ||
diff --git a/include/asm-mips/mipsmtregs.h b/include/asm-mips/mipsmtregs.h index 294bca12cd..5a2f8a3a6a 100644 --- a/include/asm-mips/mipsmtregs.h +++ b/include/asm-mips/mipsmtregs.h | |||
@@ -41,27 +41,27 @@ | |||
41 | * Macros for use in assembly language code | 41 | * Macros for use in assembly language code |
42 | */ | 42 | */ |
43 | 43 | ||
44 | #define CP0_MVPCONTROL $0,1 | 44 | #define CP0_MVPCONTROL $0, 1 |
45 | #define CP0_MVPCONF0 $0,2 | 45 | #define CP0_MVPCONF0 $0, 2 |
46 | #define CP0_MVPCONF1 $0,3 | 46 | #define CP0_MVPCONF1 $0, 3 |
47 | #define CP0_VPECONTROL $1,1 | 47 | #define CP0_VPECONTROL $1, 1 |
48 | #define CP0_VPECONF0 $1,2 | 48 | #define CP0_VPECONF0 $1, 2 |
49 | #define CP0_VPECONF1 $1,3 | 49 | #define CP0_VPECONF1 $1, 3 |
50 | #define CP0_YQMASK $1,4 | 50 | #define CP0_YQMASK $1, 4 |
51 | #define CP0_VPESCHEDULE $1,5 | 51 | #define CP0_VPESCHEDULE $1, 5 |
52 | #define CP0_VPESCHEFBK $1,6 | 52 | #define CP0_VPESCHEFBK $1, 6 |
53 | #define CP0_TCSTATUS $2,1 | 53 | #define CP0_TCSTATUS $2, 1 |
54 | #define CP0_TCBIND $2,2 | 54 | #define CP0_TCBIND $2, 2 |
55 | #define CP0_TCRESTART $2,3 | 55 | #define CP0_TCRESTART $2, 3 |
56 | #define CP0_TCHALT $2,4 | 56 | #define CP0_TCHALT $2, 4 |
57 | #define CP0_TCCONTEXT $2,5 | 57 | #define CP0_TCCONTEXT $2, 5 |
58 | #define CP0_TCSCHEDULE $2,6 | 58 | #define CP0_TCSCHEDULE $2, 6 |
59 | #define CP0_TCSCHEFBK $2,7 | 59 | #define CP0_TCSCHEFBK $2, 7 |
60 | #define CP0_SRSCONF0 $6,1 | 60 | #define CP0_SRSCONF0 $6, 1 |
61 | #define CP0_SRSCONF1 $6,2 | 61 | #define CP0_SRSCONF1 $6, 2 |
62 | #define CP0_SRSCONF2 $6,3 | 62 | #define CP0_SRSCONF2 $6, 3 |
63 | #define CP0_SRSCONF3 $6,4 | 63 | #define CP0_SRSCONF3 $6, 4 |
64 | #define CP0_SRSCONF4 $6,5 | 64 | #define CP0_SRSCONF4 $6, 5 |
65 | 65 | ||
66 | #endif | 66 | #endif |
67 | 67 | ||
@@ -291,7 +291,7 @@ static inline void ehb(void) | |||
291 | __res; \ | 291 | __res; \ |
292 | }) | 292 | }) |
293 | 293 | ||
294 | #define mftr(rt,u,sel) \ | 294 | #define mftr(rt, u, sel) \ |
295 | ({ \ | 295 | ({ \ |
296 | unsigned long __res; \ | 296 | unsigned long __res; \ |
297 | \ | 297 | \ |
@@ -315,7 +315,7 @@ do { \ | |||
315 | : : "r" (v)); \ | 315 | : : "r" (v)); \ |
316 | } while (0) | 316 | } while (0) |
317 | 317 | ||
318 | #define mttc0(rd,sel,v) \ | 318 | #define mttc0(rd, sel, v) \ |
319 | ({ \ | 319 | ({ \ |
320 | __asm__ __volatile__( \ | 320 | __asm__ __volatile__( \ |
321 | " .set push \n" \ | 321 | " .set push \n" \ |
@@ -330,7 +330,7 @@ do { \ | |||
330 | }) | 330 | }) |
331 | 331 | ||
332 | 332 | ||
333 | #define mttr(rd,u,sel,v) \ | 333 | #define mttr(rd, u, sel, v) \ |
334 | ({ \ | 334 | ({ \ |
335 | __asm__ __volatile__( \ | 335 | __asm__ __volatile__( \ |
336 | "mttr %0," #rd ", " #u ", " #sel \ | 336 | "mttr %0," #rd ", " #u ", " #sel \ |
@@ -362,7 +362,7 @@ do { \ | |||
362 | #define write_vpe_c0_config1(val) mttc0(16, 1, val) | 362 | #define write_vpe_c0_config1(val) mttc0(16, 1, val) |
363 | #define read_vpe_c0_config7() mftc0(16, 7) | 363 | #define read_vpe_c0_config7() mftc0(16, 7) |
364 | #define write_vpe_c0_config7(val) mttc0(16, 7, val) | 364 | #define write_vpe_c0_config7(val) mttc0(16, 7, val) |
365 | #define read_vpe_c0_ebase() mftc0(15,1) | 365 | #define read_vpe_c0_ebase() mftc0(15, 1) |
366 | #define write_vpe_c0_ebase(val) mttc0(15, 1, val) | 366 | #define write_vpe_c0_ebase(val) mttc0(15, 1, val) |
367 | #define write_vpe_c0_compare(val) mttc0(11, 0, val) | 367 | #define write_vpe_c0_compare(val) mttc0(11, 0, val) |
368 | #define read_vpe_c0_badvaddr() mftc0(8, 0) | 368 | #define read_vpe_c0_badvaddr() mftc0(8, 0) |
@@ -372,15 +372,15 @@ do { \ | |||
372 | 372 | ||
373 | /* TC */ | 373 | /* TC */ |
374 | #define read_tc_c0_tcstatus() mftc0(2, 1) | 374 | #define read_tc_c0_tcstatus() mftc0(2, 1) |
375 | #define write_tc_c0_tcstatus(val) mttc0(2,1,val) | 375 | #define write_tc_c0_tcstatus(val) mttc0(2, 1, val) |
376 | #define read_tc_c0_tcbind() mftc0(2, 2) | 376 | #define read_tc_c0_tcbind() mftc0(2, 2) |
377 | #define write_tc_c0_tcbind(val) mttc0(2,2,val) | 377 | #define write_tc_c0_tcbind(val) mttc0(2, 2, val) |
378 | #define read_tc_c0_tcrestart() mftc0(2, 3) | 378 | #define read_tc_c0_tcrestart() mftc0(2, 3) |
379 | #define write_tc_c0_tcrestart(val) mttc0(2,3,val) | 379 | #define write_tc_c0_tcrestart(val) mttc0(2, 3, val) |
380 | #define read_tc_c0_tchalt() mftc0(2, 4) | 380 | #define read_tc_c0_tchalt() mftc0(2, 4) |
381 | #define write_tc_c0_tchalt(val) mttc0(2,4,val) | 381 | #define write_tc_c0_tchalt(val) mttc0(2, 4, val) |
382 | #define read_tc_c0_tccontext() mftc0(2, 5) | 382 | #define read_tc_c0_tccontext() mftc0(2, 5) |
383 | #define write_tc_c0_tccontext(val) mttc0(2,5,val) | 383 | #define write_tc_c0_tccontext(val) mttc0(2, 5, val) |
384 | 384 | ||
385 | /* GPR */ | 385 | /* GPR */ |
386 | #define read_tc_gpr_sp() mftgpr(29) | 386 | #define read_tc_gpr_sp() mftgpr(29) |
diff --git a/include/asm-mips/mipsregs.h b/include/asm-mips/mipsregs.h index 18f47f1e8c..aa17f658f7 100644 --- a/include/asm-mips/mipsregs.h +++ b/include/asm-mips/mipsregs.h | |||
@@ -981,7 +981,7 @@ do { \ | |||
981 | #define write_c0_errorepc(val) __write_ulong_c0_register($30, 0, val) | 981 | #define write_c0_errorepc(val) __write_ulong_c0_register($30, 0, val) |
982 | 982 | ||
983 | /* MIPSR2 */ | 983 | /* MIPSR2 */ |
984 | #define read_c0_hwrena() __read_32bit_c0_register($7,0) | 984 | #define read_c0_hwrena() __read_32bit_c0_register($7, 0) |
985 | #define write_c0_hwrena(val) __write_32bit_c0_register($7, 0, val) | 985 | #define write_c0_hwrena(val) __write_32bit_c0_register($7, 0, val) |
986 | 986 | ||
987 | #define read_c0_intctl() __read_32bit_c0_register($12, 1) | 987 | #define read_c0_intctl() __read_32bit_c0_register($12, 1) |
@@ -993,7 +993,7 @@ do { \ | |||
993 | #define read_c0_srsmap() __read_32bit_c0_register($12, 3) | 993 | #define read_c0_srsmap() __read_32bit_c0_register($12, 3) |
994 | #define write_c0_srsmap(val) __write_32bit_c0_register($12, 3, val) | 994 | #define write_c0_srsmap(val) __write_32bit_c0_register($12, 3, val) |
995 | 995 | ||
996 | #define read_c0_ebase() __read_32bit_c0_register($15,1) | 996 | #define read_c0_ebase() __read_32bit_c0_register($15, 1) |
997 | #define write_c0_ebase(val) __write_32bit_c0_register($15, 1, val) | 997 | #define write_c0_ebase(val) __write_32bit_c0_register($15, 1, val) |
998 | 998 | ||
999 | /* | 999 | /* |
diff --git a/include/asm-mips/mmu_context.h b/include/asm-mips/mmu_context.h index 65024ffd78..0c4f245eae 100644 --- a/include/asm-mips/mmu_context.h +++ b/include/asm-mips/mmu_context.h | |||
@@ -107,7 +107,7 @@ get_new_mmu_context(struct mm_struct *mm, unsigned long cpu) | |||
107 | 107 | ||
108 | #else /* CONFIG_MIPS_MT_SMTC */ | 108 | #else /* CONFIG_MIPS_MT_SMTC */ |
109 | 109 | ||
110 | #define get_new_mmu_context(mm,cpu) smtc_get_new_mmu_context((mm),(cpu)) | 110 | #define get_new_mmu_context(mm, cpu) smtc_get_new_mmu_context((mm), (cpu)) |
111 | 111 | ||
112 | #endif /* CONFIG_MIPS_MT_SMTC */ | 112 | #endif /* CONFIG_MIPS_MT_SMTC */ |
113 | 113 | ||
@@ -120,7 +120,7 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm) | |||
120 | { | 120 | { |
121 | int i; | 121 | int i; |
122 | 122 | ||
123 | for (i = 0; i < num_online_cpus(); i++) | 123 | for_each_online_cpu(i) |
124 | cpu_context(i, mm) = 0; | 124 | cpu_context(i, mm) = 0; |
125 | 125 | ||
126 | return 0; | 126 | return 0; |
@@ -191,7 +191,7 @@ static inline void destroy_context(struct mm_struct *mm) | |||
191 | { | 191 | { |
192 | } | 192 | } |
193 | 193 | ||
194 | #define deactivate_mm(tsk,mm) do { } while (0) | 194 | #define deactivate_mm(tsk, mm) do { } while (0) |
195 | 195 | ||
196 | /* | 196 | /* |
197 | * After we have set current->mm to a new value, this activates | 197 | * After we have set current->mm to a new value, this activates |
@@ -284,7 +284,7 @@ drop_mmu_context(struct mm_struct *mm, unsigned cpu) | |||
284 | int i; | 284 | int i; |
285 | 285 | ||
286 | /* SMTC shares the TLB (and ASIDs) across VPEs */ | 286 | /* SMTC shares the TLB (and ASIDs) across VPEs */ |
287 | for (i = 0; i < num_online_cpus(); i++) { | 287 | for_each_online_cpu(i) { |
288 | if((smtc_status & SMTC_TLB_SHARED) | 288 | if((smtc_status & SMTC_TLB_SHARED) |
289 | || (cpu_data[i].vpe_id == cpu_data[cpu].vpe_id)) | 289 | || (cpu_data[i].vpe_id == cpu_data[cpu].vpe_id)) |
290 | cpu_context(i, mm) = 0; | 290 | cpu_context(i, mm) = 0; |
diff --git a/include/asm-mips/nile4.h b/include/asm-mips/nile4.h new file mode 100644 index 0000000000..c3ca959aa4 --- /dev/null +++ b/include/asm-mips/nile4.h | |||
@@ -0,0 +1,310 @@ | |||
1 | /* | ||
2 | * asm-mips/nile4.h -- NEC Vrc-5074 Nile 4 definitions | ||
3 | * | ||
4 | * Copyright (C) 2000 Geert Uytterhoeven <geert@sonycom.com> | ||
5 | * Sony Software Development Center Europe (SDCE), Brussels | ||
6 | * | ||
7 | * This file is based on the following documentation: | ||
8 | * | ||
9 | * NEC Vrc 5074 System Controller Data Sheet, June 1998 | ||
10 | */ | ||
11 | |||
12 | #ifndef _ASM_NILE4_H | ||
13 | #define _ASM_NILE4_H | ||
14 | |||
15 | #define NILE4_BASE 0xbfa00000 | ||
16 | #define NILE4_SIZE 0x00200000 /* 2 MB */ | ||
17 | |||
18 | |||
19 | /* | ||
20 | * Physical Device Address Registers (PDARs) | ||
21 | */ | ||
22 | |||
23 | #define NILE4_SDRAM0 0x0000 /* SDRAM Bank 0 [R/W] */ | ||
24 | #define NILE4_SDRAM1 0x0008 /* SDRAM Bank 1 [R/W] */ | ||
25 | #define NILE4_DCS2 0x0010 /* Device Chip-Select 2 [R/W] */ | ||
26 | #define NILE4_DCS3 0x0018 /* Device Chip-Select 3 [R/W] */ | ||
27 | #define NILE4_DCS4 0x0020 /* Device Chip-Select 4 [R/W] */ | ||
28 | #define NILE4_DCS5 0x0028 /* Device Chip-Select 5 [R/W] */ | ||
29 | #define NILE4_DCS6 0x0030 /* Device Chip-Select 6 [R/W] */ | ||
30 | #define NILE4_DCS7 0x0038 /* Device Chip-Select 7 [R/W] */ | ||
31 | #define NILE4_DCS8 0x0040 /* Device Chip-Select 8 [R/W] */ | ||
32 | #define NILE4_PCIW0 0x0060 /* PCI Address Window 0 [R/W] */ | ||
33 | #define NILE4_PCIW1 0x0068 /* PCI Address Window 1 [R/W] */ | ||
34 | #define NILE4_INTCS 0x0070 /* Controller Internal Registers and Devices */ | ||
35 | /* [R/W] */ | ||
36 | #define NILE4_BOOTCS 0x0078 /* Boot ROM Chip-Select [R/W] */ | ||
37 | |||
38 | |||
39 | /* | ||
40 | * CPU Interface Registers | ||
41 | */ | ||
42 | |||
43 | #define NILE4_CPUSTAT 0x0080 /* CPU Status [R/W] */ | ||
44 | #define NILE4_INTCTRL 0x0088 /* Interrupt Control [R/W] */ | ||
45 | #define NILE4_INTSTAT0 0x0090 /* Interrupt Status 0 [R] */ | ||
46 | #define NILE4_INTSTAT1 0x0098 /* Interrupt Status 1 and CPU Interrupt */ | ||
47 | /* Enable [R/W] */ | ||
48 | #define NILE4_INTCLR 0x00A0 /* Interrupt Clear [R/W] */ | ||
49 | #define NILE4_INTPPES 0x00A8 /* PCI Interrupt Control [R/W] */ | ||
50 | |||
51 | |||
52 | /* | ||
53 | * Memory-Interface Registers | ||
54 | */ | ||
55 | |||
56 | #define NILE4_MEMCTRL 0x00C0 /* Memory Control */ | ||
57 | #define NILE4_ACSTIME 0x00C8 /* Memory Access Timing [R/W] */ | ||
58 | #define NILE4_CHKERR 0x00D0 /* Memory Check Error Status [R] */ | ||
59 | |||
60 | |||
61 | /* | ||
62 | * PCI-Bus Registers | ||
63 | */ | ||
64 | |||
65 | #define NILE4_PCICTRL 0x00E0 /* PCI Control [R/W] */ | ||
66 | #define NILE4_PCIARB 0x00E8 /* PCI Arbiter [R/W] */ | ||
67 | #define NILE4_PCIINIT0 0x00F0 /* PCI Master (Initiator) 0 [R/W] */ | ||
68 | #define NILE4_PCIINIT1 0x00F8 /* PCI Master (Initiator) 1 [R/W] */ | ||
69 | #define NILE4_PCIERR 0x00B8 /* PCI Error [R/W] */ | ||
70 | |||
71 | |||
72 | /* | ||
73 | * Local-Bus Registers | ||
74 | */ | ||
75 | |||
76 | #define NILE4_LCNFG 0x0100 /* Local Bus Configuration [R/W] */ | ||
77 | #define NILE4_LCST2 0x0110 /* Local Bus Chip-Select Timing 2 [R/W] */ | ||
78 | #define NILE4_LCST3 0x0118 /* Local Bus Chip-Select Timing 3 [R/W] */ | ||
79 | #define NILE4_LCST4 0x0120 /* Local Bus Chip-Select Timing 4 [R/W] */ | ||
80 | #define NILE4_LCST5 0x0128 /* Local Bus Chip-Select Timing 5 [R/W] */ | ||
81 | #define NILE4_LCST6 0x0130 /* Local Bus Chip-Select Timing 6 [R/W] */ | ||
82 | #define NILE4_LCST7 0x0138 /* Local Bus Chip-Select Timing 7 [R/W] */ | ||
83 | #define NILE4_LCST8 0x0140 /* Local Bus Chip-Select Timing 8 [R/W] */ | ||
84 | #define NILE4_DCSFN 0x0150 /* Device Chip-Select Muxing and Output */ | ||
85 | /* Enables [R/W] */ | ||
86 | #define NILE4_DCSIO 0x0158 /* Device Chip-Selects As I/O Bits [R/W] */ | ||
87 | #define NILE4_BCST 0x0178 /* Local Boot Chip-Select Timing [R/W] */ | ||
88 | |||
89 | |||
90 | /* | ||
91 | * DMA Registers | ||
92 | */ | ||
93 | |||
94 | #define NILE4_DMACTRL0 0x0180 /* DMA Control 0 [R/W] */ | ||
95 | #define NILE4_DMASRCA0 0x0188 /* DMA Source Address 0 [R/W] */ | ||
96 | #define NILE4_DMADESA0 0x0190 /* DMA Destination Address 0 [R/W] */ | ||
97 | #define NILE4_DMACTRL1 0x0198 /* DMA Control 1 [R/W] */ | ||
98 | #define NILE4_DMASRCA1 0x01A0 /* DMA Source Address 1 [R/W] */ | ||
99 | #define NILE4_DMADESA1 0x01A8 /* DMA Destination Address 1 [R/W] */ | ||
100 | |||
101 | |||
102 | /* | ||
103 | * Timer Registers | ||
104 | */ | ||
105 | |||
106 | #define NILE4_T0CTRL 0x01C0 /* SDRAM Refresh Control [R/W] */ | ||
107 | #define NILE4_T0CNTR 0x01C8 /* SDRAM Refresh Counter [R/W] */ | ||
108 | #define NILE4_T1CTRL 0x01D0 /* CPU-Bus Read Time-Out Control [R/W] */ | ||
109 | #define NILE4_T1CNTR 0x01D8 /* CPU-Bus Read Time-Out Counter [R/W] */ | ||
110 | #define NILE4_T2CTRL 0x01E0 /* General-Purpose Timer Control [R/W] */ | ||
111 | #define NILE4_T2CNTR 0x01E8 /* General-Purpose Timer Counter [R/W] */ | ||
112 | #define NILE4_T3CTRL 0x01F0 /* Watchdog Timer Control [R/W] */ | ||
113 | #define NILE4_T3CNTR 0x01F8 /* Watchdog Timer Counter [R/W] */ | ||
114 | |||
115 | |||
116 | /* | ||
117 | * PCI Configuration Space Registers | ||
118 | */ | ||
119 | |||
120 | #define NILE4_PCI_BASE 0x0200 | ||
121 | |||
122 | #define NILE4_VID 0x0200 /* PCI Vendor ID [R] */ | ||
123 | #define NILE4_DID 0x0202 /* PCI Device ID [R] */ | ||
124 | #define NILE4_PCICMD 0x0204 /* PCI Command [R/W] */ | ||
125 | #define NILE4_PCISTS 0x0206 /* PCI Status [R/W] */ | ||
126 | #define NILE4_REVID 0x0208 /* PCI Revision ID [R] */ | ||
127 | #define NILE4_CLASS 0x0209 /* PCI Class Code [R] */ | ||
128 | #define NILE4_CLSIZ 0x020C /* PCI Cache Line Size [R/W] */ | ||
129 | #define NILE4_MLTIM 0x020D /* PCI Latency Timer [R/W] */ | ||
130 | #define NILE4_HTYPE 0x020E /* PCI Header Type [R] */ | ||
131 | #define NILE4_BIST 0x020F /* BIST [R] (unimplemented) */ | ||
132 | #define NILE4_BARC 0x0210 /* PCI Base Address Register Control [R/W] */ | ||
133 | #define NILE4_BAR0 0x0218 /* PCI Base Address Register 0 [R/W] */ | ||
134 | #define NILE4_BAR1 0x0220 /* PCI Base Address Register 1 [R/W] */ | ||
135 | #define NILE4_CIS 0x0228 /* PCI Cardbus CIS Pointer [R] */ | ||
136 | /* (unimplemented) */ | ||
137 | #define NILE4_SSVID 0x022C /* PCI Sub-System Vendor ID [R/W] */ | ||
138 | #define NILE4_SSID 0x022E /* PCI Sub-System ID [R/W] */ | ||
139 | #define NILE4_ROM 0x0230 /* Expansion ROM Base Address [R] */ | ||
140 | /* (unimplemented) */ | ||
141 | #define NILE4_INTLIN 0x023C /* PCI Interrupt Line [R/W] */ | ||
142 | #define NILE4_INTPIN 0x023D /* PCI Interrupt Pin [R] */ | ||
143 | #define NILE4_MINGNT 0x023E /* PCI Min_Gnt [R] (unimplemented) */ | ||
144 | #define NILE4_MAXLAT 0x023F /* PCI Max_Lat [R] (unimplemented) */ | ||
145 | #define NILE4_BAR2 0x0240 /* PCI Base Address Register 2 [R/W] */ | ||
146 | #define NILE4_BAR3 0x0248 /* PCI Base Address Register 3 [R/W] */ | ||
147 | #define NILE4_BAR4 0x0250 /* PCI Base Address Register 4 [R/W] */ | ||
148 | #define NILE4_BAR5 0x0258 /* PCI Base Address Register 5 [R/W] */ | ||
149 | #define NILE4_BAR6 0x0260 /* PCI Base Address Register 6 [R/W] */ | ||
150 | #define NILE4_BAR7 0x0268 /* PCI Base Address Register 7 [R/W] */ | ||
151 | #define NILE4_BAR8 0x0270 /* PCI Base Address Register 8 [R/W] */ | ||
152 | #define NILE4_BARB 0x0278 /* PCI Base Address Register BOOT [R/W] */ | ||
153 | |||
154 | |||
155 | /* | ||
156 | * Serial-Port Registers | ||
157 | */ | ||
158 | |||
159 | #define NILE4_UART_BASE 0x0300 | ||
160 | |||
161 | #define NILE4_UARTRBR 0x0300 /* UART Receiver Data Buffer [R] */ | ||
162 | #define NILE4_UARTTHR 0x0300 /* UART Transmitter Data Holding [W] */ | ||
163 | #define NILE4_UARTIER 0x0308 /* UART Interrupt Enable [R/W] */ | ||
164 | #define NILE4_UARTDLL 0x0300 /* UART Divisor Latch LSB [R/W] */ | ||
165 | #define NILE4_UARTDLM 0x0308 /* UART Divisor Latch MSB [R/W] */ | ||
166 | #define NILE4_UARTIIR 0x0310 /* UART Interrupt ID [R] */ | ||
167 | #define NILE4_UARTFCR 0x0310 /* UART FIFO Control [W] */ | ||
168 | #define NILE4_UARTLCR 0x0318 /* UART Line Control [R/W] */ | ||
169 | #define NILE4_UARTMCR 0x0320 /* UART Modem Control [R/W] */ | ||
170 | #define NILE4_UARTLSR 0x0328 /* UART Line Status [R/W] */ | ||
171 | #define NILE4_UARTMSR 0x0330 /* UART Modem Status [R/W] */ | ||
172 | #define NILE4_UARTSCR 0x0338 /* UART Scratch [R/W] */ | ||
173 | |||
174 | #define NILE4_UART_BASE_BAUD 520833 /* 100 MHz / 12 / 16 */ | ||
175 | |||
176 | |||
177 | /* | ||
178 | * Interrupt Lines | ||
179 | */ | ||
180 | |||
181 | #define NILE4_INT_CPCE 0 /* CPU-Interface Parity-Error Interrupt */ | ||
182 | #define NILE4_INT_CNTD 1 /* CPU No-Target Decode Interrupt */ | ||
183 | #define NILE4_INT_MCE 2 /* Memory-Check Error Interrupt */ | ||
184 | #define NILE4_INT_DMA 3 /* DMA Controller Interrupt */ | ||
185 | #define NILE4_INT_UART 4 /* UART Interrupt */ | ||
186 | #define NILE4_INT_WDOG 5 /* Watchdog Timer Interrupt */ | ||
187 | #define NILE4_INT_GPT 6 /* General-Purpose Timer Interrupt */ | ||
188 | #define NILE4_INT_LBRTD 7 /* Local-Bus Ready Timer Interrupt */ | ||
189 | #define NILE4_INT_INTA 8 /* PCI Interrupt Signal INTA# */ | ||
190 | #define NILE4_INT_INTB 9 /* PCI Interrupt Signal INTB# */ | ||
191 | #define NILE4_INT_INTC 10 /* PCI Interrupt Signal INTC# */ | ||
192 | #define NILE4_INT_INTD 11 /* PCI Interrupt Signal INTD# */ | ||
193 | #define NILE4_INT_INTE 12 /* PCI Interrupt Signal INTE# (ISA cascade) */ | ||
194 | #define NILE4_INT_RESV 13 /* Reserved */ | ||
195 | #define NILE4_INT_PCIS 14 /* PCI SERR# Interrupt */ | ||
196 | #define NILE4_INT_PCIE 15 /* PCI Internal Error Interrupt */ | ||
197 | |||
198 | |||
199 | /* | ||
200 | * Nile 4 Register Access | ||
201 | */ | ||
202 | |||
203 | static inline void nile4_sync(void) | ||
204 | { | ||
205 | volatile u32 *p = (volatile u32 *)0xbfc00000; | ||
206 | (void)(*p); | ||
207 | } | ||
208 | |||
209 | static inline void nile4_out32(u32 offset, u32 val) | ||
210 | { | ||
211 | *(volatile u32 *)(NILE4_BASE+offset) = val; | ||
212 | nile4_sync(); | ||
213 | } | ||
214 | |||
215 | static inline u32 nile4_in32(u32 offset) | ||
216 | { | ||
217 | u32 val = *(volatile u32 *)(NILE4_BASE+offset); | ||
218 | nile4_sync(); | ||
219 | return val; | ||
220 | } | ||
221 | |||
222 | static inline void nile4_out16(u32 offset, u16 val) | ||
223 | { | ||
224 | *(volatile u16 *)(NILE4_BASE+offset) = val; | ||
225 | nile4_sync(); | ||
226 | } | ||
227 | |||
228 | static inline u16 nile4_in16(u32 offset) | ||
229 | { | ||
230 | u16 val = *(volatile u16 *)(NILE4_BASE+offset); | ||
231 | nile4_sync(); | ||
232 | return val; | ||
233 | } | ||
234 | |||
235 | static inline void nile4_out8(u32 offset, u8 val) | ||
236 | { | ||
237 | *(volatile u8 *)(NILE4_BASE+offset) = val; | ||
238 | nile4_sync(); | ||
239 | } | ||
240 | |||
241 | static inline u8 nile4_in8(u32 offset) | ||
242 | { | ||
243 | u8 val = *(volatile u8 *)(NILE4_BASE+offset); | ||
244 | nile4_sync(); | ||
245 | return val; | ||
246 | } | ||
247 | |||
248 | |||
249 | /* | ||
250 | * Physical Device Address Registers | ||
251 | */ | ||
252 | |||
253 | extern void nile4_set_pdar(u32 pdar, u32 phys, u32 size, int width, | ||
254 | int on_memory_bus, int visible); | ||
255 | |||
256 | |||
257 | /* | ||
258 | * PCI Master Registers | ||
259 | */ | ||
260 | |||
261 | #define NILE4_PCICMD_IACK 0 /* PCI Interrupt Acknowledge */ | ||
262 | #define NILE4_PCICMD_IO 1 /* PCI I/O Space */ | ||
263 | #define NILE4_PCICMD_MEM 3 /* PCI Memory Space */ | ||
264 | #define NILE4_PCICMD_CFG 5 /* PCI Configuration Space */ | ||
265 | |||
266 | |||
267 | /* | ||
268 | * PCI Address Spaces | ||
269 | * | ||
270 | * Note that these are multiplexed using PCIINIT[01]! | ||
271 | */ | ||
272 | |||
273 | #define NILE4_PCI_IO_BASE 0xa6000000 | ||
274 | #define NILE4_PCI_MEM_BASE 0xa8000000 | ||
275 | #define NILE4_PCI_CFG_BASE NILE4_PCI_MEM_BASE | ||
276 | #define NILE4_PCI_IACK_BASE NILE4_PCI_IO_BASE | ||
277 | |||
278 | |||
279 | extern void nile4_set_pmr(u32 pmr, u32 type, u32 addr); | ||
280 | |||
281 | |||
282 | /* | ||
283 | * Interrupt Programming | ||
284 | */ | ||
285 | |||
286 | #define NUM_I8259_INTERRUPTS 16 | ||
287 | #define NUM_NILE4_INTERRUPTS 16 | ||
288 | |||
289 | #define IRQ_I8259_CASCADE NILE4_INT_INTE | ||
290 | #define is_i8259_irq(irq) ((irq) < NUM_I8259_INTERRUPTS) | ||
291 | #define nile4_to_irq(n) ((n)+NUM_I8259_INTERRUPTS) | ||
292 | #define irq_to_nile4(n) ((n)-NUM_I8259_INTERRUPTS) | ||
293 | |||
294 | extern void nile4_map_irq(int nile4_irq, int cpu_irq); | ||
295 | extern void nile4_map_irq_all(int cpu_irq); | ||
296 | extern void nile4_enable_irq(unsigned int nile4_irq); | ||
297 | extern void nile4_disable_irq(unsigned int nile4_irq); | ||
298 | extern void nile4_disable_irq_all(void); | ||
299 | extern u16 nile4_get_irq_stat(int cpu_irq); | ||
300 | extern void nile4_enable_irq_output(int cpu_irq); | ||
301 | extern void nile4_disable_irq_output(int cpu_irq); | ||
302 | extern void nile4_set_pci_irq_polarity(int pci_irq, int high); | ||
303 | extern void nile4_set_pci_irq_level_or_edge(int pci_irq, int level); | ||
304 | extern void nile4_clear_irq(int nile4_irq); | ||
305 | extern void nile4_clear_irq_mask(u32 mask); | ||
306 | extern u8 nile4_i8259_iack(void); | ||
307 | extern void nile4_dump_irq_status(void); /* Debug */ | ||
308 | |||
309 | #endif | ||
310 | |||
diff --git a/include/asm-mips/paccess.h b/include/asm-mips/paccess.h index 8c08fa904b..c2394f8b0f 100644 --- a/include/asm-mips/paccess.h +++ b/include/asm-mips/paccess.h | |||
@@ -25,13 +25,13 @@ | |||
25 | extern asmlinkage void handle_ibe(void); | 25 | extern asmlinkage void handle_ibe(void); |
26 | extern asmlinkage void handle_dbe(void); | 26 | extern asmlinkage void handle_dbe(void); |
27 | 27 | ||
28 | #define put_dbe(x,ptr) __put_dbe((x),(ptr),sizeof(*(ptr))) | 28 | #define put_dbe(x, ptr) __put_dbe((x), (ptr), sizeof(*(ptr))) |
29 | #define get_dbe(x,ptr) __get_dbe((x),(ptr),sizeof(*(ptr))) | 29 | #define get_dbe(x, ptr) __get_dbe((x), (ptr), sizeof(*(ptr))) |
30 | 30 | ||
31 | struct __large_pstruct { unsigned long buf[100]; }; | 31 | struct __large_pstruct { unsigned long buf[100]; }; |
32 | #define __mp(x) (*(struct __large_pstruct *)(x)) | 32 | #define __mp(x) (*(struct __large_pstruct *)(x)) |
33 | 33 | ||
34 | #define __get_dbe(x,ptr,size) \ | 34 | #define __get_dbe(x, ptr, size) \ |
35 | ({ \ | 35 | ({ \ |
36 | long __gu_err; \ | 36 | long __gu_err; \ |
37 | __typeof__(*(ptr)) __gu_val; \ | 37 | __typeof__(*(ptr)) __gu_val; \ |
@@ -70,7 +70,7 @@ struct __large_pstruct { unsigned long buf[100]; }; | |||
70 | 70 | ||
71 | extern void __get_dbe_unknown(void); | 71 | extern void __get_dbe_unknown(void); |
72 | 72 | ||
73 | #define __put_dbe(x,ptr,size) \ | 73 | #define __put_dbe(x, ptr, size) \ |
74 | ({ \ | 74 | ({ \ |
75 | long __pu_err; \ | 75 | long __pu_err; \ |
76 | __typeof__(*(ptr)) __pu_val; \ | 76 | __typeof__(*(ptr)) __pu_val; \ |
diff --git a/include/asm-mips/page.h b/include/asm-mips/page.h index e3301e54d5..d2ea983bec 100644 --- a/include/asm-mips/page.h +++ b/include/asm-mips/page.h | |||
@@ -153,7 +153,7 @@ typedef struct { unsigned long pgprot; } pgprot_t; | |||
153 | ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET) | 153 | ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET) |
154 | #endif | 154 | #endif |
155 | #define __va(x) ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET)) | 155 | #define __va(x) ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET)) |
156 | #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x),0)) | 156 | #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) |
157 | 157 | ||
158 | #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) | 158 | #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) |
159 | 159 | ||
diff --git a/include/asm-mips/parport.h b/include/asm-mips/parport.h index a742e04e82..f52656826c 100644 --- a/include/asm-mips/parport.h +++ b/include/asm-mips/parport.h | |||
@@ -6,10 +6,10 @@ | |||
6 | #ifndef _ASM_PARPORT_H | 6 | #ifndef _ASM_PARPORT_H |
7 | #define _ASM_PARPORT_H | 7 | #define _ASM_PARPORT_H |
8 | 8 | ||
9 | static int __devinit parport_pc_find_isa_ports (int autoirq, int autodma); | 9 | static int __devinit parport_pc_find_isa_ports(int autoirq, int autodma); |
10 | static int __devinit parport_pc_find_nonpci_ports (int autoirq, int autodma) | 10 | static int __devinit parport_pc_find_nonpci_ports(int autoirq, int autodma) |
11 | { | 11 | { |
12 | return parport_pc_find_isa_ports (autoirq, autodma); | 12 | return parport_pc_find_isa_ports(autoirq, autodma); |
13 | } | 13 | } |
14 | 14 | ||
15 | #endif /* _ASM_PARPORT_H */ | 15 | #endif /* _ASM_PARPORT_H */ |
diff --git a/include/asm-mips/pci.h b/include/asm-mips/pci.h index 4fcc185cb2..301ff2f280 100644 --- a/include/asm-mips/pci.h +++ b/include/asm-mips/pci.h | |||
@@ -150,8 +150,6 @@ pcibios_select_root(struct pci_dev *pdev, struct resource *res) | |||
150 | return root; | 150 | return root; |
151 | } | 151 | } |
152 | 152 | ||
153 | #ifdef CONFIG_PCI_DOMAINS | ||
154 | |||
155 | #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index | 153 | #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index |
156 | 154 | ||
157 | static inline int pci_proc_domain(struct pci_bus *bus) | 155 | static inline int pci_proc_domain(struct pci_bus *bus) |
@@ -160,8 +158,6 @@ static inline int pci_proc_domain(struct pci_bus *bus) | |||
160 | return hose->need_domain_info; | 158 | return hose->need_domain_info; |
161 | } | 159 | } |
162 | 160 | ||
163 | #endif /* CONFIG_PCI_DOMAINS */ | ||
164 | |||
165 | #endif /* __KERNEL__ */ | 161 | #endif /* __KERNEL__ */ |
166 | 162 | ||
167 | /* implement the pci_ DMA API in terms of the generic device dma_ one */ | 163 | /* implement the pci_ DMA API in terms of the generic device dma_ one */ |
diff --git a/include/asm-mips/pci/bridge.h b/include/asm-mips/pci/bridge.h index 0c45e7598f..b84feebf2c 100644 --- a/include/asm-mips/pci/bridge.h +++ b/include/asm-mips/pci/bridge.h | |||
@@ -360,7 +360,7 @@ typedef struct bridge_err_cmdword_s { | |||
360 | #define BRIDGE_TYPE0_CFG_FUNC_OFF 0x00000100 /* Type 0 Cfg Func Offset (1..7) */ | 360 | #define BRIDGE_TYPE0_CFG_FUNC_OFF 0x00000100 /* Type 0 Cfg Func Offset (1..7) */ |
361 | #define BRIDGE_TYPE0_CFG_DEV(s) (BRIDGE_TYPE0_CFG_DEV0+\ | 361 | #define BRIDGE_TYPE0_CFG_DEV(s) (BRIDGE_TYPE0_CFG_DEV0+\ |
362 | (s)*BRIDGE_TYPE0_CFG_SLOT_OFF) | 362 | (s)*BRIDGE_TYPE0_CFG_SLOT_OFF) |
363 | #define BRIDGE_TYPE0_CFG_DEVF(s,f) (BRIDGE_TYPE0_CFG_DEV0+\ | 363 | #define BRIDGE_TYPE0_CFG_DEVF(s, f) (BRIDGE_TYPE0_CFG_DEV0+\ |
364 | (s)*BRIDGE_TYPE0_CFG_SLOT_OFF+\ | 364 | (s)*BRIDGE_TYPE0_CFG_SLOT_OFF+\ |
365 | (f)*BRIDGE_TYPE0_CFG_FUNC_OFF) | 365 | (f)*BRIDGE_TYPE0_CFG_FUNC_OFF) |
366 | 366 | ||
diff --git a/include/asm-mips/pgalloc.h b/include/asm-mips/pgalloc.h index 9fb57c0352..81b7212220 100644 --- a/include/asm-mips/pgalloc.h +++ b/include/asm-mips/pgalloc.h | |||
@@ -95,7 +95,7 @@ static inline void pte_free(struct page *pte) | |||
95 | __free_pages(pte, PTE_ORDER); | 95 | __free_pages(pte, PTE_ORDER); |
96 | } | 96 | } |
97 | 97 | ||
98 | #define __pte_free_tlb(tlb,pte) tlb_remove_page((tlb),(pte)) | 98 | #define __pte_free_tlb(tlb, pte) tlb_remove_page((tlb), (pte)) |
99 | 99 | ||
100 | #ifdef CONFIG_32BIT | 100 | #ifdef CONFIG_32BIT |
101 | 101 | ||
@@ -104,7 +104,7 @@ static inline void pte_free(struct page *pte) | |||
104 | * inside the pgd, so has no extra memory associated with it. | 104 | * inside the pgd, so has no extra memory associated with it. |
105 | */ | 105 | */ |
106 | #define pmd_free(x) do { } while (0) | 106 | #define pmd_free(x) do { } while (0) |
107 | #define __pmd_free_tlb(tlb,x) do { } while (0) | 107 | #define __pmd_free_tlb(tlb, x) do { } while (0) |
108 | 108 | ||
109 | #endif | 109 | #endif |
110 | 110 | ||
@@ -125,7 +125,7 @@ static inline void pmd_free(pmd_t *pmd) | |||
125 | free_pages((unsigned long)pmd, PMD_ORDER); | 125 | free_pages((unsigned long)pmd, PMD_ORDER); |
126 | } | 126 | } |
127 | 127 | ||
128 | #define __pmd_free_tlb(tlb,x) pmd_free(x) | 128 | #define __pmd_free_tlb(tlb, x) pmd_free(x) |
129 | 129 | ||
130 | #endif | 130 | #endif |
131 | 131 | ||
diff --git a/include/asm-mips/pgtable-32.h b/include/asm-mips/pgtable-32.h index 59c865deb0..a0947092d0 100644 --- a/include/asm-mips/pgtable-32.h +++ b/include/asm-mips/pgtable-32.h | |||
@@ -140,7 +140,7 @@ pfn_pte(unsigned long pfn, pgprot_t prot) | |||
140 | #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1)) | 140 | #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1)) |
141 | 141 | ||
142 | /* to find an entry in a page-table-directory */ | 142 | /* to find an entry in a page-table-directory */ |
143 | #define pgd_offset(mm,addr) ((mm)->pgd + pgd_index(addr)) | 143 | #define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr)) |
144 | 144 | ||
145 | /* Find an entry in the third-level page table.. */ | 145 | /* Find an entry in the third-level page table.. */ |
146 | #define __pte_offset(address) \ | 146 | #define __pte_offset(address) \ |
diff --git a/include/asm-mips/pgtable-64.h b/include/asm-mips/pgtable-64.h index 49f5a1a2df..943515f0ef 100644 --- a/include/asm-mips/pgtable-64.h +++ b/include/asm-mips/pgtable-64.h | |||
@@ -104,7 +104,7 @@ | |||
104 | #define VMALLOC_START MAP_BASE | 104 | #define VMALLOC_START MAP_BASE |
105 | #define VMALLOC_END \ | 105 | #define VMALLOC_END \ |
106 | (VMALLOC_START + PTRS_PER_PGD * PTRS_PER_PMD * PTRS_PER_PTE * PAGE_SIZE) | 106 | (VMALLOC_START + PTRS_PER_PGD * PTRS_PER_PMD * PTRS_PER_PTE * PAGE_SIZE) |
107 | #if defined(CONFIG_MODULES) && !defined(CONFIG_BUILD_ELF64) && \ | 107 | #if defined(CONFIG_MODULES) && defined(KBUILD_64BIT_SYM32) && \ |
108 | VMALLOC_START != CKSSEG | 108 | VMALLOC_START != CKSSEG |
109 | /* Load modules into 32bit-compatible segment. */ | 109 | /* Load modules into 32bit-compatible segment. */ |
110 | #define MODULE_START CKSSEG | 110 | #define MODULE_START CKSSEG |
@@ -193,7 +193,7 @@ static inline void pud_clear(pud_t *pudp) | |||
193 | #define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1)) | 193 | #define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1)) |
194 | 194 | ||
195 | /* to find an entry in a page-table-directory */ | 195 | /* to find an entry in a page-table-directory */ |
196 | #define pgd_offset(mm,addr) ((mm)->pgd + pgd_index(addr)) | 196 | #define pgd_offset(mm, addr) ((mm)->pgd + pgd_index(addr)) |
197 | 197 | ||
198 | static inline unsigned long pud_page_vaddr(pud_t pud) | 198 | static inline unsigned long pud_page_vaddr(pud_t pud) |
199 | { | 199 | { |
@@ -237,7 +237,7 @@ static inline pte_t mk_swap_pte(unsigned long type, unsigned long offset) | |||
237 | 237 | ||
238 | #define __swp_type(x) (((x).val >> 32) & 0xff) | 238 | #define __swp_type(x) (((x).val >> 32) & 0xff) |
239 | #define __swp_offset(x) ((x).val >> 40) | 239 | #define __swp_offset(x) ((x).val >> 40) |
240 | #define __swp_entry(type,offset) ((swp_entry_t) { pte_val(mk_swap_pte((type),(offset))) }) | 240 | #define __swp_entry(type, offset) ((swp_entry_t) { pte_val(mk_swap_pte((type), (offset))) }) |
241 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) | 241 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) |
242 | #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) | 242 | #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) |
243 | 243 | ||
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index d2ee281567..17a7703a29 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h | |||
@@ -103,7 +103,7 @@ static inline void set_pte(pte_t *ptep, pte_t pte) | |||
103 | } | 103 | } |
104 | } | 104 | } |
105 | } | 105 | } |
106 | #define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval) | 106 | #define set_pte_at(mm, addr, ptep, pteval) set_pte(ptep, pteval) |
107 | 107 | ||
108 | static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) | 108 | static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) |
109 | { | 109 | { |
@@ -140,7 +140,7 @@ static inline void set_pte(pte_t *ptep, pte_t pteval) | |||
140 | } | 140 | } |
141 | #endif | 141 | #endif |
142 | } | 142 | } |
143 | #define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval) | 143 | #define set_pte_at(mm, addr, ptep, pteval) set_pte(ptep, pteval) |
144 | 144 | ||
145 | static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) | 145 | static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) |
146 | { | 146 | { |
diff --git a/include/asm-mips/prctl.h b/include/asm-mips/prctl.h index 4aaaff6703..8121a9a75b 100644 --- a/include/asm-mips/prctl.h +++ b/include/asm-mips/prctl.h | |||
@@ -36,6 +36,6 @@ struct prda { | |||
36 | 36 | ||
37 | #define t_sys prda_sys | 37 | #define t_sys prda_sys |
38 | 38 | ||
39 | ptrdiff_t prctl (int op, int v1, int v2); | 39 | ptrdiff_t prctl(int op, int v1, int v2); |
40 | 40 | ||
41 | #endif | 41 | #endif |
diff --git a/include/asm-mips/qemu.h b/include/asm-mips/qemu.h index 531caf4456..487ced4a40 100644 --- a/include/asm-mips/qemu.h +++ b/include/asm-mips/qemu.h | |||
@@ -12,7 +12,7 @@ | |||
12 | * Interrupt numbers | 12 | * Interrupt numbers |
13 | */ | 13 | */ |
14 | #define Q_PIC_IRQ_BASE 0 | 14 | #define Q_PIC_IRQ_BASE 0 |
15 | #define Q_COUNT_COMPARE_IRQ 16 | 15 | #define Q_COUNT_COMPARE_IRQ 23 |
16 | 16 | ||
17 | /* | 17 | /* |
18 | * Qemu clock rate. Unlike on real MIPS this has no relation to the | 18 | * Qemu clock rate. Unlike on real MIPS this has no relation to the |
diff --git a/include/asm-mips/r4kcache.h b/include/asm-mips/r4kcache.h index 3c8e3c8d1a..2b8466ffd3 100644 --- a/include/asm-mips/r4kcache.h +++ b/include/asm-mips/r4kcache.h | |||
@@ -354,7 +354,7 @@ static inline void blast_##pfx##cache##lsize(void) \ | |||
354 | \ | 354 | \ |
355 | for (ws = 0; ws < ws_end; ws += ws_inc) \ | 355 | for (ws = 0; ws < ws_end; ws += ws_inc) \ |
356 | for (addr = start; addr < end; addr += lsize * 32) \ | 356 | for (addr = start; addr < end; addr += lsize * 32) \ |
357 | cache##lsize##_unroll32(addr|ws,indexop); \ | 357 | cache##lsize##_unroll32(addr|ws, indexop); \ |
358 | \ | 358 | \ |
359 | __##pfx##flush_epilogue \ | 359 | __##pfx##flush_epilogue \ |
360 | } \ | 360 | } \ |
@@ -367,7 +367,7 @@ static inline void blast_##pfx##cache##lsize##_page(unsigned long page) \ | |||
367 | __##pfx##flush_prologue \ | 367 | __##pfx##flush_prologue \ |
368 | \ | 368 | \ |
369 | do { \ | 369 | do { \ |
370 | cache##lsize##_unroll32(start,hitop); \ | 370 | cache##lsize##_unroll32(start, hitop); \ |
371 | start += lsize * 32; \ | 371 | start += lsize * 32; \ |
372 | } while (start < end); \ | 372 | } while (start < end); \ |
373 | \ | 373 | \ |
@@ -388,7 +388,7 @@ static inline void blast_##pfx##cache##lsize##_page_indexed(unsigned long page) | |||
388 | \ | 388 | \ |
389 | for (ws = 0; ws < ws_end; ws += ws_inc) \ | 389 | for (ws = 0; ws < ws_end; ws += ws_inc) \ |
390 | for (addr = start; addr < end; addr += lsize * 32) \ | 390 | for (addr = start; addr < end; addr += lsize * 32) \ |
391 | cache##lsize##_unroll32(addr|ws,indexop); \ | 391 | cache##lsize##_unroll32(addr|ws, indexop); \ |
392 | \ | 392 | \ |
393 | __##pfx##flush_epilogue \ | 393 | __##pfx##flush_epilogue \ |
394 | } | 394 | } |
diff --git a/include/asm-mips/semaphore.h b/include/asm-mips/semaphore.h index 3d6aa7c7ea..080daa77f8 100644 --- a/include/asm-mips/semaphore.h +++ b/include/asm-mips/semaphore.h | |||
@@ -46,23 +46,23 @@ struct semaphore { | |||
46 | } | 46 | } |
47 | 47 | ||
48 | #define __DECLARE_SEMAPHORE_GENERIC(name, count) \ | 48 | #define __DECLARE_SEMAPHORE_GENERIC(name, count) \ |
49 | struct semaphore name = __SEMAPHORE_INITIALIZER(name,count) | 49 | struct semaphore name = __SEMAPHORE_INITIALIZER(name, count) |
50 | 50 | ||
51 | #define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1) | 51 | #define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1) |
52 | #define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0) | 52 | #define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0) |
53 | 53 | ||
54 | static inline void sema_init (struct semaphore *sem, int val) | 54 | static inline void sema_init(struct semaphore *sem, int val) |
55 | { | 55 | { |
56 | atomic_set(&sem->count, val); | 56 | atomic_set(&sem->count, val); |
57 | init_waitqueue_head(&sem->wait); | 57 | init_waitqueue_head(&sem->wait); |
58 | } | 58 | } |
59 | 59 | ||
60 | static inline void init_MUTEX (struct semaphore *sem) | 60 | static inline void init_MUTEX(struct semaphore *sem) |
61 | { | 61 | { |
62 | sema_init(sem, 1); | 62 | sema_init(sem, 1); |
63 | } | 63 | } |
64 | 64 | ||
65 | static inline void init_MUTEX_LOCKED (struct semaphore *sem) | 65 | static inline void init_MUTEX_LOCKED(struct semaphore *sem) |
66 | { | 66 | { |
67 | sema_init(sem, 0); | 67 | sema_init(sem, 0); |
68 | } | 68 | } |
diff --git a/include/asm-mips/sgiarcs.h b/include/asm-mips/sgiarcs.h index 439bce7daa..721327f886 100644 --- a/include/asm-mips/sgiarcs.h +++ b/include/asm-mips/sgiarcs.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #define _ASM_SGIARCS_H | 13 | #define _ASM_SGIARCS_H |
14 | 14 | ||
15 | #include <asm/types.h> | 15 | #include <asm/types.h> |
16 | #include <asm/arc/types.h> | 16 | #include <asm/fw/arc/types.h> |
17 | 17 | ||
18 | /* Various ARCS error codes. */ | 18 | /* Various ARCS error codes. */ |
19 | #define PROM_ESUCCESS 0x00 | 19 | #define PROM_ESUCCESS 0x00 |
@@ -369,8 +369,8 @@ struct linux_smonblock { | |||
369 | #if defined(CONFIG_64BIT) && defined(CONFIG_ARC32) | 369 | #if defined(CONFIG_64BIT) && defined(CONFIG_ARC32) |
370 | 370 | ||
371 | #define __arc_clobbers \ | 371 | #define __arc_clobbers \ |
372 | "$2","$3" /* ... */, "$8","$9","$10","$11", \ | 372 | "$2", "$3" /* ... */, "$8", "$9", "$10", "$11", \ |
373 | "$12","$13","$14","$15","$16","$24","$25","$31" | 373 | "$12", "$13", "$14", "$15", "$16", "$24", "$25", "$31" |
374 | 374 | ||
375 | #define ARC_CALL0(dest) \ | 375 | #define ARC_CALL0(dest) \ |
376 | ({ long __res; \ | 376 | ({ long __res; \ |
@@ -382,11 +382,11 @@ struct linux_smonblock { | |||
382 | "move\t%0, $2" \ | 382 | "move\t%0, $2" \ |
383 | : "=r" (__res), "=r" (__vec) \ | 383 | : "=r" (__res), "=r" (__vec) \ |
384 | : "1" (__vec) \ | 384 | : "1" (__vec) \ |
385 | : __arc_clobbers, "$4","$5","$6","$7"); \ | 385 | : __arc_clobbers, "$4", "$5", "$6", "$7"); \ |
386 | (unsigned long) __res; \ | 386 | (unsigned long) __res; \ |
387 | }) | 387 | }) |
388 | 388 | ||
389 | #define ARC_CALL1(dest,a1) \ | 389 | #define ARC_CALL1(dest, a1) \ |
390 | ({ long __res; \ | 390 | ({ long __res; \ |
391 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ | 391 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ |
392 | long __vec = (long) romvec->dest; \ | 392 | long __vec = (long) romvec->dest; \ |
@@ -397,11 +397,11 @@ struct linux_smonblock { | |||
397 | "move\t%0, $2" \ | 397 | "move\t%0, $2" \ |
398 | : "=r" (__res), "=r" (__vec) \ | 398 | : "=r" (__res), "=r" (__vec) \ |
399 | : "1" (__vec), "r" (__a1) \ | 399 | : "1" (__vec), "r" (__a1) \ |
400 | : __arc_clobbers, "$5","$6","$7"); \ | 400 | : __arc_clobbers, "$5", "$6", "$7"); \ |
401 | (unsigned long) __res; \ | 401 | (unsigned long) __res; \ |
402 | }) | 402 | }) |
403 | 403 | ||
404 | #define ARC_CALL2(dest,a1,a2) \ | 404 | #define ARC_CALL2(dest, a1, a2) \ |
405 | ({ long __res; \ | 405 | ({ long __res; \ |
406 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ | 406 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ |
407 | register signed int __a2 __asm__("$5") = (int) (long) (a2); \ | 407 | register signed int __a2 __asm__("$5") = (int) (long) (a2); \ |
@@ -413,11 +413,11 @@ struct linux_smonblock { | |||
413 | "move\t%0, $2" \ | 413 | "move\t%0, $2" \ |
414 | : "=r" (__res), "=r" (__vec) \ | 414 | : "=r" (__res), "=r" (__vec) \ |
415 | : "1" (__vec), "r" (__a1), "r" (__a2) \ | 415 | : "1" (__vec), "r" (__a1), "r" (__a2) \ |
416 | : __arc_clobbers, "$6","$7"); \ | 416 | : __arc_clobbers, "$6", "$7"); \ |
417 | __res; \ | 417 | __res; \ |
418 | }) | 418 | }) |
419 | 419 | ||
420 | #define ARC_CALL3(dest,a1,a2,a3) \ | 420 | #define ARC_CALL3(dest, a1, a2, a3) \ |
421 | ({ long __res; \ | 421 | ({ long __res; \ |
422 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ | 422 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ |
423 | register signed int __a2 __asm__("$5") = (int) (long) (a2); \ | 423 | register signed int __a2 __asm__("$5") = (int) (long) (a2); \ |
@@ -434,7 +434,7 @@ struct linux_smonblock { | |||
434 | __res; \ | 434 | __res; \ |
435 | }) | 435 | }) |
436 | 436 | ||
437 | #define ARC_CALL4(dest,a1,a2,a3,a4) \ | 437 | #define ARC_CALL4(dest, a1, a2, a3, a4) \ |
438 | ({ long __res; \ | 438 | ({ long __res; \ |
439 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ | 439 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ |
440 | register signed int __a2 __asm__("$5") = (int) (long) (a2); \ | 440 | register signed int __a2 __asm__("$5") = (int) (long) (a2); \ |
@@ -453,7 +453,7 @@ struct linux_smonblock { | |||
453 | __res; \ | 453 | __res; \ |
454 | }) | 454 | }) |
455 | 455 | ||
456 | #define ARC_CALL5(dest,a1,a2,a3,a4,a5) \ | 456 | #define ARC_CALL5(dest, a1, a2, a3, a4, a5) \ |
457 | ({ long __res; \ | 457 | ({ long __res; \ |
458 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ | 458 | register signed int __a1 __asm__("$4") = (int) (long) (a1); \ |
459 | register signed int __a2 __asm__("$5") = (int) (long) (a2); \ | 459 | register signed int __a2 __asm__("$5") = (int) (long) (a2); \ |
@@ -468,8 +468,8 @@ struct linux_smonblock { | |||
468 | "daddu\t$29, 32\n\t" \ | 468 | "daddu\t$29, 32\n\t" \ |
469 | "move\t%0, $2" \ | 469 | "move\t%0, $2" \ |
470 | : "=r" (__res), "=r" (__vec) \ | 470 | : "=r" (__res), "=r" (__vec) \ |
471 | : "1" (__vec), \ | 471 | : "1" (__vec), \ |
472 | "r" (__a1), "r" (__a2), "r" (__a3), "r" (__a4), \ | 472 | "r" (__a1), "r" (__a2), "r" (__a3), "r" (__a4), \ |
473 | "r" (__a5) \ | 473 | "r" (__a5) \ |
474 | : __arc_clobbers); \ | 474 | : __arc_clobbers); \ |
475 | __res; \ | 475 | __res; \ |
@@ -488,7 +488,7 @@ struct linux_smonblock { | |||
488 | __res; \ | 488 | __res; \ |
489 | }) | 489 | }) |
490 | 490 | ||
491 | #define ARC_CALL1(dest,a1) \ | 491 | #define ARC_CALL1(dest, a1) \ |
492 | ({ long __res; \ | 492 | ({ long __res; \ |
493 | long __a1 = (long) (a1); \ | 493 | long __a1 = (long) (a1); \ |
494 | long (*__vec)(long) = (void *) romvec->dest; \ | 494 | long (*__vec)(long) = (void *) romvec->dest; \ |
@@ -497,7 +497,7 @@ struct linux_smonblock { | |||
497 | __res; \ | 497 | __res; \ |
498 | }) | 498 | }) |
499 | 499 | ||
500 | #define ARC_CALL2(dest,a1,a2) \ | 500 | #define ARC_CALL2(dest, a1, a2) \ |
501 | ({ long __res; \ | 501 | ({ long __res; \ |
502 | long __a1 = (long) (a1); \ | 502 | long __a1 = (long) (a1); \ |
503 | long __a2 = (long) (a2); \ | 503 | long __a2 = (long) (a2); \ |
@@ -507,7 +507,7 @@ struct linux_smonblock { | |||
507 | __res; \ | 507 | __res; \ |
508 | }) | 508 | }) |
509 | 509 | ||
510 | #define ARC_CALL3(dest,a1,a2,a3) \ | 510 | #define ARC_CALL3(dest, a1, a2, a3) \ |
511 | ({ long __res; \ | 511 | ({ long __res; \ |
512 | long __a1 = (long) (a1); \ | 512 | long __a1 = (long) (a1); \ |
513 | long __a2 = (long) (a2); \ | 513 | long __a2 = (long) (a2); \ |
@@ -518,7 +518,7 @@ struct linux_smonblock { | |||
518 | __res; \ | 518 | __res; \ |
519 | }) | 519 | }) |
520 | 520 | ||
521 | #define ARC_CALL4(dest,a1,a2,a3,a4) \ | 521 | #define ARC_CALL4(dest, a1, a2, a3, a4) \ |
522 | ({ long __res; \ | 522 | ({ long __res; \ |
523 | long __a1 = (long) (a1); \ | 523 | long __a1 = (long) (a1); \ |
524 | long __a2 = (long) (a2); \ | 524 | long __a2 = (long) (a2); \ |
@@ -530,7 +530,7 @@ struct linux_smonblock { | |||
530 | __res; \ | 530 | __res; \ |
531 | }) | 531 | }) |
532 | 532 | ||
533 | #define ARC_CALL5(dest,a1,a2,a3,a4,a5) \ | 533 | #define ARC_CALL5(dest, a1, a2, a3, a4, a5) \ |
534 | ({ long __res; \ | 534 | ({ long __res; \ |
535 | long __a1 = (long) (a1); \ | 535 | long __a1 = (long) (a1); \ |
536 | long __a2 = (long) (a2); \ | 536 | long __a2 = (long) (a2); \ |
diff --git a/include/asm-mips/sibyte/bcm1480_int.h b/include/asm-mips/sibyte/bcm1480_int.h index c0d5206020..6109557c14 100644 --- a/include/asm-mips/sibyte/bcm1480_int.h +++ b/include/asm-mips/sibyte/bcm1480_int.h | |||
@@ -157,7 +157,7 @@ | |||
157 | * Mask values for each interrupt | 157 | * Mask values for each interrupt |
158 | */ | 158 | */ |
159 | 159 | ||
160 | #define _BCM1480_INT_MASK(w,n) _SB_MAKEMASK(w,((n) & 0x3F)) | 160 | #define _BCM1480_INT_MASK(w, n) _SB_MAKEMASK(w, ((n) & 0x3F)) |
161 | #define _BCM1480_INT_MASK1(n) _SB_MAKEMASK1(((n) & 0x3F)) | 161 | #define _BCM1480_INT_MASK1(n) _SB_MAKEMASK1(((n) & 0x3F)) |
162 | #define _BCM1480_INT_OFFSET(n) (((n) & 0x40) << 6) | 162 | #define _BCM1480_INT_OFFSET(n) (((n) & 0x40) << 6) |
163 | 163 | ||
@@ -196,7 +196,7 @@ | |||
196 | #define M_BCM1480_INT_PMI_HIGH _BCM1480_INT_MASK1(K_BCM1480_INT_PMI_HIGH) | 196 | #define M_BCM1480_INT_PMI_HIGH _BCM1480_INT_MASK1(K_BCM1480_INT_PMI_HIGH) |
197 | #define M_BCM1480_INT_PMO_LOW _BCM1480_INT_MASK1(K_BCM1480_INT_PMO_LOW) | 197 | #define M_BCM1480_INT_PMO_LOW _BCM1480_INT_MASK1(K_BCM1480_INT_PMO_LOW) |
198 | #define M_BCM1480_INT_PMO_HIGH _BCM1480_INT_MASK1(K_BCM1480_INT_PMO_HIGH) | 198 | #define M_BCM1480_INT_PMO_HIGH _BCM1480_INT_MASK1(K_BCM1480_INT_PMO_HIGH) |
199 | #define M_BCM1480_INT_MBOX_ALL _BCM1480_INT_MASK(8,K_BCM1480_INT_MBOX_0_0) | 199 | #define M_BCM1480_INT_MBOX_ALL _BCM1480_INT_MASK(8, K_BCM1480_INT_MBOX_0_0) |
200 | #define M_BCM1480_INT_MBOX_0_0 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_0) | 200 | #define M_BCM1480_INT_MBOX_0_0 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_0) |
201 | #define M_BCM1480_INT_MBOX_0_1 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_1) | 201 | #define M_BCM1480_INT_MBOX_0_1 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_1) |
202 | #define M_BCM1480_INT_MBOX_0_2 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_2) | 202 | #define M_BCM1480_INT_MBOX_0_2 _BCM1480_INT_MASK1(K_BCM1480_INT_MBOX_0_2) |
@@ -269,9 +269,9 @@ | |||
269 | */ | 269 | */ |
270 | 270 | ||
271 | #define S_BCM1480_INT_HT_INTMSG 0 | 271 | #define S_BCM1480_INT_HT_INTMSG 0 |
272 | #define M_BCM1480_INT_HT_INTMSG _SB_MAKEMASK(3,S_BCM1480_INT_HT_INTMSG) | 272 | #define M_BCM1480_INT_HT_INTMSG _SB_MAKEMASK(3, S_BCM1480_INT_HT_INTMSG) |
273 | #define V_BCM1480_INT_HT_INTMSG(x) _SB_MAKEVALUE(x,S_BCM1480_INT_HT_INTMSG) | 273 | #define V_BCM1480_INT_HT_INTMSG(x) _SB_MAKEVALUE(x, S_BCM1480_INT_HT_INTMSG) |
274 | #define G_BCM1480_INT_HT_INTMSG(x) _SB_GETVALUE(x,S_BCM1480_INT_HT_INTMSG,M_BCM1480_INT_HT_INTMSG) | 274 | #define G_BCM1480_INT_HT_INTMSG(x) _SB_GETVALUE(x, S_BCM1480_INT_HT_INTMSG, M_BCM1480_INT_HT_INTMSG) |
275 | 275 | ||
276 | #define K_BCM1480_INT_HT_INTMSG_FIXED 0 | 276 | #define K_BCM1480_INT_HT_INTMSG_FIXED 0 |
277 | #define K_BCM1480_INT_HT_INTMSG_ARBITRATED 1 | 277 | #define K_BCM1480_INT_HT_INTMSG_ARBITRATED 1 |
@@ -291,14 +291,14 @@ | |||
291 | #define V_BCM1480_INT_HT_LOGICALDEST M_BCM1480_INT_HT_DESTMODE | 291 | #define V_BCM1480_INT_HT_LOGICALDEST M_BCM1480_INT_HT_DESTMODE |
292 | 292 | ||
293 | #define S_BCM1480_INT_HT_INTDEST 5 | 293 | #define S_BCM1480_INT_HT_INTDEST 5 |
294 | #define M_BCM1480_INT_HT_INTDEST _SB_MAKEMASK(8,S_BCM1480_INT_HT_INTDEST) | 294 | #define M_BCM1480_INT_HT_INTDEST _SB_MAKEMASK(8, S_BCM1480_INT_HT_INTDEST) |
295 | #define V_BCM1480_INT_HT_INTDEST(x) _SB_MAKEVALUE(x,S_BCM1480_INT_HT_INTDEST) | 295 | #define V_BCM1480_INT_HT_INTDEST(x) _SB_MAKEVALUE(x, S_BCM1480_INT_HT_INTDEST) |
296 | #define G_BCM1480_INT_HT_INTDEST(x) _SB_GETVALUE(x,S_BCM1480_INT_HT_INTDEST,M_BCM1480_INT_HT_INTDEST) | 296 | #define G_BCM1480_INT_HT_INTDEST(x) _SB_GETVALUE(x, S_BCM1480_INT_HT_INTDEST, M_BCM1480_INT_HT_INTDEST) |
297 | 297 | ||
298 | #define S_BCM1480_INT_HT_VECTOR 13 | 298 | #define S_BCM1480_INT_HT_VECTOR 13 |
299 | #define M_BCM1480_INT_HT_VECTOR _SB_MAKEMASK(8,S_BCM1480_INT_HT_VECTOR) | 299 | #define M_BCM1480_INT_HT_VECTOR _SB_MAKEMASK(8, S_BCM1480_INT_HT_VECTOR) |
300 | #define V_BCM1480_INT_HT_VECTOR(x) _SB_MAKEVALUE(x,S_BCM1480_INT_HT_VECTOR) | 300 | #define V_BCM1480_INT_HT_VECTOR(x) _SB_MAKEVALUE(x, S_BCM1480_INT_HT_VECTOR) |
301 | #define G_BCM1480_INT_HT_VECTOR(x) _SB_GETVALUE(x,S_BCM1480_INT_HT_VECTOR,M_BCM1480_INT_HT_VECTOR) | 301 | #define G_BCM1480_INT_HT_VECTOR(x) _SB_GETVALUE(x, S_BCM1480_INT_HT_VECTOR, M_BCM1480_INT_HT_VECTOR) |
302 | 302 | ||
303 | /* | 303 | /* |
304 | * Vector prefix (Table 4-7) | 304 | * Vector prefix (Table 4-7) |
diff --git a/include/asm-mips/sibyte/bcm1480_l2c.h b/include/asm-mips/sibyte/bcm1480_l2c.h index 886b099565..fd75817f7a 100644 --- a/include/asm-mips/sibyte/bcm1480_l2c.h +++ b/include/asm-mips/sibyte/bcm1480_l2c.h | |||
@@ -40,22 +40,22 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #define S_BCM1480_L2C_MGMT_INDEX 5 | 42 | #define S_BCM1480_L2C_MGMT_INDEX 5 |
43 | #define M_BCM1480_L2C_MGMT_INDEX _SB_MAKEMASK(12,S_BCM1480_L2C_MGMT_INDEX) | 43 | #define M_BCM1480_L2C_MGMT_INDEX _SB_MAKEMASK(12, S_BCM1480_L2C_MGMT_INDEX) |
44 | #define V_BCM1480_L2C_MGMT_INDEX(x) _SB_MAKEVALUE(x,S_BCM1480_L2C_MGMT_INDEX) | 44 | #define V_BCM1480_L2C_MGMT_INDEX(x) _SB_MAKEVALUE(x, S_BCM1480_L2C_MGMT_INDEX) |
45 | #define G_BCM1480_L2C_MGMT_INDEX(x) _SB_GETVALUE(x,S_BCM1480_L2C_MGMT_INDEX,M_BCM1480_L2C_MGMT_INDEX) | 45 | #define G_BCM1480_L2C_MGMT_INDEX(x) _SB_GETVALUE(x, S_BCM1480_L2C_MGMT_INDEX, M_BCM1480_L2C_MGMT_INDEX) |
46 | 46 | ||
47 | #define S_BCM1480_L2C_MGMT_WAY 17 | 47 | #define S_BCM1480_L2C_MGMT_WAY 17 |
48 | #define M_BCM1480_L2C_MGMT_WAY _SB_MAKEMASK(3,S_BCM1480_L2C_MGMT_WAY) | 48 | #define M_BCM1480_L2C_MGMT_WAY _SB_MAKEMASK(3, S_BCM1480_L2C_MGMT_WAY) |
49 | #define V_BCM1480_L2C_MGMT_WAY(x) _SB_MAKEVALUE(x,S_BCM1480_L2C_MGMT_WAY) | 49 | #define V_BCM1480_L2C_MGMT_WAY(x) _SB_MAKEVALUE(x, S_BCM1480_L2C_MGMT_WAY) |
50 | #define G_BCM1480_L2C_MGMT_WAY(x) _SB_GETVALUE(x,S_BCM1480_L2C_MGMT_WAY,M_BCM1480_L2C_MGMT_WAY) | 50 | #define G_BCM1480_L2C_MGMT_WAY(x) _SB_GETVALUE(x, S_BCM1480_L2C_MGMT_WAY, M_BCM1480_L2C_MGMT_WAY) |
51 | 51 | ||
52 | #define M_BCM1480_L2C_MGMT_DIRTY _SB_MAKEMASK1(20) | 52 | #define M_BCM1480_L2C_MGMT_DIRTY _SB_MAKEMASK1(20) |
53 | #define M_BCM1480_L2C_MGMT_VALID _SB_MAKEMASK1(21) | 53 | #define M_BCM1480_L2C_MGMT_VALID _SB_MAKEMASK1(21) |
54 | 54 | ||
55 | #define S_BCM1480_L2C_MGMT_ECC_DIAG 22 | 55 | #define S_BCM1480_L2C_MGMT_ECC_DIAG 22 |
56 | #define M_BCM1480_L2C_MGMT_ECC_DIAG _SB_MAKEMASK(2,S_BCM1480_L2C_MGMT_ECC_DIAG) | 56 | #define M_BCM1480_L2C_MGMT_ECC_DIAG _SB_MAKEMASK(2, S_BCM1480_L2C_MGMT_ECC_DIAG) |
57 | #define V_BCM1480_L2C_MGMT_ECC_DIAG(x) _SB_MAKEVALUE(x,S_BCM1480_L2C_MGMT_ECC_DIAG) | 57 | #define V_BCM1480_L2C_MGMT_ECC_DIAG(x) _SB_MAKEVALUE(x, S_BCM1480_L2C_MGMT_ECC_DIAG) |
58 | #define G_BCM1480_L2C_MGMT_ECC_DIAG(x) _SB_GETVALUE(x,S_BCM1480_L2C_MGMT_ECC_DIAG,M_BCM1480_L2C_MGMT_ECC_DIAG) | 58 | #define G_BCM1480_L2C_MGMT_ECC_DIAG(x) _SB_GETVALUE(x, S_BCM1480_L2C_MGMT_ECC_DIAG, M_BCM1480_L2C_MGMT_ECC_DIAG) |
59 | 59 | ||
60 | #define A_BCM1480_L2C_MGMT_TAG_BASE 0x00D0000000 | 60 | #define A_BCM1480_L2C_MGMT_TAG_BASE 0x00D0000000 |
61 | 61 | ||
@@ -68,36 +68,36 @@ | |||
68 | */ | 68 | */ |
69 | 69 | ||
70 | #define S_BCM1480_L2C_TAG_MBZ 0 | 70 | #define S_BCM1480_L2C_TAG_MBZ 0 |
71 | #define M_BCM1480_L2C_TAG_MBZ _SB_MAKEMASK(5,S_BCM1480_L2C_TAG_MBZ) | 71 | #define M_BCM1480_L2C_TAG_MBZ _SB_MAKEMASK(5, S_BCM1480_L2C_TAG_MBZ) |
72 | 72 | ||
73 | #define S_BCM1480_L2C_TAG_INDEX 5 | 73 | #define S_BCM1480_L2C_TAG_INDEX 5 |
74 | #define M_BCM1480_L2C_TAG_INDEX _SB_MAKEMASK(12,S_BCM1480_L2C_TAG_INDEX) | 74 | #define M_BCM1480_L2C_TAG_INDEX _SB_MAKEMASK(12, S_BCM1480_L2C_TAG_INDEX) |
75 | #define V_BCM1480_L2C_TAG_INDEX(x) _SB_MAKEVALUE(x,S_BCM1480_L2C_TAG_INDEX) | 75 | #define V_BCM1480_L2C_TAG_INDEX(x) _SB_MAKEVALUE(x, S_BCM1480_L2C_TAG_INDEX) |
76 | #define G_BCM1480_L2C_TAG_INDEX(x) _SB_GETVALUE(x,S_BCM1480_L2C_TAG_INDEX,M_BCM1480_L2C_TAG_INDEX) | 76 | #define G_BCM1480_L2C_TAG_INDEX(x) _SB_GETVALUE(x, S_BCM1480_L2C_TAG_INDEX, M_BCM1480_L2C_TAG_INDEX) |
77 | 77 | ||
78 | /* Note that index bit 16 is also tag bit 40 */ | 78 | /* Note that index bit 16 is also tag bit 40 */ |
79 | #define S_BCM1480_L2C_TAG_TAG 17 | 79 | #define S_BCM1480_L2C_TAG_TAG 17 |
80 | #define M_BCM1480_L2C_TAG_TAG _SB_MAKEMASK(23,S_BCM1480_L2C_TAG_TAG) | 80 | #define M_BCM1480_L2C_TAG_TAG _SB_MAKEMASK(23, S_BCM1480_L2C_TAG_TAG) |
81 | #define V_BCM1480_L2C_TAG_TAG(x) _SB_MAKEVALUE(x,S_BCM1480_L2C_TAG_TAG) | 81 | #define V_BCM1480_L2C_TAG_TAG(x) _SB_MAKEVALUE(x, S_BCM1480_L2C_TAG_TAG) |
82 | #define G_BCM1480_L2C_TAG_TAG(x) _SB_GETVALUE(x,S_BCM1480_L2C_TAG_TAG,M_BCM1480_L2C_TAG_TAG) | 82 | #define G_BCM1480_L2C_TAG_TAG(x) _SB_GETVALUE(x, S_BCM1480_L2C_TAG_TAG, M_BCM1480_L2C_TAG_TAG) |
83 | 83 | ||
84 | #define S_BCM1480_L2C_TAG_ECC 40 | 84 | #define S_BCM1480_L2C_TAG_ECC 40 |
85 | #define M_BCM1480_L2C_TAG_ECC _SB_MAKEMASK(6,S_BCM1480_L2C_TAG_ECC) | 85 | #define M_BCM1480_L2C_TAG_ECC _SB_MAKEMASK(6, S_BCM1480_L2C_TAG_ECC) |
86 | #define V_BCM1480_L2C_TAG_ECC(x) _SB_MAKEVALUE(x,S_BCM1480_L2C_TAG_ECC) | 86 | #define V_BCM1480_L2C_TAG_ECC(x) _SB_MAKEVALUE(x, S_BCM1480_L2C_TAG_ECC) |
87 | #define G_BCM1480_L2C_TAG_ECC(x) _SB_GETVALUE(x,S_BCM1480_L2C_TAG_ECC,M_BCM1480_L2C_TAG_ECC) | 87 | #define G_BCM1480_L2C_TAG_ECC(x) _SB_GETVALUE(x, S_BCM1480_L2C_TAG_ECC, M_BCM1480_L2C_TAG_ECC) |
88 | 88 | ||
89 | #define S_BCM1480_L2C_TAG_WAY 46 | 89 | #define S_BCM1480_L2C_TAG_WAY 46 |
90 | #define M_BCM1480_L2C_TAG_WAY _SB_MAKEMASK(3,S_BCM1480_L2C_TAG_WAY) | 90 | #define M_BCM1480_L2C_TAG_WAY _SB_MAKEMASK(3, S_BCM1480_L2C_TAG_WAY) |
91 | #define V_BCM1480_L2C_TAG_WAY(x) _SB_MAKEVALUE(x,S_BCM1480_L2C_TAG_WAY) | 91 | #define V_BCM1480_L2C_TAG_WAY(x) _SB_MAKEVALUE(x, S_BCM1480_L2C_TAG_WAY) |
92 | #define G_BCM1480_L2C_TAG_WAY(x) _SB_GETVALUE(x,S_BCM1480_L2C_TAG_WAY,M_BCM1480_L2C_TAG_WAY) | 92 | #define G_BCM1480_L2C_TAG_WAY(x) _SB_GETVALUE(x, S_BCM1480_L2C_TAG_WAY, M_BCM1480_L2C_TAG_WAY) |
93 | 93 | ||
94 | #define M_BCM1480_L2C_TAG_DIRTY _SB_MAKEMASK1(49) | 94 | #define M_BCM1480_L2C_TAG_DIRTY _SB_MAKEMASK1(49) |
95 | #define M_BCM1480_L2C_TAG_VALID _SB_MAKEMASK1(50) | 95 | #define M_BCM1480_L2C_TAG_VALID _SB_MAKEMASK1(50) |
96 | 96 | ||
97 | #define S_BCM1480_L2C_DATA_ECC 51 | 97 | #define S_BCM1480_L2C_DATA_ECC 51 |
98 | #define M_BCM1480_L2C_DATA_ECC _SB_MAKEMASK(10,S_BCM1480_L2C_DATA_ECC) | 98 | #define M_BCM1480_L2C_DATA_ECC _SB_MAKEMASK(10, S_BCM1480_L2C_DATA_ECC) |
99 | #define V_BCM1480_L2C_DATA_ECC(x) _SB_MAKEVALUE(x,S_BCM1480_L2C_DATA_ECC) | 99 | #define V_BCM1480_L2C_DATA_ECC(x) _SB_MAKEVALUE(x, S_BCM1480_L2C_DATA_ECC) |
100 | #define G_BCM1480_L2C_DATA_ECC(x) _SB_GETVALUE(x,S_BCM1480_L2C_DATA_ECC,M_BCM1480_L2C_DATA_ECC) | 100 | #define G_BCM1480_L2C_DATA_ECC(x) _SB_GETVALUE(x, S_BCM1480_L2C_DATA_ECC, M_BCM1480_L2C_DATA_ECC) |
101 | 101 | ||
102 | 102 | ||
103 | /* | 103 | /* |
@@ -105,24 +105,24 @@ | |||
105 | */ | 105 | */ |
106 | 106 | ||
107 | #define S_BCM1480_L2C_MISC0_WAY_REMOTE 0 | 107 | #define S_BCM1480_L2C_MISC0_WAY_REMOTE 0 |
108 | #define M_BCM1480_L2C_MISC0_WAY_REMOTE _SB_MAKEMASK(8,S_BCM1480_L2C_MISC0_WAY_REMOTE) | 108 | #define M_BCM1480_L2C_MISC0_WAY_REMOTE _SB_MAKEMASK(8, S_BCM1480_L2C_MISC0_WAY_REMOTE) |
109 | #define G_BCM1480_L2C_MISC0_WAY_REMOTE(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC0_WAY_REMOTE,M_BCM1480_L2C_MISC0_WAY_REMOTE) | 109 | #define G_BCM1480_L2C_MISC0_WAY_REMOTE(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC0_WAY_REMOTE, M_BCM1480_L2C_MISC0_WAY_REMOTE) |
110 | 110 | ||
111 | #define S_BCM1480_L2C_MISC0_WAY_LOCAL 8 | 111 | #define S_BCM1480_L2C_MISC0_WAY_LOCAL 8 |
112 | #define M_BCM1480_L2C_MISC0_WAY_LOCAL _SB_MAKEMASK(8,S_BCM1480_L2C_MISC0_WAY_LOCAL) | 112 | #define M_BCM1480_L2C_MISC0_WAY_LOCAL _SB_MAKEMASK(8, S_BCM1480_L2C_MISC0_WAY_LOCAL) |
113 | #define G_BCM1480_L2C_MISC0_WAY_LOCAL(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC0_WAY_LOCAL,M_BCM1480_L2C_MISC0_WAY_LOCAL) | 113 | #define G_BCM1480_L2C_MISC0_WAY_LOCAL(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC0_WAY_LOCAL, M_BCM1480_L2C_MISC0_WAY_LOCAL) |
114 | 114 | ||
115 | #define S_BCM1480_L2C_MISC0_WAY_ENABLE 16 | 115 | #define S_BCM1480_L2C_MISC0_WAY_ENABLE 16 |
116 | #define M_BCM1480_L2C_MISC0_WAY_ENABLE _SB_MAKEMASK(8,S_BCM1480_L2C_MISC0_WAY_ENABLE) | 116 | #define M_BCM1480_L2C_MISC0_WAY_ENABLE _SB_MAKEMASK(8, S_BCM1480_L2C_MISC0_WAY_ENABLE) |
117 | #define G_BCM1480_L2C_MISC0_WAY_ENABLE(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC0_WAY_ENABLE,M_BCM1480_L2C_MISC0_WAY_ENABLE) | 117 | #define G_BCM1480_L2C_MISC0_WAY_ENABLE(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC0_WAY_ENABLE, M_BCM1480_L2C_MISC0_WAY_ENABLE) |
118 | 118 | ||
119 | #define S_BCM1480_L2C_MISC0_CACHE_DISABLE 24 | 119 | #define S_BCM1480_L2C_MISC0_CACHE_DISABLE 24 |
120 | #define M_BCM1480_L2C_MISC0_CACHE_DISABLE _SB_MAKEMASK(2,S_BCM1480_L2C_MISC0_CACHE_DISABLE) | 120 | #define M_BCM1480_L2C_MISC0_CACHE_DISABLE _SB_MAKEMASK(2, S_BCM1480_L2C_MISC0_CACHE_DISABLE) |
121 | #define G_BCM1480_L2C_MISC0_CACHE_DISABLE(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC0_CACHE_DISABLE,M_BCM1480_L2C_MISC0_CACHE_DISABLE) | 121 | #define G_BCM1480_L2C_MISC0_CACHE_DISABLE(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC0_CACHE_DISABLE, M_BCM1480_L2C_MISC0_CACHE_DISABLE) |
122 | 122 | ||
123 | #define S_BCM1480_L2C_MISC0_CACHE_QUAD 26 | 123 | #define S_BCM1480_L2C_MISC0_CACHE_QUAD 26 |
124 | #define M_BCM1480_L2C_MISC0_CACHE_QUAD _SB_MAKEMASK(2,S_BCM1480_L2C_MISC0_CACHE_QUAD) | 124 | #define M_BCM1480_L2C_MISC0_CACHE_QUAD _SB_MAKEMASK(2, S_BCM1480_L2C_MISC0_CACHE_QUAD) |
125 | #define G_BCM1480_L2C_MISC0_CACHE_QUAD(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC0_CACHE_QUAD,M_BCM1480_L2C_MISC0_CACHE_QUAD) | 125 | #define G_BCM1480_L2C_MISC0_CACHE_QUAD(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC0_CACHE_QUAD, M_BCM1480_L2C_MISC0_CACHE_QUAD) |
126 | 126 | ||
127 | #define S_BCM1480_L2C_MISC0_MC_PRIORITY 30 | 127 | #define S_BCM1480_L2C_MISC0_MC_PRIORITY 30 |
128 | #define M_BCM1480_L2C_MISC0_MC_PRIORITY _SB_MAKEMASK1(S_BCM1480_L2C_MISC0_MC_PRIORITY) | 128 | #define M_BCM1480_L2C_MISC0_MC_PRIORITY _SB_MAKEMASK1(S_BCM1480_L2C_MISC0_MC_PRIORITY) |
@@ -136,24 +136,24 @@ | |||
136 | */ | 136 | */ |
137 | 137 | ||
138 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_0 0 | 138 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_0 0 |
139 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_0 _SB_MAKEMASK(8,S_BCM1480_L2C_MISC1_WAY_AGENT_0) | 139 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_0 _SB_MAKEMASK(8, S_BCM1480_L2C_MISC1_WAY_AGENT_0) |
140 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_0(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC1_WAY_AGENT_0,M_BCM1480_L2C_MISC1_WAY_AGENT_0) | 140 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_0(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC1_WAY_AGENT_0, M_BCM1480_L2C_MISC1_WAY_AGENT_0) |
141 | 141 | ||
142 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_1 8 | 142 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_1 8 |
143 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_1 _SB_MAKEMASK(8,S_BCM1480_L2C_MISC1_WAY_AGENT_1) | 143 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_1 _SB_MAKEMASK(8, S_BCM1480_L2C_MISC1_WAY_AGENT_1) |
144 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_1(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC1_WAY_AGENT_1,M_BCM1480_L2C_MISC1_WAY_AGENT_1) | 144 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_1(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC1_WAY_AGENT_1, M_BCM1480_L2C_MISC1_WAY_AGENT_1) |
145 | 145 | ||
146 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_2 16 | 146 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_2 16 |
147 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_2 _SB_MAKEMASK(8,S_BCM1480_L2C_MISC1_WAY_AGENT_2) | 147 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_2 _SB_MAKEMASK(8, S_BCM1480_L2C_MISC1_WAY_AGENT_2) |
148 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_2(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC1_WAY_AGENT_2,M_BCM1480_L2C_MISC1_WAY_AGENT_2) | 148 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_2(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC1_WAY_AGENT_2, M_BCM1480_L2C_MISC1_WAY_AGENT_2) |
149 | 149 | ||
150 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_3 24 | 150 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_3 24 |
151 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_3 _SB_MAKEMASK(8,S_BCM1480_L2C_MISC1_WAY_AGENT_3) | 151 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_3 _SB_MAKEMASK(8, S_BCM1480_L2C_MISC1_WAY_AGENT_3) |
152 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_3(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC1_WAY_AGENT_3,M_BCM1480_L2C_MISC1_WAY_AGENT_3) | 152 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_3(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC1_WAY_AGENT_3, M_BCM1480_L2C_MISC1_WAY_AGENT_3) |
153 | 153 | ||
154 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_4 32 | 154 | #define S_BCM1480_L2C_MISC1_WAY_AGENT_4 32 |
155 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_4 _SB_MAKEMASK(8,S_BCM1480_L2C_MISC1_WAY_AGENT_4) | 155 | #define M_BCM1480_L2C_MISC1_WAY_AGENT_4 _SB_MAKEMASK(8, S_BCM1480_L2C_MISC1_WAY_AGENT_4) |
156 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_4(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC1_WAY_AGENT_4,M_BCM1480_L2C_MISC1_WAY_AGENT_4) | 156 | #define G_BCM1480_L2C_MISC1_WAY_AGENT_4(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC1_WAY_AGENT_4, M_BCM1480_L2C_MISC1_WAY_AGENT_4) |
157 | 157 | ||
158 | 158 | ||
159 | /* | 159 | /* |
@@ -161,16 +161,16 @@ | |||
161 | */ | 161 | */ |
162 | 162 | ||
163 | #define S_BCM1480_L2C_MISC2_WAY_AGENT_8 0 | 163 | #define S_BCM1480_L2C_MISC2_WAY_AGENT_8 0 |
164 | #define M_BCM1480_L2C_MISC2_WAY_AGENT_8 _SB_MAKEMASK(8,S_BCM1480_L2C_MISC2_WAY_AGENT_8) | 164 | #define M_BCM1480_L2C_MISC2_WAY_AGENT_8 _SB_MAKEMASK(8, S_BCM1480_L2C_MISC2_WAY_AGENT_8) |
165 | #define G_BCM1480_L2C_MISC2_WAY_AGENT_8(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC2_WAY_AGENT_8,M_BCM1480_L2C_MISC2_WAY_AGENT_8) | 165 | #define G_BCM1480_L2C_MISC2_WAY_AGENT_8(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC2_WAY_AGENT_8, M_BCM1480_L2C_MISC2_WAY_AGENT_8) |
166 | 166 | ||
167 | #define S_BCM1480_L2C_MISC2_WAY_AGENT_9 8 | 167 | #define S_BCM1480_L2C_MISC2_WAY_AGENT_9 8 |
168 | #define M_BCM1480_L2C_MISC2_WAY_AGENT_9 _SB_MAKEMASK(8,S_BCM1480_L2C_MISC2_WAY_AGENT_9) | 168 | #define M_BCM1480_L2C_MISC2_WAY_AGENT_9 _SB_MAKEMASK(8, S_BCM1480_L2C_MISC2_WAY_AGENT_9) |
169 | #define G_BCM1480_L2C_MISC2_WAY_AGENT_9(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC2_WAY_AGENT_9,M_BCM1480_L2C_MISC2_WAY_AGENT_9) | 169 | #define G_BCM1480_L2C_MISC2_WAY_AGENT_9(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC2_WAY_AGENT_9, M_BCM1480_L2C_MISC2_WAY_AGENT_9) |
170 | 170 | ||
171 | #define S_BCM1480_L2C_MISC2_WAY_AGENT_A 16 | 171 | #define S_BCM1480_L2C_MISC2_WAY_AGENT_A 16 |
172 | #define M_BCM1480_L2C_MISC2_WAY_AGENT_A _SB_MAKEMASK(8,S_BCM1480_L2C_MISC2_WAY_AGENT_A) | 172 | #define M_BCM1480_L2C_MISC2_WAY_AGENT_A _SB_MAKEMASK(8, S_BCM1480_L2C_MISC2_WAY_AGENT_A) |
173 | #define G_BCM1480_L2C_MISC2_WAY_AGENT_A(x) _SB_GETVALUE(x,S_BCM1480_L2C_MISC2_WAY_AGENT_A,M_BCM1480_L2C_MISC2_WAY_AGENT_A) | 173 | #define G_BCM1480_L2C_MISC2_WAY_AGENT_A(x) _SB_GETVALUE(x, S_BCM1480_L2C_MISC2_WAY_AGENT_A, M_BCM1480_L2C_MISC2_WAY_AGENT_A) |
174 | 174 | ||
175 | 175 | ||
176 | #endif /* _BCM1480_L2C_H */ | 176 | #endif /* _BCM1480_L2C_H */ |
diff --git a/include/asm-mips/sibyte/bcm1480_mc.h b/include/asm-mips/sibyte/bcm1480_mc.h index a6a437451d..f26a41a82b 100644 --- a/include/asm-mips/sibyte/bcm1480_mc.h +++ b/include/asm-mips/sibyte/bcm1480_mc.h | |||
@@ -40,27 +40,27 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #define S_BCM1480_MC_INTLV0 0 | 42 | #define S_BCM1480_MC_INTLV0 0 |
43 | #define M_BCM1480_MC_INTLV0 _SB_MAKEMASK(6,S_BCM1480_MC_INTLV0) | 43 | #define M_BCM1480_MC_INTLV0 _SB_MAKEMASK(6, S_BCM1480_MC_INTLV0) |
44 | #define V_BCM1480_MC_INTLV0(x) _SB_MAKEVALUE(x,S_BCM1480_MC_INTLV0) | 44 | #define V_BCM1480_MC_INTLV0(x) _SB_MAKEVALUE(x, S_BCM1480_MC_INTLV0) |
45 | #define G_BCM1480_MC_INTLV0(x) _SB_GETVALUE(x,S_BCM1480_MC_INTLV0,M_BCM1480_MC_INTLV0) | 45 | #define G_BCM1480_MC_INTLV0(x) _SB_GETVALUE(x, S_BCM1480_MC_INTLV0, M_BCM1480_MC_INTLV0) |
46 | #define V_BCM1480_MC_INTLV0_DEFAULT V_BCM1480_MC_INTLV0(0) | 46 | #define V_BCM1480_MC_INTLV0_DEFAULT V_BCM1480_MC_INTLV0(0) |
47 | 47 | ||
48 | #define S_BCM1480_MC_INTLV1 8 | 48 | #define S_BCM1480_MC_INTLV1 8 |
49 | #define M_BCM1480_MC_INTLV1 _SB_MAKEMASK(6,S_BCM1480_MC_INTLV1) | 49 | #define M_BCM1480_MC_INTLV1 _SB_MAKEMASK(6, S_BCM1480_MC_INTLV1) |
50 | #define V_BCM1480_MC_INTLV1(x) _SB_MAKEVALUE(x,S_BCM1480_MC_INTLV1) | 50 | #define V_BCM1480_MC_INTLV1(x) _SB_MAKEVALUE(x, S_BCM1480_MC_INTLV1) |
51 | #define G_BCM1480_MC_INTLV1(x) _SB_GETVALUE(x,S_BCM1480_MC_INTLV1,M_BCM1480_MC_INTLV1) | 51 | #define G_BCM1480_MC_INTLV1(x) _SB_GETVALUE(x, S_BCM1480_MC_INTLV1, M_BCM1480_MC_INTLV1) |
52 | #define V_BCM1480_MC_INTLV1_DEFAULT V_BCM1480_MC_INTLV1(0) | 52 | #define V_BCM1480_MC_INTLV1_DEFAULT V_BCM1480_MC_INTLV1(0) |
53 | 53 | ||
54 | #define S_BCM1480_MC_INTLV2 16 | 54 | #define S_BCM1480_MC_INTLV2 16 |
55 | #define M_BCM1480_MC_INTLV2 _SB_MAKEMASK(6,S_BCM1480_MC_INTLV2) | 55 | #define M_BCM1480_MC_INTLV2 _SB_MAKEMASK(6, S_BCM1480_MC_INTLV2) |
56 | #define V_BCM1480_MC_INTLV2(x) _SB_MAKEVALUE(x,S_BCM1480_MC_INTLV2) | 56 | #define V_BCM1480_MC_INTLV2(x) _SB_MAKEVALUE(x, S_BCM1480_MC_INTLV2) |
57 | #define G_BCM1480_MC_INTLV2(x) _SB_GETVALUE(x,S_BCM1480_MC_INTLV2,M_BCM1480_MC_INTLV2) | 57 | #define G_BCM1480_MC_INTLV2(x) _SB_GETVALUE(x, S_BCM1480_MC_INTLV2, M_BCM1480_MC_INTLV2) |
58 | #define V_BCM1480_MC_INTLV2_DEFAULT V_BCM1480_MC_INTLV2(0) | 58 | #define V_BCM1480_MC_INTLV2_DEFAULT V_BCM1480_MC_INTLV2(0) |
59 | 59 | ||
60 | #define S_BCM1480_MC_CS_MODE 32 | 60 | #define S_BCM1480_MC_CS_MODE 32 |
61 | #define M_BCM1480_MC_CS_MODE _SB_MAKEMASK(8,S_BCM1480_MC_CS_MODE) | 61 | #define M_BCM1480_MC_CS_MODE _SB_MAKEMASK(8, S_BCM1480_MC_CS_MODE) |
62 | #define V_BCM1480_MC_CS_MODE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS_MODE) | 62 | #define V_BCM1480_MC_CS_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS_MODE) |
63 | #define G_BCM1480_MC_CS_MODE(x) _SB_GETVALUE(x,S_BCM1480_MC_CS_MODE,M_BCM1480_MC_CS_MODE) | 63 | #define G_BCM1480_MC_CS_MODE(x) _SB_GETVALUE(x, S_BCM1480_MC_CS_MODE, M_BCM1480_MC_CS_MODE) |
64 | #define V_BCM1480_MC_CS_MODE_DEFAULT V_BCM1480_MC_CS_MODE(0) | 64 | #define V_BCM1480_MC_CS_MODE_DEFAULT V_BCM1480_MC_CS_MODE(0) |
65 | 65 | ||
66 | #define V_BCM1480_MC_CONFIG_DEFAULT (V_BCM1480_MC_INTLV0_DEFAULT | \ | 66 | #define V_BCM1480_MC_CONFIG_DEFAULT (V_BCM1480_MC_INTLV0_DEFAULT | \ |
@@ -81,131 +81,131 @@ | |||
81 | */ | 81 | */ |
82 | 82 | ||
83 | #define S_BCM1480_MC_CS0_START 0 | 83 | #define S_BCM1480_MC_CS0_START 0 |
84 | #define M_BCM1480_MC_CS0_START _SB_MAKEMASK(12,S_BCM1480_MC_CS0_START) | 84 | #define M_BCM1480_MC_CS0_START _SB_MAKEMASK(12, S_BCM1480_MC_CS0_START) |
85 | #define V_BCM1480_MC_CS0_START(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS0_START) | 85 | #define V_BCM1480_MC_CS0_START(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS0_START) |
86 | #define G_BCM1480_MC_CS0_START(x) _SB_GETVALUE(x,S_BCM1480_MC_CS0_START,M_BCM1480_MC_CS0_START) | 86 | #define G_BCM1480_MC_CS0_START(x) _SB_GETVALUE(x, S_BCM1480_MC_CS0_START, M_BCM1480_MC_CS0_START) |
87 | 87 | ||
88 | #define S_BCM1480_MC_CS1_START 16 | 88 | #define S_BCM1480_MC_CS1_START 16 |
89 | #define M_BCM1480_MC_CS1_START _SB_MAKEMASK(12,S_BCM1480_MC_CS1_START) | 89 | #define M_BCM1480_MC_CS1_START _SB_MAKEMASK(12, S_BCM1480_MC_CS1_START) |
90 | #define V_BCM1480_MC_CS1_START(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS1_START) | 90 | #define V_BCM1480_MC_CS1_START(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS1_START) |
91 | #define G_BCM1480_MC_CS1_START(x) _SB_GETVALUE(x,S_BCM1480_MC_CS1_START,M_BCM1480_MC_CS1_START) | 91 | #define G_BCM1480_MC_CS1_START(x) _SB_GETVALUE(x, S_BCM1480_MC_CS1_START, M_BCM1480_MC_CS1_START) |
92 | 92 | ||
93 | #define S_BCM1480_MC_CS2_START 32 | 93 | #define S_BCM1480_MC_CS2_START 32 |
94 | #define M_BCM1480_MC_CS2_START _SB_MAKEMASK(12,S_BCM1480_MC_CS2_START) | 94 | #define M_BCM1480_MC_CS2_START _SB_MAKEMASK(12, S_BCM1480_MC_CS2_START) |
95 | #define V_BCM1480_MC_CS2_START(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS2_START) | 95 | #define V_BCM1480_MC_CS2_START(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS2_START) |
96 | #define G_BCM1480_MC_CS2_START(x) _SB_GETVALUE(x,S_BCM1480_MC_CS2_START,M_BCM1480_MC_CS2_START) | 96 | #define G_BCM1480_MC_CS2_START(x) _SB_GETVALUE(x, S_BCM1480_MC_CS2_START, M_BCM1480_MC_CS2_START) |
97 | 97 | ||
98 | #define S_BCM1480_MC_CS3_START 48 | 98 | #define S_BCM1480_MC_CS3_START 48 |
99 | #define M_BCM1480_MC_CS3_START _SB_MAKEMASK(12,S_BCM1480_MC_CS3_START) | 99 | #define M_BCM1480_MC_CS3_START _SB_MAKEMASK(12, S_BCM1480_MC_CS3_START) |
100 | #define V_BCM1480_MC_CS3_START(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS3_START) | 100 | #define V_BCM1480_MC_CS3_START(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS3_START) |
101 | #define G_BCM1480_MC_CS3_START(x) _SB_GETVALUE(x,S_BCM1480_MC_CS3_START,M_BCM1480_MC_CS3_START) | 101 | #define G_BCM1480_MC_CS3_START(x) _SB_GETVALUE(x, S_BCM1480_MC_CS3_START, M_BCM1480_MC_CS3_START) |
102 | 102 | ||
103 | /* | 103 | /* |
104 | * Chip Select End Address Register (Table 83) | 104 | * Chip Select End Address Register (Table 83) |
105 | */ | 105 | */ |
106 | 106 | ||
107 | #define S_BCM1480_MC_CS0_END 0 | 107 | #define S_BCM1480_MC_CS0_END 0 |
108 | #define M_BCM1480_MC_CS0_END _SB_MAKEMASK(12,S_BCM1480_MC_CS0_END) | 108 | #define M_BCM1480_MC_CS0_END _SB_MAKEMASK(12, S_BCM1480_MC_CS0_END) |
109 | #define V_BCM1480_MC_CS0_END(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS0_END) | 109 | #define V_BCM1480_MC_CS0_END(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS0_END) |
110 | #define G_BCM1480_MC_CS0_END(x) _SB_GETVALUE(x,S_BCM1480_MC_CS0_END,M_BCM1480_MC_CS0_END) | 110 | #define G_BCM1480_MC_CS0_END(x) _SB_GETVALUE(x, S_BCM1480_MC_CS0_END, M_BCM1480_MC_CS0_END) |
111 | 111 | ||
112 | #define S_BCM1480_MC_CS1_END 16 | 112 | #define S_BCM1480_MC_CS1_END 16 |
113 | #define M_BCM1480_MC_CS1_END _SB_MAKEMASK(12,S_BCM1480_MC_CS1_END) | 113 | #define M_BCM1480_MC_CS1_END _SB_MAKEMASK(12, S_BCM1480_MC_CS1_END) |
114 | #define V_BCM1480_MC_CS1_END(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS1_END) | 114 | #define V_BCM1480_MC_CS1_END(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS1_END) |
115 | #define G_BCM1480_MC_CS1_END(x) _SB_GETVALUE(x,S_BCM1480_MC_CS1_END,M_BCM1480_MC_CS1_END) | 115 | #define G_BCM1480_MC_CS1_END(x) _SB_GETVALUE(x, S_BCM1480_MC_CS1_END, M_BCM1480_MC_CS1_END) |
116 | 116 | ||
117 | #define S_BCM1480_MC_CS2_END 32 | 117 | #define S_BCM1480_MC_CS2_END 32 |
118 | #define M_BCM1480_MC_CS2_END _SB_MAKEMASK(12,S_BCM1480_MC_CS2_END) | 118 | #define M_BCM1480_MC_CS2_END _SB_MAKEMASK(12, S_BCM1480_MC_CS2_END) |
119 | #define V_BCM1480_MC_CS2_END(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS2_END) | 119 | #define V_BCM1480_MC_CS2_END(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS2_END) |
120 | #define G_BCM1480_MC_CS2_END(x) _SB_GETVALUE(x,S_BCM1480_MC_CS2_END,M_BCM1480_MC_CS2_END) | 120 | #define G_BCM1480_MC_CS2_END(x) _SB_GETVALUE(x, S_BCM1480_MC_CS2_END, M_BCM1480_MC_CS2_END) |
121 | 121 | ||
122 | #define S_BCM1480_MC_CS3_END 48 | 122 | #define S_BCM1480_MC_CS3_END 48 |
123 | #define M_BCM1480_MC_CS3_END _SB_MAKEMASK(12,S_BCM1480_MC_CS3_END) | 123 | #define M_BCM1480_MC_CS3_END _SB_MAKEMASK(12, S_BCM1480_MC_CS3_END) |
124 | #define V_BCM1480_MC_CS3_END(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS3_END) | 124 | #define V_BCM1480_MC_CS3_END(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS3_END) |
125 | #define G_BCM1480_MC_CS3_END(x) _SB_GETVALUE(x,S_BCM1480_MC_CS3_END,M_BCM1480_MC_CS3_END) | 125 | #define G_BCM1480_MC_CS3_END(x) _SB_GETVALUE(x, S_BCM1480_MC_CS3_END, M_BCM1480_MC_CS3_END) |
126 | 126 | ||
127 | /* | 127 | /* |
128 | * Row Address Bit Select Register 0 (Table 84) | 128 | * Row Address Bit Select Register 0 (Table 84) |
129 | */ | 129 | */ |
130 | 130 | ||
131 | #define S_BCM1480_MC_ROW00 0 | 131 | #define S_BCM1480_MC_ROW00 0 |
132 | #define M_BCM1480_MC_ROW00 _SB_MAKEMASK(6,S_BCM1480_MC_ROW00) | 132 | #define M_BCM1480_MC_ROW00 _SB_MAKEMASK(6, S_BCM1480_MC_ROW00) |
133 | #define V_BCM1480_MC_ROW00(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW00) | 133 | #define V_BCM1480_MC_ROW00(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW00) |
134 | #define G_BCM1480_MC_ROW00(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW00,M_BCM1480_MC_ROW00) | 134 | #define G_BCM1480_MC_ROW00(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW00, M_BCM1480_MC_ROW00) |
135 | 135 | ||
136 | #define S_BCM1480_MC_ROW01 8 | 136 | #define S_BCM1480_MC_ROW01 8 |
137 | #define M_BCM1480_MC_ROW01 _SB_MAKEMASK(6,S_BCM1480_MC_ROW01) | 137 | #define M_BCM1480_MC_ROW01 _SB_MAKEMASK(6, S_BCM1480_MC_ROW01) |
138 | #define V_BCM1480_MC_ROW01(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW01) | 138 | #define V_BCM1480_MC_ROW01(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW01) |
139 | #define G_BCM1480_MC_ROW01(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW01,M_BCM1480_MC_ROW01) | 139 | #define G_BCM1480_MC_ROW01(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW01, M_BCM1480_MC_ROW01) |
140 | 140 | ||
141 | #define S_BCM1480_MC_ROW02 16 | 141 | #define S_BCM1480_MC_ROW02 16 |
142 | #define M_BCM1480_MC_ROW02 _SB_MAKEMASK(6,S_BCM1480_MC_ROW02) | 142 | #define M_BCM1480_MC_ROW02 _SB_MAKEMASK(6, S_BCM1480_MC_ROW02) |
143 | #define V_BCM1480_MC_ROW02(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW02) | 143 | #define V_BCM1480_MC_ROW02(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW02) |
144 | #define G_BCM1480_MC_ROW02(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW02,M_BCM1480_MC_ROW02) | 144 | #define G_BCM1480_MC_ROW02(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW02, M_BCM1480_MC_ROW02) |
145 | 145 | ||
146 | #define S_BCM1480_MC_ROW03 24 | 146 | #define S_BCM1480_MC_ROW03 24 |
147 | #define M_BCM1480_MC_ROW03 _SB_MAKEMASK(6,S_BCM1480_MC_ROW03) | 147 | #define M_BCM1480_MC_ROW03 _SB_MAKEMASK(6, S_BCM1480_MC_ROW03) |
148 | #define V_BCM1480_MC_ROW03(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW03) | 148 | #define V_BCM1480_MC_ROW03(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW03) |
149 | #define G_BCM1480_MC_ROW03(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW03,M_BCM1480_MC_ROW03) | 149 | #define G_BCM1480_MC_ROW03(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW03, M_BCM1480_MC_ROW03) |
150 | 150 | ||
151 | #define S_BCM1480_MC_ROW04 32 | 151 | #define S_BCM1480_MC_ROW04 32 |
152 | #define M_BCM1480_MC_ROW04 _SB_MAKEMASK(6,S_BCM1480_MC_ROW04) | 152 | #define M_BCM1480_MC_ROW04 _SB_MAKEMASK(6, S_BCM1480_MC_ROW04) |
153 | #define V_BCM1480_MC_ROW04(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW04) | 153 | #define V_BCM1480_MC_ROW04(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW04) |
154 | #define G_BCM1480_MC_ROW04(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW04,M_BCM1480_MC_ROW04) | 154 | #define G_BCM1480_MC_ROW04(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW04, M_BCM1480_MC_ROW04) |
155 | 155 | ||
156 | #define S_BCM1480_MC_ROW05 40 | 156 | #define S_BCM1480_MC_ROW05 40 |
157 | #define M_BCM1480_MC_ROW05 _SB_MAKEMASK(6,S_BCM1480_MC_ROW05) | 157 | #define M_BCM1480_MC_ROW05 _SB_MAKEMASK(6, S_BCM1480_MC_ROW05) |
158 | #define V_BCM1480_MC_ROW05(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW05) | 158 | #define V_BCM1480_MC_ROW05(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW05) |
159 | #define G_BCM1480_MC_ROW05(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW05,M_BCM1480_MC_ROW05) | 159 | #define G_BCM1480_MC_ROW05(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW05, M_BCM1480_MC_ROW05) |
160 | 160 | ||
161 | #define S_BCM1480_MC_ROW06 48 | 161 | #define S_BCM1480_MC_ROW06 48 |
162 | #define M_BCM1480_MC_ROW06 _SB_MAKEMASK(6,S_BCM1480_MC_ROW06) | 162 | #define M_BCM1480_MC_ROW06 _SB_MAKEMASK(6, S_BCM1480_MC_ROW06) |
163 | #define V_BCM1480_MC_ROW06(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW06) | 163 | #define V_BCM1480_MC_ROW06(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW06) |
164 | #define G_BCM1480_MC_ROW06(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW06,M_BCM1480_MC_ROW06) | 164 | #define G_BCM1480_MC_ROW06(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW06, M_BCM1480_MC_ROW06) |
165 | 165 | ||
166 | #define S_BCM1480_MC_ROW07 56 | 166 | #define S_BCM1480_MC_ROW07 56 |
167 | #define M_BCM1480_MC_ROW07 _SB_MAKEMASK(6,S_BCM1480_MC_ROW07) | 167 | #define M_BCM1480_MC_ROW07 _SB_MAKEMASK(6, S_BCM1480_MC_ROW07) |
168 | #define V_BCM1480_MC_ROW07(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW07) | 168 | #define V_BCM1480_MC_ROW07(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW07) |
169 | #define G_BCM1480_MC_ROW07(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW07,M_BCM1480_MC_ROW07) | 169 | #define G_BCM1480_MC_ROW07(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW07, M_BCM1480_MC_ROW07) |
170 | 170 | ||
171 | /* | 171 | /* |
172 | * Row Address Bit Select Register 1 (Table 85) | 172 | * Row Address Bit Select Register 1 (Table 85) |
173 | */ | 173 | */ |
174 | 174 | ||
175 | #define S_BCM1480_MC_ROW08 0 | 175 | #define S_BCM1480_MC_ROW08 0 |
176 | #define M_BCM1480_MC_ROW08 _SB_MAKEMASK(6,S_BCM1480_MC_ROW08) | 176 | #define M_BCM1480_MC_ROW08 _SB_MAKEMASK(6, S_BCM1480_MC_ROW08) |
177 | #define V_BCM1480_MC_ROW08(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW08) | 177 | #define V_BCM1480_MC_ROW08(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW08) |
178 | #define G_BCM1480_MC_ROW08(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW08,M_BCM1480_MC_ROW08) | 178 | #define G_BCM1480_MC_ROW08(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW08, M_BCM1480_MC_ROW08) |
179 | 179 | ||
180 | #define S_BCM1480_MC_ROW09 8 | 180 | #define S_BCM1480_MC_ROW09 8 |
181 | #define M_BCM1480_MC_ROW09 _SB_MAKEMASK(6,S_BCM1480_MC_ROW09) | 181 | #define M_BCM1480_MC_ROW09 _SB_MAKEMASK(6, S_BCM1480_MC_ROW09) |
182 | #define V_BCM1480_MC_ROW09(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW09) | 182 | #define V_BCM1480_MC_ROW09(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW09) |
183 | #define G_BCM1480_MC_ROW09(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW09,M_BCM1480_MC_ROW09) | 183 | #define G_BCM1480_MC_ROW09(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW09, M_BCM1480_MC_ROW09) |
184 | 184 | ||
185 | #define S_BCM1480_MC_ROW10 16 | 185 | #define S_BCM1480_MC_ROW10 16 |
186 | #define M_BCM1480_MC_ROW10 _SB_MAKEMASK(6,S_BCM1480_MC_ROW10) | 186 | #define M_BCM1480_MC_ROW10 _SB_MAKEMASK(6, S_BCM1480_MC_ROW10) |
187 | #define V_BCM1480_MC_ROW10(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW10) | 187 | #define V_BCM1480_MC_ROW10(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW10) |
188 | #define G_BCM1480_MC_ROW10(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW10,M_BCM1480_MC_ROW10) | 188 | #define G_BCM1480_MC_ROW10(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW10, M_BCM1480_MC_ROW10) |
189 | 189 | ||
190 | #define S_BCM1480_MC_ROW11 24 | 190 | #define S_BCM1480_MC_ROW11 24 |
191 | #define M_BCM1480_MC_ROW11 _SB_MAKEMASK(6,S_BCM1480_MC_ROW11) | 191 | #define M_BCM1480_MC_ROW11 _SB_MAKEMASK(6, S_BCM1480_MC_ROW11) |
192 | #define V_BCM1480_MC_ROW11(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW11) | 192 | #define V_BCM1480_MC_ROW11(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW11) |
193 | #define G_BCM1480_MC_ROW11(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW11,M_BCM1480_MC_ROW11) | 193 | #define G_BCM1480_MC_ROW11(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW11, M_BCM1480_MC_ROW11) |
194 | 194 | ||
195 | #define S_BCM1480_MC_ROW12 32 | 195 | #define S_BCM1480_MC_ROW12 32 |
196 | #define M_BCM1480_MC_ROW12 _SB_MAKEMASK(6,S_BCM1480_MC_ROW12) | 196 | #define M_BCM1480_MC_ROW12 _SB_MAKEMASK(6, S_BCM1480_MC_ROW12) |
197 | #define V_BCM1480_MC_ROW12(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW12) | 197 | #define V_BCM1480_MC_ROW12(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW12) |
198 | #define G_BCM1480_MC_ROW12(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW12,M_BCM1480_MC_ROW12) | 198 | #define G_BCM1480_MC_ROW12(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW12, M_BCM1480_MC_ROW12) |
199 | 199 | ||
200 | #define S_BCM1480_MC_ROW13 40 | 200 | #define S_BCM1480_MC_ROW13 40 |
201 | #define M_BCM1480_MC_ROW13 _SB_MAKEMASK(6,S_BCM1480_MC_ROW13) | 201 | #define M_BCM1480_MC_ROW13 _SB_MAKEMASK(6, S_BCM1480_MC_ROW13) |
202 | #define V_BCM1480_MC_ROW13(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW13) | 202 | #define V_BCM1480_MC_ROW13(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW13) |
203 | #define G_BCM1480_MC_ROW13(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW13,M_BCM1480_MC_ROW13) | 203 | #define G_BCM1480_MC_ROW13(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW13, M_BCM1480_MC_ROW13) |
204 | 204 | ||
205 | #define S_BCM1480_MC_ROW14 48 | 205 | #define S_BCM1480_MC_ROW14 48 |
206 | #define M_BCM1480_MC_ROW14 _SB_MAKEMASK(6,S_BCM1480_MC_ROW14) | 206 | #define M_BCM1480_MC_ROW14 _SB_MAKEMASK(6, S_BCM1480_MC_ROW14) |
207 | #define V_BCM1480_MC_ROW14(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ROW14) | 207 | #define V_BCM1480_MC_ROW14(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ROW14) |
208 | #define G_BCM1480_MC_ROW14(x) _SB_GETVALUE(x,S_BCM1480_MC_ROW14,M_BCM1480_MC_ROW14) | 208 | #define G_BCM1480_MC_ROW14(x) _SB_GETVALUE(x, S_BCM1480_MC_ROW14, M_BCM1480_MC_ROW14) |
209 | 209 | ||
210 | #define K_BCM1480_MC_ROWX_BIT_SPACING 8 | 210 | #define K_BCM1480_MC_ROWX_BIT_SPACING 8 |
211 | 211 | ||
@@ -214,80 +214,80 @@ | |||
214 | */ | 214 | */ |
215 | 215 | ||
216 | #define S_BCM1480_MC_COL00 0 | 216 | #define S_BCM1480_MC_COL00 0 |
217 | #define M_BCM1480_MC_COL00 _SB_MAKEMASK(6,S_BCM1480_MC_COL00) | 217 | #define M_BCM1480_MC_COL00 _SB_MAKEMASK(6, S_BCM1480_MC_COL00) |
218 | #define V_BCM1480_MC_COL00(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL00) | 218 | #define V_BCM1480_MC_COL00(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL00) |
219 | #define G_BCM1480_MC_COL00(x) _SB_GETVALUE(x,S_BCM1480_MC_COL00,M_BCM1480_MC_COL00) | 219 | #define G_BCM1480_MC_COL00(x) _SB_GETVALUE(x, S_BCM1480_MC_COL00, M_BCM1480_MC_COL00) |
220 | 220 | ||
221 | #define S_BCM1480_MC_COL01 8 | 221 | #define S_BCM1480_MC_COL01 8 |
222 | #define M_BCM1480_MC_COL01 _SB_MAKEMASK(6,S_BCM1480_MC_COL01) | 222 | #define M_BCM1480_MC_COL01 _SB_MAKEMASK(6, S_BCM1480_MC_COL01) |
223 | #define V_BCM1480_MC_COL01(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL01) | 223 | #define V_BCM1480_MC_COL01(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL01) |
224 | #define G_BCM1480_MC_COL01(x) _SB_GETVALUE(x,S_BCM1480_MC_COL01,M_BCM1480_MC_COL01) | 224 | #define G_BCM1480_MC_COL01(x) _SB_GETVALUE(x, S_BCM1480_MC_COL01, M_BCM1480_MC_COL01) |
225 | 225 | ||
226 | #define S_BCM1480_MC_COL02 16 | 226 | #define S_BCM1480_MC_COL02 16 |
227 | #define M_BCM1480_MC_COL02 _SB_MAKEMASK(6,S_BCM1480_MC_COL02) | 227 | #define M_BCM1480_MC_COL02 _SB_MAKEMASK(6, S_BCM1480_MC_COL02) |
228 | #define V_BCM1480_MC_COL02(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL02) | 228 | #define V_BCM1480_MC_COL02(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL02) |
229 | #define G_BCM1480_MC_COL02(x) _SB_GETVALUE(x,S_BCM1480_MC_COL02,M_BCM1480_MC_COL02) | 229 | #define G_BCM1480_MC_COL02(x) _SB_GETVALUE(x, S_BCM1480_MC_COL02, M_BCM1480_MC_COL02) |
230 | 230 | ||
231 | #define S_BCM1480_MC_COL03 24 | 231 | #define S_BCM1480_MC_COL03 24 |
232 | #define M_BCM1480_MC_COL03 _SB_MAKEMASK(6,S_BCM1480_MC_COL03) | 232 | #define M_BCM1480_MC_COL03 _SB_MAKEMASK(6, S_BCM1480_MC_COL03) |
233 | #define V_BCM1480_MC_COL03(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL03) | 233 | #define V_BCM1480_MC_COL03(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL03) |
234 | #define G_BCM1480_MC_COL03(x) _SB_GETVALUE(x,S_BCM1480_MC_COL03,M_BCM1480_MC_COL03) | 234 | #define G_BCM1480_MC_COL03(x) _SB_GETVALUE(x, S_BCM1480_MC_COL03, M_BCM1480_MC_COL03) |
235 | 235 | ||
236 | #define S_BCM1480_MC_COL04 32 | 236 | #define S_BCM1480_MC_COL04 32 |
237 | #define M_BCM1480_MC_COL04 _SB_MAKEMASK(6,S_BCM1480_MC_COL04) | 237 | #define M_BCM1480_MC_COL04 _SB_MAKEMASK(6, S_BCM1480_MC_COL04) |
238 | #define V_BCM1480_MC_COL04(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL04) | 238 | #define V_BCM1480_MC_COL04(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL04) |
239 | #define G_BCM1480_MC_COL04(x) _SB_GETVALUE(x,S_BCM1480_MC_COL04,M_BCM1480_MC_COL04) | 239 | #define G_BCM1480_MC_COL04(x) _SB_GETVALUE(x, S_BCM1480_MC_COL04, M_BCM1480_MC_COL04) |
240 | 240 | ||
241 | #define S_BCM1480_MC_COL05 40 | 241 | #define S_BCM1480_MC_COL05 40 |
242 | #define M_BCM1480_MC_COL05 _SB_MAKEMASK(6,S_BCM1480_MC_COL05) | 242 | #define M_BCM1480_MC_COL05 _SB_MAKEMASK(6, S_BCM1480_MC_COL05) |
243 | #define V_BCM1480_MC_COL05(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL05) | 243 | #define V_BCM1480_MC_COL05(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL05) |
244 | #define G_BCM1480_MC_COL05(x) _SB_GETVALUE(x,S_BCM1480_MC_COL05,M_BCM1480_MC_COL05) | 244 | #define G_BCM1480_MC_COL05(x) _SB_GETVALUE(x, S_BCM1480_MC_COL05, M_BCM1480_MC_COL05) |
245 | 245 | ||
246 | #define S_BCM1480_MC_COL06 48 | 246 | #define S_BCM1480_MC_COL06 48 |
247 | #define M_BCM1480_MC_COL06 _SB_MAKEMASK(6,S_BCM1480_MC_COL06) | 247 | #define M_BCM1480_MC_COL06 _SB_MAKEMASK(6, S_BCM1480_MC_COL06) |
248 | #define V_BCM1480_MC_COL06(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL06) | 248 | #define V_BCM1480_MC_COL06(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL06) |
249 | #define G_BCM1480_MC_COL06(x) _SB_GETVALUE(x,S_BCM1480_MC_COL06,M_BCM1480_MC_COL06) | 249 | #define G_BCM1480_MC_COL06(x) _SB_GETVALUE(x, S_BCM1480_MC_COL06, M_BCM1480_MC_COL06) |
250 | 250 | ||
251 | #define S_BCM1480_MC_COL07 56 | 251 | #define S_BCM1480_MC_COL07 56 |
252 | #define M_BCM1480_MC_COL07 _SB_MAKEMASK(6,S_BCM1480_MC_COL07) | 252 | #define M_BCM1480_MC_COL07 _SB_MAKEMASK(6, S_BCM1480_MC_COL07) |
253 | #define V_BCM1480_MC_COL07(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL07) | 253 | #define V_BCM1480_MC_COL07(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL07) |
254 | #define G_BCM1480_MC_COL07(x) _SB_GETVALUE(x,S_BCM1480_MC_COL07,M_BCM1480_MC_COL07) | 254 | #define G_BCM1480_MC_COL07(x) _SB_GETVALUE(x, S_BCM1480_MC_COL07, M_BCM1480_MC_COL07) |
255 | 255 | ||
256 | /* | 256 | /* |
257 | * Column Address Bit Select Register 1 (Table 87) | 257 | * Column Address Bit Select Register 1 (Table 87) |
258 | */ | 258 | */ |
259 | 259 | ||
260 | #define S_BCM1480_MC_COL08 0 | 260 | #define S_BCM1480_MC_COL08 0 |
261 | #define M_BCM1480_MC_COL08 _SB_MAKEMASK(6,S_BCM1480_MC_COL08) | 261 | #define M_BCM1480_MC_COL08 _SB_MAKEMASK(6, S_BCM1480_MC_COL08) |
262 | #define V_BCM1480_MC_COL08(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL08) | 262 | #define V_BCM1480_MC_COL08(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL08) |
263 | #define G_BCM1480_MC_COL08(x) _SB_GETVALUE(x,S_BCM1480_MC_COL08,M_BCM1480_MC_COL08) | 263 | #define G_BCM1480_MC_COL08(x) _SB_GETVALUE(x, S_BCM1480_MC_COL08, M_BCM1480_MC_COL08) |
264 | 264 | ||
265 | #define S_BCM1480_MC_COL09 8 | 265 | #define S_BCM1480_MC_COL09 8 |
266 | #define M_BCM1480_MC_COL09 _SB_MAKEMASK(6,S_BCM1480_MC_COL09) | 266 | #define M_BCM1480_MC_COL09 _SB_MAKEMASK(6, S_BCM1480_MC_COL09) |
267 | #define V_BCM1480_MC_COL09(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL09) | 267 | #define V_BCM1480_MC_COL09(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL09) |
268 | #define G_BCM1480_MC_COL09(x) _SB_GETVALUE(x,S_BCM1480_MC_COL09,M_BCM1480_MC_COL09) | 268 | #define G_BCM1480_MC_COL09(x) _SB_GETVALUE(x, S_BCM1480_MC_COL09, M_BCM1480_MC_COL09) |
269 | 269 | ||
270 | #define S_BCM1480_MC_COL10 16 /* not a valid position, must be prog as 0 */ | 270 | #define S_BCM1480_MC_COL10 16 /* not a valid position, must be prog as 0 */ |
271 | 271 | ||
272 | #define S_BCM1480_MC_COL11 24 | 272 | #define S_BCM1480_MC_COL11 24 |
273 | #define M_BCM1480_MC_COL11 _SB_MAKEMASK(6,S_BCM1480_MC_COL11) | 273 | #define M_BCM1480_MC_COL11 _SB_MAKEMASK(6, S_BCM1480_MC_COL11) |
274 | #define V_BCM1480_MC_COL11(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL11) | 274 | #define V_BCM1480_MC_COL11(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL11) |
275 | #define G_BCM1480_MC_COL11(x) _SB_GETVALUE(x,S_BCM1480_MC_COL11,M_BCM1480_MC_COL11) | 275 | #define G_BCM1480_MC_COL11(x) _SB_GETVALUE(x, S_BCM1480_MC_COL11, M_BCM1480_MC_COL11) |
276 | 276 | ||
277 | #define S_BCM1480_MC_COL12 32 | 277 | #define S_BCM1480_MC_COL12 32 |
278 | #define M_BCM1480_MC_COL12 _SB_MAKEMASK(6,S_BCM1480_MC_COL12) | 278 | #define M_BCM1480_MC_COL12 _SB_MAKEMASK(6, S_BCM1480_MC_COL12) |
279 | #define V_BCM1480_MC_COL12(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL12) | 279 | #define V_BCM1480_MC_COL12(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL12) |
280 | #define G_BCM1480_MC_COL12(x) _SB_GETVALUE(x,S_BCM1480_MC_COL12,M_BCM1480_MC_COL12) | 280 | #define G_BCM1480_MC_COL12(x) _SB_GETVALUE(x, S_BCM1480_MC_COL12, M_BCM1480_MC_COL12) |
281 | 281 | ||
282 | #define S_BCM1480_MC_COL13 40 | 282 | #define S_BCM1480_MC_COL13 40 |
283 | #define M_BCM1480_MC_COL13 _SB_MAKEMASK(6,S_BCM1480_MC_COL13) | 283 | #define M_BCM1480_MC_COL13 _SB_MAKEMASK(6, S_BCM1480_MC_COL13) |
284 | #define V_BCM1480_MC_COL13(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL13) | 284 | #define V_BCM1480_MC_COL13(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL13) |
285 | #define G_BCM1480_MC_COL13(x) _SB_GETVALUE(x,S_BCM1480_MC_COL13,M_BCM1480_MC_COL13) | 285 | #define G_BCM1480_MC_COL13(x) _SB_GETVALUE(x, S_BCM1480_MC_COL13, M_BCM1480_MC_COL13) |
286 | 286 | ||
287 | #define S_BCM1480_MC_COL14 48 | 287 | #define S_BCM1480_MC_COL14 48 |
288 | #define M_BCM1480_MC_COL14 _SB_MAKEMASK(6,S_BCM1480_MC_COL14) | 288 | #define M_BCM1480_MC_COL14 _SB_MAKEMASK(6, S_BCM1480_MC_COL14) |
289 | #define V_BCM1480_MC_COL14(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COL14) | 289 | #define V_BCM1480_MC_COL14(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COL14) |
290 | #define G_BCM1480_MC_COL14(x) _SB_GETVALUE(x,S_BCM1480_MC_COL14,M_BCM1480_MC_COL14) | 290 | #define G_BCM1480_MC_COL14(x) _SB_GETVALUE(x, S_BCM1480_MC_COL14, M_BCM1480_MC_COL14) |
291 | 291 | ||
292 | #define K_BCM1480_MC_COLX_BIT_SPACING 8 | 292 | #define K_BCM1480_MC_COLX_BIT_SPACING 8 |
293 | 293 | ||
@@ -296,38 +296,38 @@ | |||
296 | */ | 296 | */ |
297 | 297 | ||
298 | #define S_BCM1480_MC_CS01_BANK0 0 | 298 | #define S_BCM1480_MC_CS01_BANK0 0 |
299 | #define M_BCM1480_MC_CS01_BANK0 _SB_MAKEMASK(6,S_BCM1480_MC_CS01_BANK0) | 299 | #define M_BCM1480_MC_CS01_BANK0 _SB_MAKEMASK(6, S_BCM1480_MC_CS01_BANK0) |
300 | #define V_BCM1480_MC_CS01_BANK0(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS01_BANK0) | 300 | #define V_BCM1480_MC_CS01_BANK0(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS01_BANK0) |
301 | #define G_BCM1480_MC_CS01_BANK0(x) _SB_GETVALUE(x,S_BCM1480_MC_CS01_BANK0,M_BCM1480_MC_CS01_BANK0) | 301 | #define G_BCM1480_MC_CS01_BANK0(x) _SB_GETVALUE(x, S_BCM1480_MC_CS01_BANK0, M_BCM1480_MC_CS01_BANK0) |
302 | 302 | ||
303 | #define S_BCM1480_MC_CS01_BANK1 8 | 303 | #define S_BCM1480_MC_CS01_BANK1 8 |
304 | #define M_BCM1480_MC_CS01_BANK1 _SB_MAKEMASK(6,S_BCM1480_MC_CS01_BANK1) | 304 | #define M_BCM1480_MC_CS01_BANK1 _SB_MAKEMASK(6, S_BCM1480_MC_CS01_BANK1) |
305 | #define V_BCM1480_MC_CS01_BANK1(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS01_BANK1) | 305 | #define V_BCM1480_MC_CS01_BANK1(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS01_BANK1) |
306 | #define G_BCM1480_MC_CS01_BANK1(x) _SB_GETVALUE(x,S_BCM1480_MC_CS01_BANK1,M_BCM1480_MC_CS01_BANK1) | 306 | #define G_BCM1480_MC_CS01_BANK1(x) _SB_GETVALUE(x, S_BCM1480_MC_CS01_BANK1, M_BCM1480_MC_CS01_BANK1) |
307 | 307 | ||
308 | #define S_BCM1480_MC_CS01_BANK2 16 | 308 | #define S_BCM1480_MC_CS01_BANK2 16 |
309 | #define M_BCM1480_MC_CS01_BANK2 _SB_MAKEMASK(6,S_BCM1480_MC_CS01_BANK2) | 309 | #define M_BCM1480_MC_CS01_BANK2 _SB_MAKEMASK(6, S_BCM1480_MC_CS01_BANK2) |
310 | #define V_BCM1480_MC_CS01_BANK2(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS01_BANK2) | 310 | #define V_BCM1480_MC_CS01_BANK2(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS01_BANK2) |
311 | #define G_BCM1480_MC_CS01_BANK2(x) _SB_GETVALUE(x,S_BCM1480_MC_CS01_BANK2,M_BCM1480_MC_CS01_BANK2) | 311 | #define G_BCM1480_MC_CS01_BANK2(x) _SB_GETVALUE(x, S_BCM1480_MC_CS01_BANK2, M_BCM1480_MC_CS01_BANK2) |
312 | 312 | ||
313 | /* | 313 | /* |
314 | * CS2 and CS3 Bank Address Bit Select Register (Table 89) | 314 | * CS2 and CS3 Bank Address Bit Select Register (Table 89) |
315 | */ | 315 | */ |
316 | 316 | ||
317 | #define S_BCM1480_MC_CS23_BANK0 0 | 317 | #define S_BCM1480_MC_CS23_BANK0 0 |
318 | #define M_BCM1480_MC_CS23_BANK0 _SB_MAKEMASK(6,S_BCM1480_MC_CS23_BANK0) | 318 | #define M_BCM1480_MC_CS23_BANK0 _SB_MAKEMASK(6, S_BCM1480_MC_CS23_BANK0) |
319 | #define V_BCM1480_MC_CS23_BANK0(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS23_BANK0) | 319 | #define V_BCM1480_MC_CS23_BANK0(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS23_BANK0) |
320 | #define G_BCM1480_MC_CS23_BANK0(x) _SB_GETVALUE(x,S_BCM1480_MC_CS23_BANK0,M_BCM1480_MC_CS23_BANK0) | 320 | #define G_BCM1480_MC_CS23_BANK0(x) _SB_GETVALUE(x, S_BCM1480_MC_CS23_BANK0, M_BCM1480_MC_CS23_BANK0) |
321 | 321 | ||
322 | #define S_BCM1480_MC_CS23_BANK1 8 | 322 | #define S_BCM1480_MC_CS23_BANK1 8 |
323 | #define M_BCM1480_MC_CS23_BANK1 _SB_MAKEMASK(6,S_BCM1480_MC_CS23_BANK1) | 323 | #define M_BCM1480_MC_CS23_BANK1 _SB_MAKEMASK(6, S_BCM1480_MC_CS23_BANK1) |
324 | #define V_BCM1480_MC_CS23_BANK1(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS23_BANK1) | 324 | #define V_BCM1480_MC_CS23_BANK1(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS23_BANK1) |
325 | #define G_BCM1480_MC_CS23_BANK1(x) _SB_GETVALUE(x,S_BCM1480_MC_CS23_BANK1,M_BCM1480_MC_CS23_BANK1) | 325 | #define G_BCM1480_MC_CS23_BANK1(x) _SB_GETVALUE(x, S_BCM1480_MC_CS23_BANK1, M_BCM1480_MC_CS23_BANK1) |
326 | 326 | ||
327 | #define S_BCM1480_MC_CS23_BANK2 16 | 327 | #define S_BCM1480_MC_CS23_BANK2 16 |
328 | #define M_BCM1480_MC_CS23_BANK2 _SB_MAKEMASK(6,S_BCM1480_MC_CS23_BANK2) | 328 | #define M_BCM1480_MC_CS23_BANK2 _SB_MAKEMASK(6, S_BCM1480_MC_CS23_BANK2) |
329 | #define V_BCM1480_MC_CS23_BANK2(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS23_BANK2) | 329 | #define V_BCM1480_MC_CS23_BANK2(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS23_BANK2) |
330 | #define G_BCM1480_MC_CS23_BANK2(x) _SB_GETVALUE(x,S_BCM1480_MC_CS23_BANK2,M_BCM1480_MC_CS23_BANK2) | 330 | #define G_BCM1480_MC_CS23_BANK2(x) _SB_GETVALUE(x, S_BCM1480_MC_CS23_BANK2, M_BCM1480_MC_CS23_BANK2) |
331 | 331 | ||
332 | #define K_BCM1480_MC_CSXX_BANKX_BIT_SPACING 8 | 332 | #define K_BCM1480_MC_CSXX_BANKX_BIT_SPACING 8 |
333 | 333 | ||
@@ -336,9 +336,9 @@ | |||
336 | */ | 336 | */ |
337 | 337 | ||
338 | #define S_BCM1480_MC_COMMAND 0 | 338 | #define S_BCM1480_MC_COMMAND 0 |
339 | #define M_BCM1480_MC_COMMAND _SB_MAKEMASK(4,S_BCM1480_MC_COMMAND) | 339 | #define M_BCM1480_MC_COMMAND _SB_MAKEMASK(4, S_BCM1480_MC_COMMAND) |
340 | #define V_BCM1480_MC_COMMAND(x) _SB_MAKEVALUE(x,S_BCM1480_MC_COMMAND) | 340 | #define V_BCM1480_MC_COMMAND(x) _SB_MAKEVALUE(x, S_BCM1480_MC_COMMAND) |
341 | #define G_BCM1480_MC_COMMAND(x) _SB_GETVALUE(x,S_BCM1480_MC_COMMAND,M_BCM1480_MC_COMMAND) | 341 | #define G_BCM1480_MC_COMMAND(x) _SB_GETVALUE(x, S_BCM1480_MC_COMMAND, M_BCM1480_MC_COMMAND) |
342 | 342 | ||
343 | #define K_BCM1480_MC_COMMAND_EMRS 0 | 343 | #define K_BCM1480_MC_COMMAND_EMRS 0 |
344 | #define K_BCM1480_MC_COMMAND_MRS 1 | 344 | #define K_BCM1480_MC_COMMAND_MRS 1 |
@@ -382,9 +382,9 @@ | |||
382 | #define M_BCM1480_MC_CS6 _SB_MAKEMASK1(10) | 382 | #define M_BCM1480_MC_CS6 _SB_MAKEMASK1(10) |
383 | #define M_BCM1480_MC_CS7 _SB_MAKEMASK1(11) | 383 | #define M_BCM1480_MC_CS7 _SB_MAKEMASK1(11) |
384 | 384 | ||
385 | #define M_BCM1480_MC_CS _SB_MAKEMASK(8,S_BCM1480_MC_CS0) | 385 | #define M_BCM1480_MC_CS _SB_MAKEMASK(8, S_BCM1480_MC_CS0) |
386 | #define V_BCM1480_MC_CS(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CS0) | 386 | #define V_BCM1480_MC_CS(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CS0) |
387 | #define G_BCM1480_MC_CS(x) _SB_GETVALUE(x,S_BCM1480_MC_CS0,M_BCM1480_MC_CS0) | 387 | #define G_BCM1480_MC_CS(x) _SB_GETVALUE(x, S_BCM1480_MC_CS0, M_BCM1480_MC_CS0) |
388 | 388 | ||
389 | #define M_BCM1480_MC_CMD_ACTIVE _SB_MAKEMASK1(16) | 389 | #define M_BCM1480_MC_CMD_ACTIVE _SB_MAKEMASK1(16) |
390 | 390 | ||
@@ -393,21 +393,21 @@ | |||
393 | */ | 393 | */ |
394 | 394 | ||
395 | #define S_BCM1480_MC_EMODE 0 | 395 | #define S_BCM1480_MC_EMODE 0 |
396 | #define M_BCM1480_MC_EMODE _SB_MAKEMASK(15,S_BCM1480_MC_EMODE) | 396 | #define M_BCM1480_MC_EMODE _SB_MAKEMASK(15, S_BCM1480_MC_EMODE) |
397 | #define V_BCM1480_MC_EMODE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_EMODE) | 397 | #define V_BCM1480_MC_EMODE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_EMODE) |
398 | #define G_BCM1480_MC_EMODE(x) _SB_GETVALUE(x,S_BCM1480_MC_EMODE,M_BCM1480_MC_EMODE) | 398 | #define G_BCM1480_MC_EMODE(x) _SB_GETVALUE(x, S_BCM1480_MC_EMODE, M_BCM1480_MC_EMODE) |
399 | #define V_BCM1480_MC_EMODE_DEFAULT V_BCM1480_MC_EMODE(0) | 399 | #define V_BCM1480_MC_EMODE_DEFAULT V_BCM1480_MC_EMODE(0) |
400 | 400 | ||
401 | #define S_BCM1480_MC_MODE 16 | 401 | #define S_BCM1480_MC_MODE 16 |
402 | #define M_BCM1480_MC_MODE _SB_MAKEMASK(15,S_BCM1480_MC_MODE) | 402 | #define M_BCM1480_MC_MODE _SB_MAKEMASK(15, S_BCM1480_MC_MODE) |
403 | #define V_BCM1480_MC_MODE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_MODE) | 403 | #define V_BCM1480_MC_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_MODE) |
404 | #define G_BCM1480_MC_MODE(x) _SB_GETVALUE(x,S_BCM1480_MC_MODE,M_BCM1480_MC_MODE) | 404 | #define G_BCM1480_MC_MODE(x) _SB_GETVALUE(x, S_BCM1480_MC_MODE, M_BCM1480_MC_MODE) |
405 | #define V_BCM1480_MC_MODE_DEFAULT V_BCM1480_MC_MODE(0) | 405 | #define V_BCM1480_MC_MODE_DEFAULT V_BCM1480_MC_MODE(0) |
406 | 406 | ||
407 | #define S_BCM1480_MC_DRAM_TYPE 32 | 407 | #define S_BCM1480_MC_DRAM_TYPE 32 |
408 | #define M_BCM1480_MC_DRAM_TYPE _SB_MAKEMASK(4,S_BCM1480_MC_DRAM_TYPE) | 408 | #define M_BCM1480_MC_DRAM_TYPE _SB_MAKEMASK(4, S_BCM1480_MC_DRAM_TYPE) |
409 | #define V_BCM1480_MC_DRAM_TYPE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DRAM_TYPE) | 409 | #define V_BCM1480_MC_DRAM_TYPE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DRAM_TYPE) |
410 | #define G_BCM1480_MC_DRAM_TYPE(x) _SB_GETVALUE(x,S_BCM1480_MC_DRAM_TYPE,M_BCM1480_MC_DRAM_TYPE) | 410 | #define G_BCM1480_MC_DRAM_TYPE(x) _SB_GETVALUE(x, S_BCM1480_MC_DRAM_TYPE, M_BCM1480_MC_DRAM_TYPE) |
411 | 411 | ||
412 | #define K_BCM1480_MC_DRAM_TYPE_JEDEC 0 | 412 | #define K_BCM1480_MC_DRAM_TYPE_JEDEC 0 |
413 | #define K_BCM1480_MC_DRAM_TYPE_FCRAM 1 | 413 | #define K_BCM1480_MC_DRAM_TYPE_FCRAM 1 |
@@ -431,9 +431,9 @@ | |||
431 | #define M_BCM1480_MC_ECC_DISABLE _SB_MAKEMASK1(39) | 431 | #define M_BCM1480_MC_ECC_DISABLE _SB_MAKEMASK1(39) |
432 | 432 | ||
433 | #define S_BCM1480_MC_PG_POLICY 40 | 433 | #define S_BCM1480_MC_PG_POLICY 40 |
434 | #define M_BCM1480_MC_PG_POLICY _SB_MAKEMASK(2,S_BCM1480_MC_PG_POLICY) | 434 | #define M_BCM1480_MC_PG_POLICY _SB_MAKEMASK(2, S_BCM1480_MC_PG_POLICY) |
435 | #define V_BCM1480_MC_PG_POLICY(x) _SB_MAKEVALUE(x,S_BCM1480_MC_PG_POLICY) | 435 | #define V_BCM1480_MC_PG_POLICY(x) _SB_MAKEVALUE(x, S_BCM1480_MC_PG_POLICY) |
436 | #define G_BCM1480_MC_PG_POLICY(x) _SB_GETVALUE(x,S_BCM1480_MC_PG_POLICY,M_BCM1480_MC_PG_POLICY) | 436 | #define G_BCM1480_MC_PG_POLICY(x) _SB_GETVALUE(x, S_BCM1480_MC_PG_POLICY, M_BCM1480_MC_PG_POLICY) |
437 | 437 | ||
438 | #define K_BCM1480_MC_PG_POLICY_CLOSED 0 | 438 | #define K_BCM1480_MC_PG_POLICY_CLOSED 0 |
439 | #define K_BCM1480_MC_PG_POLICY_CAS_TIME_CHK 1 | 439 | #define K_BCM1480_MC_PG_POLICY_CAS_TIME_CHK 1 |
@@ -454,16 +454,16 @@ | |||
454 | */ | 454 | */ |
455 | 455 | ||
456 | #define S_BCM1480_MC_CLK_RATIO 0 | 456 | #define S_BCM1480_MC_CLK_RATIO 0 |
457 | #define M_BCM1480_MC_CLK_RATIO _SB_MAKEMASK(6,S_BCM1480_MC_CLK_RATIO) | 457 | #define M_BCM1480_MC_CLK_RATIO _SB_MAKEMASK(6, S_BCM1480_MC_CLK_RATIO) |
458 | #define V_BCM1480_MC_CLK_RATIO(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CLK_RATIO) | 458 | #define V_BCM1480_MC_CLK_RATIO(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CLK_RATIO) |
459 | #define G_BCM1480_MC_CLK_RATIO(x) _SB_GETVALUE(x,S_BCM1480_MC_CLK_RATIO,M_BCM1480_MC_CLK_RATIO) | 459 | #define G_BCM1480_MC_CLK_RATIO(x) _SB_GETVALUE(x, S_BCM1480_MC_CLK_RATIO, M_BCM1480_MC_CLK_RATIO) |
460 | 460 | ||
461 | #define V_BCM1480_MC_CLK_RATIO_DEFAULT V_BCM1480_MC_CLK_RATIO(10) | 461 | #define V_BCM1480_MC_CLK_RATIO_DEFAULT V_BCM1480_MC_CLK_RATIO(10) |
462 | 462 | ||
463 | #define S_BCM1480_MC_REF_RATE 8 | 463 | #define S_BCM1480_MC_REF_RATE 8 |
464 | #define M_BCM1480_MC_REF_RATE _SB_MAKEMASK(8,S_BCM1480_MC_REF_RATE) | 464 | #define M_BCM1480_MC_REF_RATE _SB_MAKEMASK(8, S_BCM1480_MC_REF_RATE) |
465 | #define V_BCM1480_MC_REF_RATE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_REF_RATE) | 465 | #define V_BCM1480_MC_REF_RATE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_REF_RATE) |
466 | #define G_BCM1480_MC_REF_RATE(x) _SB_GETVALUE(x,S_BCM1480_MC_REF_RATE,M_BCM1480_MC_REF_RATE) | 466 | #define G_BCM1480_MC_REF_RATE(x) _SB_GETVALUE(x, S_BCM1480_MC_REF_RATE, M_BCM1480_MC_REF_RATE) |
467 | 467 | ||
468 | #define K_BCM1480_MC_REF_RATE_100MHz 0x31 | 468 | #define K_BCM1480_MC_REF_RATE_100MHz 0x31 |
469 | #define K_BCM1480_MC_REF_RATE_200MHz 0x62 | 469 | #define K_BCM1480_MC_REF_RATE_200MHz 0x62 |
@@ -519,20 +519,20 @@ | |||
519 | #define M_BCM1480_MC_CS_ODD_ODT_EN _SB_MAKEMASK1(32) | 519 | #define M_BCM1480_MC_CS_ODD_ODT_EN _SB_MAKEMASK1(32) |
520 | 520 | ||
521 | #define S_BCM1480_MC_ODT0 0 | 521 | #define S_BCM1480_MC_ODT0 0 |
522 | #define M_BCM1480_MC_ODT0 _SB_MAKEMASK(8,S_BCM1480_MC_ODT0) | 522 | #define M_BCM1480_MC_ODT0 _SB_MAKEMASK(8, S_BCM1480_MC_ODT0) |
523 | #define V_BCM1480_MC_ODT0(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ODT0) | 523 | #define V_BCM1480_MC_ODT0(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ODT0) |
524 | 524 | ||
525 | #define S_BCM1480_MC_ODT2 8 | 525 | #define S_BCM1480_MC_ODT2 8 |
526 | #define M_BCM1480_MC_ODT2 _SB_MAKEMASK(8,S_BCM1480_MC_ODT2) | 526 | #define M_BCM1480_MC_ODT2 _SB_MAKEMASK(8, S_BCM1480_MC_ODT2) |
527 | #define V_BCM1480_MC_ODT2(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ODT2) | 527 | #define V_BCM1480_MC_ODT2(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ODT2) |
528 | 528 | ||
529 | #define S_BCM1480_MC_ODT4 16 | 529 | #define S_BCM1480_MC_ODT4 16 |
530 | #define M_BCM1480_MC_ODT4 _SB_MAKEMASK(8,S_BCM1480_MC_ODT4) | 530 | #define M_BCM1480_MC_ODT4 _SB_MAKEMASK(8, S_BCM1480_MC_ODT4) |
531 | #define V_BCM1480_MC_ODT4(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ODT4) | 531 | #define V_BCM1480_MC_ODT4(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ODT4) |
532 | 532 | ||
533 | #define S_BCM1480_MC_ODT6 24 | 533 | #define S_BCM1480_MC_ODT6 24 |
534 | #define M_BCM1480_MC_ODT6 _SB_MAKEMASK(8,S_BCM1480_MC_ODT6) | 534 | #define M_BCM1480_MC_ODT6 _SB_MAKEMASK(8, S_BCM1480_MC_ODT6) |
535 | #define V_BCM1480_MC_ODT6(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ODT6) | 535 | #define V_BCM1480_MC_ODT6(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ODT6) |
536 | #endif | 536 | #endif |
537 | 537 | ||
538 | /* | 538 | /* |
@@ -540,70 +540,70 @@ | |||
540 | */ | 540 | */ |
541 | 541 | ||
542 | #define S_BCM1480_MC_ADDR_COARSE_ADJ 0 | 542 | #define S_BCM1480_MC_ADDR_COARSE_ADJ 0 |
543 | #define M_BCM1480_MC_ADDR_COARSE_ADJ _SB_MAKEMASK(6,S_BCM1480_MC_ADDR_COARSE_ADJ) | 543 | #define M_BCM1480_MC_ADDR_COARSE_ADJ _SB_MAKEMASK(6, S_BCM1480_MC_ADDR_COARSE_ADJ) |
544 | #define V_BCM1480_MC_ADDR_COARSE_ADJ(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ADDR_COARSE_ADJ) | 544 | #define V_BCM1480_MC_ADDR_COARSE_ADJ(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ADDR_COARSE_ADJ) |
545 | #define G_BCM1480_MC_ADDR_COARSE_ADJ(x) _SB_GETVALUE(x,S_BCM1480_MC_ADDR_COARSE_ADJ,M_BCM1480_MC_ADDR_COARSE_ADJ) | 545 | #define G_BCM1480_MC_ADDR_COARSE_ADJ(x) _SB_GETVALUE(x, S_BCM1480_MC_ADDR_COARSE_ADJ, M_BCM1480_MC_ADDR_COARSE_ADJ) |
546 | #define V_BCM1480_MC_ADDR_COARSE_ADJ_DEFAULT V_BCM1480_MC_ADDR_COARSE_ADJ(0x0) | 546 | #define V_BCM1480_MC_ADDR_COARSE_ADJ_DEFAULT V_BCM1480_MC_ADDR_COARSE_ADJ(0x0) |
547 | 547 | ||
548 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 548 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
549 | #define S_BCM1480_MC_ADDR_FREQ_RANGE 8 | 549 | #define S_BCM1480_MC_ADDR_FREQ_RANGE 8 |
550 | #define M_BCM1480_MC_ADDR_FREQ_RANGE _SB_MAKEMASK(4,S_BCM1480_MC_ADDR_FREQ_RANGE) | 550 | #define M_BCM1480_MC_ADDR_FREQ_RANGE _SB_MAKEMASK(4, S_BCM1480_MC_ADDR_FREQ_RANGE) |
551 | #define V_BCM1480_MC_ADDR_FREQ_RANGE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ADDR_FREQ_RANGE) | 551 | #define V_BCM1480_MC_ADDR_FREQ_RANGE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ADDR_FREQ_RANGE) |
552 | #define G_BCM1480_MC_ADDR_FREQ_RANGE(x) _SB_GETVALUE(x,S_BCM1480_MC_ADDR_FREQ_RANGE,M_BCM1480_MC_ADDR_FREQ_RANGE) | 552 | #define G_BCM1480_MC_ADDR_FREQ_RANGE(x) _SB_GETVALUE(x, S_BCM1480_MC_ADDR_FREQ_RANGE, M_BCM1480_MC_ADDR_FREQ_RANGE) |
553 | #define V_BCM1480_MC_ADDR_FREQ_RANGE_DEFAULT V_BCM1480_MC_ADDR_FREQ_RANGE(0x4) | 553 | #define V_BCM1480_MC_ADDR_FREQ_RANGE_DEFAULT V_BCM1480_MC_ADDR_FREQ_RANGE(0x4) |
554 | #endif | 554 | #endif |
555 | 555 | ||
556 | #define S_BCM1480_MC_ADDR_FINE_ADJ 8 | 556 | #define S_BCM1480_MC_ADDR_FINE_ADJ 8 |
557 | #define M_BCM1480_MC_ADDR_FINE_ADJ _SB_MAKEMASK(4,S_BCM1480_MC_ADDR_FINE_ADJ) | 557 | #define M_BCM1480_MC_ADDR_FINE_ADJ _SB_MAKEMASK(4, S_BCM1480_MC_ADDR_FINE_ADJ) |
558 | #define V_BCM1480_MC_ADDR_FINE_ADJ(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ADDR_FINE_ADJ) | 558 | #define V_BCM1480_MC_ADDR_FINE_ADJ(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ADDR_FINE_ADJ) |
559 | #define G_BCM1480_MC_ADDR_FINE_ADJ(x) _SB_GETVALUE(x,S_BCM1480_MC_ADDR_FINE_ADJ,M_BCM1480_MC_ADDR_FINE_ADJ) | 559 | #define G_BCM1480_MC_ADDR_FINE_ADJ(x) _SB_GETVALUE(x, S_BCM1480_MC_ADDR_FINE_ADJ, M_BCM1480_MC_ADDR_FINE_ADJ) |
560 | #define V_BCM1480_MC_ADDR_FINE_ADJ_DEFAULT V_BCM1480_MC_ADDR_FINE_ADJ(0x8) | 560 | #define V_BCM1480_MC_ADDR_FINE_ADJ_DEFAULT V_BCM1480_MC_ADDR_FINE_ADJ(0x8) |
561 | 561 | ||
562 | #define S_BCM1480_MC_DQI_COARSE_ADJ 16 | 562 | #define S_BCM1480_MC_DQI_COARSE_ADJ 16 |
563 | #define M_BCM1480_MC_DQI_COARSE_ADJ _SB_MAKEMASK(6,S_BCM1480_MC_DQI_COARSE_ADJ) | 563 | #define M_BCM1480_MC_DQI_COARSE_ADJ _SB_MAKEMASK(6, S_BCM1480_MC_DQI_COARSE_ADJ) |
564 | #define V_BCM1480_MC_DQI_COARSE_ADJ(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DQI_COARSE_ADJ) | 564 | #define V_BCM1480_MC_DQI_COARSE_ADJ(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DQI_COARSE_ADJ) |
565 | #define G_BCM1480_MC_DQI_COARSE_ADJ(x) _SB_GETVALUE(x,S_BCM1480_MC_DQI_COARSE_ADJ,M_BCM1480_MC_DQI_COARSE_ADJ) | 565 | #define G_BCM1480_MC_DQI_COARSE_ADJ(x) _SB_GETVALUE(x, S_BCM1480_MC_DQI_COARSE_ADJ, M_BCM1480_MC_DQI_COARSE_ADJ) |
566 | #define V_BCM1480_MC_DQI_COARSE_ADJ_DEFAULT V_BCM1480_MC_DQI_COARSE_ADJ(0x0) | 566 | #define V_BCM1480_MC_DQI_COARSE_ADJ_DEFAULT V_BCM1480_MC_DQI_COARSE_ADJ(0x0) |
567 | 567 | ||
568 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 568 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
569 | #define S_BCM1480_MC_DQI_FREQ_RANGE 24 | 569 | #define S_BCM1480_MC_DQI_FREQ_RANGE 24 |
570 | #define M_BCM1480_MC_DQI_FREQ_RANGE _SB_MAKEMASK(4,S_BCM1480_MC_DQI_FREQ_RANGE) | 570 | #define M_BCM1480_MC_DQI_FREQ_RANGE _SB_MAKEMASK(4, S_BCM1480_MC_DQI_FREQ_RANGE) |
571 | #define V_BCM1480_MC_DQI_FREQ_RANGE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DQI_FREQ_RANGE) | 571 | #define V_BCM1480_MC_DQI_FREQ_RANGE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DQI_FREQ_RANGE) |
572 | #define G_BCM1480_MC_DQI_FREQ_RANGE(x) _SB_GETVALUE(x,S_BCM1480_MC_DQI_FREQ_RANGE,M_BCM1480_MC_DQI_FREQ_RANGE) | 572 | #define G_BCM1480_MC_DQI_FREQ_RANGE(x) _SB_GETVALUE(x, S_BCM1480_MC_DQI_FREQ_RANGE, M_BCM1480_MC_DQI_FREQ_RANGE) |
573 | #define V_BCM1480_MC_DQI_FREQ_RANGE_DEFAULT V_BCM1480_MC_DQI_FREQ_RANGE(0x4) | 573 | #define V_BCM1480_MC_DQI_FREQ_RANGE_DEFAULT V_BCM1480_MC_DQI_FREQ_RANGE(0x4) |
574 | #endif | 574 | #endif |
575 | 575 | ||
576 | #define S_BCM1480_MC_DQI_FINE_ADJ 24 | 576 | #define S_BCM1480_MC_DQI_FINE_ADJ 24 |
577 | #define M_BCM1480_MC_DQI_FINE_ADJ _SB_MAKEMASK(4,S_BCM1480_MC_DQI_FINE_ADJ) | 577 | #define M_BCM1480_MC_DQI_FINE_ADJ _SB_MAKEMASK(4, S_BCM1480_MC_DQI_FINE_ADJ) |
578 | #define V_BCM1480_MC_DQI_FINE_ADJ(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DQI_FINE_ADJ) | 578 | #define V_BCM1480_MC_DQI_FINE_ADJ(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DQI_FINE_ADJ) |
579 | #define G_BCM1480_MC_DQI_FINE_ADJ(x) _SB_GETVALUE(x,S_BCM1480_MC_DQI_FINE_ADJ,M_BCM1480_MC_DQI_FINE_ADJ) | 579 | #define G_BCM1480_MC_DQI_FINE_ADJ(x) _SB_GETVALUE(x, S_BCM1480_MC_DQI_FINE_ADJ, M_BCM1480_MC_DQI_FINE_ADJ) |
580 | #define V_BCM1480_MC_DQI_FINE_ADJ_DEFAULT V_BCM1480_MC_DQI_FINE_ADJ(0x8) | 580 | #define V_BCM1480_MC_DQI_FINE_ADJ_DEFAULT V_BCM1480_MC_DQI_FINE_ADJ(0x8) |
581 | 581 | ||
582 | #define S_BCM1480_MC_DQO_COARSE_ADJ 32 | 582 | #define S_BCM1480_MC_DQO_COARSE_ADJ 32 |
583 | #define M_BCM1480_MC_DQO_COARSE_ADJ _SB_MAKEMASK(6,S_BCM1480_MC_DQO_COARSE_ADJ) | 583 | #define M_BCM1480_MC_DQO_COARSE_ADJ _SB_MAKEMASK(6, S_BCM1480_MC_DQO_COARSE_ADJ) |
584 | #define V_BCM1480_MC_DQO_COARSE_ADJ(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DQO_COARSE_ADJ) | 584 | #define V_BCM1480_MC_DQO_COARSE_ADJ(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DQO_COARSE_ADJ) |
585 | #define G_BCM1480_MC_DQO_COARSE_ADJ(x) _SB_GETVALUE(x,S_BCM1480_MC_DQO_COARSE_ADJ,M_BCM1480_MC_DQO_COARSE_ADJ) | 585 | #define G_BCM1480_MC_DQO_COARSE_ADJ(x) _SB_GETVALUE(x, S_BCM1480_MC_DQO_COARSE_ADJ, M_BCM1480_MC_DQO_COARSE_ADJ) |
586 | #define V_BCM1480_MC_DQO_COARSE_ADJ_DEFAULT V_BCM1480_MC_DQO_COARSE_ADJ(0x0) | 586 | #define V_BCM1480_MC_DQO_COARSE_ADJ_DEFAULT V_BCM1480_MC_DQO_COARSE_ADJ(0x0) |
587 | 587 | ||
588 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 588 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
589 | #define S_BCM1480_MC_DQO_FREQ_RANGE 40 | 589 | #define S_BCM1480_MC_DQO_FREQ_RANGE 40 |
590 | #define M_BCM1480_MC_DQO_FREQ_RANGE _SB_MAKEMASK(4,S_BCM1480_MC_DQO_FREQ_RANGE) | 590 | #define M_BCM1480_MC_DQO_FREQ_RANGE _SB_MAKEMASK(4, S_BCM1480_MC_DQO_FREQ_RANGE) |
591 | #define V_BCM1480_MC_DQO_FREQ_RANGE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DQO_FREQ_RANGE) | 591 | #define V_BCM1480_MC_DQO_FREQ_RANGE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DQO_FREQ_RANGE) |
592 | #define G_BCM1480_MC_DQO_FREQ_RANGE(x) _SB_GETVALUE(x,S_BCM1480_MC_DQO_FREQ_RANGE,M_BCM1480_MC_DQO_FREQ_RANGE) | 592 | #define G_BCM1480_MC_DQO_FREQ_RANGE(x) _SB_GETVALUE(x, S_BCM1480_MC_DQO_FREQ_RANGE, M_BCM1480_MC_DQO_FREQ_RANGE) |
593 | #define V_BCM1480_MC_DQO_FREQ_RANGE_DEFAULT V_BCM1480_MC_DQO_FREQ_RANGE(0x4) | 593 | #define V_BCM1480_MC_DQO_FREQ_RANGE_DEFAULT V_BCM1480_MC_DQO_FREQ_RANGE(0x4) |
594 | #endif | 594 | #endif |
595 | 595 | ||
596 | #define S_BCM1480_MC_DQO_FINE_ADJ 40 | 596 | #define S_BCM1480_MC_DQO_FINE_ADJ 40 |
597 | #define M_BCM1480_MC_DQO_FINE_ADJ _SB_MAKEMASK(4,S_BCM1480_MC_DQO_FINE_ADJ) | 597 | #define M_BCM1480_MC_DQO_FINE_ADJ _SB_MAKEMASK(4, S_BCM1480_MC_DQO_FINE_ADJ) |
598 | #define V_BCM1480_MC_DQO_FINE_ADJ(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DQO_FINE_ADJ) | 598 | #define V_BCM1480_MC_DQO_FINE_ADJ(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DQO_FINE_ADJ) |
599 | #define G_BCM1480_MC_DQO_FINE_ADJ(x) _SB_GETVALUE(x,S_BCM1480_MC_DQO_FINE_ADJ,M_BCM1480_MC_DQO_FINE_ADJ) | 599 | #define G_BCM1480_MC_DQO_FINE_ADJ(x) _SB_GETVALUE(x, S_BCM1480_MC_DQO_FINE_ADJ, M_BCM1480_MC_DQO_FINE_ADJ) |
600 | #define V_BCM1480_MC_DQO_FINE_ADJ_DEFAULT V_BCM1480_MC_DQO_FINE_ADJ(0x8) | 600 | #define V_BCM1480_MC_DQO_FINE_ADJ_DEFAULT V_BCM1480_MC_DQO_FINE_ADJ(0x8) |
601 | 601 | ||
602 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 602 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
603 | #define S_BCM1480_MC_DLL_PDSEL 44 | 603 | #define S_BCM1480_MC_DLL_PDSEL 44 |
604 | #define M_BCM1480_MC_DLL_PDSEL _SB_MAKEMASK(2,S_BCM1480_MC_DLL_PDSEL) | 604 | #define M_BCM1480_MC_DLL_PDSEL _SB_MAKEMASK(2, S_BCM1480_MC_DLL_PDSEL) |
605 | #define V_BCM1480_MC_DLL_PDSEL(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DLL_PDSEL) | 605 | #define V_BCM1480_MC_DLL_PDSEL(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DLL_PDSEL) |
606 | #define G_BCM1480_MC_DLL_PDSEL(x) _SB_GETVALUE(x,S_BCM1480_MC_DLL_PDSEL,M_BCM1480_MC_DLL_PDSEL) | 606 | #define G_BCM1480_MC_DLL_PDSEL(x) _SB_GETVALUE(x, S_BCM1480_MC_DLL_PDSEL, M_BCM1480_MC_DLL_PDSEL) |
607 | #define V_BCM1480_MC_DLL_DEFAULT_PDSEL V_BCM1480_MC_DLL_PDSEL(0x0) | 607 | #define V_BCM1480_MC_DLL_DEFAULT_PDSEL V_BCM1480_MC_DLL_PDSEL(0x0) |
608 | 608 | ||
609 | #define M_BCM1480_MC_DLL_REGBYPASS _SB_MAKEMASK1(46) | 609 | #define M_BCM1480_MC_DLL_REGBYPASS _SB_MAKEMASK1(46) |
@@ -611,38 +611,38 @@ | |||
611 | #endif | 611 | #endif |
612 | 612 | ||
613 | #define S_BCM1480_MC_DLL_DEFAULT 48 | 613 | #define S_BCM1480_MC_DLL_DEFAULT 48 |
614 | #define M_BCM1480_MC_DLL_DEFAULT _SB_MAKEMASK(6,S_BCM1480_MC_DLL_DEFAULT) | 614 | #define M_BCM1480_MC_DLL_DEFAULT _SB_MAKEMASK(6, S_BCM1480_MC_DLL_DEFAULT) |
615 | #define V_BCM1480_MC_DLL_DEFAULT(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DLL_DEFAULT) | 615 | #define V_BCM1480_MC_DLL_DEFAULT(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DLL_DEFAULT) |
616 | #define G_BCM1480_MC_DLL_DEFAULT(x) _SB_GETVALUE(x,S_BCM1480_MC_DLL_DEFAULT,M_BCM1480_MC_DLL_DEFAULT) | 616 | #define G_BCM1480_MC_DLL_DEFAULT(x) _SB_GETVALUE(x, S_BCM1480_MC_DLL_DEFAULT, M_BCM1480_MC_DLL_DEFAULT) |
617 | #define V_BCM1480_MC_DLL_DEFAULT_DEFAULT V_BCM1480_MC_DLL_DEFAULT(0x10) | 617 | #define V_BCM1480_MC_DLL_DEFAULT_DEFAULT V_BCM1480_MC_DLL_DEFAULT(0x10) |
618 | 618 | ||
619 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 619 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
620 | #define S_BCM1480_MC_DLL_REGCTRL 54 | 620 | #define S_BCM1480_MC_DLL_REGCTRL 54 |
621 | #define M_BCM1480_MC_DLL_REGCTRL _SB_MAKEMASK(2,S_BCM1480_MC_DLL_REGCTRL) | 621 | #define M_BCM1480_MC_DLL_REGCTRL _SB_MAKEMASK(2, S_BCM1480_MC_DLL_REGCTRL) |
622 | #define V_BCM1480_MC_DLL_REGCTRL(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DLL_REGCTRL) | 622 | #define V_BCM1480_MC_DLL_REGCTRL(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DLL_REGCTRL) |
623 | #define G_BCM1480_MC_DLL_REGCTRL(x) _SB_GETVALUE(x,S_BCM1480_MC_DLL_REGCTRL,M_BCM1480_MC_DLL_REGCTRL) | 623 | #define G_BCM1480_MC_DLL_REGCTRL(x) _SB_GETVALUE(x, S_BCM1480_MC_DLL_REGCTRL, M_BCM1480_MC_DLL_REGCTRL) |
624 | #define V_BCM1480_MC_DLL_DEFAULT_REGCTRL V_BCM1480_MC_DLL_REGCTRL(0x0) | 624 | #define V_BCM1480_MC_DLL_DEFAULT_REGCTRL V_BCM1480_MC_DLL_REGCTRL(0x0) |
625 | #endif | 625 | #endif |
626 | 626 | ||
627 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 627 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
628 | #define S_BCM1480_MC_DLL_FREQ_RANGE 56 | 628 | #define S_BCM1480_MC_DLL_FREQ_RANGE 56 |
629 | #define M_BCM1480_MC_DLL_FREQ_RANGE _SB_MAKEMASK(4,S_BCM1480_MC_DLL_FREQ_RANGE) | 629 | #define M_BCM1480_MC_DLL_FREQ_RANGE _SB_MAKEMASK(4, S_BCM1480_MC_DLL_FREQ_RANGE) |
630 | #define V_BCM1480_MC_DLL_FREQ_RANGE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DLL_FREQ_RANGE) | 630 | #define V_BCM1480_MC_DLL_FREQ_RANGE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DLL_FREQ_RANGE) |
631 | #define G_BCM1480_MC_DLL_FREQ_RANGE(x) _SB_GETVALUE(x,S_BCM1480_MC_DLL_FREQ_RANGE,M_BCM1480_MC_DLL_FREQ_RANGE) | 631 | #define G_BCM1480_MC_DLL_FREQ_RANGE(x) _SB_GETVALUE(x, S_BCM1480_MC_DLL_FREQ_RANGE, M_BCM1480_MC_DLL_FREQ_RANGE) |
632 | #define V_BCM1480_MC_DLL_FREQ_RANGE_DEFAULT V_BCM1480_MC_DLL_FREQ_RANGE(0x4) | 632 | #define V_BCM1480_MC_DLL_FREQ_RANGE_DEFAULT V_BCM1480_MC_DLL_FREQ_RANGE(0x4) |
633 | #endif | 633 | #endif |
634 | 634 | ||
635 | #define S_BCM1480_MC_DLL_STEP_SIZE 56 | 635 | #define S_BCM1480_MC_DLL_STEP_SIZE 56 |
636 | #define M_BCM1480_MC_DLL_STEP_SIZE _SB_MAKEMASK(4,S_BCM1480_MC_DLL_STEP_SIZE) | 636 | #define M_BCM1480_MC_DLL_STEP_SIZE _SB_MAKEMASK(4, S_BCM1480_MC_DLL_STEP_SIZE) |
637 | #define V_BCM1480_MC_DLL_STEP_SIZE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DLL_STEP_SIZE) | 637 | #define V_BCM1480_MC_DLL_STEP_SIZE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DLL_STEP_SIZE) |
638 | #define G_BCM1480_MC_DLL_STEP_SIZE(x) _SB_GETVALUE(x,S_BCM1480_MC_DLL_STEP_SIZE,M_BCM1480_MC_DLL_STEP_SIZE) | 638 | #define G_BCM1480_MC_DLL_STEP_SIZE(x) _SB_GETVALUE(x, S_BCM1480_MC_DLL_STEP_SIZE, M_BCM1480_MC_DLL_STEP_SIZE) |
639 | #define V_BCM1480_MC_DLL_STEP_SIZE_DEFAULT V_BCM1480_MC_DLL_STEP_SIZE(0x8) | 639 | #define V_BCM1480_MC_DLL_STEP_SIZE_DEFAULT V_BCM1480_MC_DLL_STEP_SIZE(0x8) |
640 | 640 | ||
641 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 641 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
642 | #define S_BCM1480_MC_DLL_BGCTRL 60 | 642 | #define S_BCM1480_MC_DLL_BGCTRL 60 |
643 | #define M_BCM1480_MC_DLL_BGCTRL _SB_MAKEMASK(2,S_BCM1480_MC_DLL_BGCTRL) | 643 | #define M_BCM1480_MC_DLL_BGCTRL _SB_MAKEMASK(2, S_BCM1480_MC_DLL_BGCTRL) |
644 | #define V_BCM1480_MC_DLL_BGCTRL(x) _SB_MAKEVALUE(x,S_BCM1480_MC_DLL_BGCTRL) | 644 | #define V_BCM1480_MC_DLL_BGCTRL(x) _SB_MAKEVALUE(x, S_BCM1480_MC_DLL_BGCTRL) |
645 | #define G_BCM1480_MC_DLL_BGCTRL(x) _SB_GETVALUE(x,S_BCM1480_MC_DLL_BGCTRL,M_BCM1480_MC_DLL_BGCTRL) | 645 | #define G_BCM1480_MC_DLL_BGCTRL(x) _SB_GETVALUE(x, S_BCM1480_MC_DLL_BGCTRL, M_BCM1480_MC_DLL_BGCTRL) |
646 | #define V_BCM1480_MC_DLL_DEFAULT_BGCTRL V_BCM1480_MC_DLL_BGCTRL(0x0) | 646 | #define V_BCM1480_MC_DLL_DEFAULT_BGCTRL V_BCM1480_MC_DLL_BGCTRL(0x0) |
647 | #endif | 647 | #endif |
648 | 648 | ||
@@ -653,37 +653,37 @@ | |||
653 | */ | 653 | */ |
654 | 654 | ||
655 | #define S_BCM1480_MC_RTT_BYP_PULLDOWN 0 | 655 | #define S_BCM1480_MC_RTT_BYP_PULLDOWN 0 |
656 | #define M_BCM1480_MC_RTT_BYP_PULLDOWN _SB_MAKEMASK(3,S_BCM1480_MC_RTT_BYP_PULLDOWN) | 656 | #define M_BCM1480_MC_RTT_BYP_PULLDOWN _SB_MAKEMASK(3, S_BCM1480_MC_RTT_BYP_PULLDOWN) |
657 | #define V_BCM1480_MC_RTT_BYP_PULLDOWN(x) _SB_MAKEVALUE(x,S_BCM1480_MC_RTT_BYP_PULLDOWN) | 657 | #define V_BCM1480_MC_RTT_BYP_PULLDOWN(x) _SB_MAKEVALUE(x, S_BCM1480_MC_RTT_BYP_PULLDOWN) |
658 | #define G_BCM1480_MC_RTT_BYP_PULLDOWN(x) _SB_GETVALUE(x,S_BCM1480_MC_RTT_BYP_PULLDOWN,M_BCM1480_MC_RTT_BYP_PULLDOWN) | 658 | #define G_BCM1480_MC_RTT_BYP_PULLDOWN(x) _SB_GETVALUE(x, S_BCM1480_MC_RTT_BYP_PULLDOWN, M_BCM1480_MC_RTT_BYP_PULLDOWN) |
659 | 659 | ||
660 | #define S_BCM1480_MC_RTT_BYP_PULLUP 6 | 660 | #define S_BCM1480_MC_RTT_BYP_PULLUP 6 |
661 | #define M_BCM1480_MC_RTT_BYP_PULLUP _SB_MAKEMASK(3,S_BCM1480_MC_RTT_BYP_PULLUP) | 661 | #define M_BCM1480_MC_RTT_BYP_PULLUP _SB_MAKEMASK(3, S_BCM1480_MC_RTT_BYP_PULLUP) |
662 | #define V_BCM1480_MC_RTT_BYP_PULLUP(x) _SB_MAKEVALUE(x,S_BCM1480_MC_RTT_BYP_PULLUP) | 662 | #define V_BCM1480_MC_RTT_BYP_PULLUP(x) _SB_MAKEVALUE(x, S_BCM1480_MC_RTT_BYP_PULLUP) |
663 | #define G_BCM1480_MC_RTT_BYP_PULLUP(x) _SB_GETVALUE(x,S_BCM1480_MC_RTT_BYP_PULLUP,M_BCM1480_MC_RTT_BYP_PULLUP) | 663 | #define G_BCM1480_MC_RTT_BYP_PULLUP(x) _SB_GETVALUE(x, S_BCM1480_MC_RTT_BYP_PULLUP, M_BCM1480_MC_RTT_BYP_PULLUP) |
664 | 664 | ||
665 | #define M_BCM1480_MC_RTT_BYPASS _SB_MAKEMASK1(8) | 665 | #define M_BCM1480_MC_RTT_BYPASS _SB_MAKEMASK1(8) |
666 | #define M_BCM1480_MC_RTT_COMP_MOV_AVG _SB_MAKEMASK1(9) | 666 | #define M_BCM1480_MC_RTT_COMP_MOV_AVG _SB_MAKEMASK1(9) |
667 | 667 | ||
668 | #define S_BCM1480_MC_PVT_BYP_C1_PULLDOWN 10 | 668 | #define S_BCM1480_MC_PVT_BYP_C1_PULLDOWN 10 |
669 | #define M_BCM1480_MC_PVT_BYP_C1_PULLDOWN _SB_MAKEMASK(4,S_BCM1480_MC_PVT_BYP_C1_PULLDOWN) | 669 | #define M_BCM1480_MC_PVT_BYP_C1_PULLDOWN _SB_MAKEMASK(4, S_BCM1480_MC_PVT_BYP_C1_PULLDOWN) |
670 | #define V_BCM1480_MC_PVT_BYP_C1_PULLDOWN(x) _SB_MAKEVALUE(x,S_BCM1480_MC_PVT_BYP_C1_PULLDOWN) | 670 | #define V_BCM1480_MC_PVT_BYP_C1_PULLDOWN(x) _SB_MAKEVALUE(x, S_BCM1480_MC_PVT_BYP_C1_PULLDOWN) |
671 | #define G_BCM1480_MC_PVT_BYP_C1_PULLDOWN(x) _SB_GETVALUE(x,S_BCM1480_MC_PVT_BYP_C1_PULLDOWN,M_BCM1480_MC_PVT_BYP_C1_PULLDOWN) | 671 | #define G_BCM1480_MC_PVT_BYP_C1_PULLDOWN(x) _SB_GETVALUE(x, S_BCM1480_MC_PVT_BYP_C1_PULLDOWN, M_BCM1480_MC_PVT_BYP_C1_PULLDOWN) |
672 | 672 | ||
673 | #define S_BCM1480_MC_PVT_BYP_C1_PULLUP 15 | 673 | #define S_BCM1480_MC_PVT_BYP_C1_PULLUP 15 |
674 | #define M_BCM1480_MC_PVT_BYP_C1_PULLUP _SB_MAKEMASK(4,S_BCM1480_MC_PVT_BYP_C1_PULLUP) | 674 | #define M_BCM1480_MC_PVT_BYP_C1_PULLUP _SB_MAKEMASK(4, S_BCM1480_MC_PVT_BYP_C1_PULLUP) |
675 | #define V_BCM1480_MC_PVT_BYP_C1_PULLUP(x) _SB_MAKEVALUE(x,S_BCM1480_MC_PVT_BYP_C1_PULLUP) | 675 | #define V_BCM1480_MC_PVT_BYP_C1_PULLUP(x) _SB_MAKEVALUE(x, S_BCM1480_MC_PVT_BYP_C1_PULLUP) |
676 | #define G_BCM1480_MC_PVT_BYP_C1_PULLUP(x) _SB_GETVALUE(x,S_BCM1480_MC_PVT_BYP_C1_PULLUP,M_BCM1480_MC_PVT_BYP_C1_PULLUP) | 676 | #define G_BCM1480_MC_PVT_BYP_C1_PULLUP(x) _SB_GETVALUE(x, S_BCM1480_MC_PVT_BYP_C1_PULLUP, M_BCM1480_MC_PVT_BYP_C1_PULLUP) |
677 | 677 | ||
678 | #define S_BCM1480_MC_PVT_BYP_C2_PULLDOWN 20 | 678 | #define S_BCM1480_MC_PVT_BYP_C2_PULLDOWN 20 |
679 | #define M_BCM1480_MC_PVT_BYP_C2_PULLDOWN _SB_MAKEMASK(4,S_BCM1480_MC_PVT_BYP_C2_PULLDOWN) | 679 | #define M_BCM1480_MC_PVT_BYP_C2_PULLDOWN _SB_MAKEMASK(4, S_BCM1480_MC_PVT_BYP_C2_PULLDOWN) |
680 | #define V_BCM1480_MC_PVT_BYP_C2_PULLDOWN(x) _SB_MAKEVALUE(x,S_BCM1480_MC_PVT_BYP_C2_PULLDOWN) | 680 | #define V_BCM1480_MC_PVT_BYP_C2_PULLDOWN(x) _SB_MAKEVALUE(x, S_BCM1480_MC_PVT_BYP_C2_PULLDOWN) |
681 | #define G_BCM1480_MC_PVT_BYP_C2_PULLDOWN(x) _SB_GETVALUE(x,S_BCM1480_MC_PVT_BYP_C2_PULLDOWN,M_BCM1480_MC_PVT_BYP_C2_PULLDOWN) | 681 | #define G_BCM1480_MC_PVT_BYP_C2_PULLDOWN(x) _SB_GETVALUE(x, S_BCM1480_MC_PVT_BYP_C2_PULLDOWN, M_BCM1480_MC_PVT_BYP_C2_PULLDOWN) |
682 | 682 | ||
683 | #define S_BCM1480_MC_PVT_BYP_C2_PULLUP 25 | 683 | #define S_BCM1480_MC_PVT_BYP_C2_PULLUP 25 |
684 | #define M_BCM1480_MC_PVT_BYP_C2_PULLUP _SB_MAKEMASK(4,S_BCM1480_MC_PVT_BYP_C2_PULLUP) | 684 | #define M_BCM1480_MC_PVT_BYP_C2_PULLUP _SB_MAKEMASK(4, S_BCM1480_MC_PVT_BYP_C2_PULLUP) |
685 | #define V_BCM1480_MC_PVT_BYP_C2_PULLUP(x) _SB_MAKEVALUE(x,S_BCM1480_MC_PVT_BYP_C2_PULLUP) | 685 | #define V_BCM1480_MC_PVT_BYP_C2_PULLUP(x) _SB_MAKEVALUE(x, S_BCM1480_MC_PVT_BYP_C2_PULLUP) |
686 | #define G_BCM1480_MC_PVT_BYP_C2_PULLUP(x) _SB_GETVALUE(x,S_BCM1480_MC_PVT_BYP_C2_PULLUP,M_BCM1480_MC_PVT_BYP_C2_PULLUP) | 686 | #define G_BCM1480_MC_PVT_BYP_C2_PULLUP(x) _SB_GETVALUE(x, S_BCM1480_MC_PVT_BYP_C2_PULLUP, M_BCM1480_MC_PVT_BYP_C2_PULLUP) |
687 | 687 | ||
688 | #define M_BCM1480_MC_PVT_BYPASS _SB_MAKEMASK1(30) | 688 | #define M_BCM1480_MC_PVT_BYPASS _SB_MAKEMASK1(30) |
689 | #define M_BCM1480_MC_PVT_COMP_MOV_AVG _SB_MAKEMASK1(31) | 689 | #define M_BCM1480_MC_PVT_COMP_MOV_AVG _SB_MAKEMASK1(31) |
@@ -703,111 +703,111 @@ | |||
703 | */ | 703 | */ |
704 | 704 | ||
705 | #define S_BCM1480_MC_DATA_INVERT 0 | 705 | #define S_BCM1480_MC_DATA_INVERT 0 |
706 | #define M_DATA_ECC_INVERT _SB_MAKEMASK(64,S_BCM1480_MC_ECC_INVERT) | 706 | #define M_DATA_ECC_INVERT _SB_MAKEMASK(64, S_BCM1480_MC_ECC_INVERT) |
707 | 707 | ||
708 | /* | 708 | /* |
709 | * ECC Test ECC Register (Table 96) | 709 | * ECC Test ECC Register (Table 96) |
710 | */ | 710 | */ |
711 | 711 | ||
712 | #define S_BCM1480_MC_ECC_INVERT 0 | 712 | #define S_BCM1480_MC_ECC_INVERT 0 |
713 | #define M_BCM1480_MC_ECC_INVERT _SB_MAKEMASK(8,S_BCM1480_MC_ECC_INVERT) | 713 | #define M_BCM1480_MC_ECC_INVERT _SB_MAKEMASK(8, S_BCM1480_MC_ECC_INVERT) |
714 | 714 | ||
715 | /* | 715 | /* |
716 | * SDRAM Timing Register (Table 97) | 716 | * SDRAM Timing Register (Table 97) |
717 | */ | 717 | */ |
718 | 718 | ||
719 | #define S_BCM1480_MC_tRCD 0 | 719 | #define S_BCM1480_MC_tRCD 0 |
720 | #define M_BCM1480_MC_tRCD _SB_MAKEMASK(4,S_BCM1480_MC_tRCD) | 720 | #define M_BCM1480_MC_tRCD _SB_MAKEMASK(4, S_BCM1480_MC_tRCD) |
721 | #define V_BCM1480_MC_tRCD(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tRCD) | 721 | #define V_BCM1480_MC_tRCD(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tRCD) |
722 | #define G_BCM1480_MC_tRCD(x) _SB_GETVALUE(x,S_BCM1480_MC_tRCD,M_BCM1480_MC_tRCD) | 722 | #define G_BCM1480_MC_tRCD(x) _SB_GETVALUE(x, S_BCM1480_MC_tRCD, M_BCM1480_MC_tRCD) |
723 | #define K_BCM1480_MC_tRCD_DEFAULT 3 | 723 | #define K_BCM1480_MC_tRCD_DEFAULT 3 |
724 | #define V_BCM1480_MC_tRCD_DEFAULT V_BCM1480_MC_tRCD(K_BCM1480_MC_tRCD_DEFAULT) | 724 | #define V_BCM1480_MC_tRCD_DEFAULT V_BCM1480_MC_tRCD(K_BCM1480_MC_tRCD_DEFAULT) |
725 | 725 | ||
726 | #define S_BCM1480_MC_tCL 4 | 726 | #define S_BCM1480_MC_tCL 4 |
727 | #define M_BCM1480_MC_tCL _SB_MAKEMASK(4,S_BCM1480_MC_tCL) | 727 | #define M_BCM1480_MC_tCL _SB_MAKEMASK(4, S_BCM1480_MC_tCL) |
728 | #define V_BCM1480_MC_tCL(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tCL) | 728 | #define V_BCM1480_MC_tCL(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tCL) |
729 | #define G_BCM1480_MC_tCL(x) _SB_GETVALUE(x,S_BCM1480_MC_tCL,M_BCM1480_MC_tCL) | 729 | #define G_BCM1480_MC_tCL(x) _SB_GETVALUE(x, S_BCM1480_MC_tCL, M_BCM1480_MC_tCL) |
730 | #define K_BCM1480_MC_tCL_DEFAULT 2 | 730 | #define K_BCM1480_MC_tCL_DEFAULT 2 |
731 | #define V_BCM1480_MC_tCL_DEFAULT V_BCM1480_MC_tCL(K_BCM1480_MC_tCL_DEFAULT) | 731 | #define V_BCM1480_MC_tCL_DEFAULT V_BCM1480_MC_tCL(K_BCM1480_MC_tCL_DEFAULT) |
732 | 732 | ||
733 | #define M_BCM1480_MC_tCrDh _SB_MAKEMASK1(8) | 733 | #define M_BCM1480_MC_tCrDh _SB_MAKEMASK1(8) |
734 | 734 | ||
735 | #define S_BCM1480_MC_tWR 9 | 735 | #define S_BCM1480_MC_tWR 9 |
736 | #define M_BCM1480_MC_tWR _SB_MAKEMASK(3,S_BCM1480_MC_tWR) | 736 | #define M_BCM1480_MC_tWR _SB_MAKEMASK(3, S_BCM1480_MC_tWR) |
737 | #define V_BCM1480_MC_tWR(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tWR) | 737 | #define V_BCM1480_MC_tWR(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tWR) |
738 | #define G_BCM1480_MC_tWR(x) _SB_GETVALUE(x,S_BCM1480_MC_tWR,M_BCM1480_MC_tWR) | 738 | #define G_BCM1480_MC_tWR(x) _SB_GETVALUE(x, S_BCM1480_MC_tWR, M_BCM1480_MC_tWR) |
739 | #define K_BCM1480_MC_tWR_DEFAULT 2 | 739 | #define K_BCM1480_MC_tWR_DEFAULT 2 |
740 | #define V_BCM1480_MC_tWR_DEFAULT V_BCM1480_MC_tWR(K_BCM1480_MC_tWR_DEFAULT) | 740 | #define V_BCM1480_MC_tWR_DEFAULT V_BCM1480_MC_tWR(K_BCM1480_MC_tWR_DEFAULT) |
741 | 741 | ||
742 | #define S_BCM1480_MC_tCwD 12 | 742 | #define S_BCM1480_MC_tCwD 12 |
743 | #define M_BCM1480_MC_tCwD _SB_MAKEMASK(4,S_BCM1480_MC_tCwD) | 743 | #define M_BCM1480_MC_tCwD _SB_MAKEMASK(4, S_BCM1480_MC_tCwD) |
744 | #define V_BCM1480_MC_tCwD(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tCwD) | 744 | #define V_BCM1480_MC_tCwD(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tCwD) |
745 | #define G_BCM1480_MC_tCwD(x) _SB_GETVALUE(x,S_BCM1480_MC_tCwD,M_BCM1480_MC_tCwD) | 745 | #define G_BCM1480_MC_tCwD(x) _SB_GETVALUE(x, S_BCM1480_MC_tCwD, M_BCM1480_MC_tCwD) |
746 | #define K_BCM1480_MC_tCwD_DEFAULT 1 | 746 | #define K_BCM1480_MC_tCwD_DEFAULT 1 |
747 | #define V_BCM1480_MC_tCwD_DEFAULT V_BCM1480_MC_tCwD(K_BCM1480_MC_tCwD_DEFAULT) | 747 | #define V_BCM1480_MC_tCwD_DEFAULT V_BCM1480_MC_tCwD(K_BCM1480_MC_tCwD_DEFAULT) |
748 | 748 | ||
749 | #define S_BCM1480_MC_tRP 16 | 749 | #define S_BCM1480_MC_tRP 16 |
750 | #define M_BCM1480_MC_tRP _SB_MAKEMASK(4,S_BCM1480_MC_tRP) | 750 | #define M_BCM1480_MC_tRP _SB_MAKEMASK(4, S_BCM1480_MC_tRP) |
751 | #define V_BCM1480_MC_tRP(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tRP) | 751 | #define V_BCM1480_MC_tRP(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tRP) |
752 | #define G_BCM1480_MC_tRP(x) _SB_GETVALUE(x,S_BCM1480_MC_tRP,M_BCM1480_MC_tRP) | 752 | #define G_BCM1480_MC_tRP(x) _SB_GETVALUE(x, S_BCM1480_MC_tRP, M_BCM1480_MC_tRP) |
753 | #define K_BCM1480_MC_tRP_DEFAULT 4 | 753 | #define K_BCM1480_MC_tRP_DEFAULT 4 |
754 | #define V_BCM1480_MC_tRP_DEFAULT V_BCM1480_MC_tRP(K_BCM1480_MC_tRP_DEFAULT) | 754 | #define V_BCM1480_MC_tRP_DEFAULT V_BCM1480_MC_tRP(K_BCM1480_MC_tRP_DEFAULT) |
755 | 755 | ||
756 | #define S_BCM1480_MC_tRRD 20 | 756 | #define S_BCM1480_MC_tRRD 20 |
757 | #define M_BCM1480_MC_tRRD _SB_MAKEMASK(4,S_BCM1480_MC_tRRD) | 757 | #define M_BCM1480_MC_tRRD _SB_MAKEMASK(4, S_BCM1480_MC_tRRD) |
758 | #define V_BCM1480_MC_tRRD(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tRRD) | 758 | #define V_BCM1480_MC_tRRD(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tRRD) |
759 | #define G_BCM1480_MC_tRRD(x) _SB_GETVALUE(x,S_BCM1480_MC_tRRD,M_BCM1480_MC_tRRD) | 759 | #define G_BCM1480_MC_tRRD(x) _SB_GETVALUE(x, S_BCM1480_MC_tRRD, M_BCM1480_MC_tRRD) |
760 | #define K_BCM1480_MC_tRRD_DEFAULT 2 | 760 | #define K_BCM1480_MC_tRRD_DEFAULT 2 |
761 | #define V_BCM1480_MC_tRRD_DEFAULT V_BCM1480_MC_tRRD(K_BCM1480_MC_tRRD_DEFAULT) | 761 | #define V_BCM1480_MC_tRRD_DEFAULT V_BCM1480_MC_tRRD(K_BCM1480_MC_tRRD_DEFAULT) |
762 | 762 | ||
763 | #define S_BCM1480_MC_tRCw 24 | 763 | #define S_BCM1480_MC_tRCw 24 |
764 | #define M_BCM1480_MC_tRCw _SB_MAKEMASK(5,S_BCM1480_MC_tRCw) | 764 | #define M_BCM1480_MC_tRCw _SB_MAKEMASK(5, S_BCM1480_MC_tRCw) |
765 | #define V_BCM1480_MC_tRCw(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tRCw) | 765 | #define V_BCM1480_MC_tRCw(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tRCw) |
766 | #define G_BCM1480_MC_tRCw(x) _SB_GETVALUE(x,S_BCM1480_MC_tRCw,M_BCM1480_MC_tRCw) | 766 | #define G_BCM1480_MC_tRCw(x) _SB_GETVALUE(x, S_BCM1480_MC_tRCw, M_BCM1480_MC_tRCw) |
767 | #define K_BCM1480_MC_tRCw_DEFAULT 10 | 767 | #define K_BCM1480_MC_tRCw_DEFAULT 10 |
768 | #define V_BCM1480_MC_tRCw_DEFAULT V_BCM1480_MC_tRCw(K_BCM1480_MC_tRCw_DEFAULT) | 768 | #define V_BCM1480_MC_tRCw_DEFAULT V_BCM1480_MC_tRCw(K_BCM1480_MC_tRCw_DEFAULT) |
769 | 769 | ||
770 | #define S_BCM1480_MC_tRCr 32 | 770 | #define S_BCM1480_MC_tRCr 32 |
771 | #define M_BCM1480_MC_tRCr _SB_MAKEMASK(5,S_BCM1480_MC_tRCr) | 771 | #define M_BCM1480_MC_tRCr _SB_MAKEMASK(5, S_BCM1480_MC_tRCr) |
772 | #define V_BCM1480_MC_tRCr(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tRCr) | 772 | #define V_BCM1480_MC_tRCr(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tRCr) |
773 | #define G_BCM1480_MC_tRCr(x) _SB_GETVALUE(x,S_BCM1480_MC_tRCr,M_BCM1480_MC_tRCr) | 773 | #define G_BCM1480_MC_tRCr(x) _SB_GETVALUE(x, S_BCM1480_MC_tRCr, M_BCM1480_MC_tRCr) |
774 | #define K_BCM1480_MC_tRCr_DEFAULT 9 | 774 | #define K_BCM1480_MC_tRCr_DEFAULT 9 |
775 | #define V_BCM1480_MC_tRCr_DEFAULT V_BCM1480_MC_tRCr(K_BCM1480_MC_tRCr_DEFAULT) | 775 | #define V_BCM1480_MC_tRCr_DEFAULT V_BCM1480_MC_tRCr(K_BCM1480_MC_tRCr_DEFAULT) |
776 | 776 | ||
777 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 777 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
778 | #define S_BCM1480_MC_tFAW 40 | 778 | #define S_BCM1480_MC_tFAW 40 |
779 | #define M_BCM1480_MC_tFAW _SB_MAKEMASK(6,S_BCM1480_MC_tFAW) | 779 | #define M_BCM1480_MC_tFAW _SB_MAKEMASK(6, S_BCM1480_MC_tFAW) |
780 | #define V_BCM1480_MC_tFAW(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tFAW) | 780 | #define V_BCM1480_MC_tFAW(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tFAW) |
781 | #define G_BCM1480_MC_tFAW(x) _SB_GETVALUE(x,S_BCM1480_MC_tFAW,M_BCM1480_MC_tFAW) | 781 | #define G_BCM1480_MC_tFAW(x) _SB_GETVALUE(x, S_BCM1480_MC_tFAW, M_BCM1480_MC_tFAW) |
782 | #define K_BCM1480_MC_tFAW_DEFAULT 0 | 782 | #define K_BCM1480_MC_tFAW_DEFAULT 0 |
783 | #define V_BCM1480_MC_tFAW_DEFAULT V_BCM1480_MC_tFAW(K_BCM1480_MC_tFAW_DEFAULT) | 783 | #define V_BCM1480_MC_tFAW_DEFAULT V_BCM1480_MC_tFAW(K_BCM1480_MC_tFAW_DEFAULT) |
784 | #endif | 784 | #endif |
785 | 785 | ||
786 | #define S_BCM1480_MC_tRFC 48 | 786 | #define S_BCM1480_MC_tRFC 48 |
787 | #define M_BCM1480_MC_tRFC _SB_MAKEMASK(7,S_BCM1480_MC_tRFC) | 787 | #define M_BCM1480_MC_tRFC _SB_MAKEMASK(7, S_BCM1480_MC_tRFC) |
788 | #define V_BCM1480_MC_tRFC(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tRFC) | 788 | #define V_BCM1480_MC_tRFC(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tRFC) |
789 | #define G_BCM1480_MC_tRFC(x) _SB_GETVALUE(x,S_BCM1480_MC_tRFC,M_BCM1480_MC_tRFC) | 789 | #define G_BCM1480_MC_tRFC(x) _SB_GETVALUE(x, S_BCM1480_MC_tRFC, M_BCM1480_MC_tRFC) |
790 | #define K_BCM1480_MC_tRFC_DEFAULT 12 | 790 | #define K_BCM1480_MC_tRFC_DEFAULT 12 |
791 | #define V_BCM1480_MC_tRFC_DEFAULT V_BCM1480_MC_tRFC(K_BCM1480_MC_tRFC_DEFAULT) | 791 | #define V_BCM1480_MC_tRFC_DEFAULT V_BCM1480_MC_tRFC(K_BCM1480_MC_tRFC_DEFAULT) |
792 | 792 | ||
793 | #define S_BCM1480_MC_tFIFO 56 | 793 | #define S_BCM1480_MC_tFIFO 56 |
794 | #define M_BCM1480_MC_tFIFO _SB_MAKEMASK(2,S_BCM1480_MC_tFIFO) | 794 | #define M_BCM1480_MC_tFIFO _SB_MAKEMASK(2, S_BCM1480_MC_tFIFO) |
795 | #define V_BCM1480_MC_tFIFO(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tFIFO) | 795 | #define V_BCM1480_MC_tFIFO(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tFIFO) |
796 | #define G_BCM1480_MC_tFIFO(x) _SB_GETVALUE(x,S_BCM1480_MC_tFIFO,M_BCM1480_MC_tFIFO) | 796 | #define G_BCM1480_MC_tFIFO(x) _SB_GETVALUE(x, S_BCM1480_MC_tFIFO, M_BCM1480_MC_tFIFO) |
797 | #define K_BCM1480_MC_tFIFO_DEFAULT 0 | 797 | #define K_BCM1480_MC_tFIFO_DEFAULT 0 |
798 | #define V_BCM1480_MC_tFIFO_DEFAULT V_BCM1480_MC_tFIFO(K_BCM1480_MC_tFIFO_DEFAULT) | 798 | #define V_BCM1480_MC_tFIFO_DEFAULT V_BCM1480_MC_tFIFO(K_BCM1480_MC_tFIFO_DEFAULT) |
799 | 799 | ||
800 | #define S_BCM1480_MC_tW2R 58 | 800 | #define S_BCM1480_MC_tW2R 58 |
801 | #define M_BCM1480_MC_tW2R _SB_MAKEMASK(2,S_BCM1480_MC_tW2R) | 801 | #define M_BCM1480_MC_tW2R _SB_MAKEMASK(2, S_BCM1480_MC_tW2R) |
802 | #define V_BCM1480_MC_tW2R(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tW2R) | 802 | #define V_BCM1480_MC_tW2R(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tW2R) |
803 | #define G_BCM1480_MC_tW2R(x) _SB_GETVALUE(x,S_BCM1480_MC_tW2R,M_BCM1480_MC_tW2R) | 803 | #define G_BCM1480_MC_tW2R(x) _SB_GETVALUE(x, S_BCM1480_MC_tW2R, M_BCM1480_MC_tW2R) |
804 | #define K_BCM1480_MC_tW2R_DEFAULT 1 | 804 | #define K_BCM1480_MC_tW2R_DEFAULT 1 |
805 | #define V_BCM1480_MC_tW2R_DEFAULT V_BCM1480_MC_tW2R(K_BCM1480_MC_tW2R_DEFAULT) | 805 | #define V_BCM1480_MC_tW2R_DEFAULT V_BCM1480_MC_tW2R(K_BCM1480_MC_tW2R_DEFAULT) |
806 | 806 | ||
807 | #define S_BCM1480_MC_tR2W 60 | 807 | #define S_BCM1480_MC_tR2W 60 |
808 | #define M_BCM1480_MC_tR2W _SB_MAKEMASK(2,S_BCM1480_MC_tR2W) | 808 | #define M_BCM1480_MC_tR2W _SB_MAKEMASK(2, S_BCM1480_MC_tR2W) |
809 | #define V_BCM1480_MC_tR2W(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tR2W) | 809 | #define V_BCM1480_MC_tR2W(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tR2W) |
810 | #define G_BCM1480_MC_tR2W(x) _SB_GETVALUE(x,S_BCM1480_MC_tR2W,M_BCM1480_MC_tR2W) | 810 | #define G_BCM1480_MC_tR2W(x) _SB_GETVALUE(x, S_BCM1480_MC_tR2W, M_BCM1480_MC_tR2W) |
811 | #define K_BCM1480_MC_tR2W_DEFAULT 0 | 811 | #define K_BCM1480_MC_tR2W_DEFAULT 0 |
812 | #define V_BCM1480_MC_tR2W_DEFAULT V_BCM1480_MC_tR2W(K_BCM1480_MC_tR2W_DEFAULT) | 812 | #define V_BCM1480_MC_tR2W_DEFAULT V_BCM1480_MC_tR2W(K_BCM1480_MC_tR2W_DEFAULT) |
813 | 813 | ||
@@ -835,30 +835,30 @@ | |||
835 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 835 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
836 | 836 | ||
837 | #define S_BCM1480_MC_tAL 0 | 837 | #define S_BCM1480_MC_tAL 0 |
838 | #define M_BCM1480_MC_tAL _SB_MAKEMASK(4,S_BCM1480_MC_tAL) | 838 | #define M_BCM1480_MC_tAL _SB_MAKEMASK(4, S_BCM1480_MC_tAL) |
839 | #define V_BCM1480_MC_tAL(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tAL) | 839 | #define V_BCM1480_MC_tAL(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tAL) |
840 | #define G_BCM1480_MC_tAL(x) _SB_GETVALUE(x,S_BCM1480_MC_tAL,M_BCM1480_MC_tAL) | 840 | #define G_BCM1480_MC_tAL(x) _SB_GETVALUE(x, S_BCM1480_MC_tAL, M_BCM1480_MC_tAL) |
841 | #define K_BCM1480_MC_tAL_DEFAULT 0 | 841 | #define K_BCM1480_MC_tAL_DEFAULT 0 |
842 | #define V_BCM1480_MC_tAL_DEFAULT V_BCM1480_MC_tAL(K_BCM1480_MC_tAL_DEFAULT) | 842 | #define V_BCM1480_MC_tAL_DEFAULT V_BCM1480_MC_tAL(K_BCM1480_MC_tAL_DEFAULT) |
843 | 843 | ||
844 | #define S_BCM1480_MC_tRTP 4 | 844 | #define S_BCM1480_MC_tRTP 4 |
845 | #define M_BCM1480_MC_tRTP _SB_MAKEMASK(3,S_BCM1480_MC_tRTP) | 845 | #define M_BCM1480_MC_tRTP _SB_MAKEMASK(3, S_BCM1480_MC_tRTP) |
846 | #define V_BCM1480_MC_tRTP(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tRTP) | 846 | #define V_BCM1480_MC_tRTP(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tRTP) |
847 | #define G_BCM1480_MC_tRTP(x) _SB_GETVALUE(x,S_BCM1480_MC_tRTP,M_BCM1480_MC_tRTP) | 847 | #define G_BCM1480_MC_tRTP(x) _SB_GETVALUE(x, S_BCM1480_MC_tRTP, M_BCM1480_MC_tRTP) |
848 | #define K_BCM1480_MC_tRTP_DEFAULT 2 | 848 | #define K_BCM1480_MC_tRTP_DEFAULT 2 |
849 | #define V_BCM1480_MC_tRTP_DEFAULT V_BCM1480_MC_tRTP(K_BCM1480_MC_tRTP_DEFAULT) | 849 | #define V_BCM1480_MC_tRTP_DEFAULT V_BCM1480_MC_tRTP(K_BCM1480_MC_tRTP_DEFAULT) |
850 | 850 | ||
851 | #define S_BCM1480_MC_tW2W 8 | 851 | #define S_BCM1480_MC_tW2W 8 |
852 | #define M_BCM1480_MC_tW2W _SB_MAKEMASK(2,S_BCM1480_MC_tW2W) | 852 | #define M_BCM1480_MC_tW2W _SB_MAKEMASK(2, S_BCM1480_MC_tW2W) |
853 | #define V_BCM1480_MC_tW2W(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tW2W) | 853 | #define V_BCM1480_MC_tW2W(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tW2W) |
854 | #define G_BCM1480_MC_tW2W(x) _SB_GETVALUE(x,S_BCM1480_MC_tW2W,M_BCM1480_MC_tW2W) | 854 | #define G_BCM1480_MC_tW2W(x) _SB_GETVALUE(x, S_BCM1480_MC_tW2W, M_BCM1480_MC_tW2W) |
855 | #define K_BCM1480_MC_tW2W_DEFAULT 0 | 855 | #define K_BCM1480_MC_tW2W_DEFAULT 0 |
856 | #define V_BCM1480_MC_tW2W_DEFAULT V_BCM1480_MC_tW2W(K_BCM1480_MC_tW2W_DEFAULT) | 856 | #define V_BCM1480_MC_tW2W_DEFAULT V_BCM1480_MC_tW2W(K_BCM1480_MC_tW2W_DEFAULT) |
857 | 857 | ||
858 | #define S_BCM1480_MC_tRAP 12 | 858 | #define S_BCM1480_MC_tRAP 12 |
859 | #define M_BCM1480_MC_tRAP _SB_MAKEMASK(4,S_BCM1480_MC_tRAP) | 859 | #define M_BCM1480_MC_tRAP _SB_MAKEMASK(4, S_BCM1480_MC_tRAP) |
860 | #define V_BCM1480_MC_tRAP(x) _SB_MAKEVALUE(x,S_BCM1480_MC_tRAP) | 860 | #define V_BCM1480_MC_tRAP(x) _SB_MAKEVALUE(x, S_BCM1480_MC_tRAP) |
861 | #define G_BCM1480_MC_tRAP(x) _SB_GETVALUE(x,S_BCM1480_MC_tRAP,M_BCM1480_MC_tRAP) | 861 | #define G_BCM1480_MC_tRAP(x) _SB_GETVALUE(x, S_BCM1480_MC_tRAP, M_BCM1480_MC_tRAP) |
862 | #define K_BCM1480_MC_tRAP_DEFAULT 0 | 862 | #define K_BCM1480_MC_tRAP_DEFAULT 0 |
863 | #define V_BCM1480_MC_tRAP_DEFAULT V_BCM1480_MC_tRAP(K_BCM1480_MC_tRAP_DEFAULT) | 863 | #define V_BCM1480_MC_tRAP_DEFAULT V_BCM1480_MC_tRAP(K_BCM1480_MC_tRAP_DEFAULT) |
864 | 864 | ||
@@ -875,30 +875,30 @@ | |||
875 | */ | 875 | */ |
876 | 876 | ||
877 | #define S_BCM1480_MC_BLK_SET_MARK 8 | 877 | #define S_BCM1480_MC_BLK_SET_MARK 8 |
878 | #define M_BCM1480_MC_BLK_SET_MARK _SB_MAKEMASK(4,S_BCM1480_MC_BLK_SET_MARK) | 878 | #define M_BCM1480_MC_BLK_SET_MARK _SB_MAKEMASK(4, S_BCM1480_MC_BLK_SET_MARK) |
879 | #define V_BCM1480_MC_BLK_SET_MARK(x) _SB_MAKEVALUE(x,S_BCM1480_MC_BLK_SET_MARK) | 879 | #define V_BCM1480_MC_BLK_SET_MARK(x) _SB_MAKEVALUE(x, S_BCM1480_MC_BLK_SET_MARK) |
880 | #define G_BCM1480_MC_BLK_SET_MARK(x) _SB_GETVALUE(x,S_BCM1480_MC_BLK_SET_MARK,M_BCM1480_MC_BLK_SET_MARK) | 880 | #define G_BCM1480_MC_BLK_SET_MARK(x) _SB_GETVALUE(x, S_BCM1480_MC_BLK_SET_MARK, M_BCM1480_MC_BLK_SET_MARK) |
881 | 881 | ||
882 | #define S_BCM1480_MC_BLK_CLR_MARK 12 | 882 | #define S_BCM1480_MC_BLK_CLR_MARK 12 |
883 | #define M_BCM1480_MC_BLK_CLR_MARK _SB_MAKEMASK(4,S_BCM1480_MC_BLK_CLR_MARK) | 883 | #define M_BCM1480_MC_BLK_CLR_MARK _SB_MAKEMASK(4, S_BCM1480_MC_BLK_CLR_MARK) |
884 | #define V_BCM1480_MC_BLK_CLR_MARK(x) _SB_MAKEVALUE(x,S_BCM1480_MC_BLK_CLR_MARK) | 884 | #define V_BCM1480_MC_BLK_CLR_MARK(x) _SB_MAKEVALUE(x, S_BCM1480_MC_BLK_CLR_MARK) |
885 | #define G_BCM1480_MC_BLK_CLR_MARK(x) _SB_GETVALUE(x,S_BCM1480_MC_BLK_CLR_MARK,M_BCM1480_MC_BLK_CLR_MARK) | 885 | #define G_BCM1480_MC_BLK_CLR_MARK(x) _SB_GETVALUE(x, S_BCM1480_MC_BLK_CLR_MARK, M_BCM1480_MC_BLK_CLR_MARK) |
886 | 886 | ||
887 | #define M_BCM1480_MC_PKT_PRIORITY _SB_MAKEMASK1(16) | 887 | #define M_BCM1480_MC_PKT_PRIORITY _SB_MAKEMASK1(16) |
888 | 888 | ||
889 | #define S_BCM1480_MC_MAX_AGE 20 | 889 | #define S_BCM1480_MC_MAX_AGE 20 |
890 | #define M_BCM1480_MC_MAX_AGE _SB_MAKEMASK(4,S_BCM1480_MC_MAX_AGE) | 890 | #define M_BCM1480_MC_MAX_AGE _SB_MAKEMASK(4, S_BCM1480_MC_MAX_AGE) |
891 | #define V_BCM1480_MC_MAX_AGE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_MAX_AGE) | 891 | #define V_BCM1480_MC_MAX_AGE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_MAX_AGE) |
892 | #define G_BCM1480_MC_MAX_AGE(x) _SB_GETVALUE(x,S_BCM1480_MC_MAX_AGE,M_BCM1480_MC_MAX_AGE) | 892 | #define G_BCM1480_MC_MAX_AGE(x) _SB_GETVALUE(x, S_BCM1480_MC_MAX_AGE, M_BCM1480_MC_MAX_AGE) |
893 | 893 | ||
894 | #define M_BCM1480_MC_BERR_DISABLE _SB_MAKEMASK1(29) | 894 | #define M_BCM1480_MC_BERR_DISABLE _SB_MAKEMASK1(29) |
895 | #define M_BCM1480_MC_FORCE_SEQ _SB_MAKEMASK1(30) | 895 | #define M_BCM1480_MC_FORCE_SEQ _SB_MAKEMASK1(30) |
896 | #define M_BCM1480_MC_VGEN _SB_MAKEMASK1(32) | 896 | #define M_BCM1480_MC_VGEN _SB_MAKEMASK1(32) |
897 | 897 | ||
898 | #define S_BCM1480_MC_SLEW 33 | 898 | #define S_BCM1480_MC_SLEW 33 |
899 | #define M_BCM1480_MC_SLEW _SB_MAKEMASK(2,S_BCM1480_MC_SLEW) | 899 | #define M_BCM1480_MC_SLEW _SB_MAKEMASK(2, S_BCM1480_MC_SLEW) |
900 | #define V_BCM1480_MC_SLEW(x) _SB_MAKEVALUE(x,S_BCM1480_MC_SLEW) | 900 | #define V_BCM1480_MC_SLEW(x) _SB_MAKEVALUE(x, S_BCM1480_MC_SLEW) |
901 | #define G_BCM1480_MC_SLEW(x) _SB_GETVALUE(x,S_BCM1480_MC_SLEW,M_BCM1480_MC_SLEW) | 901 | #define G_BCM1480_MC_SLEW(x) _SB_GETVALUE(x, S_BCM1480_MC_SLEW, M_BCM1480_MC_SLEW) |
902 | 902 | ||
903 | #define M_BCM1480_MC_SSTL_VOLTAGE _SB_MAKEMASK1(35) | 903 | #define M_BCM1480_MC_SSTL_VOLTAGE _SB_MAKEMASK1(35) |
904 | 904 | ||
@@ -907,19 +907,19 @@ | |||
907 | */ | 907 | */ |
908 | 908 | ||
909 | #define S_BCM1480_MC_INTLV0 0 | 909 | #define S_BCM1480_MC_INTLV0 0 |
910 | #define M_BCM1480_MC_INTLV0 _SB_MAKEMASK(6,S_BCM1480_MC_INTLV0) | 910 | #define M_BCM1480_MC_INTLV0 _SB_MAKEMASK(6, S_BCM1480_MC_INTLV0) |
911 | #define V_BCM1480_MC_INTLV0(x) _SB_MAKEVALUE(x,S_BCM1480_MC_INTLV0) | 911 | #define V_BCM1480_MC_INTLV0(x) _SB_MAKEVALUE(x, S_BCM1480_MC_INTLV0) |
912 | #define G_BCM1480_MC_INTLV0(x) _SB_GETVALUE(x,S_BCM1480_MC_INTLV0,M_BCM1480_MC_INTLV0) | 912 | #define G_BCM1480_MC_INTLV0(x) _SB_GETVALUE(x, S_BCM1480_MC_INTLV0, M_BCM1480_MC_INTLV0) |
913 | 913 | ||
914 | #define S_BCM1480_MC_INTLV1 8 | 914 | #define S_BCM1480_MC_INTLV1 8 |
915 | #define M_BCM1480_MC_INTLV1 _SB_MAKEMASK(6,S_BCM1480_MC_INTLV1) | 915 | #define M_BCM1480_MC_INTLV1 _SB_MAKEMASK(6, S_BCM1480_MC_INTLV1) |
916 | #define V_BCM1480_MC_INTLV1(x) _SB_MAKEVALUE(x,S_BCM1480_MC_INTLV1) | 916 | #define V_BCM1480_MC_INTLV1(x) _SB_MAKEVALUE(x, S_BCM1480_MC_INTLV1) |
917 | #define G_BCM1480_MC_INTLV1(x) _SB_GETVALUE(x,S_BCM1480_MC_INTLV1,M_BCM1480_MC_INTLV1) | 917 | #define G_BCM1480_MC_INTLV1(x) _SB_GETVALUE(x, S_BCM1480_MC_INTLV1, M_BCM1480_MC_INTLV1) |
918 | 918 | ||
919 | #define S_BCM1480_MC_INTLV_MODE 16 | 919 | #define S_BCM1480_MC_INTLV_MODE 16 |
920 | #define M_BCM1480_MC_INTLV_MODE _SB_MAKEMASK(3,S_BCM1480_MC_INTLV_MODE) | 920 | #define M_BCM1480_MC_INTLV_MODE _SB_MAKEMASK(3, S_BCM1480_MC_INTLV_MODE) |
921 | #define V_BCM1480_MC_INTLV_MODE(x) _SB_MAKEVALUE(x,S_BCM1480_MC_INTLV_MODE) | 921 | #define V_BCM1480_MC_INTLV_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_MC_INTLV_MODE) |
922 | #define G_BCM1480_MC_INTLV_MODE(x) _SB_GETVALUE(x,S_BCM1480_MC_INTLV_MODE,M_BCM1480_MC_INTLV_MODE) | 922 | #define G_BCM1480_MC_INTLV_MODE(x) _SB_GETVALUE(x, S_BCM1480_MC_INTLV_MODE, M_BCM1480_MC_INTLV_MODE) |
923 | 923 | ||
924 | #define K_BCM1480_MC_INTLV_MODE_NONE 0x0 | 924 | #define K_BCM1480_MC_INTLV_MODE_NONE 0x0 |
925 | #define K_BCM1480_MC_INTLV_MODE_01 0x1 | 925 | #define K_BCM1480_MC_INTLV_MODE_01 0x1 |
@@ -938,9 +938,9 @@ | |||
938 | */ | 938 | */ |
939 | 939 | ||
940 | #define S_BCM1480_MC_ECC_ERR_ADDR 0 | 940 | #define S_BCM1480_MC_ECC_ERR_ADDR 0 |
941 | #define M_BCM1480_MC_ECC_ERR_ADDR _SB_MAKEMASK(37,S_BCM1480_MC_ECC_ERR_ADDR) | 941 | #define M_BCM1480_MC_ECC_ERR_ADDR _SB_MAKEMASK(37, S_BCM1480_MC_ECC_ERR_ADDR) |
942 | #define V_BCM1480_MC_ECC_ERR_ADDR(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ECC_ERR_ADDR) | 942 | #define V_BCM1480_MC_ECC_ERR_ADDR(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ECC_ERR_ADDR) |
943 | #define G_BCM1480_MC_ECC_ERR_ADDR(x) _SB_GETVALUE(x,S_BCM1480_MC_ECC_ERR_ADDR,M_BCM1480_MC_ECC_ERR_ADDR) | 943 | #define G_BCM1480_MC_ECC_ERR_ADDR(x) _SB_GETVALUE(x, S_BCM1480_MC_ECC_ERR_ADDR, M_BCM1480_MC_ECC_ERR_ADDR) |
944 | 944 | ||
945 | #if SIBYTE_HDR_FEATURE(1480, PASS2) | 945 | #if SIBYTE_HDR_FEATURE(1480, PASS2) |
946 | #define M_BCM1480_MC_ECC_ERR_RMW _SB_MAKEMASK1(60) | 946 | #define M_BCM1480_MC_ECC_ERR_RMW _SB_MAKEMASK1(60) |
@@ -955,27 +955,27 @@ | |||
955 | */ | 955 | */ |
956 | 956 | ||
957 | #define S_BCM1480_MC_ECC_CORR_ADDR 0 | 957 | #define S_BCM1480_MC_ECC_CORR_ADDR 0 |
958 | #define M_BCM1480_MC_ECC_CORR_ADDR _SB_MAKEMASK(37,S_BCM1480_MC_ECC_CORR_ADDR) | 958 | #define M_BCM1480_MC_ECC_CORR_ADDR _SB_MAKEMASK(37, S_BCM1480_MC_ECC_CORR_ADDR) |
959 | #define V_BCM1480_MC_ECC_CORR_ADDR(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ECC_CORR_ADDR) | 959 | #define V_BCM1480_MC_ECC_CORR_ADDR(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ECC_CORR_ADDR) |
960 | #define G_BCM1480_MC_ECC_CORR_ADDR(x) _SB_GETVALUE(x,S_BCM1480_MC_ECC_CORR_ADDR,M_BCM1480_MC_ECC_CORR_ADDR) | 960 | #define G_BCM1480_MC_ECC_CORR_ADDR(x) _SB_GETVALUE(x, S_BCM1480_MC_ECC_CORR_ADDR, M_BCM1480_MC_ECC_CORR_ADDR) |
961 | 961 | ||
962 | /* | 962 | /* |
963 | * Global ECC Correction Register (Table 103) | 963 | * Global ECC Correction Register (Table 103) |
964 | */ | 964 | */ |
965 | 965 | ||
966 | #define S_BCM1480_MC_ECC_CORRECT 0 | 966 | #define S_BCM1480_MC_ECC_CORRECT 0 |
967 | #define M_BCM1480_MC_ECC_CORRECT _SB_MAKEMASK(64,S_BCM1480_MC_ECC_CORRECT) | 967 | #define M_BCM1480_MC_ECC_CORRECT _SB_MAKEMASK(64, S_BCM1480_MC_ECC_CORRECT) |
968 | #define V_BCM1480_MC_ECC_CORRECT(x) _SB_MAKEVALUE(x,S_BCM1480_MC_ECC_CORRECT) | 968 | #define V_BCM1480_MC_ECC_CORRECT(x) _SB_MAKEVALUE(x, S_BCM1480_MC_ECC_CORRECT) |
969 | #define G_BCM1480_MC_ECC_CORRECT(x) _SB_GETVALUE(x,S_BCM1480_MC_ECC_CORRECT,M_BCM1480_MC_ECC_CORRECT) | 969 | #define G_BCM1480_MC_ECC_CORRECT(x) _SB_GETVALUE(x, S_BCM1480_MC_ECC_CORRECT, M_BCM1480_MC_ECC_CORRECT) |
970 | 970 | ||
971 | /* | 971 | /* |
972 | * Global ECC Performance Counters Control Register (Table 104) | 972 | * Global ECC Performance Counters Control Register (Table 104) |
973 | */ | 973 | */ |
974 | 974 | ||
975 | #define S_BCM1480_MC_CHANNEL_SELECT 0 | 975 | #define S_BCM1480_MC_CHANNEL_SELECT 0 |
976 | #define M_BCM1480_MC_CHANNEL_SELECT _SB_MAKEMASK(4,S_BCM1480_MC_CHANNEL_SELECT) | 976 | #define M_BCM1480_MC_CHANNEL_SELECT _SB_MAKEMASK(4, S_BCM1480_MC_CHANNEL_SELECT) |
977 | #define V_BCM1480_MC_CHANNEL_SELECT(x) _SB_MAKEVALUE(x,S_BCM1480_MC_CHANNEL_SELECT) | 977 | #define V_BCM1480_MC_CHANNEL_SELECT(x) _SB_MAKEVALUE(x, S_BCM1480_MC_CHANNEL_SELECT) |
978 | #define G_BCM1480_MC_CHANNEL_SELECT(x) _SB_GETVALUE(x,S_BCM1480_MC_CHANNEL_SELECT,M_BCM1480_MC_CHANNEL_SELECT) | 978 | #define G_BCM1480_MC_CHANNEL_SELECT(x) _SB_GETVALUE(x, S_BCM1480_MC_CHANNEL_SELECT, M_BCM1480_MC_CHANNEL_SELECT) |
979 | #define K_BCM1480_MC_CHANNEL_SELECT_0 0x1 | 979 | #define K_BCM1480_MC_CHANNEL_SELECT_0 0x1 |
980 | #define K_BCM1480_MC_CHANNEL_SELECT_1 0x2 | 980 | #define K_BCM1480_MC_CHANNEL_SELECT_1 0x2 |
981 | #define K_BCM1480_MC_CHANNEL_SELECT_2 0x4 | 981 | #define K_BCM1480_MC_CHANNEL_SELECT_2 0x4 |
diff --git a/include/asm-mips/sibyte/bcm1480_regs.h b/include/asm-mips/sibyte/bcm1480_regs.h index c34d36b6b8..b4077bb726 100644 --- a/include/asm-mips/sibyte/bcm1480_regs.h +++ b/include/asm-mips/sibyte/bcm1480_regs.h | |||
@@ -87,7 +87,7 @@ | |||
87 | #define BCM1480_MC_REGISTER_SPACING 0x1000 | 87 | #define BCM1480_MC_REGISTER_SPACING 0x1000 |
88 | 88 | ||
89 | #define A_BCM1480_MC_BASE(ctlid) (A_BCM1480_MC_BASE_0+(ctlid)*BCM1480_MC_REGISTER_SPACING) | 89 | #define A_BCM1480_MC_BASE(ctlid) (A_BCM1480_MC_BASE_0+(ctlid)*BCM1480_MC_REGISTER_SPACING) |
90 | #define A_BCM1480_MC_REGISTER(ctlid,reg) (A_BCM1480_MC_BASE(ctlid)+(reg)) | 90 | #define A_BCM1480_MC_REGISTER(ctlid, reg) (A_BCM1480_MC_BASE(ctlid)+(reg)) |
91 | 91 | ||
92 | #define R_BCM1480_MC_CONFIG 0x0000000100 | 92 | #define R_BCM1480_MC_CONFIG 0x0000000100 |
93 | #define R_BCM1480_MC_CS_START 0x0000000120 | 93 | #define R_BCM1480_MC_CS_START 0x0000000120 |
@@ -327,7 +327,7 @@ | |||
327 | #define BCM1480_SCD_NUM_WDOGS 4 | 327 | #define BCM1480_SCD_NUM_WDOGS 4 |
328 | 328 | ||
329 | #define A_BCM1480_SCD_WDOG_BASE(w) (A_BCM1480_SCD_WDOG_0+((w)&2)*0x1000 + ((w)&1)*0x100) | 329 | #define A_BCM1480_SCD_WDOG_BASE(w) (A_BCM1480_SCD_WDOG_0+((w)&2)*0x1000 + ((w)&1)*0x100) |
330 | #define A_BCM1480_SCD_WDOG_REGISTER(w,r) (A_BCM1480_SCD_WDOG_BASE(w) + (r)) | 330 | #define A_BCM1480_SCD_WDOG_REGISTER(w, r) (A_BCM1480_SCD_WDOG_BASE(w) + (r)) |
331 | 331 | ||
332 | #define A_BCM1480_SCD_WDOG_INIT_2 0x0010022050 | 332 | #define A_BCM1480_SCD_WDOG_INIT_2 0x0010022050 |
333 | #define A_BCM1480_SCD_WDOG_CNT_2 0x0010022058 | 333 | #define A_BCM1480_SCD_WDOG_CNT_2 0x0010022058 |
@@ -372,7 +372,7 @@ | |||
372 | #define BCM1480_IMR_REGISTER_SPACING_SHIFT 13 | 372 | #define BCM1480_IMR_REGISTER_SPACING_SHIFT 13 |
373 | 373 | ||
374 | #define A_BCM1480_IMR_MAPPER(cpu) (A_BCM1480_IMR_CPU0_BASE+(cpu)*BCM1480_IMR_REGISTER_SPACING) | 374 | #define A_BCM1480_IMR_MAPPER(cpu) (A_BCM1480_IMR_CPU0_BASE+(cpu)*BCM1480_IMR_REGISTER_SPACING) |
375 | #define A_BCM1480_IMR_REGISTER(cpu,reg) (A_BCM1480_IMR_MAPPER(cpu)+(reg)) | 375 | #define A_BCM1480_IMR_REGISTER(cpu, reg) (A_BCM1480_IMR_MAPPER(cpu)+(reg)) |
376 | 376 | ||
377 | /* Most IMR registers are 128 bits, implemented as non-contiguous | 377 | /* Most IMR registers are 128 bits, implemented as non-contiguous |
378 | 64-bit registers high (_H) and low (_L) */ | 378 | 64-bit registers high (_H) and low (_L) */ |
@@ -413,7 +413,7 @@ | |||
413 | 413 | ||
414 | #define A_BCM1480_IMR_ALIAS_MAILBOX(cpu) (A_BCM1480_IMR_ALIAS_MAILBOX_CPU0_BASE + \ | 414 | #define A_BCM1480_IMR_ALIAS_MAILBOX(cpu) (A_BCM1480_IMR_ALIAS_MAILBOX_CPU0_BASE + \ |
415 | (cpu)*BCM1480_IMR_ALIAS_MAILBOX_SPACING) | 415 | (cpu)*BCM1480_IMR_ALIAS_MAILBOX_SPACING) |
416 | #define A_BCM1480_IMR_ALIAS_MAILBOX_REGISTER(cpu,reg) (A_BCM1480_IMR_ALIAS_MAILBOX(cpu)+(reg)) | 416 | #define A_BCM1480_IMR_ALIAS_MAILBOX_REGISTER(cpu, reg) (A_BCM1480_IMR_ALIAS_MAILBOX(cpu)+(reg)) |
417 | 417 | ||
418 | #define R_BCM1480_IMR_ALIAS_MAILBOX_0 0x0000 /* 0x0x0 */ | 418 | #define R_BCM1480_IMR_ALIAS_MAILBOX_0 0x0000 /* 0x0x0 */ |
419 | #define R_BCM1480_IMR_ALIAS_MAILBOX_0_SET 0x0008 /* 0x0x8 */ | 419 | #define R_BCM1480_IMR_ALIAS_MAILBOX_0_SET 0x0008 /* 0x0x8 */ |
@@ -427,7 +427,7 @@ | |||
427 | #define R_BCM1480_IMR_MAILBOX_SET 0x08 | 427 | #define R_BCM1480_IMR_MAILBOX_SET 0x08 |
428 | #define R_BCM1480_IMR_MAILBOX_CLR 0x10 | 428 | #define R_BCM1480_IMR_MAILBOX_CLR 0x10 |
429 | #define R_BCM1480_IMR_MAILBOX_NUM_SPACING 0x20 | 429 | #define R_BCM1480_IMR_MAILBOX_NUM_SPACING 0x20 |
430 | #define A_BCM1480_MAILBOX_REGISTER(num,reg,cpu) \ | 430 | #define A_BCM1480_MAILBOX_REGISTER(num, reg, cpu) \ |
431 | (A_BCM1480_IMR_CPU0_BASE + \ | 431 | (A_BCM1480_IMR_CPU0_BASE + \ |
432 | (num * R_BCM1480_IMR_MAILBOX_NUM_SPACING) + \ | 432 | (num * R_BCM1480_IMR_MAILBOX_NUM_SPACING) + \ |
433 | (cpu * BCM1480_IMR_REGISTER_SPACING) + \ | 433 | (cpu * BCM1480_IMR_REGISTER_SPACING) + \ |
@@ -550,7 +550,7 @@ | |||
550 | #define BCM1480_HR_REGISTER_SPACING 0x80000 | 550 | #define BCM1480_HR_REGISTER_SPACING 0x80000 |
551 | 551 | ||
552 | #define A_BCM1480_HR_BASE(idx) (A_BCM1480_HR_BASE_0 + ((idx)*BCM1480_HR_REGISTER_SPACING)) | 552 | #define A_BCM1480_HR_BASE(idx) (A_BCM1480_HR_BASE_0 + ((idx)*BCM1480_HR_REGISTER_SPACING)) |
553 | #define A_BCM1480_HR_REGISTER(idx,reg) (A_BCM1480_HR_BASE(idx) + (reg)) | 553 | #define A_BCM1480_HR_REGISTER(idx, reg) (A_BCM1480_HR_BASE(idx) + (reg)) |
554 | 554 | ||
555 | #define R_BCM1480_HR_CFG 0x0000000000 | 555 | #define R_BCM1480_HR_CFG 0x0000000000 |
556 | 556 | ||
@@ -599,9 +599,9 @@ | |||
599 | #define BCM1480_PM_NUM_CHANNELS 32 | 599 | #define BCM1480_PM_NUM_CHANNELS 32 |
600 | 600 | ||
601 | #define A_BCM1480_PMI_LCL_BASE(idx) (A_BCM1480_PMI_LCL_0 + ((idx)*BCM1480_PM_LCL_REGISTER_SPACING)) | 601 | #define A_BCM1480_PMI_LCL_BASE(idx) (A_BCM1480_PMI_LCL_0 + ((idx)*BCM1480_PM_LCL_REGISTER_SPACING)) |
602 | #define A_BCM1480_PMI_LCL_REGISTER(idx,reg) (A_BCM1480_PMI_LCL_BASE(idx) + (reg)) | 602 | #define A_BCM1480_PMI_LCL_REGISTER(idx, reg) (A_BCM1480_PMI_LCL_BASE(idx) + (reg)) |
603 | #define A_BCM1480_PMO_LCL_BASE(idx) (A_BCM1480_PMO_LCL_0 + ((idx)*BCM1480_PM_LCL_REGISTER_SPACING)) | 603 | #define A_BCM1480_PMO_LCL_BASE(idx) (A_BCM1480_PMO_LCL_0 + ((idx)*BCM1480_PM_LCL_REGISTER_SPACING)) |
604 | #define A_BCM1480_PMO_LCL_REGISTER(idx,reg) (A_BCM1480_PMO_LCL_BASE(idx) + (reg)) | 604 | #define A_BCM1480_PMO_LCL_REGISTER(idx, reg) (A_BCM1480_PMO_LCL_BASE(idx) + (reg)) |
605 | 605 | ||
606 | #define BCM1480_PM_INT_PACKING 8 | 606 | #define BCM1480_PM_INT_PACKING 8 |
607 | #define BCM1480_PM_INT_FUNCTION_SPACING 0x40 | 607 | #define BCM1480_PM_INT_FUNCTION_SPACING 0x40 |
@@ -721,7 +721,7 @@ | |||
721 | #define BCM1480_HSP_REGISTER_SPACING 0x80000 | 721 | #define BCM1480_HSP_REGISTER_SPACING 0x80000 |
722 | 722 | ||
723 | #define A_BCM1480_HSP_BASE(idx) (A_BCM1480_HSP_BASE_0 + ((idx)*BCM1480_HSP_REGISTER_SPACING)) | 723 | #define A_BCM1480_HSP_BASE(idx) (A_BCM1480_HSP_BASE_0 + ((idx)*BCM1480_HSP_REGISTER_SPACING)) |
724 | #define A_BCM1480_HSP_REGISTER(idx,reg) (A_BCM1480_HSP_BASE(idx) + (reg)) | 724 | #define A_BCM1480_HSP_REGISTER(idx, reg) (A_BCM1480_HSP_BASE(idx) + (reg)) |
725 | 725 | ||
726 | #define R_BCM1480_HSP_RX_SPI4_CFG_0 0x0000000000 | 726 | #define R_BCM1480_HSP_RX_SPI4_CFG_0 0x0000000000 |
727 | #define R_BCM1480_HSP_RX_SPI4_CFG_1 0x0000000008 | 727 | #define R_BCM1480_HSP_RX_SPI4_CFG_1 0x0000000008 |
diff --git a/include/asm-mips/sibyte/bcm1480_scd.h b/include/asm-mips/sibyte/bcm1480_scd.h index 6111d6dcf1..25ef24cbb9 100644 --- a/include/asm-mips/sibyte/bcm1480_scd.h +++ b/include/asm-mips/sibyte/bcm1480_scd.h | |||
@@ -99,22 +99,22 @@ | |||
99 | #define M_BCM1480_SYS_IOB_DIV _SB_MAKEMASK1(5) | 99 | #define M_BCM1480_SYS_IOB_DIV _SB_MAKEMASK1(5) |
100 | 100 | ||
101 | #define S_BCM1480_SYS_PLL_DIV _SB_MAKE64(6) | 101 | #define S_BCM1480_SYS_PLL_DIV _SB_MAKE64(6) |
102 | #define M_BCM1480_SYS_PLL_DIV _SB_MAKEMASK(5,S_BCM1480_SYS_PLL_DIV) | 102 | #define M_BCM1480_SYS_PLL_DIV _SB_MAKEMASK(5, S_BCM1480_SYS_PLL_DIV) |
103 | #define V_BCM1480_SYS_PLL_DIV(x) _SB_MAKEVALUE(x,S_BCM1480_SYS_PLL_DIV) | 103 | #define V_BCM1480_SYS_PLL_DIV(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_PLL_DIV) |
104 | #define G_BCM1480_SYS_PLL_DIV(x) _SB_GETVALUE(x,S_BCM1480_SYS_PLL_DIV,M_BCM1480_SYS_PLL_DIV) | 104 | #define G_BCM1480_SYS_PLL_DIV(x) _SB_GETVALUE(x, S_BCM1480_SYS_PLL_DIV, M_BCM1480_SYS_PLL_DIV) |
105 | 105 | ||
106 | #define S_BCM1480_SYS_SW_DIV _SB_MAKE64(11) | 106 | #define S_BCM1480_SYS_SW_DIV _SB_MAKE64(11) |
107 | #define M_BCM1480_SYS_SW_DIV _SB_MAKEMASK(5,S_BCM1480_SYS_SW_DIV) | 107 | #define M_BCM1480_SYS_SW_DIV _SB_MAKEMASK(5, S_BCM1480_SYS_SW_DIV) |
108 | #define V_BCM1480_SYS_SW_DIV(x) _SB_MAKEVALUE(x,S_BCM1480_SYS_SW_DIV) | 108 | #define V_BCM1480_SYS_SW_DIV(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_SW_DIV) |
109 | #define G_BCM1480_SYS_SW_DIV(x) _SB_GETVALUE(x,S_BCM1480_SYS_SW_DIV,M_BCM1480_SYS_SW_DIV) | 109 | #define G_BCM1480_SYS_SW_DIV(x) _SB_GETVALUE(x, S_BCM1480_SYS_SW_DIV, M_BCM1480_SYS_SW_DIV) |
110 | 110 | ||
111 | #define M_BCM1480_SYS_PCMCIA_ENABLE _SB_MAKEMASK1(16) | 111 | #define M_BCM1480_SYS_PCMCIA_ENABLE _SB_MAKEMASK1(16) |
112 | #define M_BCM1480_SYS_DUART1_ENABLE _SB_MAKEMASK1(17) | 112 | #define M_BCM1480_SYS_DUART1_ENABLE _SB_MAKEMASK1(17) |
113 | 113 | ||
114 | #define S_BCM1480_SYS_BOOT_MODE _SB_MAKE64(18) | 114 | #define S_BCM1480_SYS_BOOT_MODE _SB_MAKE64(18) |
115 | #define M_BCM1480_SYS_BOOT_MODE _SB_MAKEMASK(2,S_BCM1480_SYS_BOOT_MODE) | 115 | #define M_BCM1480_SYS_BOOT_MODE _SB_MAKEMASK(2, S_BCM1480_SYS_BOOT_MODE) |
116 | #define V_BCM1480_SYS_BOOT_MODE(x) _SB_MAKEVALUE(x,S_BCM1480_SYS_BOOT_MODE) | 116 | #define V_BCM1480_SYS_BOOT_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_BOOT_MODE) |
117 | #define G_BCM1480_SYS_BOOT_MODE(x) _SB_GETVALUE(x,S_BCM1480_SYS_BOOT_MODE,M_BCM1480_SYS_BOOT_MODE) | 117 | #define G_BCM1480_SYS_BOOT_MODE(x) _SB_GETVALUE(x, S_BCM1480_SYS_BOOT_MODE, M_BCM1480_SYS_BOOT_MODE) |
118 | #define K_BCM1480_SYS_BOOT_MODE_ROM32 0 | 118 | #define K_BCM1480_SYS_BOOT_MODE_ROM32 0 |
119 | #define K_BCM1480_SYS_BOOT_MODE_ROM8 1 | 119 | #define K_BCM1480_SYS_BOOT_MODE_ROM8 1 |
120 | #define K_BCM1480_SYS_BOOT_MODE_SMBUS_SMALL 2 | 120 | #define K_BCM1480_SYS_BOOT_MODE_SMBUS_SMALL 2 |
@@ -129,16 +129,16 @@ | |||
129 | #define M_BCM1480_SYS_RESERVED25 _SB_MAKEMASK1(25) | 129 | #define M_BCM1480_SYS_RESERVED25 _SB_MAKEMASK1(25) |
130 | 130 | ||
131 | #define S_BCM1480_SYS_CONFIG 26 | 131 | #define S_BCM1480_SYS_CONFIG 26 |
132 | #define M_BCM1480_SYS_CONFIG _SB_MAKEMASK(6,S_BCM1480_SYS_CONFIG) | 132 | #define M_BCM1480_SYS_CONFIG _SB_MAKEMASK(6, S_BCM1480_SYS_CONFIG) |
133 | #define V_BCM1480_SYS_CONFIG(x) _SB_MAKEVALUE(x,S_BCM1480_SYS_CONFIG) | 133 | #define V_BCM1480_SYS_CONFIG(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_CONFIG) |
134 | #define G_BCM1480_SYS_CONFIG(x) _SB_GETVALUE(x,S_BCM1480_SYS_CONFIG,M_BCM1480_SYS_CONFIG) | 134 | #define G_BCM1480_SYS_CONFIG(x) _SB_GETVALUE(x, S_BCM1480_SYS_CONFIG, M_BCM1480_SYS_CONFIG) |
135 | 135 | ||
136 | #define M_BCM1480_SYS_RESERVED32 _SB_MAKEMASK(32,15) | 136 | #define M_BCM1480_SYS_RESERVED32 _SB_MAKEMASK(32, 15) |
137 | 137 | ||
138 | #define S_BCM1480_SYS_NODEID 47 | 138 | #define S_BCM1480_SYS_NODEID 47 |
139 | #define M_BCM1480_SYS_NODEID _SB_MAKEMASK(4,S_BCM1480_SYS_NODEID) | 139 | #define M_BCM1480_SYS_NODEID _SB_MAKEMASK(4, S_BCM1480_SYS_NODEID) |
140 | #define V_BCM1480_SYS_NODEID(x) _SB_MAKEVALUE(x,S_BCM1480_SYS_NODEID) | 140 | #define V_BCM1480_SYS_NODEID(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_NODEID) |
141 | #define G_BCM1480_SYS_NODEID(x) _SB_GETVALUE(x,S_BCM1480_SYS_NODEID,M_BCM1480_SYS_NODEID) | 141 | #define G_BCM1480_SYS_NODEID(x) _SB_GETVALUE(x, S_BCM1480_SYS_NODEID, M_BCM1480_SYS_NODEID) |
142 | 142 | ||
143 | #define M_BCM1480_SYS_CCNUMA_EN _SB_MAKEMASK1(51) | 143 | #define M_BCM1480_SYS_CCNUMA_EN _SB_MAKEMASK1(51) |
144 | #define M_BCM1480_SYS_CPU_RESET_0 _SB_MAKEMASK1(52) | 144 | #define M_BCM1480_SYS_CPU_RESET_0 _SB_MAKEMASK1(52) |
@@ -196,9 +196,9 @@ | |||
196 | #define M_BCM1480_SCD_WDOG_ENABLE _SB_MAKEMASK1(0) | 196 | #define M_BCM1480_SCD_WDOG_ENABLE _SB_MAKEMASK1(0) |
197 | 197 | ||
198 | #define S_BCM1480_SCD_WDOG_RESET_TYPE 2 | 198 | #define S_BCM1480_SCD_WDOG_RESET_TYPE 2 |
199 | #define M_BCM1480_SCD_WDOG_RESET_TYPE _SB_MAKEMASK(5,S_BCM1480_SCD_WDOG_RESET_TYPE) | 199 | #define M_BCM1480_SCD_WDOG_RESET_TYPE _SB_MAKEMASK(5, S_BCM1480_SCD_WDOG_RESET_TYPE) |
200 | #define V_BCM1480_SCD_WDOG_RESET_TYPE(x) _SB_MAKEVALUE(x,S_BCM1480_SCD_WDOG_RESET_TYPE) | 200 | #define V_BCM1480_SCD_WDOG_RESET_TYPE(x) _SB_MAKEVALUE(x, S_BCM1480_SCD_WDOG_RESET_TYPE) |
201 | #define G_BCM1480_SCD_WDOG_RESET_TYPE(x) _SB_GETVALUE(x,S_BCM1480_SCD_WDOG_RESET_TYPE,M_BCM1480_SCD_WDOG_RESET_TYPE) | 201 | #define G_BCM1480_SCD_WDOG_RESET_TYPE(x) _SB_GETVALUE(x, S_BCM1480_SCD_WDOG_RESET_TYPE, M_BCM1480_SCD_WDOG_RESET_TYPE) |
202 | 202 | ||
203 | #define K_BCM1480_SCD_WDOG_RESET_FULL 0 /* actually, (x & 1) == 0 */ | 203 | #define K_BCM1480_SCD_WDOG_RESET_FULL 0 /* actually, (x & 1) == 0 */ |
204 | #define K_BCM1480_SCD_WDOG_RESET_SOFT 1 | 204 | #define K_BCM1480_SCD_WDOG_RESET_SOFT 1 |
@@ -244,24 +244,24 @@ | |||
244 | */ | 244 | */ |
245 | 245 | ||
246 | #define S_SPC_CFG_SRC4 32 | 246 | #define S_SPC_CFG_SRC4 32 |
247 | #define M_SPC_CFG_SRC4 _SB_MAKEMASK(8,S_SPC_CFG_SRC4) | 247 | #define M_SPC_CFG_SRC4 _SB_MAKEMASK(8, S_SPC_CFG_SRC4) |
248 | #define V_SPC_CFG_SRC4(x) _SB_MAKEVALUE(x,S_SPC_CFG_SRC4) | 248 | #define V_SPC_CFG_SRC4(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC4) |
249 | #define G_SPC_CFG_SRC4(x) _SB_GETVALUE(x,S_SPC_CFG_SRC4,M_SPC_CFG_SRC4) | 249 | #define G_SPC_CFG_SRC4(x) _SB_GETVALUE(x, S_SPC_CFG_SRC4, M_SPC_CFG_SRC4) |
250 | 250 | ||
251 | #define S_SPC_CFG_SRC5 40 | 251 | #define S_SPC_CFG_SRC5 40 |
252 | #define M_SPC_CFG_SRC5 _SB_MAKEMASK(8,S_SPC_CFG_SRC5) | 252 | #define M_SPC_CFG_SRC5 _SB_MAKEMASK(8, S_SPC_CFG_SRC5) |
253 | #define V_SPC_CFG_SRC5(x) _SB_MAKEVALUE(x,S_SPC_CFG_SRC5) | 253 | #define V_SPC_CFG_SRC5(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC5) |
254 | #define G_SPC_CFG_SRC5(x) _SB_GETVALUE(x,S_SPC_CFG_SRC5,M_SPC_CFG_SRC5) | 254 | #define G_SPC_CFG_SRC5(x) _SB_GETVALUE(x, S_SPC_CFG_SRC5, M_SPC_CFG_SRC5) |
255 | 255 | ||
256 | #define S_SPC_CFG_SRC6 48 | 256 | #define S_SPC_CFG_SRC6 48 |
257 | #define M_SPC_CFG_SRC6 _SB_MAKEMASK(8,S_SPC_CFG_SRC6) | 257 | #define M_SPC_CFG_SRC6 _SB_MAKEMASK(8, S_SPC_CFG_SRC6) |
258 | #define V_SPC_CFG_SRC6(x) _SB_MAKEVALUE(x,S_SPC_CFG_SRC6) | 258 | #define V_SPC_CFG_SRC6(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC6) |
259 | #define G_SPC_CFG_SRC6(x) _SB_GETVALUE(x,S_SPC_CFG_SRC6,M_SPC_CFG_SRC6) | 259 | #define G_SPC_CFG_SRC6(x) _SB_GETVALUE(x, S_SPC_CFG_SRC6, M_SPC_CFG_SRC6) |
260 | 260 | ||
261 | #define S_SPC_CFG_SRC7 56 | 261 | #define S_SPC_CFG_SRC7 56 |
262 | #define M_SPC_CFG_SRC7 _SB_MAKEMASK(8,S_SPC_CFG_SRC7) | 262 | #define M_SPC_CFG_SRC7 _SB_MAKEMASK(8, S_SPC_CFG_SRC7) |
263 | #define V_SPC_CFG_SRC7(x) _SB_MAKEVALUE(x,S_SPC_CFG_SRC7) | 263 | #define V_SPC_CFG_SRC7(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC7) |
264 | #define G_SPC_CFG_SRC7(x) _SB_GETVALUE(x,S_SPC_CFG_SRC7,M_SPC_CFG_SRC7) | 264 | #define G_SPC_CFG_SRC7(x) _SB_GETVALUE(x, S_SPC_CFG_SRC7, M_SPC_CFG_SRC7) |
265 | 265 | ||
266 | /* | 266 | /* |
267 | * System Performance Counter Control Register (Table 32) | 267 | * System Performance Counter Control Register (Table 32) |
@@ -281,9 +281,9 @@ | |||
281 | */ | 281 | */ |
282 | 282 | ||
283 | #define S_BCM1480_SPC_CNT_COUNT 0 | 283 | #define S_BCM1480_SPC_CNT_COUNT 0 |
284 | #define M_BCM1480_SPC_CNT_COUNT _SB_MAKEMASK(40,S_BCM1480_SPC_CNT_COUNT) | 284 | #define M_BCM1480_SPC_CNT_COUNT _SB_MAKEMASK(40, S_BCM1480_SPC_CNT_COUNT) |
285 | #define V_BCM1480_SPC_CNT_COUNT(x) _SB_MAKEVALUE(x,S_BCM1480_SPC_CNT_COUNT) | 285 | #define V_BCM1480_SPC_CNT_COUNT(x) _SB_MAKEVALUE(x, S_BCM1480_SPC_CNT_COUNT) |
286 | #define G_BCM1480_SPC_CNT_COUNT(x) _SB_GETVALUE(x,S_BCM1480_SPC_CNT_COUNT,M_BCM1480_SPC_CNT_COUNT) | 286 | #define G_BCM1480_SPC_CNT_COUNT(x) _SB_GETVALUE(x, S_BCM1480_SPC_CNT_COUNT, M_BCM1480_SPC_CNT_COUNT) |
287 | 287 | ||
288 | #define M_BCM1480_SPC_CNT_OFLOW _SB_MAKEMASK1(40) | 288 | #define M_BCM1480_SPC_CNT_OFLOW _SB_MAKEMASK1(40) |
289 | 289 | ||
@@ -322,13 +322,13 @@ | |||
322 | * slightly different. | 322 | * slightly different. |
323 | */ | 323 | */ |
324 | 324 | ||
325 | #define M_BCM1480_ATRAP_INDEX _SB_MAKEMASK(4,0) | 325 | #define M_BCM1480_ATRAP_INDEX _SB_MAKEMASK(4, 0) |
326 | #define M_BCM1480_ATRAP_ADDRESS _SB_MAKEMASK(40,0) | 326 | #define M_BCM1480_ATRAP_ADDRESS _SB_MAKEMASK(40, 0) |
327 | 327 | ||
328 | #define S_BCM1480_ATRAP_CFG_CNT 0 | 328 | #define S_BCM1480_ATRAP_CFG_CNT 0 |
329 | #define M_BCM1480_ATRAP_CFG_CNT _SB_MAKEMASK(3,S_BCM1480_ATRAP_CFG_CNT) | 329 | #define M_BCM1480_ATRAP_CFG_CNT _SB_MAKEMASK(3, S_BCM1480_ATRAP_CFG_CNT) |
330 | #define V_BCM1480_ATRAP_CFG_CNT(x) _SB_MAKEVALUE(x,S_BCM1480_ATRAP_CFG_CNT) | 330 | #define V_BCM1480_ATRAP_CFG_CNT(x) _SB_MAKEVALUE(x, S_BCM1480_ATRAP_CFG_CNT) |
331 | #define G_BCM1480_ATRAP_CFG_CNT(x) _SB_GETVALUE(x,S_BCM1480_ATRAP_CFG_CNT,M_BCM1480_ATRAP_CFG_CNT) | 331 | #define G_BCM1480_ATRAP_CFG_CNT(x) _SB_GETVALUE(x, S_BCM1480_ATRAP_CFG_CNT, M_BCM1480_ATRAP_CFG_CNT) |
332 | 332 | ||
333 | #define M_BCM1480_ATRAP_CFG_WRITE _SB_MAKEMASK1(3) | 333 | #define M_BCM1480_ATRAP_CFG_WRITE _SB_MAKEMASK1(3) |
334 | #define M_BCM1480_ATRAP_CFG_ALL _SB_MAKEMASK1(4) | 334 | #define M_BCM1480_ATRAP_CFG_ALL _SB_MAKEMASK1(4) |
@@ -337,9 +337,9 @@ | |||
337 | #define M_BCM1480_ATRAP_CFG_SRCINV _SB_MAKEMASK1(7) | 337 | #define M_BCM1480_ATRAP_CFG_SRCINV _SB_MAKEMASK1(7) |
338 | 338 | ||
339 | #define S_BCM1480_ATRAP_CFG_AGENTID 8 | 339 | #define S_BCM1480_ATRAP_CFG_AGENTID 8 |
340 | #define M_BCM1480_ATRAP_CFG_AGENTID _SB_MAKEMASK(4,S_BCM1480_ATRAP_CFG_AGENTID) | 340 | #define M_BCM1480_ATRAP_CFG_AGENTID _SB_MAKEMASK(4, S_BCM1480_ATRAP_CFG_AGENTID) |
341 | #define V_BCM1480_ATRAP_CFG_AGENTID(x) _SB_MAKEVALUE(x,S_BCM1480_ATRAP_CFG_AGENTID) | 341 | #define V_BCM1480_ATRAP_CFG_AGENTID(x) _SB_MAKEVALUE(x, S_BCM1480_ATRAP_CFG_AGENTID) |
342 | #define G_BCM1480_ATRAP_CFG_AGENTID(x) _SB_GETVALUE(x,S_BCM1480_ATRAP_CFG_AGENTID,M_BCM1480_ATRAP_CFG_AGENTID) | 342 | #define G_BCM1480_ATRAP_CFG_AGENTID(x) _SB_GETVALUE(x, S_BCM1480_ATRAP_CFG_AGENTID, M_BCM1480_ATRAP_CFG_AGENTID) |
343 | 343 | ||
344 | 344 | ||
345 | #define K_BCM1480_BUS_AGENT_CPU0 0 | 345 | #define K_BCM1480_BUS_AGENT_CPU0 0 |
@@ -354,9 +354,9 @@ | |||
354 | #define K_BCM1480_BUS_AGENT_PM 10 | 354 | #define K_BCM1480_BUS_AGENT_PM 10 |
355 | 355 | ||
356 | #define S_BCM1480_ATRAP_CFG_CATTR 12 | 356 | #define S_BCM1480_ATRAP_CFG_CATTR 12 |
357 | #define M_BCM1480_ATRAP_CFG_CATTR _SB_MAKEMASK(2,S_BCM1480_ATRAP_CFG_CATTR) | 357 | #define M_BCM1480_ATRAP_CFG_CATTR _SB_MAKEMASK(2, S_BCM1480_ATRAP_CFG_CATTR) |
358 | #define V_BCM1480_ATRAP_CFG_CATTR(x) _SB_MAKEVALUE(x,S_BCM1480_ATRAP_CFG_CATTR) | 358 | #define V_BCM1480_ATRAP_CFG_CATTR(x) _SB_MAKEVALUE(x, S_BCM1480_ATRAP_CFG_CATTR) |
359 | #define G_BCM1480_ATRAP_CFG_CATTR(x) _SB_GETVALUE(x,S_BCM1480_ATRAP_CFG_CATTR,M_BCM1480_ATRAP_CFG_CATTR) | 359 | #define G_BCM1480_ATRAP_CFG_CATTR(x) _SB_GETVALUE(x, S_BCM1480_ATRAP_CFG_CATTR, M_BCM1480_ATRAP_CFG_CATTR) |
360 | 360 | ||
361 | #define K_BCM1480_ATRAP_CFG_CATTR_IGNORE 0 | 361 | #define K_BCM1480_ATRAP_CFG_CATTR_IGNORE 0 |
362 | #define K_BCM1480_ATRAP_CFG_CATTR_UNC 1 | 362 | #define K_BCM1480_ATRAP_CFG_CATTR_UNC 1 |
@@ -382,9 +382,9 @@ | |||
382 | #define M_BCM1480_SCD_TRSEQ_TID_MATCH_EN _SB_MAKEMASK1(25) | 382 | #define M_BCM1480_SCD_TRSEQ_TID_MATCH_EN _SB_MAKEMASK1(25) |
383 | 383 | ||
384 | #define S_BCM1480_SCD_TRSEQ_SWFUNC 26 | 384 | #define S_BCM1480_SCD_TRSEQ_SWFUNC 26 |
385 | #define M_BCM1480_SCD_TRSEQ_SWFUNC _SB_MAKEMASK(2,S_BCM1480_SCD_TRSEQ_SWFUNC) | 385 | #define M_BCM1480_SCD_TRSEQ_SWFUNC _SB_MAKEMASK(2, S_BCM1480_SCD_TRSEQ_SWFUNC) |
386 | #define V_BCM1480_SCD_TRSEQ_SWFUNC(x) _SB_MAKEVALUE(x,S_BCM1480_SCD_TRSEQ_SWFUNC) | 386 | #define V_BCM1480_SCD_TRSEQ_SWFUNC(x) _SB_MAKEVALUE(x, S_BCM1480_SCD_TRSEQ_SWFUNC) |
387 | #define G_BCM1480_SCD_TRSEQ_SWFUNC(x) _SB_GETVALUE(x,S_BCM1480_SCD_TRSEQ_SWFUNC,M_BCM1480_SCD_TRSEQ_SWFUNC) | 387 | #define G_BCM1480_SCD_TRSEQ_SWFUNC(x) _SB_GETVALUE(x, S_BCM1480_SCD_TRSEQ_SWFUNC, M_BCM1480_SCD_TRSEQ_SWFUNC) |
388 | 388 | ||
389 | /* | 389 | /* |
390 | * Trace Control Register (Table 49) | 390 | * Trace Control Register (Table 49) |
@@ -395,9 +395,9 @@ | |||
395 | */ | 395 | */ |
396 | 396 | ||
397 | #define S_BCM1480_SCD_TRACE_CFG_MODE 16 | 397 | #define S_BCM1480_SCD_TRACE_CFG_MODE 16 |
398 | #define M_BCM1480_SCD_TRACE_CFG_MODE _SB_MAKEMASK(2,S_BCM1480_SCD_TRACE_CFG_MODE) | 398 | #define M_BCM1480_SCD_TRACE_CFG_MODE _SB_MAKEMASK(2, S_BCM1480_SCD_TRACE_CFG_MODE) |
399 | #define V_BCM1480_SCD_TRACE_CFG_MODE(x) _SB_MAKEVALUE(x,S_BCM1480_SCD_TRACE_CFG_MODE) | 399 | #define V_BCM1480_SCD_TRACE_CFG_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_SCD_TRACE_CFG_MODE) |
400 | #define G_BCM1480_SCD_TRACE_CFG_MODE(x) _SB_GETVALUE(x,S_BCM1480_SCD_TRACE_CFG_MODE,M_BCM1480_SCD_TRACE_CFG_MODE) | 400 | #define G_BCM1480_SCD_TRACE_CFG_MODE(x) _SB_GETVALUE(x, S_BCM1480_SCD_TRACE_CFG_MODE, M_BCM1480_SCD_TRACE_CFG_MODE) |
401 | 401 | ||
402 | #define K_BCM1480_SCD_TRACE_CFG_MODE_BLOCKERS 0 | 402 | #define K_BCM1480_SCD_TRACE_CFG_MODE_BLOCKERS 0 |
403 | #define K_BCM1480_SCD_TRACE_CFG_MODE_BYTEEN_INT 1 | 403 | #define K_BCM1480_SCD_TRACE_CFG_MODE_BYTEEN_INT 1 |
diff --git a/include/asm-mips/sibyte/board.h b/include/asm-mips/sibyte/board.h index 73bce901a3..da198a1c8c 100644 --- a/include/asm-mips/sibyte/board.h +++ b/include/asm-mips/sibyte/board.h | |||
@@ -41,7 +41,7 @@ | |||
41 | #ifdef __ASSEMBLY__ | 41 | #ifdef __ASSEMBLY__ |
42 | 42 | ||
43 | #ifdef LEDS_PHYS | 43 | #ifdef LEDS_PHYS |
44 | #define setleds(t0,t1,c0,c1,c2,c3) \ | 44 | #define setleds(t0, t1, c0, c1, c2, c3) \ |
45 | li t0, (LEDS_PHYS|0xa0000000); \ | 45 | li t0, (LEDS_PHYS|0xa0000000); \ |
46 | li t1, c0; \ | 46 | li t1, c0; \ |
47 | sb t1, 0x18(t0); \ | 47 | sb t1, 0x18(t0); \ |
@@ -52,7 +52,7 @@ | |||
52 | li t1, c3; \ | 52 | li t1, c3; \ |
53 | sb t1, 0x00(t0) | 53 | sb t1, 0x00(t0) |
54 | #else | 54 | #else |
55 | #define setleds(t0,t1,c0,c1,c2,c3) | 55 | #define setleds(t0, t1, c0, c1, c2, c3) |
56 | #endif /* LEDS_PHYS */ | 56 | #endif /* LEDS_PHYS */ |
57 | 57 | ||
58 | #else | 58 | #else |
diff --git a/include/asm-mips/sibyte/sb1250_defs.h b/include/asm-mips/sibyte/sb1250_defs.h index a885491217..09365f9111 100644 --- a/include/asm-mips/sibyte/sb1250_defs.h +++ b/include/asm-mips/sibyte/sb1250_defs.h | |||
@@ -232,18 +232,18 @@ | |||
232 | * Make a mask for 'v' bits at position 'n' | 232 | * Make a mask for 'v' bits at position 'n' |
233 | */ | 233 | */ |
234 | 234 | ||
235 | #define _SB_MAKEMASK(v,n) (_SB_MAKE64((_SB_MAKE64(1)<<(v))-1) << _SB_MAKE64(n)) | 235 | #define _SB_MAKEMASK(v, n) (_SB_MAKE64((_SB_MAKE64(1)<<(v))-1) << _SB_MAKE64(n)) |
236 | #define _SB_MAKEMASK_32(v,n) (_SB_MAKE32((_SB_MAKE32(1)<<(v))-1) << _SB_MAKE32(n)) | 236 | #define _SB_MAKEMASK_32(v, n) (_SB_MAKE32((_SB_MAKE32(1)<<(v))-1) << _SB_MAKE32(n)) |
237 | 237 | ||
238 | /* | 238 | /* |
239 | * Make a value at 'v' at bit position 'n' | 239 | * Make a value at 'v' at bit position 'n' |
240 | */ | 240 | */ |
241 | 241 | ||
242 | #define _SB_MAKEVALUE(v,n) (_SB_MAKE64(v) << _SB_MAKE64(n)) | 242 | #define _SB_MAKEVALUE(v, n) (_SB_MAKE64(v) << _SB_MAKE64(n)) |
243 | #define _SB_MAKEVALUE_32(v,n) (_SB_MAKE32(v) << _SB_MAKE32(n)) | 243 | #define _SB_MAKEVALUE_32(v, n) (_SB_MAKE32(v) << _SB_MAKE32(n)) |
244 | 244 | ||
245 | #define _SB_GETVALUE(v,n,m) ((_SB_MAKE64(v) & _SB_MAKE64(m)) >> _SB_MAKE64(n)) | 245 | #define _SB_GETVALUE(v, n, m) ((_SB_MAKE64(v) & _SB_MAKE64(m)) >> _SB_MAKE64(n)) |
246 | #define _SB_GETVALUE_32(v,n,m) ((_SB_MAKE32(v) & _SB_MAKE32(m)) >> _SB_MAKE32(n)) | 246 | #define _SB_GETVALUE_32(v, n, m) ((_SB_MAKE32(v) & _SB_MAKE32(m)) >> _SB_MAKE32(n)) |
247 | 247 | ||
248 | /* | 248 | /* |
249 | * Macros to read/write on-chip registers | 249 | * Macros to read/write on-chip registers |
@@ -252,7 +252,7 @@ | |||
252 | 252 | ||
253 | 253 | ||
254 | #if defined(__mips64) && !defined(__ASSEMBLY__) | 254 | #if defined(__mips64) && !defined(__ASSEMBLY__) |
255 | #define SBWRITECSR(csr,val) *((volatile uint64_t *) PHYS_TO_K1(csr)) = (val) | 255 | #define SBWRITECSR(csr, val) *((volatile uint64_t *) PHYS_TO_K1(csr)) = (val) |
256 | #define SBREADCSR(csr) (*((volatile uint64_t *) PHYS_TO_K1(csr))) | 256 | #define SBREADCSR(csr) (*((volatile uint64_t *) PHYS_TO_K1(csr))) |
257 | #endif /* __ASSEMBLY__ */ | 257 | #endif /* __ASSEMBLY__ */ |
258 | 258 | ||
diff --git a/include/asm-mips/sibyte/sb1250_dma.h b/include/asm-mips/sibyte/sb1250_dma.h index e6145f524f..bad56171d7 100644 --- a/include/asm-mips/sibyte/sb1250_dma.h +++ b/include/asm-mips/sibyte/sb1250_dma.h | |||
@@ -57,9 +57,9 @@ | |||
57 | #define M_DMA_RESERVED1 _SB_MAKEMASK1(2) | 57 | #define M_DMA_RESERVED1 _SB_MAKEMASK1(2) |
58 | 58 | ||
59 | #define S_DMA_DESC_TYPE _SB_MAKE64(1) | 59 | #define S_DMA_DESC_TYPE _SB_MAKE64(1) |
60 | #define M_DMA_DESC_TYPE _SB_MAKEMASK(2,S_DMA_DESC_TYPE) | 60 | #define M_DMA_DESC_TYPE _SB_MAKEMASK(2, S_DMA_DESC_TYPE) |
61 | #define V_DMA_DESC_TYPE(x) _SB_MAKEVALUE(x,S_DMA_DESC_TYPE) | 61 | #define V_DMA_DESC_TYPE(x) _SB_MAKEVALUE(x, S_DMA_DESC_TYPE) |
62 | #define G_DMA_DESC_TYPE(x) _SB_GETVALUE(x,S_DMA_DESC_TYPE,M_DMA_DESC_TYPE) | 62 | #define G_DMA_DESC_TYPE(x) _SB_GETVALUE(x, S_DMA_DESC_TYPE, M_DMA_DESC_TYPE) |
63 | 63 | ||
64 | #define K_DMA_DESC_TYPE_RING_AL 0 | 64 | #define K_DMA_DESC_TYPE_RING_AL 0 |
65 | #define K_DMA_DESC_TYPE_CHAIN_AL 1 | 65 | #define K_DMA_DESC_TYPE_CHAIN_AL 1 |
@@ -76,24 +76,24 @@ | |||
76 | #define M_DMA_TDX_EN _SB_MAKEMASK1(7) | 76 | #define M_DMA_TDX_EN _SB_MAKEMASK1(7) |
77 | 77 | ||
78 | #define S_DMA_INT_PKTCNT _SB_MAKE64(8) | 78 | #define S_DMA_INT_PKTCNT _SB_MAKE64(8) |
79 | #define M_DMA_INT_PKTCNT _SB_MAKEMASK(8,S_DMA_INT_PKTCNT) | 79 | #define M_DMA_INT_PKTCNT _SB_MAKEMASK(8, S_DMA_INT_PKTCNT) |
80 | #define V_DMA_INT_PKTCNT(x) _SB_MAKEVALUE(x,S_DMA_INT_PKTCNT) | 80 | #define V_DMA_INT_PKTCNT(x) _SB_MAKEVALUE(x, S_DMA_INT_PKTCNT) |
81 | #define G_DMA_INT_PKTCNT(x) _SB_GETVALUE(x,S_DMA_INT_PKTCNT,M_DMA_INT_PKTCNT) | 81 | #define G_DMA_INT_PKTCNT(x) _SB_GETVALUE(x, S_DMA_INT_PKTCNT, M_DMA_INT_PKTCNT) |
82 | 82 | ||
83 | #define S_DMA_RINGSZ _SB_MAKE64(16) | 83 | #define S_DMA_RINGSZ _SB_MAKE64(16) |
84 | #define M_DMA_RINGSZ _SB_MAKEMASK(16,S_DMA_RINGSZ) | 84 | #define M_DMA_RINGSZ _SB_MAKEMASK(16, S_DMA_RINGSZ) |
85 | #define V_DMA_RINGSZ(x) _SB_MAKEVALUE(x,S_DMA_RINGSZ) | 85 | #define V_DMA_RINGSZ(x) _SB_MAKEVALUE(x, S_DMA_RINGSZ) |
86 | #define G_DMA_RINGSZ(x) _SB_GETVALUE(x,S_DMA_RINGSZ,M_DMA_RINGSZ) | 86 | #define G_DMA_RINGSZ(x) _SB_GETVALUE(x, S_DMA_RINGSZ, M_DMA_RINGSZ) |
87 | 87 | ||
88 | #define S_DMA_HIGH_WATERMARK _SB_MAKE64(32) | 88 | #define S_DMA_HIGH_WATERMARK _SB_MAKE64(32) |
89 | #define M_DMA_HIGH_WATERMARK _SB_MAKEMASK(16,S_DMA_HIGH_WATERMARK) | 89 | #define M_DMA_HIGH_WATERMARK _SB_MAKEMASK(16, S_DMA_HIGH_WATERMARK) |
90 | #define V_DMA_HIGH_WATERMARK(x) _SB_MAKEVALUE(x,S_DMA_HIGH_WATERMARK) | 90 | #define V_DMA_HIGH_WATERMARK(x) _SB_MAKEVALUE(x, S_DMA_HIGH_WATERMARK) |
91 | #define G_DMA_HIGH_WATERMARK(x) _SB_GETVALUE(x,S_DMA_HIGH_WATERMARK,M_DMA_HIGH_WATERMARK) | 91 | #define G_DMA_HIGH_WATERMARK(x) _SB_GETVALUE(x, S_DMA_HIGH_WATERMARK, M_DMA_HIGH_WATERMARK) |
92 | 92 | ||
93 | #define S_DMA_LOW_WATERMARK _SB_MAKE64(48) | 93 | #define S_DMA_LOW_WATERMARK _SB_MAKE64(48) |
94 | #define M_DMA_LOW_WATERMARK _SB_MAKEMASK(16,S_DMA_LOW_WATERMARK) | 94 | #define M_DMA_LOW_WATERMARK _SB_MAKEMASK(16, S_DMA_LOW_WATERMARK) |
95 | #define V_DMA_LOW_WATERMARK(x) _SB_MAKEVALUE(x,S_DMA_LOW_WATERMARK) | 95 | #define V_DMA_LOW_WATERMARK(x) _SB_MAKEVALUE(x, S_DMA_LOW_WATERMARK) |
96 | #define G_DMA_LOW_WATERMARK(x) _SB_GETVALUE(x,S_DMA_LOW_WATERMARK,M_DMA_LOW_WATERMARK) | 96 | #define G_DMA_LOW_WATERMARK(x) _SB_GETVALUE(x, S_DMA_LOW_WATERMARK, M_DMA_LOW_WATERMARK) |
97 | 97 | ||
98 | /* | 98 | /* |
99 | * Ethernet and Serial DMA Configuration Register 1 (Table 7-5) | 99 | * Ethernet and Serial DMA Configuration Register 1 (Table 7-5) |
@@ -116,37 +116,37 @@ | |||
116 | #define M_DMA_TX_FC_PAUSE_EN _SB_MAKEMASK1(7) | 116 | #define M_DMA_TX_FC_PAUSE_EN _SB_MAKEMASK1(7) |
117 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 117 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
118 | 118 | ||
119 | #define M_DMA_MBZ1 _SB_MAKEMASK(6,15) | 119 | #define M_DMA_MBZ1 _SB_MAKEMASK(6, 15) |
120 | 120 | ||
121 | #define S_DMA_HDR_SIZE _SB_MAKE64(21) | 121 | #define S_DMA_HDR_SIZE _SB_MAKE64(21) |
122 | #define M_DMA_HDR_SIZE _SB_MAKEMASK(9,S_DMA_HDR_SIZE) | 122 | #define M_DMA_HDR_SIZE _SB_MAKEMASK(9, S_DMA_HDR_SIZE) |
123 | #define V_DMA_HDR_SIZE(x) _SB_MAKEVALUE(x,S_DMA_HDR_SIZE) | 123 | #define V_DMA_HDR_SIZE(x) _SB_MAKEVALUE(x, S_DMA_HDR_SIZE) |
124 | #define G_DMA_HDR_SIZE(x) _SB_GETVALUE(x,S_DMA_HDR_SIZE,M_DMA_HDR_SIZE) | 124 | #define G_DMA_HDR_SIZE(x) _SB_GETVALUE(x, S_DMA_HDR_SIZE, M_DMA_HDR_SIZE) |
125 | 125 | ||
126 | #define M_DMA_MBZ2 _SB_MAKEMASK(5,32) | 126 | #define M_DMA_MBZ2 _SB_MAKEMASK(5, 32) |
127 | 127 | ||
128 | #define S_DMA_ASICXFR_SIZE _SB_MAKE64(37) | 128 | #define S_DMA_ASICXFR_SIZE _SB_MAKE64(37) |
129 | #define M_DMA_ASICXFR_SIZE _SB_MAKEMASK(9,S_DMA_ASICXFR_SIZE) | 129 | #define M_DMA_ASICXFR_SIZE _SB_MAKEMASK(9, S_DMA_ASICXFR_SIZE) |
130 | #define V_DMA_ASICXFR_SIZE(x) _SB_MAKEVALUE(x,S_DMA_ASICXFR_SIZE) | 130 | #define V_DMA_ASICXFR_SIZE(x) _SB_MAKEVALUE(x, S_DMA_ASICXFR_SIZE) |
131 | #define G_DMA_ASICXFR_SIZE(x) _SB_GETVALUE(x,S_DMA_ASICXFR_SIZE,M_DMA_ASICXFR_SIZE) | 131 | #define G_DMA_ASICXFR_SIZE(x) _SB_GETVALUE(x, S_DMA_ASICXFR_SIZE, M_DMA_ASICXFR_SIZE) |
132 | 132 | ||
133 | #define S_DMA_INT_TIMEOUT _SB_MAKE64(48) | 133 | #define S_DMA_INT_TIMEOUT _SB_MAKE64(48) |
134 | #define M_DMA_INT_TIMEOUT _SB_MAKEMASK(16,S_DMA_INT_TIMEOUT) | 134 | #define M_DMA_INT_TIMEOUT _SB_MAKEMASK(16, S_DMA_INT_TIMEOUT) |
135 | #define V_DMA_INT_TIMEOUT(x) _SB_MAKEVALUE(x,S_DMA_INT_TIMEOUT) | 135 | #define V_DMA_INT_TIMEOUT(x) _SB_MAKEVALUE(x, S_DMA_INT_TIMEOUT) |
136 | #define G_DMA_INT_TIMEOUT(x) _SB_GETVALUE(x,S_DMA_INT_TIMEOUT,M_DMA_INT_TIMEOUT) | 136 | #define G_DMA_INT_TIMEOUT(x) _SB_GETVALUE(x, S_DMA_INT_TIMEOUT, M_DMA_INT_TIMEOUT) |
137 | 137 | ||
138 | /* | 138 | /* |
139 | * Ethernet and Serial DMA Descriptor base address (Table 7-6) | 139 | * Ethernet and Serial DMA Descriptor base address (Table 7-6) |
140 | */ | 140 | */ |
141 | 141 | ||
142 | #define M_DMA_DSCRBASE_MBZ _SB_MAKEMASK(4,0) | 142 | #define M_DMA_DSCRBASE_MBZ _SB_MAKEMASK(4, 0) |
143 | 143 | ||
144 | 144 | ||
145 | /* | 145 | /* |
146 | * ASIC Mode Base Address (Table 7-7) | 146 | * ASIC Mode Base Address (Table 7-7) |
147 | */ | 147 | */ |
148 | 148 | ||
149 | #define M_DMA_ASIC_BASE_MBZ _SB_MAKEMASK(20,0) | 149 | #define M_DMA_ASIC_BASE_MBZ _SB_MAKEMASK(20, 0) |
150 | 150 | ||
151 | /* | 151 | /* |
152 | * DMA Descriptor Count Registers (Table 7-8) | 152 | * DMA Descriptor Count Registers (Table 7-8) |
@@ -160,9 +160,9 @@ | |||
160 | */ | 160 | */ |
161 | 161 | ||
162 | #define S_DMA_CURDSCR_ADDR _SB_MAKE64(0) | 162 | #define S_DMA_CURDSCR_ADDR _SB_MAKE64(0) |
163 | #define M_DMA_CURDSCR_ADDR _SB_MAKEMASK(40,S_DMA_CURDSCR_ADDR) | 163 | #define M_DMA_CURDSCR_ADDR _SB_MAKEMASK(40, S_DMA_CURDSCR_ADDR) |
164 | #define S_DMA_CURDSCR_COUNT _SB_MAKE64(40) | 164 | #define S_DMA_CURDSCR_COUNT _SB_MAKE64(40) |
165 | #define M_DMA_CURDSCR_COUNT _SB_MAKEMASK(16,S_DMA_CURDSCR_COUNT) | 165 | #define M_DMA_CURDSCR_COUNT _SB_MAKEMASK(16, S_DMA_CURDSCR_COUNT) |
166 | 166 | ||
167 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 167 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
168 | #define M_DMA_TX_CH_PAUSE_ON _SB_MAKEMASK1(56) | 168 | #define M_DMA_TX_CH_PAUSE_ON _SB_MAKEMASK1(56) |
@@ -173,12 +173,12 @@ | |||
173 | */ | 173 | */ |
174 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 174 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
175 | #define S_DMA_OODLOST_RX _SB_MAKE64(0) | 175 | #define S_DMA_OODLOST_RX _SB_MAKE64(0) |
176 | #define M_DMA_OODLOST_RX _SB_MAKEMASK(16,S_DMA_OODLOST_RX) | 176 | #define M_DMA_OODLOST_RX _SB_MAKEMASK(16, S_DMA_OODLOST_RX) |
177 | #define G_DMA_OODLOST_RX(x) _SB_GETVALUE(x,S_DMA_OODLOST_RX,M_DMA_OODLOST_RX) | 177 | #define G_DMA_OODLOST_RX(x) _SB_GETVALUE(x, S_DMA_OODLOST_RX, M_DMA_OODLOST_RX) |
178 | 178 | ||
179 | #define S_DMA_EOP_COUNT_RX _SB_MAKE64(16) | 179 | #define S_DMA_EOP_COUNT_RX _SB_MAKE64(16) |
180 | #define M_DMA_EOP_COUNT_RX _SB_MAKEMASK(8,S_DMA_EOP_COUNT_RX) | 180 | #define M_DMA_EOP_COUNT_RX _SB_MAKEMASK(8, S_DMA_EOP_COUNT_RX) |
181 | #define G_DMA_EOP_COUNT_RX(x) _SB_GETVALUE(x,S_DMA_EOP_COUNT_RX,M_DMA_EOP_COUNT_RX) | 181 | #define G_DMA_EOP_COUNT_RX(x) _SB_GETVALUE(x, S_DMA_EOP_COUNT_RX, M_DMA_EOP_COUNT_RX) |
182 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 182 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
183 | 183 | ||
184 | /* ********************************************************************* | 184 | /* ********************************************************************* |
@@ -190,39 +190,39 @@ | |||
190 | */ | 190 | */ |
191 | 191 | ||
192 | #define S_DMA_DSCRA_OFFSET _SB_MAKE64(0) | 192 | #define S_DMA_DSCRA_OFFSET _SB_MAKE64(0) |
193 | #define M_DMA_DSCRA_OFFSET _SB_MAKEMASK(5,S_DMA_DSCRA_OFFSET) | 193 | #define M_DMA_DSCRA_OFFSET _SB_MAKEMASK(5, S_DMA_DSCRA_OFFSET) |
194 | #define V_DMA_DSCRA_OFFSET(x) _SB_MAKEVALUE(x,S_DMA_DSCRA_OFFSET) | 194 | #define V_DMA_DSCRA_OFFSET(x) _SB_MAKEVALUE(x, S_DMA_DSCRA_OFFSET) |
195 | #define G_DMA_DSCRA_OFFSET(x) _SB_GETVALUE(x,S_DMA_DSCRA_OFFSET,M_DMA_DSCRA_OFFSET) | 195 | #define G_DMA_DSCRA_OFFSET(x) _SB_GETVALUE(x, S_DMA_DSCRA_OFFSET, M_DMA_DSCRA_OFFSET) |
196 | 196 | ||
197 | /* Note: Don't shift the address over, just mask it with the mask below */ | 197 | /* Note: Don't shift the address over, just mask it with the mask below */ |
198 | #define S_DMA_DSCRA_A_ADDR _SB_MAKE64(5) | 198 | #define S_DMA_DSCRA_A_ADDR _SB_MAKE64(5) |
199 | #define M_DMA_DSCRA_A_ADDR _SB_MAKEMASK(35,S_DMA_DSCRA_A_ADDR) | 199 | #define M_DMA_DSCRA_A_ADDR _SB_MAKEMASK(35, S_DMA_DSCRA_A_ADDR) |
200 | 200 | ||
201 | #define M_DMA_DSCRA_A_ADDR_OFFSET (M_DMA_DSCRA_OFFSET | M_DMA_DSCRA_A_ADDR) | 201 | #define M_DMA_DSCRA_A_ADDR_OFFSET (M_DMA_DSCRA_OFFSET | M_DMA_DSCRA_A_ADDR) |
202 | 202 | ||
203 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 203 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
204 | #define S_DMA_DSCRA_A_ADDR_UA _SB_MAKE64(0) | 204 | #define S_DMA_DSCRA_A_ADDR_UA _SB_MAKE64(0) |
205 | #define M_DMA_DSCRA_A_ADDR_UA _SB_MAKEMASK(40,S_DMA_DSCRA_A_ADDR_UA) | 205 | #define M_DMA_DSCRA_A_ADDR_UA _SB_MAKEMASK(40, S_DMA_DSCRA_A_ADDR_UA) |
206 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 206 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
207 | 207 | ||
208 | #define S_DMA_DSCRA_A_SIZE _SB_MAKE64(40) | 208 | #define S_DMA_DSCRA_A_SIZE _SB_MAKE64(40) |
209 | #define M_DMA_DSCRA_A_SIZE _SB_MAKEMASK(9,S_DMA_DSCRA_A_SIZE) | 209 | #define M_DMA_DSCRA_A_SIZE _SB_MAKEMASK(9, S_DMA_DSCRA_A_SIZE) |
210 | #define V_DMA_DSCRA_A_SIZE(x) _SB_MAKEVALUE(x,S_DMA_DSCRA_A_SIZE) | 210 | #define V_DMA_DSCRA_A_SIZE(x) _SB_MAKEVALUE(x, S_DMA_DSCRA_A_SIZE) |
211 | #define G_DMA_DSCRA_A_SIZE(x) _SB_GETVALUE(x,S_DMA_DSCRA_A_SIZE,M_DMA_DSCRA_A_SIZE) | 211 | #define G_DMA_DSCRA_A_SIZE(x) _SB_GETVALUE(x, S_DMA_DSCRA_A_SIZE, M_DMA_DSCRA_A_SIZE) |
212 | 212 | ||
213 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 213 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
214 | #define S_DMA_DSCRA_DSCR_CNT _SB_MAKE64(40) | 214 | #define S_DMA_DSCRA_DSCR_CNT _SB_MAKE64(40) |
215 | #define M_DMA_DSCRA_DSCR_CNT _SB_MAKEMASK(8,S_DMA_DSCRA_DSCR_CNT) | 215 | #define M_DMA_DSCRA_DSCR_CNT _SB_MAKEMASK(8, S_DMA_DSCRA_DSCR_CNT) |
216 | #define G_DMA_DSCRA_DSCR_CNT(x) _SB_GETVALUE(x,S_DMA_DSCRA_DSCR_CNT,M_DMA_DSCRA_DSCR_CNT) | 216 | #define G_DMA_DSCRA_DSCR_CNT(x) _SB_GETVALUE(x, S_DMA_DSCRA_DSCR_CNT, M_DMA_DSCRA_DSCR_CNT) |
217 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 217 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
218 | 218 | ||
219 | #define M_DMA_DSCRA_INTERRUPT _SB_MAKEMASK1(49) | 219 | #define M_DMA_DSCRA_INTERRUPT _SB_MAKEMASK1(49) |
220 | #define M_DMA_DSCRA_OFFSETB _SB_MAKEMASK1(50) | 220 | #define M_DMA_DSCRA_OFFSETB _SB_MAKEMASK1(50) |
221 | 221 | ||
222 | #define S_DMA_DSCRA_STATUS _SB_MAKE64(51) | 222 | #define S_DMA_DSCRA_STATUS _SB_MAKE64(51) |
223 | #define M_DMA_DSCRA_STATUS _SB_MAKEMASK(13,S_DMA_DSCRA_STATUS) | 223 | #define M_DMA_DSCRA_STATUS _SB_MAKEMASK(13, S_DMA_DSCRA_STATUS) |
224 | #define V_DMA_DSCRA_STATUS(x) _SB_MAKEVALUE(x,S_DMA_DSCRA_STATUS) | 224 | #define V_DMA_DSCRA_STATUS(x) _SB_MAKEVALUE(x, S_DMA_DSCRA_STATUS) |
225 | #define G_DMA_DSCRA_STATUS(x) _SB_GETVALUE(x,S_DMA_DSCRA_STATUS,M_DMA_DSCRA_STATUS) | 225 | #define G_DMA_DSCRA_STATUS(x) _SB_GETVALUE(x, S_DMA_DSCRA_STATUS, M_DMA_DSCRA_STATUS) |
226 | 226 | ||
227 | /* | 227 | /* |
228 | * Descriptor doubleword "B" (Table 7-13) | 228 | * Descriptor doubleword "B" (Table 7-13) |
@@ -230,49 +230,49 @@ | |||
230 | 230 | ||
231 | 231 | ||
232 | #define S_DMA_DSCRB_OPTIONS _SB_MAKE64(0) | 232 | #define S_DMA_DSCRB_OPTIONS _SB_MAKE64(0) |
233 | #define M_DMA_DSCRB_OPTIONS _SB_MAKEMASK(4,S_DMA_DSCRB_OPTIONS) | 233 | #define M_DMA_DSCRB_OPTIONS _SB_MAKEMASK(4, S_DMA_DSCRB_OPTIONS) |
234 | #define V_DMA_DSCRB_OPTIONS(x) _SB_MAKEVALUE(x,S_DMA_DSCRB_OPTIONS) | 234 | #define V_DMA_DSCRB_OPTIONS(x) _SB_MAKEVALUE(x, S_DMA_DSCRB_OPTIONS) |
235 | #define G_DMA_DSCRB_OPTIONS(x) _SB_GETVALUE(x,S_DMA_DSCRB_OPTIONS,M_DMA_DSCRB_OPTIONS) | 235 | #define G_DMA_DSCRB_OPTIONS(x) _SB_GETVALUE(x, S_DMA_DSCRB_OPTIONS, M_DMA_DSCRB_OPTIONS) |
236 | 236 | ||
237 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 237 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
238 | #define S_DMA_DSCRB_A_SIZE _SB_MAKE64(8) | 238 | #define S_DMA_DSCRB_A_SIZE _SB_MAKE64(8) |
239 | #define M_DMA_DSCRB_A_SIZE _SB_MAKEMASK(14,S_DMA_DSCRB_A_SIZE) | 239 | #define M_DMA_DSCRB_A_SIZE _SB_MAKEMASK(14, S_DMA_DSCRB_A_SIZE) |
240 | #define V_DMA_DSCRB_A_SIZE(x) _SB_MAKEVALUE(x,S_DMA_DSCRB_A_SIZE) | 240 | #define V_DMA_DSCRB_A_SIZE(x) _SB_MAKEVALUE(x, S_DMA_DSCRB_A_SIZE) |
241 | #define G_DMA_DSCRB_A_SIZE(x) _SB_GETVALUE(x,S_DMA_DSCRB_A_SIZE,M_DMA_DSCRB_A_SIZE) | 241 | #define G_DMA_DSCRB_A_SIZE(x) _SB_GETVALUE(x, S_DMA_DSCRB_A_SIZE, M_DMA_DSCRB_A_SIZE) |
242 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 242 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
243 | 243 | ||
244 | #define R_DMA_DSCRB_ADDR _SB_MAKE64(0x10) | 244 | #define R_DMA_DSCRB_ADDR _SB_MAKE64(0x10) |
245 | 245 | ||
246 | /* Note: Don't shift the address over, just mask it with the mask below */ | 246 | /* Note: Don't shift the address over, just mask it with the mask below */ |
247 | #define S_DMA_DSCRB_B_ADDR _SB_MAKE64(5) | 247 | #define S_DMA_DSCRB_B_ADDR _SB_MAKE64(5) |
248 | #define M_DMA_DSCRB_B_ADDR _SB_MAKEMASK(35,S_DMA_DSCRB_B_ADDR) | 248 | #define M_DMA_DSCRB_B_ADDR _SB_MAKEMASK(35, S_DMA_DSCRB_B_ADDR) |
249 | 249 | ||
250 | #define S_DMA_DSCRB_B_SIZE _SB_MAKE64(40) | 250 | #define S_DMA_DSCRB_B_SIZE _SB_MAKE64(40) |
251 | #define M_DMA_DSCRB_B_SIZE _SB_MAKEMASK(9,S_DMA_DSCRB_B_SIZE) | 251 | #define M_DMA_DSCRB_B_SIZE _SB_MAKEMASK(9, S_DMA_DSCRB_B_SIZE) |
252 | #define V_DMA_DSCRB_B_SIZE(x) _SB_MAKEVALUE(x,S_DMA_DSCRB_B_SIZE) | 252 | #define V_DMA_DSCRB_B_SIZE(x) _SB_MAKEVALUE(x, S_DMA_DSCRB_B_SIZE) |
253 | #define G_DMA_DSCRB_B_SIZE(x) _SB_GETVALUE(x,S_DMA_DSCRB_B_SIZE,M_DMA_DSCRB_B_SIZE) | 253 | #define G_DMA_DSCRB_B_SIZE(x) _SB_GETVALUE(x, S_DMA_DSCRB_B_SIZE, M_DMA_DSCRB_B_SIZE) |
254 | 254 | ||
255 | #define M_DMA_DSCRB_B_VALID _SB_MAKEMASK1(49) | 255 | #define M_DMA_DSCRB_B_VALID _SB_MAKEMASK1(49) |
256 | 256 | ||
257 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 257 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
258 | #define S_DMA_DSCRB_PKT_SIZE_MSB _SB_MAKE64(48) | 258 | #define S_DMA_DSCRB_PKT_SIZE_MSB _SB_MAKE64(48) |
259 | #define M_DMA_DSCRB_PKT_SIZE_MSB _SB_MAKEMASK(2,S_DMA_DSCRB_PKT_SIZE_MSB) | 259 | #define M_DMA_DSCRB_PKT_SIZE_MSB _SB_MAKEMASK(2, S_DMA_DSCRB_PKT_SIZE_MSB) |
260 | #define V_DMA_DSCRB_PKT_SIZE_MSB(x) _SB_MAKEVALUE(x,S_DMA_DSCRB_PKT_SIZE_MSB) | 260 | #define V_DMA_DSCRB_PKT_SIZE_MSB(x) _SB_MAKEVALUE(x, S_DMA_DSCRB_PKT_SIZE_MSB) |
261 | #define G_DMA_DSCRB_PKT_SIZE_MSB(x) _SB_GETVALUE(x,S_DMA_DSCRB_PKT_SIZE_MSB,M_DMA_DSCRB_PKT_SIZE_MSB) | 261 | #define G_DMA_DSCRB_PKT_SIZE_MSB(x) _SB_GETVALUE(x, S_DMA_DSCRB_PKT_SIZE_MSB, M_DMA_DSCRB_PKT_SIZE_MSB) |
262 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 262 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
263 | 263 | ||
264 | #define S_DMA_DSCRB_PKT_SIZE _SB_MAKE64(50) | 264 | #define S_DMA_DSCRB_PKT_SIZE _SB_MAKE64(50) |
265 | #define M_DMA_DSCRB_PKT_SIZE _SB_MAKEMASK(14,S_DMA_DSCRB_PKT_SIZE) | 265 | #define M_DMA_DSCRB_PKT_SIZE _SB_MAKEMASK(14, S_DMA_DSCRB_PKT_SIZE) |
266 | #define V_DMA_DSCRB_PKT_SIZE(x) _SB_MAKEVALUE(x,S_DMA_DSCRB_PKT_SIZE) | 266 | #define V_DMA_DSCRB_PKT_SIZE(x) _SB_MAKEVALUE(x, S_DMA_DSCRB_PKT_SIZE) |
267 | #define G_DMA_DSCRB_PKT_SIZE(x) _SB_GETVALUE(x,S_DMA_DSCRB_PKT_SIZE,M_DMA_DSCRB_PKT_SIZE) | 267 | #define G_DMA_DSCRB_PKT_SIZE(x) _SB_GETVALUE(x, S_DMA_DSCRB_PKT_SIZE, M_DMA_DSCRB_PKT_SIZE) |
268 | 268 | ||
269 | /* | 269 | /* |
270 | * from pass2 some bits in dscr_b are also used for rx status | 270 | * from pass2 some bits in dscr_b are also used for rx status |
271 | */ | 271 | */ |
272 | #define S_DMA_DSCRB_STATUS _SB_MAKE64(0) | 272 | #define S_DMA_DSCRB_STATUS _SB_MAKE64(0) |
273 | #define M_DMA_DSCRB_STATUS _SB_MAKEMASK(1,S_DMA_DSCRB_STATUS) | 273 | #define M_DMA_DSCRB_STATUS _SB_MAKEMASK(1, S_DMA_DSCRB_STATUS) |
274 | #define V_DMA_DSCRB_STATUS(x) _SB_MAKEVALUE(x,S_DMA_DSCRB_STATUS) | 274 | #define V_DMA_DSCRB_STATUS(x) _SB_MAKEVALUE(x, S_DMA_DSCRB_STATUS) |
275 | #define G_DMA_DSCRB_STATUS(x) _SB_GETVALUE(x,S_DMA_DSCRB_STATUS,M_DMA_DSCRB_STATUS) | 275 | #define G_DMA_DSCRB_STATUS(x) _SB_GETVALUE(x, S_DMA_DSCRB_STATUS, M_DMA_DSCRB_STATUS) |
276 | 276 | ||
277 | /* | 277 | /* |
278 | * Ethernet Descriptor Status Bits (Table 7-15) | 278 | * Ethernet Descriptor Status Bits (Table 7-15) |
@@ -293,14 +293,14 @@ | |||
293 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 293 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
294 | 294 | ||
295 | #define S_DMA_ETHRX_RXCH 53 | 295 | #define S_DMA_ETHRX_RXCH 53 |
296 | #define M_DMA_ETHRX_RXCH _SB_MAKEMASK(2,S_DMA_ETHRX_RXCH) | 296 | #define M_DMA_ETHRX_RXCH _SB_MAKEMASK(2, S_DMA_ETHRX_RXCH) |
297 | #define V_DMA_ETHRX_RXCH(x) _SB_MAKEVALUE(x,S_DMA_ETHRX_RXCH) | 297 | #define V_DMA_ETHRX_RXCH(x) _SB_MAKEVALUE(x, S_DMA_ETHRX_RXCH) |
298 | #define G_DMA_ETHRX_RXCH(x) _SB_GETVALUE(x,S_DMA_ETHRX_RXCH,M_DMA_ETHRX_RXCH) | 298 | #define G_DMA_ETHRX_RXCH(x) _SB_GETVALUE(x, S_DMA_ETHRX_RXCH, M_DMA_ETHRX_RXCH) |
299 | 299 | ||
300 | #define S_DMA_ETHRX_PKTTYPE 55 | 300 | #define S_DMA_ETHRX_PKTTYPE 55 |
301 | #define M_DMA_ETHRX_PKTTYPE _SB_MAKEMASK(3,S_DMA_ETHRX_PKTTYPE) | 301 | #define M_DMA_ETHRX_PKTTYPE _SB_MAKEMASK(3, S_DMA_ETHRX_PKTTYPE) |
302 | #define V_DMA_ETHRX_PKTTYPE(x) _SB_MAKEVALUE(x,S_DMA_ETHRX_PKTTYPE) | 302 | #define V_DMA_ETHRX_PKTTYPE(x) _SB_MAKEVALUE(x, S_DMA_ETHRX_PKTTYPE) |
303 | #define G_DMA_ETHRX_PKTTYPE(x) _SB_GETVALUE(x,S_DMA_ETHRX_PKTTYPE,M_DMA_ETHRX_PKTTYPE) | 303 | #define G_DMA_ETHRX_PKTTYPE(x) _SB_GETVALUE(x, S_DMA_ETHRX_PKTTYPE, M_DMA_ETHRX_PKTTYPE) |
304 | 304 | ||
305 | #define K_DMA_ETHRX_PKTTYPE_IPV4 0 | 305 | #define K_DMA_ETHRX_PKTTYPE_IPV4 0 |
306 | #define K_DMA_ETHRX_PKTTYPE_ARPV4 1 | 306 | #define K_DMA_ETHRX_PKTTYPE_ARPV4 1 |
@@ -385,21 +385,21 @@ | |||
385 | * Register: DM_DSCR_BASE_3 | 385 | * Register: DM_DSCR_BASE_3 |
386 | */ | 386 | */ |
387 | 387 | ||
388 | #define M_DM_DSCR_BASE_MBZ _SB_MAKEMASK(4,0) | 388 | #define M_DM_DSCR_BASE_MBZ _SB_MAKEMASK(4, 0) |
389 | 389 | ||
390 | /* Note: Just mask the base address and then OR it in. */ | 390 | /* Note: Just mask the base address and then OR it in. */ |
391 | #define S_DM_DSCR_BASE_ADDR _SB_MAKE64(4) | 391 | #define S_DM_DSCR_BASE_ADDR _SB_MAKE64(4) |
392 | #define M_DM_DSCR_BASE_ADDR _SB_MAKEMASK(36,S_DM_DSCR_BASE_ADDR) | 392 | #define M_DM_DSCR_BASE_ADDR _SB_MAKEMASK(36, S_DM_DSCR_BASE_ADDR) |
393 | 393 | ||
394 | #define S_DM_DSCR_BASE_RINGSZ _SB_MAKE64(40) | 394 | #define S_DM_DSCR_BASE_RINGSZ _SB_MAKE64(40) |
395 | #define M_DM_DSCR_BASE_RINGSZ _SB_MAKEMASK(16,S_DM_DSCR_BASE_RINGSZ) | 395 | #define M_DM_DSCR_BASE_RINGSZ _SB_MAKEMASK(16, S_DM_DSCR_BASE_RINGSZ) |
396 | #define V_DM_DSCR_BASE_RINGSZ(x) _SB_MAKEVALUE(x,S_DM_DSCR_BASE_RINGSZ) | 396 | #define V_DM_DSCR_BASE_RINGSZ(x) _SB_MAKEVALUE(x, S_DM_DSCR_BASE_RINGSZ) |
397 | #define G_DM_DSCR_BASE_RINGSZ(x) _SB_GETVALUE(x,S_DM_DSCR_BASE_RINGSZ,M_DM_DSCR_BASE_RINGSZ) | 397 | #define G_DM_DSCR_BASE_RINGSZ(x) _SB_GETVALUE(x, S_DM_DSCR_BASE_RINGSZ, M_DM_DSCR_BASE_RINGSZ) |
398 | 398 | ||
399 | #define S_DM_DSCR_BASE_PRIORITY _SB_MAKE64(56) | 399 | #define S_DM_DSCR_BASE_PRIORITY _SB_MAKE64(56) |
400 | #define M_DM_DSCR_BASE_PRIORITY _SB_MAKEMASK(3,S_DM_DSCR_BASE_PRIORITY) | 400 | #define M_DM_DSCR_BASE_PRIORITY _SB_MAKEMASK(3, S_DM_DSCR_BASE_PRIORITY) |
401 | #define V_DM_DSCR_BASE_PRIORITY(x) _SB_MAKEVALUE(x,S_DM_DSCR_BASE_PRIORITY) | 401 | #define V_DM_DSCR_BASE_PRIORITY(x) _SB_MAKEVALUE(x, S_DM_DSCR_BASE_PRIORITY) |
402 | #define G_DM_DSCR_BASE_PRIORITY(x) _SB_GETVALUE(x,S_DM_DSCR_BASE_PRIORITY,M_DM_DSCR_BASE_PRIORITY) | 402 | #define G_DM_DSCR_BASE_PRIORITY(x) _SB_GETVALUE(x, S_DM_DSCR_BASE_PRIORITY, M_DM_DSCR_BASE_PRIORITY) |
403 | 403 | ||
404 | #define K_DM_DSCR_BASE_PRIORITY_1 0 | 404 | #define K_DM_DSCR_BASE_PRIORITY_1 0 |
405 | #define K_DM_DSCR_BASE_PRIORITY_2 1 | 405 | #define K_DM_DSCR_BASE_PRIORITY_2 1 |
@@ -429,12 +429,12 @@ | |||
429 | */ | 429 | */ |
430 | 430 | ||
431 | #define S_DM_CUR_DSCR_DSCR_ADDR _SB_MAKE64(0) | 431 | #define S_DM_CUR_DSCR_DSCR_ADDR _SB_MAKE64(0) |
432 | #define M_DM_CUR_DSCR_DSCR_ADDR _SB_MAKEMASK(40,S_DM_CUR_DSCR_DSCR_ADDR) | 432 | #define M_DM_CUR_DSCR_DSCR_ADDR _SB_MAKEMASK(40, S_DM_CUR_DSCR_DSCR_ADDR) |
433 | 433 | ||
434 | #define S_DM_CUR_DSCR_DSCR_COUNT _SB_MAKE64(48) | 434 | #define S_DM_CUR_DSCR_DSCR_COUNT _SB_MAKE64(48) |
435 | #define M_DM_CUR_DSCR_DSCR_COUNT _SB_MAKEMASK(16,S_DM_CUR_DSCR_DSCR_COUNT) | 435 | #define M_DM_CUR_DSCR_DSCR_COUNT _SB_MAKEMASK(16, S_DM_CUR_DSCR_DSCR_COUNT) |
436 | #define V_DM_CUR_DSCR_DSCR_COUNT(r) _SB_MAKEVALUE(r,S_DM_CUR_DSCR_DSCR_COUNT) | 436 | #define V_DM_CUR_DSCR_DSCR_COUNT(r) _SB_MAKEVALUE(r, S_DM_CUR_DSCR_DSCR_COUNT) |
437 | #define G_DM_CUR_DSCR_DSCR_COUNT(r) _SB_GETVALUE(r,S_DM_CUR_DSCR_DSCR_COUNT,\ | 437 | #define G_DM_CUR_DSCR_DSCR_COUNT(r) _SB_GETVALUE(r, S_DM_CUR_DSCR_DSCR_COUNT,\ |
438 | M_DM_CUR_DSCR_DSCR_COUNT) | 438 | M_DM_CUR_DSCR_DSCR_COUNT) |
439 | 439 | ||
440 | 440 | ||
@@ -447,15 +447,15 @@ | |||
447 | * Register: DM_PARTIAL_3 | 447 | * Register: DM_PARTIAL_3 |
448 | */ | 448 | */ |
449 | #define S_DM_PARTIAL_CRC_PARTIAL _SB_MAKE64(0) | 449 | #define S_DM_PARTIAL_CRC_PARTIAL _SB_MAKE64(0) |
450 | #define M_DM_PARTIAL_CRC_PARTIAL _SB_MAKEMASK(32,S_DM_PARTIAL_CRC_PARTIAL) | 450 | #define M_DM_PARTIAL_CRC_PARTIAL _SB_MAKEMASK(32, S_DM_PARTIAL_CRC_PARTIAL) |
451 | #define V_DM_PARTIAL_CRC_PARTIAL(r) _SB_MAKEVALUE(r,S_DM_PARTIAL_CRC_PARTIAL) | 451 | #define V_DM_PARTIAL_CRC_PARTIAL(r) _SB_MAKEVALUE(r, S_DM_PARTIAL_CRC_PARTIAL) |
452 | #define G_DM_PARTIAL_CRC_PARTIAL(r) _SB_GETVALUE(r,S_DM_PARTIAL_CRC_PARTIAL,\ | 452 | #define G_DM_PARTIAL_CRC_PARTIAL(r) _SB_GETVALUE(r, S_DM_PARTIAL_CRC_PARTIAL,\ |
453 | M_DM_PARTIAL_CRC_PARTIAL) | 453 | M_DM_PARTIAL_CRC_PARTIAL) |
454 | 454 | ||
455 | #define S_DM_PARTIAL_TCPCS_PARTIAL _SB_MAKE64(32) | 455 | #define S_DM_PARTIAL_TCPCS_PARTIAL _SB_MAKE64(32) |
456 | #define M_DM_PARTIAL_TCPCS_PARTIAL _SB_MAKEMASK(16,S_DM_PARTIAL_TCPCS_PARTIAL) | 456 | #define M_DM_PARTIAL_TCPCS_PARTIAL _SB_MAKEMASK(16, S_DM_PARTIAL_TCPCS_PARTIAL) |
457 | #define V_DM_PARTIAL_TCPCS_PARTIAL(r) _SB_MAKEVALUE(r,S_DM_PARTIAL_TCPCS_PARTIAL) | 457 | #define V_DM_PARTIAL_TCPCS_PARTIAL(r) _SB_MAKEVALUE(r, S_DM_PARTIAL_TCPCS_PARTIAL) |
458 | #define G_DM_PARTIAL_TCPCS_PARTIAL(r) _SB_GETVALUE(r,S_DM_PARTIAL_TCPCS_PARTIAL,\ | 458 | #define G_DM_PARTIAL_TCPCS_PARTIAL(r) _SB_GETVALUE(r, S_DM_PARTIAL_TCPCS_PARTIAL,\ |
459 | M_DM_PARTIAL_TCPCS_PARTIAL) | 459 | M_DM_PARTIAL_TCPCS_PARTIAL) |
460 | 460 | ||
461 | #define M_DM_PARTIAL_ODD_BYTE _SB_MAKEMASK1(48) | 461 | #define M_DM_PARTIAL_ODD_BYTE _SB_MAKEMASK1(48) |
@@ -469,15 +469,15 @@ | |||
469 | * Register: CRC_DEF_1 | 469 | * Register: CRC_DEF_1 |
470 | */ | 470 | */ |
471 | #define S_CRC_DEF_CRC_INIT _SB_MAKE64(0) | 471 | #define S_CRC_DEF_CRC_INIT _SB_MAKE64(0) |
472 | #define M_CRC_DEF_CRC_INIT _SB_MAKEMASK(32,S_CRC_DEF_CRC_INIT) | 472 | #define M_CRC_DEF_CRC_INIT _SB_MAKEMASK(32, S_CRC_DEF_CRC_INIT) |
473 | #define V_CRC_DEF_CRC_INIT(r) _SB_MAKEVALUE(r,S_CRC_DEF_CRC_INIT) | 473 | #define V_CRC_DEF_CRC_INIT(r) _SB_MAKEVALUE(r, S_CRC_DEF_CRC_INIT) |
474 | #define G_CRC_DEF_CRC_INIT(r) _SB_GETVALUE(r,S_CRC_DEF_CRC_INIT,\ | 474 | #define G_CRC_DEF_CRC_INIT(r) _SB_GETVALUE(r, S_CRC_DEF_CRC_INIT,\ |
475 | M_CRC_DEF_CRC_INIT) | 475 | M_CRC_DEF_CRC_INIT) |
476 | 476 | ||
477 | #define S_CRC_DEF_CRC_POLY _SB_MAKE64(32) | 477 | #define S_CRC_DEF_CRC_POLY _SB_MAKE64(32) |
478 | #define M_CRC_DEF_CRC_POLY _SB_MAKEMASK(32,S_CRC_DEF_CRC_POLY) | 478 | #define M_CRC_DEF_CRC_POLY _SB_MAKEMASK(32, S_CRC_DEF_CRC_POLY) |
479 | #define V_CRC_DEF_CRC_POLY(r) _SB_MAKEVALUE(r,S_CRC_DEF_CRC_POLY) | 479 | #define V_CRC_DEF_CRC_POLY(r) _SB_MAKEVALUE(r, S_CRC_DEF_CRC_POLY) |
480 | #define G_CRC_DEF_CRC_POLY(r) _SB_GETVALUE(r,S_CRC_DEF_CRC_POLY,\ | 480 | #define G_CRC_DEF_CRC_POLY(r) _SB_GETVALUE(r, S_CRC_DEF_CRC_POLY,\ |
481 | M_CRC_DEF_CRC_POLY) | 481 | M_CRC_DEF_CRC_POLY) |
482 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 482 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
483 | 483 | ||
@@ -489,21 +489,21 @@ | |||
489 | * Register: CTCP_DEF_1 | 489 | * Register: CTCP_DEF_1 |
490 | */ | 490 | */ |
491 | #define S_CTCP_DEF_CRC_TXOR _SB_MAKE64(0) | 491 | #define S_CTCP_DEF_CRC_TXOR _SB_MAKE64(0) |
492 | #define M_CTCP_DEF_CRC_TXOR _SB_MAKEMASK(32,S_CTCP_DEF_CRC_TXOR) | 492 | #define M_CTCP_DEF_CRC_TXOR _SB_MAKEMASK(32, S_CTCP_DEF_CRC_TXOR) |
493 | #define V_CTCP_DEF_CRC_TXOR(r) _SB_MAKEVALUE(r,S_CTCP_DEF_CRC_TXOR) | 493 | #define V_CTCP_DEF_CRC_TXOR(r) _SB_MAKEVALUE(r, S_CTCP_DEF_CRC_TXOR) |
494 | #define G_CTCP_DEF_CRC_TXOR(r) _SB_GETVALUE(r,S_CTCP_DEF_CRC_TXOR,\ | 494 | #define G_CTCP_DEF_CRC_TXOR(r) _SB_GETVALUE(r, S_CTCP_DEF_CRC_TXOR,\ |
495 | M_CTCP_DEF_CRC_TXOR) | 495 | M_CTCP_DEF_CRC_TXOR) |
496 | 496 | ||
497 | #define S_CTCP_DEF_TCPCS_INIT _SB_MAKE64(32) | 497 | #define S_CTCP_DEF_TCPCS_INIT _SB_MAKE64(32) |
498 | #define M_CTCP_DEF_TCPCS_INIT _SB_MAKEMASK(16,S_CTCP_DEF_TCPCS_INIT) | 498 | #define M_CTCP_DEF_TCPCS_INIT _SB_MAKEMASK(16, S_CTCP_DEF_TCPCS_INIT) |
499 | #define V_CTCP_DEF_TCPCS_INIT(r) _SB_MAKEVALUE(r,S_CTCP_DEF_TCPCS_INIT) | 499 | #define V_CTCP_DEF_TCPCS_INIT(r) _SB_MAKEVALUE(r, S_CTCP_DEF_TCPCS_INIT) |
500 | #define G_CTCP_DEF_TCPCS_INIT(r) _SB_GETVALUE(r,S_CTCP_DEF_TCPCS_INIT,\ | 500 | #define G_CTCP_DEF_TCPCS_INIT(r) _SB_GETVALUE(r, S_CTCP_DEF_TCPCS_INIT,\ |
501 | M_CTCP_DEF_TCPCS_INIT) | 501 | M_CTCP_DEF_TCPCS_INIT) |
502 | 502 | ||
503 | #define S_CTCP_DEF_CRC_WIDTH _SB_MAKE64(48) | 503 | #define S_CTCP_DEF_CRC_WIDTH _SB_MAKE64(48) |
504 | #define M_CTCP_DEF_CRC_WIDTH _SB_MAKEMASK(2,S_CTCP_DEF_CRC_WIDTH) | 504 | #define M_CTCP_DEF_CRC_WIDTH _SB_MAKEMASK(2, S_CTCP_DEF_CRC_WIDTH) |
505 | #define V_CTCP_DEF_CRC_WIDTH(r) _SB_MAKEVALUE(r,S_CTCP_DEF_CRC_WIDTH) | 505 | #define V_CTCP_DEF_CRC_WIDTH(r) _SB_MAKEVALUE(r, S_CTCP_DEF_CRC_WIDTH) |
506 | #define G_CTCP_DEF_CRC_WIDTH(r) _SB_GETVALUE(r,S_CTCP_DEF_CRC_WIDTH,\ | 506 | #define G_CTCP_DEF_CRC_WIDTH(r) _SB_GETVALUE(r, S_CTCP_DEF_CRC_WIDTH,\ |
507 | M_CTCP_DEF_CRC_WIDTH) | 507 | M_CTCP_DEF_CRC_WIDTH) |
508 | 508 | ||
509 | #define K_CTCP_DEF_CRC_WIDTH_4 0 | 509 | #define K_CTCP_DEF_CRC_WIDTH_4 0 |
@@ -519,7 +519,7 @@ | |||
519 | */ | 519 | */ |
520 | 520 | ||
521 | #define S_DM_DSCRA_DST_ADDR _SB_MAKE64(0) | 521 | #define S_DM_DSCRA_DST_ADDR _SB_MAKE64(0) |
522 | #define M_DM_DSCRA_DST_ADDR _SB_MAKEMASK(40,S_DM_DSCRA_DST_ADDR) | 522 | #define M_DM_DSCRA_DST_ADDR _SB_MAKEMASK(40, S_DM_DSCRA_DST_ADDR) |
523 | 523 | ||
524 | #define M_DM_DSCRA_UN_DEST _SB_MAKEMASK1(40) | 524 | #define M_DM_DSCRA_UN_DEST _SB_MAKEMASK1(40) |
525 | #define M_DM_DSCRA_UN_SRC _SB_MAKEMASK1(41) | 525 | #define M_DM_DSCRA_UN_SRC _SB_MAKEMASK1(41) |
@@ -529,30 +529,30 @@ | |||
529 | #endif /* up to 1250 PASS1 */ | 529 | #endif /* up to 1250 PASS1 */ |
530 | 530 | ||
531 | #define S_DM_DSCRA_DIR_DEST _SB_MAKE64(44) | 531 | #define S_DM_DSCRA_DIR_DEST _SB_MAKE64(44) |
532 | #define M_DM_DSCRA_DIR_DEST _SB_MAKEMASK(2,S_DM_DSCRA_DIR_DEST) | 532 | #define M_DM_DSCRA_DIR_DEST _SB_MAKEMASK(2, S_DM_DSCRA_DIR_DEST) |
533 | #define V_DM_DSCRA_DIR_DEST(x) _SB_MAKEVALUE(x,S_DM_DSCRA_DIR_DEST) | 533 | #define V_DM_DSCRA_DIR_DEST(x) _SB_MAKEVALUE(x, S_DM_DSCRA_DIR_DEST) |
534 | #define G_DM_DSCRA_DIR_DEST(x) _SB_GETVALUE(x,S_DM_DSCRA_DIR_DEST,M_DM_DSCRA_DIR_DEST) | 534 | #define G_DM_DSCRA_DIR_DEST(x) _SB_GETVALUE(x, S_DM_DSCRA_DIR_DEST, M_DM_DSCRA_DIR_DEST) |
535 | 535 | ||
536 | #define K_DM_DSCRA_DIR_DEST_INCR 0 | 536 | #define K_DM_DSCRA_DIR_DEST_INCR 0 |
537 | #define K_DM_DSCRA_DIR_DEST_DECR 1 | 537 | #define K_DM_DSCRA_DIR_DEST_DECR 1 |
538 | #define K_DM_DSCRA_DIR_DEST_CONST 2 | 538 | #define K_DM_DSCRA_DIR_DEST_CONST 2 |
539 | 539 | ||
540 | #define V_DM_DSCRA_DIR_DEST_INCR _SB_MAKEVALUE(K_DM_DSCRA_DIR_DEST_INCR,S_DM_DSCRA_DIR_DEST) | 540 | #define V_DM_DSCRA_DIR_DEST_INCR _SB_MAKEVALUE(K_DM_DSCRA_DIR_DEST_INCR, S_DM_DSCRA_DIR_DEST) |
541 | #define V_DM_DSCRA_DIR_DEST_DECR _SB_MAKEVALUE(K_DM_DSCRA_DIR_DEST_DECR,S_DM_DSCRA_DIR_DEST) | 541 | #define V_DM_DSCRA_DIR_DEST_DECR _SB_MAKEVALUE(K_DM_DSCRA_DIR_DEST_DECR, S_DM_DSCRA_DIR_DEST) |
542 | #define V_DM_DSCRA_DIR_DEST_CONST _SB_MAKEVALUE(K_DM_DSCRA_DIR_DEST_CONST,S_DM_DSCRA_DIR_DEST) | 542 | #define V_DM_DSCRA_DIR_DEST_CONST _SB_MAKEVALUE(K_DM_DSCRA_DIR_DEST_CONST, S_DM_DSCRA_DIR_DEST) |
543 | 543 | ||
544 | #define S_DM_DSCRA_DIR_SRC _SB_MAKE64(46) | 544 | #define S_DM_DSCRA_DIR_SRC _SB_MAKE64(46) |
545 | #define M_DM_DSCRA_DIR_SRC _SB_MAKEMASK(2,S_DM_DSCRA_DIR_SRC) | 545 | #define M_DM_DSCRA_DIR_SRC _SB_MAKEMASK(2, S_DM_DSCRA_DIR_SRC) |
546 | #define V_DM_DSCRA_DIR_SRC(x) _SB_MAKEVALUE(x,S_DM_DSCRA_DIR_SRC) | 546 | #define V_DM_DSCRA_DIR_SRC(x) _SB_MAKEVALUE(x, S_DM_DSCRA_DIR_SRC) |
547 | #define G_DM_DSCRA_DIR_SRC(x) _SB_GETVALUE(x,S_DM_DSCRA_DIR_SRC,M_DM_DSCRA_DIR_SRC) | 547 | #define G_DM_DSCRA_DIR_SRC(x) _SB_GETVALUE(x, S_DM_DSCRA_DIR_SRC, M_DM_DSCRA_DIR_SRC) |
548 | 548 | ||
549 | #define K_DM_DSCRA_DIR_SRC_INCR 0 | 549 | #define K_DM_DSCRA_DIR_SRC_INCR 0 |
550 | #define K_DM_DSCRA_DIR_SRC_DECR 1 | 550 | #define K_DM_DSCRA_DIR_SRC_DECR 1 |
551 | #define K_DM_DSCRA_DIR_SRC_CONST 2 | 551 | #define K_DM_DSCRA_DIR_SRC_CONST 2 |
552 | 552 | ||
553 | #define V_DM_DSCRA_DIR_SRC_INCR _SB_MAKEVALUE(K_DM_DSCRA_DIR_SRC_INCR,S_DM_DSCRA_DIR_SRC) | 553 | #define V_DM_DSCRA_DIR_SRC_INCR _SB_MAKEVALUE(K_DM_DSCRA_DIR_SRC_INCR, S_DM_DSCRA_DIR_SRC) |
554 | #define V_DM_DSCRA_DIR_SRC_DECR _SB_MAKEVALUE(K_DM_DSCRA_DIR_SRC_DECR,S_DM_DSCRA_DIR_SRC) | 554 | #define V_DM_DSCRA_DIR_SRC_DECR _SB_MAKEVALUE(K_DM_DSCRA_DIR_SRC_DECR, S_DM_DSCRA_DIR_SRC) |
555 | #define V_DM_DSCRA_DIR_SRC_CONST _SB_MAKEVALUE(K_DM_DSCRA_DIR_SRC_CONST,S_DM_DSCRA_DIR_SRC) | 555 | #define V_DM_DSCRA_DIR_SRC_CONST _SB_MAKEVALUE(K_DM_DSCRA_DIR_SRC_CONST, S_DM_DSCRA_DIR_SRC) |
556 | 556 | ||
557 | 557 | ||
558 | #define M_DM_DSCRA_ZERO_MEM _SB_MAKEMASK1(48) | 558 | #define M_DM_DSCRA_ZERO_MEM _SB_MAKEMASK1(48) |
@@ -576,19 +576,19 @@ | |||
576 | #define M_DM_DSCRA_CRC_XBIT _SB_MAKEMASK1(61) | 576 | #define M_DM_DSCRA_CRC_XBIT _SB_MAKEMASK1(61) |
577 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 577 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
578 | 578 | ||
579 | #define M_DM_DSCRA_RESERVED2 _SB_MAKEMASK(3,61) | 579 | #define M_DM_DSCRA_RESERVED2 _SB_MAKEMASK(3, 61) |
580 | 580 | ||
581 | /* | 581 | /* |
582 | * Data Mover Descriptor Doubleword "B" (Table 7-25) | 582 | * Data Mover Descriptor Doubleword "B" (Table 7-25) |
583 | */ | 583 | */ |
584 | 584 | ||
585 | #define S_DM_DSCRB_SRC_ADDR _SB_MAKE64(0) | 585 | #define S_DM_DSCRB_SRC_ADDR _SB_MAKE64(0) |
586 | #define M_DM_DSCRB_SRC_ADDR _SB_MAKEMASK(40,S_DM_DSCRB_SRC_ADDR) | 586 | #define M_DM_DSCRB_SRC_ADDR _SB_MAKEMASK(40, S_DM_DSCRB_SRC_ADDR) |
587 | 587 | ||
588 | #define S_DM_DSCRB_SRC_LENGTH _SB_MAKE64(40) | 588 | #define S_DM_DSCRB_SRC_LENGTH _SB_MAKE64(40) |
589 | #define M_DM_DSCRB_SRC_LENGTH _SB_MAKEMASK(20,S_DM_DSCRB_SRC_LENGTH) | 589 | #define M_DM_DSCRB_SRC_LENGTH _SB_MAKEMASK(20, S_DM_DSCRB_SRC_LENGTH) |
590 | #define V_DM_DSCRB_SRC_LENGTH(x) _SB_MAKEVALUE(x,S_DM_DSCRB_SRC_LENGTH) | 590 | #define V_DM_DSCRB_SRC_LENGTH(x) _SB_MAKEVALUE(x, S_DM_DSCRB_SRC_LENGTH) |
591 | #define G_DM_DSCRB_SRC_LENGTH(x) _SB_GETVALUE(x,S_DM_DSCRB_SRC_LENGTH,M_DM_DSCRB_SRC_LENGTH) | 591 | #define G_DM_DSCRB_SRC_LENGTH(x) _SB_GETVALUE(x, S_DM_DSCRB_SRC_LENGTH, M_DM_DSCRB_SRC_LENGTH) |
592 | 592 | ||
593 | 593 | ||
594 | #endif | 594 | #endif |
diff --git a/include/asm-mips/sibyte/sb1250_genbus.h b/include/asm-mips/sibyte/sb1250_genbus.h index 1b5cbc5c64..94e9c7c8e7 100644 --- a/include/asm-mips/sibyte/sb1250_genbus.h +++ b/include/asm-mips/sibyte/sb1250_genbus.h | |||
@@ -11,7 +11,7 @@ | |||
11 | * | 11 | * |
12 | ********************************************************************* | 12 | ********************************************************************* |
13 | * | 13 | * |
14 | * Copyright 2000,2001,2002,2003 | 14 | * Copyright 2000, 2001, 2002, 2003 |
15 | * Broadcom Corporation. All rights reserved. | 15 | * Broadcom Corporation. All rights reserved. |
16 | * | 16 | * |
17 | * This program is free software; you can redistribute it and/or | 17 | * This program is free software; you can redistribute it and/or |
@@ -47,7 +47,7 @@ | |||
47 | #define M_IO_ENA_RDY _SB_MAKEMASK1(S_IO_ENA_RDY) | 47 | #define M_IO_ENA_RDY _SB_MAKEMASK1(S_IO_ENA_RDY) |
48 | 48 | ||
49 | #define S_IO_WIDTH_SEL 2 | 49 | #define S_IO_WIDTH_SEL 2 |
50 | #define M_IO_WIDTH_SEL _SB_MAKEMASK(2,S_IO_WIDTH_SEL) | 50 | #define M_IO_WIDTH_SEL _SB_MAKEMASK(2, S_IO_WIDTH_SEL) |
51 | #define K_IO_WIDTH_SEL_1 0 | 51 | #define K_IO_WIDTH_SEL_1 0 |
52 | #define K_IO_WIDTH_SEL_2 1 | 52 | #define K_IO_WIDTH_SEL_2 1 |
53 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ | 53 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ |
@@ -55,8 +55,8 @@ | |||
55 | #define K_IO_WIDTH_SEL_1L 2 | 55 | #define K_IO_WIDTH_SEL_1L 2 |
56 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 56 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
57 | #define K_IO_WIDTH_SEL_4 3 | 57 | #define K_IO_WIDTH_SEL_4 3 |
58 | #define V_IO_WIDTH_SEL(x) _SB_MAKEVALUE(x,S_IO_WIDTH_SEL) | 58 | #define V_IO_WIDTH_SEL(x) _SB_MAKEVALUE(x, S_IO_WIDTH_SEL) |
59 | #define G_IO_WIDTH_SEL(x) _SB_GETVALUE(x,S_IO_WIDTH_SEL,M_IO_WIDTH_SEL) | 59 | #define G_IO_WIDTH_SEL(x) _SB_GETVALUE(x, S_IO_WIDTH_SEL, M_IO_WIDTH_SEL) |
60 | 60 | ||
61 | #define S_IO_PARITY_ENA 4 | 61 | #define S_IO_PARITY_ENA 4 |
62 | #define M_IO_PARITY_ENA _SB_MAKEMASK1(S_IO_PARITY_ENA) | 62 | #define M_IO_PARITY_ENA _SB_MAKEMASK1(S_IO_PARITY_ENA) |
@@ -71,18 +71,18 @@ | |||
71 | #define M_IO_NONMUX _SB_MAKEMASK1(S_IO_NONMUX) | 71 | #define M_IO_NONMUX _SB_MAKEMASK1(S_IO_NONMUX) |
72 | 72 | ||
73 | #define S_IO_TIMEOUT 8 | 73 | #define S_IO_TIMEOUT 8 |
74 | #define M_IO_TIMEOUT _SB_MAKEMASK(8,S_IO_TIMEOUT) | 74 | #define M_IO_TIMEOUT _SB_MAKEMASK(8, S_IO_TIMEOUT) |
75 | #define V_IO_TIMEOUT(x) _SB_MAKEVALUE(x,S_IO_TIMEOUT) | 75 | #define V_IO_TIMEOUT(x) _SB_MAKEVALUE(x, S_IO_TIMEOUT) |
76 | #define G_IO_TIMEOUT(x) _SB_GETVALUE(x,S_IO_TIMEOUT,M_IO_TIMEOUT) | 76 | #define G_IO_TIMEOUT(x) _SB_GETVALUE(x, S_IO_TIMEOUT, M_IO_TIMEOUT) |
77 | 77 | ||
78 | /* | 78 | /* |
79 | * Generic Bus Region Size register (Table 11-5) | 79 | * Generic Bus Region Size register (Table 11-5) |
80 | */ | 80 | */ |
81 | 81 | ||
82 | #define S_IO_MULT_SIZE 0 | 82 | #define S_IO_MULT_SIZE 0 |
83 | #define M_IO_MULT_SIZE _SB_MAKEMASK(12,S_IO_MULT_SIZE) | 83 | #define M_IO_MULT_SIZE _SB_MAKEMASK(12, S_IO_MULT_SIZE) |
84 | #define V_IO_MULT_SIZE(x) _SB_MAKEVALUE(x,S_IO_MULT_SIZE) | 84 | #define V_IO_MULT_SIZE(x) _SB_MAKEVALUE(x, S_IO_MULT_SIZE) |
85 | #define G_IO_MULT_SIZE(x) _SB_GETVALUE(x,S_IO_MULT_SIZE,M_IO_MULT_SIZE) | 85 | #define G_IO_MULT_SIZE(x) _SB_GETVALUE(x, S_IO_MULT_SIZE, M_IO_MULT_SIZE) |
86 | 86 | ||
87 | #define S_IO_REGSIZE 16 /* # bits to shift size for this reg */ | 87 | #define S_IO_REGSIZE 16 /* # bits to shift size for this reg */ |
88 | 88 | ||
@@ -91,9 +91,9 @@ | |||
91 | */ | 91 | */ |
92 | 92 | ||
93 | #define S_IO_START_ADDR 0 | 93 | #define S_IO_START_ADDR 0 |
94 | #define M_IO_START_ADDR _SB_MAKEMASK(14,S_IO_START_ADDR) | 94 | #define M_IO_START_ADDR _SB_MAKEMASK(14, S_IO_START_ADDR) |
95 | #define V_IO_START_ADDR(x) _SB_MAKEVALUE(x,S_IO_START_ADDR) | 95 | #define V_IO_START_ADDR(x) _SB_MAKEVALUE(x, S_IO_START_ADDR) |
96 | #define G_IO_START_ADDR(x) _SB_GETVALUE(x,S_IO_START_ADDR,M_IO_START_ADDR) | 96 | #define G_IO_START_ADDR(x) _SB_GETVALUE(x, S_IO_START_ADDR, M_IO_START_ADDR) |
97 | 97 | ||
98 | #define S_IO_ADDRBASE 16 /* # bits to shift addr for this reg */ | 98 | #define S_IO_ADDRBASE 16 /* # bits to shift addr for this reg */ |
99 | 99 | ||
@@ -105,9 +105,9 @@ | |||
105 | */ | 105 | */ |
106 | 106 | ||
107 | #define S_IO_ALE_WIDTH 0 | 107 | #define S_IO_ALE_WIDTH 0 |
108 | #define M_IO_ALE_WIDTH _SB_MAKEMASK(3,S_IO_ALE_WIDTH) | 108 | #define M_IO_ALE_WIDTH _SB_MAKEMASK(3, S_IO_ALE_WIDTH) |
109 | #define V_IO_ALE_WIDTH(x) _SB_MAKEVALUE(x,S_IO_ALE_WIDTH) | 109 | #define V_IO_ALE_WIDTH(x) _SB_MAKEVALUE(x, S_IO_ALE_WIDTH) |
110 | #define G_IO_ALE_WIDTH(x) _SB_GETVALUE(x,S_IO_ALE_WIDTH,M_IO_ALE_WIDTH) | 110 | #define G_IO_ALE_WIDTH(x) _SB_GETVALUE(x, S_IO_ALE_WIDTH, M_IO_ALE_WIDTH) |
111 | 111 | ||
112 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ | 112 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ |
113 | || SIBYTE_HDR_FEATURE_CHIP(1480) | 113 | || SIBYTE_HDR_FEATURE_CHIP(1480) |
@@ -115,27 +115,27 @@ | |||
115 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 115 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
116 | 116 | ||
117 | #define S_IO_ALE_TO_CS 4 | 117 | #define S_IO_ALE_TO_CS 4 |
118 | #define M_IO_ALE_TO_CS _SB_MAKEMASK(2,S_IO_ALE_TO_CS) | 118 | #define M_IO_ALE_TO_CS _SB_MAKEMASK(2, S_IO_ALE_TO_CS) |
119 | #define V_IO_ALE_TO_CS(x) _SB_MAKEVALUE(x,S_IO_ALE_TO_CS) | 119 | #define V_IO_ALE_TO_CS(x) _SB_MAKEVALUE(x, S_IO_ALE_TO_CS) |
120 | #define G_IO_ALE_TO_CS(x) _SB_GETVALUE(x,S_IO_ALE_TO_CS,M_IO_ALE_TO_CS) | 120 | #define G_IO_ALE_TO_CS(x) _SB_GETVALUE(x, S_IO_ALE_TO_CS, M_IO_ALE_TO_CS) |
121 | 121 | ||
122 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ | 122 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ |
123 | || SIBYTE_HDR_FEATURE_CHIP(1480) | 123 | || SIBYTE_HDR_FEATURE_CHIP(1480) |
124 | #define S_IO_BURST_WIDTH _SB_MAKE64(6) | 124 | #define S_IO_BURST_WIDTH _SB_MAKE64(6) |
125 | #define M_IO_BURST_WIDTH _SB_MAKEMASK(2,S_IO_BURST_WIDTH) | 125 | #define M_IO_BURST_WIDTH _SB_MAKEMASK(2, S_IO_BURST_WIDTH) |
126 | #define V_IO_BURST_WIDTH(x) _SB_MAKEVALUE(x,S_IO_BURST_WIDTH) | 126 | #define V_IO_BURST_WIDTH(x) _SB_MAKEVALUE(x, S_IO_BURST_WIDTH) |
127 | #define G_IO_BURST_WIDTH(x) _SB_GETVALUE(x,S_IO_BURST_WIDTH,M_IO_BURST_WIDTH) | 127 | #define G_IO_BURST_WIDTH(x) _SB_GETVALUE(x, S_IO_BURST_WIDTH, M_IO_BURST_WIDTH) |
128 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 128 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
129 | 129 | ||
130 | #define S_IO_CS_WIDTH 8 | 130 | #define S_IO_CS_WIDTH 8 |
131 | #define M_IO_CS_WIDTH _SB_MAKEMASK(5,S_IO_CS_WIDTH) | 131 | #define M_IO_CS_WIDTH _SB_MAKEMASK(5, S_IO_CS_WIDTH) |
132 | #define V_IO_CS_WIDTH(x) _SB_MAKEVALUE(x,S_IO_CS_WIDTH) | 132 | #define V_IO_CS_WIDTH(x) _SB_MAKEVALUE(x, S_IO_CS_WIDTH) |
133 | #define G_IO_CS_WIDTH(x) _SB_GETVALUE(x,S_IO_CS_WIDTH,M_IO_CS_WIDTH) | 133 | #define G_IO_CS_WIDTH(x) _SB_GETVALUE(x, S_IO_CS_WIDTH, M_IO_CS_WIDTH) |
134 | 134 | ||
135 | #define S_IO_RDY_SMPLE 13 | 135 | #define S_IO_RDY_SMPLE 13 |
136 | #define M_IO_RDY_SMPLE _SB_MAKEMASK(3,S_IO_RDY_SMPLE) | 136 | #define M_IO_RDY_SMPLE _SB_MAKEMASK(3, S_IO_RDY_SMPLE) |
137 | #define V_IO_RDY_SMPLE(x) _SB_MAKEVALUE(x,S_IO_RDY_SMPLE) | 137 | #define V_IO_RDY_SMPLE(x) _SB_MAKEVALUE(x, S_IO_RDY_SMPLE) |
138 | #define G_IO_RDY_SMPLE(x) _SB_GETVALUE(x,S_IO_RDY_SMPLE,M_IO_RDY_SMPLE) | 138 | #define G_IO_RDY_SMPLE(x) _SB_GETVALUE(x, S_IO_RDY_SMPLE, M_IO_RDY_SMPLE) |
139 | 139 | ||
140 | 140 | ||
141 | /* | 141 | /* |
@@ -143,9 +143,9 @@ | |||
143 | */ | 143 | */ |
144 | 144 | ||
145 | #define S_IO_ALE_TO_WRITE 0 | 145 | #define S_IO_ALE_TO_WRITE 0 |
146 | #define M_IO_ALE_TO_WRITE _SB_MAKEMASK(3,S_IO_ALE_TO_WRITE) | 146 | #define M_IO_ALE_TO_WRITE _SB_MAKEMASK(3, S_IO_ALE_TO_WRITE) |
147 | #define V_IO_ALE_TO_WRITE(x) _SB_MAKEVALUE(x,S_IO_ALE_TO_WRITE) | 147 | #define V_IO_ALE_TO_WRITE(x) _SB_MAKEVALUE(x, S_IO_ALE_TO_WRITE) |
148 | #define G_IO_ALE_TO_WRITE(x) _SB_GETVALUE(x,S_IO_ALE_TO_WRITE,M_IO_ALE_TO_WRITE) | 148 | #define G_IO_ALE_TO_WRITE(x) _SB_GETVALUE(x, S_IO_ALE_TO_WRITE, M_IO_ALE_TO_WRITE) |
149 | 149 | ||
150 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ | 150 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) \ |
151 | || SIBYTE_HDR_FEATURE_CHIP(1480) | 151 | || SIBYTE_HDR_FEATURE_CHIP(1480) |
@@ -153,30 +153,30 @@ | |||
153 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 153 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
154 | 154 | ||
155 | #define S_IO_WRITE_WIDTH 4 | 155 | #define S_IO_WRITE_WIDTH 4 |
156 | #define M_IO_WRITE_WIDTH _SB_MAKEMASK(4,S_IO_WRITE_WIDTH) | 156 | #define M_IO_WRITE_WIDTH _SB_MAKEMASK(4, S_IO_WRITE_WIDTH) |
157 | #define V_IO_WRITE_WIDTH(x) _SB_MAKEVALUE(x,S_IO_WRITE_WIDTH) | 157 | #define V_IO_WRITE_WIDTH(x) _SB_MAKEVALUE(x, S_IO_WRITE_WIDTH) |
158 | #define G_IO_WRITE_WIDTH(x) _SB_GETVALUE(x,S_IO_WRITE_WIDTH,M_IO_WRITE_WIDTH) | 158 | #define G_IO_WRITE_WIDTH(x) _SB_GETVALUE(x, S_IO_WRITE_WIDTH, M_IO_WRITE_WIDTH) |
159 | 159 | ||
160 | #define S_IO_IDLE_CYCLE 8 | 160 | #define S_IO_IDLE_CYCLE 8 |
161 | #define M_IO_IDLE_CYCLE _SB_MAKEMASK(4,S_IO_IDLE_CYCLE) | 161 | #define M_IO_IDLE_CYCLE _SB_MAKEMASK(4, S_IO_IDLE_CYCLE) |
162 | #define V_IO_IDLE_CYCLE(x) _SB_MAKEVALUE(x,S_IO_IDLE_CYCLE) | 162 | #define V_IO_IDLE_CYCLE(x) _SB_MAKEVALUE(x, S_IO_IDLE_CYCLE) |
163 | #define G_IO_IDLE_CYCLE(x) _SB_GETVALUE(x,S_IO_IDLE_CYCLE,M_IO_IDLE_CYCLE) | 163 | #define G_IO_IDLE_CYCLE(x) _SB_GETVALUE(x, S_IO_IDLE_CYCLE, M_IO_IDLE_CYCLE) |
164 | 164 | ||
165 | #define S_IO_OE_TO_CS 12 | 165 | #define S_IO_OE_TO_CS 12 |
166 | #define M_IO_OE_TO_CS _SB_MAKEMASK(2,S_IO_OE_TO_CS) | 166 | #define M_IO_OE_TO_CS _SB_MAKEMASK(2, S_IO_OE_TO_CS) |
167 | #define V_IO_OE_TO_CS(x) _SB_MAKEVALUE(x,S_IO_OE_TO_CS) | 167 | #define V_IO_OE_TO_CS(x) _SB_MAKEVALUE(x, S_IO_OE_TO_CS) |
168 | #define G_IO_OE_TO_CS(x) _SB_GETVALUE(x,S_IO_OE_TO_CS,M_IO_OE_TO_CS) | 168 | #define G_IO_OE_TO_CS(x) _SB_GETVALUE(x, S_IO_OE_TO_CS, M_IO_OE_TO_CS) |
169 | 169 | ||
170 | #define S_IO_CS_TO_OE 14 | 170 | #define S_IO_CS_TO_OE 14 |
171 | #define M_IO_CS_TO_OE _SB_MAKEMASK(2,S_IO_CS_TO_OE) | 171 | #define M_IO_CS_TO_OE _SB_MAKEMASK(2, S_IO_CS_TO_OE) |
172 | #define V_IO_CS_TO_OE(x) _SB_MAKEVALUE(x,S_IO_CS_TO_OE) | 172 | #define V_IO_CS_TO_OE(x) _SB_MAKEVALUE(x, S_IO_CS_TO_OE) |
173 | #define G_IO_CS_TO_OE(x) _SB_GETVALUE(x,S_IO_CS_TO_OE,M_IO_CS_TO_OE) | 173 | #define G_IO_CS_TO_OE(x) _SB_GETVALUE(x, S_IO_CS_TO_OE, M_IO_CS_TO_OE) |
174 | 174 | ||
175 | /* | 175 | /* |
176 | * Generic Bus Interrupt Status Register (Table 11-9) | 176 | * Generic Bus Interrupt Status Register (Table 11-9) |
177 | */ | 177 | */ |
178 | 178 | ||
179 | #define M_IO_CS_ERR_INT _SB_MAKEMASK(0,8) | 179 | #define M_IO_CS_ERR_INT _SB_MAKEMASK(0, 8) |
180 | #define M_IO_CS0_ERR_INT _SB_MAKEMASK1(0) | 180 | #define M_IO_CS0_ERR_INT _SB_MAKEMASK1(0) |
181 | #define M_IO_CS1_ERR_INT _SB_MAKEMASK1(1) | 181 | #define M_IO_CS1_ERR_INT _SB_MAKEMASK1(1) |
182 | #define M_IO_CS2_ERR_INT _SB_MAKEMASK1(2) | 182 | #define M_IO_CS2_ERR_INT _SB_MAKEMASK1(2) |
@@ -200,116 +200,116 @@ | |||
200 | */ | 200 | */ |
201 | 201 | ||
202 | #define S_IO_SLEW0 0 | 202 | #define S_IO_SLEW0 0 |
203 | #define M_IO_SLEW0 _SB_MAKEMASK(2,S_IO_SLEW0) | 203 | #define M_IO_SLEW0 _SB_MAKEMASK(2, S_IO_SLEW0) |
204 | #define V_IO_SLEW0(x) _SB_MAKEVALUE(x,S_IO_SLEW0) | 204 | #define V_IO_SLEW0(x) _SB_MAKEVALUE(x, S_IO_SLEW0) |
205 | #define G_IO_SLEW0(x) _SB_GETVALUE(x,S_IO_SLEW0,M_IO_SLEW0) | 205 | #define G_IO_SLEW0(x) _SB_GETVALUE(x, S_IO_SLEW0, M_IO_SLEW0) |
206 | 206 | ||
207 | #define S_IO_DRV_A 2 | 207 | #define S_IO_DRV_A 2 |
208 | #define M_IO_DRV_A _SB_MAKEMASK(2,S_IO_DRV_A) | 208 | #define M_IO_DRV_A _SB_MAKEMASK(2, S_IO_DRV_A) |
209 | #define V_IO_DRV_A(x) _SB_MAKEVALUE(x,S_IO_DRV_A) | 209 | #define V_IO_DRV_A(x) _SB_MAKEVALUE(x, S_IO_DRV_A) |
210 | #define G_IO_DRV_A(x) _SB_GETVALUE(x,S_IO_DRV_A,M_IO_DRV_A) | 210 | #define G_IO_DRV_A(x) _SB_GETVALUE(x, S_IO_DRV_A, M_IO_DRV_A) |
211 | 211 | ||
212 | #define S_IO_DRV_B 6 | 212 | #define S_IO_DRV_B 6 |
213 | #define M_IO_DRV_B _SB_MAKEMASK(2,S_IO_DRV_B) | 213 | #define M_IO_DRV_B _SB_MAKEMASK(2, S_IO_DRV_B) |
214 | #define V_IO_DRV_B(x) _SB_MAKEVALUE(x,S_IO_DRV_B) | 214 | #define V_IO_DRV_B(x) _SB_MAKEVALUE(x, S_IO_DRV_B) |
215 | #define G_IO_DRV_B(x) _SB_GETVALUE(x,S_IO_DRV_B,M_IO_DRV_B) | 215 | #define G_IO_DRV_B(x) _SB_GETVALUE(x, S_IO_DRV_B, M_IO_DRV_B) |
216 | 216 | ||
217 | #define S_IO_DRV_C 10 | 217 | #define S_IO_DRV_C 10 |
218 | #define M_IO_DRV_C _SB_MAKEMASK(2,S_IO_DRV_C) | 218 | #define M_IO_DRV_C _SB_MAKEMASK(2, S_IO_DRV_C) |
219 | #define V_IO_DRV_C(x) _SB_MAKEVALUE(x,S_IO_DRV_C) | 219 | #define V_IO_DRV_C(x) _SB_MAKEVALUE(x, S_IO_DRV_C) |
220 | #define G_IO_DRV_C(x) _SB_GETVALUE(x,S_IO_DRV_C,M_IO_DRV_C) | 220 | #define G_IO_DRV_C(x) _SB_GETVALUE(x, S_IO_DRV_C, M_IO_DRV_C) |
221 | 221 | ||
222 | #define S_IO_DRV_D 14 | 222 | #define S_IO_DRV_D 14 |
223 | #define M_IO_DRV_D _SB_MAKEMASK(2,S_IO_DRV_D) | 223 | #define M_IO_DRV_D _SB_MAKEMASK(2, S_IO_DRV_D) |
224 | #define V_IO_DRV_D(x) _SB_MAKEVALUE(x,S_IO_DRV_D) | 224 | #define V_IO_DRV_D(x) _SB_MAKEVALUE(x, S_IO_DRV_D) |
225 | #define G_IO_DRV_D(x) _SB_GETVALUE(x,S_IO_DRV_D,M_IO_DRV_D) | 225 | #define G_IO_DRV_D(x) _SB_GETVALUE(x, S_IO_DRV_D, M_IO_DRV_D) |
226 | 226 | ||
227 | /* | 227 | /* |
228 | * Generic Bus Output Drive Control Register 1 (Table 14-19) | 228 | * Generic Bus Output Drive Control Register 1 (Table 14-19) |
229 | */ | 229 | */ |
230 | 230 | ||
231 | #define S_IO_DRV_E 2 | 231 | #define S_IO_DRV_E 2 |
232 | #define M_IO_DRV_E _SB_MAKEMASK(2,S_IO_DRV_E) | 232 | #define M_IO_DRV_E _SB_MAKEMASK(2, S_IO_DRV_E) |
233 | #define V_IO_DRV_E(x) _SB_MAKEVALUE(x,S_IO_DRV_E) | 233 | #define V_IO_DRV_E(x) _SB_MAKEVALUE(x, S_IO_DRV_E) |
234 | #define G_IO_DRV_E(x) _SB_GETVALUE(x,S_IO_DRV_E,M_IO_DRV_E) | 234 | #define G_IO_DRV_E(x) _SB_GETVALUE(x, S_IO_DRV_E, M_IO_DRV_E) |
235 | 235 | ||
236 | #define S_IO_DRV_F 6 | 236 | #define S_IO_DRV_F 6 |
237 | #define M_IO_DRV_F _SB_MAKEMASK(2,S_IO_DRV_F) | 237 | #define M_IO_DRV_F _SB_MAKEMASK(2, S_IO_DRV_F) |
238 | #define V_IO_DRV_F(x) _SB_MAKEVALUE(x,S_IO_DRV_F) | 238 | #define V_IO_DRV_F(x) _SB_MAKEVALUE(x, S_IO_DRV_F) |
239 | #define G_IO_DRV_F(x) _SB_GETVALUE(x,S_IO_DRV_F,M_IO_DRV_F) | 239 | #define G_IO_DRV_F(x) _SB_GETVALUE(x, S_IO_DRV_F, M_IO_DRV_F) |
240 | 240 | ||
241 | #define S_IO_SLEW1 8 | 241 | #define S_IO_SLEW1 8 |
242 | #define M_IO_SLEW1 _SB_MAKEMASK(2,S_IO_SLEW1) | 242 | #define M_IO_SLEW1 _SB_MAKEMASK(2, S_IO_SLEW1) |
243 | #define V_IO_SLEW1(x) _SB_MAKEVALUE(x,S_IO_SLEW1) | 243 | #define V_IO_SLEW1(x) _SB_MAKEVALUE(x, S_IO_SLEW1) |
244 | #define G_IO_SLEW1(x) _SB_GETVALUE(x,S_IO_SLEW1,M_IO_SLEW1) | 244 | #define G_IO_SLEW1(x) _SB_GETVALUE(x, S_IO_SLEW1, M_IO_SLEW1) |
245 | 245 | ||
246 | #define S_IO_DRV_G 10 | 246 | #define S_IO_DRV_G 10 |
247 | #define M_IO_DRV_G _SB_MAKEMASK(2,S_IO_DRV_G) | 247 | #define M_IO_DRV_G _SB_MAKEMASK(2, S_IO_DRV_G) |
248 | #define V_IO_DRV_G(x) _SB_MAKEVALUE(x,S_IO_DRV_G) | 248 | #define V_IO_DRV_G(x) _SB_MAKEVALUE(x, S_IO_DRV_G) |
249 | #define G_IO_DRV_G(x) _SB_GETVALUE(x,S_IO_DRV_G,M_IO_DRV_G) | 249 | #define G_IO_DRV_G(x) _SB_GETVALUE(x, S_IO_DRV_G, M_IO_DRV_G) |
250 | 250 | ||
251 | #define S_IO_SLEW2 12 | 251 | #define S_IO_SLEW2 12 |
252 | #define M_IO_SLEW2 _SB_MAKEMASK(2,S_IO_SLEW2) | 252 | #define M_IO_SLEW2 _SB_MAKEMASK(2, S_IO_SLEW2) |
253 | #define V_IO_SLEW2(x) _SB_MAKEVALUE(x,S_IO_SLEW2) | 253 | #define V_IO_SLEW2(x) _SB_MAKEVALUE(x, S_IO_SLEW2) |
254 | #define G_IO_SLEW2(x) _SB_GETVALUE(x,S_IO_SLEW2,M_IO_SLEW2) | 254 | #define G_IO_SLEW2(x) _SB_GETVALUE(x, S_IO_SLEW2, M_IO_SLEW2) |
255 | 255 | ||
256 | #define S_IO_DRV_H 14 | 256 | #define S_IO_DRV_H 14 |
257 | #define M_IO_DRV_H _SB_MAKEMASK(2,S_IO_DRV_H) | 257 | #define M_IO_DRV_H _SB_MAKEMASK(2, S_IO_DRV_H) |
258 | #define V_IO_DRV_H(x) _SB_MAKEVALUE(x,S_IO_DRV_H) | 258 | #define V_IO_DRV_H(x) _SB_MAKEVALUE(x, S_IO_DRV_H) |
259 | #define G_IO_DRV_H(x) _SB_GETVALUE(x,S_IO_DRV_H,M_IO_DRV_H) | 259 | #define G_IO_DRV_H(x) _SB_GETVALUE(x, S_IO_DRV_H, M_IO_DRV_H) |
260 | 260 | ||
261 | /* | 261 | /* |
262 | * Generic Bus Output Drive Control Register 2 (Table 14-20) | 262 | * Generic Bus Output Drive Control Register 2 (Table 14-20) |
263 | */ | 263 | */ |
264 | 264 | ||
265 | #define S_IO_DRV_J 2 | 265 | #define S_IO_DRV_J 2 |
266 | #define M_IO_DRV_J _SB_MAKEMASK(2,S_IO_DRV_J) | 266 | #define M_IO_DRV_J _SB_MAKEMASK(2, S_IO_DRV_J) |
267 | #define V_IO_DRV_J(x) _SB_MAKEVALUE(x,S_IO_DRV_J) | 267 | #define V_IO_DRV_J(x) _SB_MAKEVALUE(x, S_IO_DRV_J) |
268 | #define G_IO_DRV_J(x) _SB_GETVALUE(x,S_IO_DRV_J,M_IO_DRV_J) | 268 | #define G_IO_DRV_J(x) _SB_GETVALUE(x, S_IO_DRV_J, M_IO_DRV_J) |
269 | 269 | ||
270 | #define S_IO_DRV_K 6 | 270 | #define S_IO_DRV_K 6 |
271 | #define M_IO_DRV_K _SB_MAKEMASK(2,S_IO_DRV_K) | 271 | #define M_IO_DRV_K _SB_MAKEMASK(2, S_IO_DRV_K) |
272 | #define V_IO_DRV_K(x) _SB_MAKEVALUE(x,S_IO_DRV_K) | 272 | #define V_IO_DRV_K(x) _SB_MAKEVALUE(x, S_IO_DRV_K) |
273 | #define G_IO_DRV_K(x) _SB_GETVALUE(x,S_IO_DRV_K,M_IO_DRV_K) | 273 | #define G_IO_DRV_K(x) _SB_GETVALUE(x, S_IO_DRV_K, M_IO_DRV_K) |
274 | 274 | ||
275 | #define S_IO_DRV_L 10 | 275 | #define S_IO_DRV_L 10 |
276 | #define M_IO_DRV_L _SB_MAKEMASK(2,S_IO_DRV_L) | 276 | #define M_IO_DRV_L _SB_MAKEMASK(2, S_IO_DRV_L) |
277 | #define V_IO_DRV_L(x) _SB_MAKEVALUE(x,S_IO_DRV_L) | 277 | #define V_IO_DRV_L(x) _SB_MAKEVALUE(x, S_IO_DRV_L) |
278 | #define G_IO_DRV_L(x) _SB_GETVALUE(x,S_IO_DRV_L,M_IO_DRV_L) | 278 | #define G_IO_DRV_L(x) _SB_GETVALUE(x, S_IO_DRV_L, M_IO_DRV_L) |
279 | 279 | ||
280 | #define S_IO_DRV_M 14 | 280 | #define S_IO_DRV_M 14 |
281 | #define M_IO_DRV_M _SB_MAKEMASK(2,S_IO_DRV_M) | 281 | #define M_IO_DRV_M _SB_MAKEMASK(2, S_IO_DRV_M) |
282 | #define V_IO_DRV_M(x) _SB_MAKEVALUE(x,S_IO_DRV_M) | 282 | #define V_IO_DRV_M(x) _SB_MAKEVALUE(x, S_IO_DRV_M) |
283 | #define G_IO_DRV_M(x) _SB_GETVALUE(x,S_IO_DRV_M,M_IO_DRV_M) | 283 | #define G_IO_DRV_M(x) _SB_GETVALUE(x, S_IO_DRV_M, M_IO_DRV_M) |
284 | 284 | ||
285 | /* | 285 | /* |
286 | * Generic Bus Output Drive Control Register 3 (Table 14-21) | 286 | * Generic Bus Output Drive Control Register 3 (Table 14-21) |
287 | */ | 287 | */ |
288 | 288 | ||
289 | #define S_IO_SLEW3 0 | 289 | #define S_IO_SLEW3 0 |
290 | #define M_IO_SLEW3 _SB_MAKEMASK(2,S_IO_SLEW3) | 290 | #define M_IO_SLEW3 _SB_MAKEMASK(2, S_IO_SLEW3) |
291 | #define V_IO_SLEW3(x) _SB_MAKEVALUE(x,S_IO_SLEW3) | 291 | #define V_IO_SLEW3(x) _SB_MAKEVALUE(x, S_IO_SLEW3) |
292 | #define G_IO_SLEW3(x) _SB_GETVALUE(x,S_IO_SLEW3,M_IO_SLEW3) | 292 | #define G_IO_SLEW3(x) _SB_GETVALUE(x, S_IO_SLEW3, M_IO_SLEW3) |
293 | 293 | ||
294 | #define S_IO_DRV_N 2 | 294 | #define S_IO_DRV_N 2 |
295 | #define M_IO_DRV_N _SB_MAKEMASK(2,S_IO_DRV_N) | 295 | #define M_IO_DRV_N _SB_MAKEMASK(2, S_IO_DRV_N) |
296 | #define V_IO_DRV_N(x) _SB_MAKEVALUE(x,S_IO_DRV_N) | 296 | #define V_IO_DRV_N(x) _SB_MAKEVALUE(x, S_IO_DRV_N) |
297 | #define G_IO_DRV_N(x) _SB_GETVALUE(x,S_IO_DRV_N,M_IO_DRV_N) | 297 | #define G_IO_DRV_N(x) _SB_GETVALUE(x, S_IO_DRV_N, M_IO_DRV_N) |
298 | 298 | ||
299 | #define S_IO_DRV_P 6 | 299 | #define S_IO_DRV_P 6 |
300 | #define M_IO_DRV_P _SB_MAKEMASK(2,S_IO_DRV_P) | 300 | #define M_IO_DRV_P _SB_MAKEMASK(2, S_IO_DRV_P) |
301 | #define V_IO_DRV_P(x) _SB_MAKEVALUE(x,S_IO_DRV_P) | 301 | #define V_IO_DRV_P(x) _SB_MAKEVALUE(x, S_IO_DRV_P) |
302 | #define G_IO_DRV_P(x) _SB_GETVALUE(x,S_IO_DRV_P,M_IO_DRV_P) | 302 | #define G_IO_DRV_P(x) _SB_GETVALUE(x, S_IO_DRV_P, M_IO_DRV_P) |
303 | 303 | ||
304 | #define S_IO_DRV_Q 10 | 304 | #define S_IO_DRV_Q 10 |
305 | #define M_IO_DRV_Q _SB_MAKEMASK(2,S_IO_DRV_Q) | 305 | #define M_IO_DRV_Q _SB_MAKEMASK(2, S_IO_DRV_Q) |
306 | #define V_IO_DRV_Q(x) _SB_MAKEVALUE(x,S_IO_DRV_Q) | 306 | #define V_IO_DRV_Q(x) _SB_MAKEVALUE(x, S_IO_DRV_Q) |
307 | #define G_IO_DRV_Q(x) _SB_GETVALUE(x,S_IO_DRV_Q,M_IO_DRV_Q) | 307 | #define G_IO_DRV_Q(x) _SB_GETVALUE(x, S_IO_DRV_Q, M_IO_DRV_Q) |
308 | 308 | ||
309 | #define S_IO_DRV_R 14 | 309 | #define S_IO_DRV_R 14 |
310 | #define M_IO_DRV_R _SB_MAKEMASK(2,S_IO_DRV_R) | 310 | #define M_IO_DRV_R _SB_MAKEMASK(2, S_IO_DRV_R) |
311 | #define V_IO_DRV_R(x) _SB_MAKEVALUE(x,S_IO_DRV_R) | 311 | #define V_IO_DRV_R(x) _SB_MAKEVALUE(x, S_IO_DRV_R) |
312 | #define G_IO_DRV_R(x) _SB_GETVALUE(x,S_IO_DRV_R,M_IO_DRV_R) | 312 | #define G_IO_DRV_R(x) _SB_GETVALUE(x, S_IO_DRV_R, M_IO_DRV_R) |
313 | 313 | ||
314 | 314 | ||
315 | /* | 315 | /* |
@@ -329,9 +329,9 @@ | |||
329 | 329 | ||
330 | #if SIBYTE_HDR_FEATURE_CHIP(1480) | 330 | #if SIBYTE_HDR_FEATURE_CHIP(1480) |
331 | #define S_PCMCIA_MODE 16 | 331 | #define S_PCMCIA_MODE 16 |
332 | #define M_PCMCIA_MODE _SB_MAKEMASK(3,S_PCMCIA_MODE) | 332 | #define M_PCMCIA_MODE _SB_MAKEMASK(3, S_PCMCIA_MODE) |
333 | #define V_PCMCIA_MODE(x) _SB_MAKEVALUE(x,S_PCMCIA_MODE) | 333 | #define V_PCMCIA_MODE(x) _SB_MAKEVALUE(x, S_PCMCIA_MODE) |
334 | #define G_PCMCIA_MODE(x) _SB_GETVALUE(x,S_PCMCIA_MODE,M_PCMCIA_MODE) | 334 | #define G_PCMCIA_MODE(x) _SB_GETVALUE(x, S_PCMCIA_MODE, M_PCMCIA_MODE) |
335 | 335 | ||
336 | #define K_PCMCIA_MODE_PCMA_NOB 0 /* standard PCMCIA "A", no "B" */ | 336 | #define K_PCMCIA_MODE_PCMA_NOB 0 /* standard PCMCIA "A", no "B" */ |
337 | #define K_PCMCIA_MODE_IDEA_NOB 1 /* IDE "A", no "B" */ | 337 | #define K_PCMCIA_MODE_IDEA_NOB 1 /* IDE "A", no "B" */ |
@@ -369,49 +369,49 @@ | |||
369 | #define K_GPIO_INTR_SPLIT 3 | 369 | #define K_GPIO_INTR_SPLIT 3 |
370 | 370 | ||
371 | #define S_GPIO_INTR_TYPEX(n) (((n)/2)*2) | 371 | #define S_GPIO_INTR_TYPEX(n) (((n)/2)*2) |
372 | #define M_GPIO_INTR_TYPEX(n) _SB_MAKEMASK(2,S_GPIO_INTR_TYPEX(n)) | 372 | #define M_GPIO_INTR_TYPEX(n) _SB_MAKEMASK(2, S_GPIO_INTR_TYPEX(n)) |
373 | #define V_GPIO_INTR_TYPEX(n,x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPEX(n)) | 373 | #define V_GPIO_INTR_TYPEX(n, x) _SB_MAKEVALUE(x, S_GPIO_INTR_TYPEX(n)) |
374 | #define G_GPIO_INTR_TYPEX(n,x) _SB_GETVALUE(x,S_GPIO_INTR_TYPEX(n),M_GPIO_INTR_TYPEX(n)) | 374 | #define G_GPIO_INTR_TYPEX(n, x) _SB_GETVALUE(x, S_GPIO_INTR_TYPEX(n), M_GPIO_INTR_TYPEX(n)) |
375 | 375 | ||
376 | #define S_GPIO_INTR_TYPE0 0 | 376 | #define S_GPIO_INTR_TYPE0 0 |
377 | #define M_GPIO_INTR_TYPE0 _SB_MAKEMASK(2,S_GPIO_INTR_TYPE0) | 377 | #define M_GPIO_INTR_TYPE0 _SB_MAKEMASK(2, S_GPIO_INTR_TYPE0) |
378 | #define V_GPIO_INTR_TYPE0(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE0) | 378 | #define V_GPIO_INTR_TYPE0(x) _SB_MAKEVALUE(x, S_GPIO_INTR_TYPE0) |
379 | #define G_GPIO_INTR_TYPE0(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE0,M_GPIO_INTR_TYPE0) | 379 | #define G_GPIO_INTR_TYPE0(x) _SB_GETVALUE(x, S_GPIO_INTR_TYPE0, M_GPIO_INTR_TYPE0) |
380 | 380 | ||
381 | #define S_GPIO_INTR_TYPE2 2 | 381 | #define S_GPIO_INTR_TYPE2 2 |
382 | #define M_GPIO_INTR_TYPE2 _SB_MAKEMASK(2,S_GPIO_INTR_TYPE2) | 382 | #define M_GPIO_INTR_TYPE2 _SB_MAKEMASK(2, S_GPIO_INTR_TYPE2) |
383 | #define V_GPIO_INTR_TYPE2(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE2) | 383 | #define V_GPIO_INTR_TYPE2(x) _SB_MAKEVALUE(x, S_GPIO_INTR_TYPE2) |
384 | #define G_GPIO_INTR_TYPE2(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE2,M_GPIO_INTR_TYPE2) | 384 | #define G_GPIO_INTR_TYPE2(x) _SB_GETVALUE(x, S_GPIO_INTR_TYPE2, M_GPIO_INTR_TYPE2) |
385 | 385 | ||
386 | #define S_GPIO_INTR_TYPE4 4 | 386 | #define S_GPIO_INTR_TYPE4 4 |
387 | #define M_GPIO_INTR_TYPE4 _SB_MAKEMASK(2,S_GPIO_INTR_TYPE4) | 387 | #define M_GPIO_INTR_TYPE4 _SB_MAKEMASK(2, S_GPIO_INTR_TYPE4) |
388 | #define V_GPIO_INTR_TYPE4(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE4) | 388 | #define V_GPIO_INTR_TYPE4(x) _SB_MAKEVALUE(x, S_GPIO_INTR_TYPE4) |
389 | #define G_GPIO_INTR_TYPE4(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE4,M_GPIO_INTR_TYPE4) | 389 | #define G_GPIO_INTR_TYPE4(x) _SB_GETVALUE(x, S_GPIO_INTR_TYPE4, M_GPIO_INTR_TYPE4) |
390 | 390 | ||
391 | #define S_GPIO_INTR_TYPE6 6 | 391 | #define S_GPIO_INTR_TYPE6 6 |
392 | #define M_GPIO_INTR_TYPE6 _SB_MAKEMASK(2,S_GPIO_INTR_TYPE6) | 392 | #define M_GPIO_INTR_TYPE6 _SB_MAKEMASK(2, S_GPIO_INTR_TYPE6) |
393 | #define V_GPIO_INTR_TYPE6(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE6) | 393 | #define V_GPIO_INTR_TYPE6(x) _SB_MAKEVALUE(x, S_GPIO_INTR_TYPE6) |
394 | #define G_GPIO_INTR_TYPE6(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE6,M_GPIO_INTR_TYPE6) | 394 | #define G_GPIO_INTR_TYPE6(x) _SB_GETVALUE(x, S_GPIO_INTR_TYPE6, M_GPIO_INTR_TYPE6) |
395 | 395 | ||
396 | #define S_GPIO_INTR_TYPE8 8 | 396 | #define S_GPIO_INTR_TYPE8 8 |
397 | #define M_GPIO_INTR_TYPE8 _SB_MAKEMASK(2,S_GPIO_INTR_TYPE8) | 397 | #define M_GPIO_INTR_TYPE8 _SB_MAKEMASK(2, S_GPIO_INTR_TYPE8) |
398 | #define V_GPIO_INTR_TYPE8(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE8) | 398 | #define V_GPIO_INTR_TYPE8(x) _SB_MAKEVALUE(x, S_GPIO_INTR_TYPE8) |
399 | #define G_GPIO_INTR_TYPE8(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE8,M_GPIO_INTR_TYPE8) | 399 | #define G_GPIO_INTR_TYPE8(x) _SB_GETVALUE(x, S_GPIO_INTR_TYPE8, M_GPIO_INTR_TYPE8) |
400 | 400 | ||
401 | #define S_GPIO_INTR_TYPE10 10 | 401 | #define S_GPIO_INTR_TYPE10 10 |
402 | #define M_GPIO_INTR_TYPE10 _SB_MAKEMASK(2,S_GPIO_INTR_TYPE10) | 402 | #define M_GPIO_INTR_TYPE10 _SB_MAKEMASK(2, S_GPIO_INTR_TYPE10) |
403 | #define V_GPIO_INTR_TYPE10(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE10) | 403 | #define V_GPIO_INTR_TYPE10(x) _SB_MAKEVALUE(x, S_GPIO_INTR_TYPE10) |
404 | #define G_GPIO_INTR_TYPE10(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE10,M_GPIO_INTR_TYPE10) | 404 | #define G_GPIO_INTR_TYPE10(x) _SB_GETVALUE(x, S_GPIO_INTR_TYPE10, M_GPIO_INTR_TYPE10) |
405 | 405 | ||
406 | #define S_GPIO_INTR_TYPE12 12 | 406 | #define S_GPIO_INTR_TYPE12 12 |
407 | #define M_GPIO_INTR_TYPE12 _SB_MAKEMASK(2,S_GPIO_INTR_TYPE12) | 407 | #define M_GPIO_INTR_TYPE12 _SB_MAKEMASK(2, S_GPIO_INTR_TYPE12) |
408 | #define V_GPIO_INTR_TYPE12(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE12) | 408 | #define V_GPIO_INTR_TYPE12(x) _SB_MAKEVALUE(x, S_GPIO_INTR_TYPE12) |
409 | #define G_GPIO_INTR_TYPE12(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE12,M_GPIO_INTR_TYPE12) | 409 | #define G_GPIO_INTR_TYPE12(x) _SB_GETVALUE(x, S_GPIO_INTR_TYPE12, M_GPIO_INTR_TYPE12) |
410 | 410 | ||
411 | #define S_GPIO_INTR_TYPE14 14 | 411 | #define S_GPIO_INTR_TYPE14 14 |
412 | #define M_GPIO_INTR_TYPE14 _SB_MAKEMASK(2,S_GPIO_INTR_TYPE14) | 412 | #define M_GPIO_INTR_TYPE14 _SB_MAKEMASK(2, S_GPIO_INTR_TYPE14) |
413 | #define V_GPIO_INTR_TYPE14(x) _SB_MAKEVALUE(x,S_GPIO_INTR_TYPE14) | 413 | #define V_GPIO_INTR_TYPE14(x) _SB_MAKEVALUE(x, S_GPIO_INTR_TYPE14) |
414 | #define G_GPIO_INTR_TYPE14(x) _SB_GETVALUE(x,S_GPIO_INTR_TYPE14,M_GPIO_INTR_TYPE14) | 414 | #define G_GPIO_INTR_TYPE14(x) _SB_GETVALUE(x, S_GPIO_INTR_TYPE14, M_GPIO_INTR_TYPE14) |
415 | 415 | ||
416 | #if SIBYTE_HDR_FEATURE_CHIP(1480) | 416 | #if SIBYTE_HDR_FEATURE_CHIP(1480) |
417 | 417 | ||
@@ -425,49 +425,49 @@ | |||
425 | #define K_GPIO_INTR_UNPRED2 3 | 425 | #define K_GPIO_INTR_UNPRED2 3 |
426 | 426 | ||
427 | #define S_GPIO_INTR_ATYPEX(n) (((n)/2)*2) | 427 | #define S_GPIO_INTR_ATYPEX(n) (((n)/2)*2) |
428 | #define M_GPIO_INTR_ATYPEX(n) _SB_MAKEMASK(2,S_GPIO_INTR_ATYPEX(n)) | 428 | #define M_GPIO_INTR_ATYPEX(n) _SB_MAKEMASK(2, S_GPIO_INTR_ATYPEX(n)) |
429 | #define V_GPIO_INTR_ATYPEX(n,x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPEX(n)) | 429 | #define V_GPIO_INTR_ATYPEX(n, x) _SB_MAKEVALUE(x, S_GPIO_INTR_ATYPEX(n)) |
430 | #define G_GPIO_INTR_ATYPEX(n,x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPEX(n),M_GPIO_INTR_ATYPEX(n)) | 430 | #define G_GPIO_INTR_ATYPEX(n, x) _SB_GETVALUE(x, S_GPIO_INTR_ATYPEX(n), M_GPIO_INTR_ATYPEX(n)) |
431 | 431 | ||
432 | #define S_GPIO_INTR_ATYPE0 0 | 432 | #define S_GPIO_INTR_ATYPE0 0 |
433 | #define M_GPIO_INTR_ATYPE0 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE0) | 433 | #define M_GPIO_INTR_ATYPE0 _SB_MAKEMASK(2, S_GPIO_INTR_ATYPE0) |
434 | #define V_GPIO_INTR_ATYPE0(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE0) | 434 | #define V_GPIO_INTR_ATYPE0(x) _SB_MAKEVALUE(x, S_GPIO_INTR_ATYPE0) |
435 | #define G_GPIO_INTR_ATYPE0(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE0,M_GPIO_INTR_ATYPE0) | 435 | #define G_GPIO_INTR_ATYPE0(x) _SB_GETVALUE(x, S_GPIO_INTR_ATYPE0, M_GPIO_INTR_ATYPE0) |
436 | 436 | ||
437 | #define S_GPIO_INTR_ATYPE2 2 | 437 | #define S_GPIO_INTR_ATYPE2 2 |
438 | #define M_GPIO_INTR_ATYPE2 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE2) | 438 | #define M_GPIO_INTR_ATYPE2 _SB_MAKEMASK(2, S_GPIO_INTR_ATYPE2) |
439 | #define V_GPIO_INTR_ATYPE2(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE2) | 439 | #define V_GPIO_INTR_ATYPE2(x) _SB_MAKEVALUE(x, S_GPIO_INTR_ATYPE2) |
440 | #define G_GPIO_INTR_ATYPE2(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE2,M_GPIO_INTR_ATYPE2) | 440 | #define G_GPIO_INTR_ATYPE2(x) _SB_GETVALUE(x, S_GPIO_INTR_ATYPE2, M_GPIO_INTR_ATYPE2) |
441 | 441 | ||
442 | #define S_GPIO_INTR_ATYPE4 4 | 442 | #define S_GPIO_INTR_ATYPE4 4 |
443 | #define M_GPIO_INTR_ATYPE4 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE4) | 443 | #define M_GPIO_INTR_ATYPE4 _SB_MAKEMASK(2, S_GPIO_INTR_ATYPE4) |
444 | #define V_GPIO_INTR_ATYPE4(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE4) | 444 | #define V_GPIO_INTR_ATYPE4(x) _SB_MAKEVALUE(x, S_GPIO_INTR_ATYPE4) |
445 | #define G_GPIO_INTR_ATYPE4(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE4,M_GPIO_INTR_ATYPE4) | 445 | #define G_GPIO_INTR_ATYPE4(x) _SB_GETVALUE(x, S_GPIO_INTR_ATYPE4, M_GPIO_INTR_ATYPE4) |
446 | 446 | ||
447 | #define S_GPIO_INTR_ATYPE6 6 | 447 | #define S_GPIO_INTR_ATYPE6 6 |
448 | #define M_GPIO_INTR_ATYPE6 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE6) | 448 | #define M_GPIO_INTR_ATYPE6 _SB_MAKEMASK(2, S_GPIO_INTR_ATYPE6) |
449 | #define V_GPIO_INTR_ATYPE6(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE6) | 449 | #define V_GPIO_INTR_ATYPE6(x) _SB_MAKEVALUE(x, S_GPIO_INTR_ATYPE6) |
450 | #define G_GPIO_INTR_ATYPE6(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE6,M_GPIO_INTR_ATYPE6) | 450 | #define G_GPIO_INTR_ATYPE6(x) _SB_GETVALUE(x, S_GPIO_INTR_ATYPE6, M_GPIO_INTR_ATYPE6) |
451 | 451 | ||
452 | #define S_GPIO_INTR_ATYPE8 8 | 452 | #define S_GPIO_INTR_ATYPE8 8 |
453 | #define M_GPIO_INTR_ATYPE8 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE8) | 453 | #define M_GPIO_INTR_ATYPE8 _SB_MAKEMASK(2, S_GPIO_INTR_ATYPE8) |
454 | #define V_GPIO_INTR_ATYPE8(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE8) | 454 | #define V_GPIO_INTR_ATYPE8(x) _SB_MAKEVALUE(x, S_GPIO_INTR_ATYPE8) |
455 | #define G_GPIO_INTR_ATYPE8(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE8,M_GPIO_INTR_ATYPE8) | 455 | #define G_GPIO_INTR_ATYPE8(x) _SB_GETVALUE(x, S_GPIO_INTR_ATYPE8, M_GPIO_INTR_ATYPE8) |
456 | 456 | ||
457 | #define S_GPIO_INTR_ATYPE10 10 | 457 | #define S_GPIO_INTR_ATYPE10 10 |
458 | #define M_GPIO_INTR_ATYPE10 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE10) | 458 | #define M_GPIO_INTR_ATYPE10 _SB_MAKEMASK(2, S_GPIO_INTR_ATYPE10) |
459 | #define V_GPIO_INTR_ATYPE10(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE10) | 459 | #define V_GPIO_INTR_ATYPE10(x) _SB_MAKEVALUE(x, S_GPIO_INTR_ATYPE10) |
460 | #define G_GPIO_INTR_ATYPE10(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE10,M_GPIO_INTR_ATYPE10) | 460 | #define G_GPIO_INTR_ATYPE10(x) _SB_GETVALUE(x, S_GPIO_INTR_ATYPE10, M_GPIO_INTR_ATYPE10) |
461 | 461 | ||
462 | #define S_GPIO_INTR_ATYPE12 12 | 462 | #define S_GPIO_INTR_ATYPE12 12 |
463 | #define M_GPIO_INTR_ATYPE12 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE12) | 463 | #define M_GPIO_INTR_ATYPE12 _SB_MAKEMASK(2, S_GPIO_INTR_ATYPE12) |
464 | #define V_GPIO_INTR_ATYPE12(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE12) | 464 | #define V_GPIO_INTR_ATYPE12(x) _SB_MAKEVALUE(x, S_GPIO_INTR_ATYPE12) |
465 | #define G_GPIO_INTR_ATYPE12(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE12,M_GPIO_INTR_ATYPE12) | 465 | #define G_GPIO_INTR_ATYPE12(x) _SB_GETVALUE(x, S_GPIO_INTR_ATYPE12, M_GPIO_INTR_ATYPE12) |
466 | 466 | ||
467 | #define S_GPIO_INTR_ATYPE14 14 | 467 | #define S_GPIO_INTR_ATYPE14 14 |
468 | #define M_GPIO_INTR_ATYPE14 _SB_MAKEMASK(2,S_GPIO_INTR_ATYPE14) | 468 | #define M_GPIO_INTR_ATYPE14 _SB_MAKEMASK(2, S_GPIO_INTR_ATYPE14) |
469 | #define V_GPIO_INTR_ATYPE14(x) _SB_MAKEVALUE(x,S_GPIO_INTR_ATYPE14) | 469 | #define V_GPIO_INTR_ATYPE14(x) _SB_MAKEVALUE(x, S_GPIO_INTR_ATYPE14) |
470 | #define G_GPIO_INTR_ATYPE14(x) _SB_GETVALUE(x,S_GPIO_INTR_ATYPE14,M_GPIO_INTR_ATYPE14) | 470 | #define G_GPIO_INTR_ATYPE14(x) _SB_GETVALUE(x, S_GPIO_INTR_ATYPE14, M_GPIO_INTR_ATYPE14) |
471 | #endif | 471 | #endif |
472 | 472 | ||
473 | 473 | ||
diff --git a/include/asm-mips/sibyte/sb1250_int.h b/include/asm-mips/sibyte/sb1250_int.h index 94e8299b0a..f2850b4bcf 100644 --- a/include/asm-mips/sibyte/sb1250_int.h +++ b/include/asm-mips/sibyte/sb1250_int.h | |||
@@ -10,7 +10,7 @@ | |||
10 | * | 10 | * |
11 | ********************************************************************* | 11 | ********************************************************************* |
12 | * | 12 | * |
13 | * Copyright 2000,2001,2002,2003 | 13 | * Copyright 2000, 2001, 2002, 2003 |
14 | * Broadcom Corporation. All rights reserved. | 14 | * Broadcom Corporation. All rights reserved. |
15 | * | 15 | * |
16 | * This program is free software; you can redistribute it and/or | 16 | * This program is free software; you can redistribute it and/or |
@@ -150,7 +150,7 @@ | |||
150 | #define M_INT_MBOX_1 _SB_MAKEMASK1(K_INT_MBOX_1) | 150 | #define M_INT_MBOX_1 _SB_MAKEMASK1(K_INT_MBOX_1) |
151 | #define M_INT_MBOX_2 _SB_MAKEMASK1(K_INT_MBOX_2) | 151 | #define M_INT_MBOX_2 _SB_MAKEMASK1(K_INT_MBOX_2) |
152 | #define M_INT_MBOX_3 _SB_MAKEMASK1(K_INT_MBOX_3) | 152 | #define M_INT_MBOX_3 _SB_MAKEMASK1(K_INT_MBOX_3) |
153 | #define M_INT_MBOX_ALL _SB_MAKEMASK(4,K_INT_MBOX_0) | 153 | #define M_INT_MBOX_ALL _SB_MAKEMASK(4, K_INT_MBOX_0) |
154 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) | 154 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) |
155 | #define M_INT_CYCLE_CP0_INT _SB_MAKEMASK1(K_INT_CYCLE_CP0_INT) | 155 | #define M_INT_CYCLE_CP0_INT _SB_MAKEMASK1(K_INT_CYCLE_CP0_INT) |
156 | #define M_INT_CYCLE_CP1_INT _SB_MAKEMASK1(K_INT_CYCLE_CP1_INT) | 156 | #define M_INT_CYCLE_CP1_INT _SB_MAKEMASK1(K_INT_CYCLE_CP1_INT) |
@@ -208,9 +208,9 @@ | |||
208 | */ | 208 | */ |
209 | 209 | ||
210 | #define S_INT_LDT_INTMSG 0 | 210 | #define S_INT_LDT_INTMSG 0 |
211 | #define M_INT_LDT_INTMSG _SB_MAKEMASK(3,S_INT_LDT_INTMSG) | 211 | #define M_INT_LDT_INTMSG _SB_MAKEMASK(3, S_INT_LDT_INTMSG) |
212 | #define V_INT_LDT_INTMSG(x) _SB_MAKEVALUE(x,S_INT_LDT_INTMSG) | 212 | #define V_INT_LDT_INTMSG(x) _SB_MAKEVALUE(x, S_INT_LDT_INTMSG) |
213 | #define G_INT_LDT_INTMSG(x) _SB_GETVALUE(x,S_INT_LDT_INTMSG,M_INT_LDT_INTMSG) | 213 | #define G_INT_LDT_INTMSG(x) _SB_GETVALUE(x, S_INT_LDT_INTMSG, M_INT_LDT_INTMSG) |
214 | 214 | ||
215 | #define K_INT_LDT_INTMSG_FIXED 0 | 215 | #define K_INT_LDT_INTMSG_FIXED 0 |
216 | #define K_INT_LDT_INTMSG_ARBITRATED 1 | 216 | #define K_INT_LDT_INTMSG_ARBITRATED 1 |
@@ -228,14 +228,14 @@ | |||
228 | #define M_INT_LDT_LOGICALDEST _SB_MAKEMASK1(4) | 228 | #define M_INT_LDT_LOGICALDEST _SB_MAKEMASK1(4) |
229 | 229 | ||
230 | #define S_INT_LDT_INTDEST 5 | 230 | #define S_INT_LDT_INTDEST 5 |
231 | #define M_INT_LDT_INTDEST _SB_MAKEMASK(10,S_INT_LDT_INTDEST) | 231 | #define M_INT_LDT_INTDEST _SB_MAKEMASK(10, S_INT_LDT_INTDEST) |
232 | #define V_INT_LDT_INTDEST(x) _SB_MAKEVALUE(x,S_INT_LDT_INTDEST) | 232 | #define V_INT_LDT_INTDEST(x) _SB_MAKEVALUE(x, S_INT_LDT_INTDEST) |
233 | #define G_INT_LDT_INTDEST(x) _SB_GETVALUE(x,S_INT_LDT_INTDEST,M_INT_LDT_INTDEST) | 233 | #define G_INT_LDT_INTDEST(x) _SB_GETVALUE(x, S_INT_LDT_INTDEST, M_INT_LDT_INTDEST) |
234 | 234 | ||
235 | #define S_INT_LDT_VECTOR 13 | 235 | #define S_INT_LDT_VECTOR 13 |
236 | #define M_INT_LDT_VECTOR _SB_MAKEMASK(8,S_INT_LDT_VECTOR) | 236 | #define M_INT_LDT_VECTOR _SB_MAKEMASK(8, S_INT_LDT_VECTOR) |
237 | #define V_INT_LDT_VECTOR(x) _SB_MAKEVALUE(x,S_INT_LDT_VECTOR) | 237 | #define V_INT_LDT_VECTOR(x) _SB_MAKEVALUE(x, S_INT_LDT_VECTOR) |
238 | #define G_INT_LDT_VECTOR(x) _SB_GETVALUE(x,S_INT_LDT_VECTOR,M_INT_LDT_VECTOR) | 238 | #define G_INT_LDT_VECTOR(x) _SB_GETVALUE(x, S_INT_LDT_VECTOR, M_INT_LDT_VECTOR) |
239 | 239 | ||
240 | /* | 240 | /* |
241 | * Vector format (Table 4-6) | 241 | * Vector format (Table 4-6) |
diff --git a/include/asm-mips/sibyte/sb1250_l2c.h b/include/asm-mips/sibyte/sb1250_l2c.h index 842f205094..6554dcf05c 100644 --- a/include/asm-mips/sibyte/sb1250_l2c.h +++ b/include/asm-mips/sibyte/sb1250_l2c.h | |||
@@ -40,27 +40,27 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #define S_L2C_TAG_MBZ 0 | 42 | #define S_L2C_TAG_MBZ 0 |
43 | #define M_L2C_TAG_MBZ _SB_MAKEMASK(5,S_L2C_TAG_MBZ) | 43 | #define M_L2C_TAG_MBZ _SB_MAKEMASK(5, S_L2C_TAG_MBZ) |
44 | 44 | ||
45 | #define S_L2C_TAG_INDEX 5 | 45 | #define S_L2C_TAG_INDEX 5 |
46 | #define M_L2C_TAG_INDEX _SB_MAKEMASK(12,S_L2C_TAG_INDEX) | 46 | #define M_L2C_TAG_INDEX _SB_MAKEMASK(12, S_L2C_TAG_INDEX) |
47 | #define V_L2C_TAG_INDEX(x) _SB_MAKEVALUE(x,S_L2C_TAG_INDEX) | 47 | #define V_L2C_TAG_INDEX(x) _SB_MAKEVALUE(x, S_L2C_TAG_INDEX) |
48 | #define G_L2C_TAG_INDEX(x) _SB_GETVALUE(x,S_L2C_TAG_INDEX,M_L2C_TAG_INDEX) | 48 | #define G_L2C_TAG_INDEX(x) _SB_GETVALUE(x, S_L2C_TAG_INDEX, M_L2C_TAG_INDEX) |
49 | 49 | ||
50 | #define S_L2C_TAG_TAG 17 | 50 | #define S_L2C_TAG_TAG 17 |
51 | #define M_L2C_TAG_TAG _SB_MAKEMASK(23,S_L2C_TAG_TAG) | 51 | #define M_L2C_TAG_TAG _SB_MAKEMASK(23, S_L2C_TAG_TAG) |
52 | #define V_L2C_TAG_TAG(x) _SB_MAKEVALUE(x,S_L2C_TAG_TAG) | 52 | #define V_L2C_TAG_TAG(x) _SB_MAKEVALUE(x, S_L2C_TAG_TAG) |
53 | #define G_L2C_TAG_TAG(x) _SB_GETVALUE(x,S_L2C_TAG_TAG,M_L2C_TAG_TAG) | 53 | #define G_L2C_TAG_TAG(x) _SB_GETVALUE(x, S_L2C_TAG_TAG, M_L2C_TAG_TAG) |
54 | 54 | ||
55 | #define S_L2C_TAG_ECC 40 | 55 | #define S_L2C_TAG_ECC 40 |
56 | #define M_L2C_TAG_ECC _SB_MAKEMASK(6,S_L2C_TAG_ECC) | 56 | #define M_L2C_TAG_ECC _SB_MAKEMASK(6, S_L2C_TAG_ECC) |
57 | #define V_L2C_TAG_ECC(x) _SB_MAKEVALUE(x,S_L2C_TAG_ECC) | 57 | #define V_L2C_TAG_ECC(x) _SB_MAKEVALUE(x, S_L2C_TAG_ECC) |
58 | #define G_L2C_TAG_ECC(x) _SB_GETVALUE(x,S_L2C_TAG_ECC,M_L2C_TAG_ECC) | 58 | #define G_L2C_TAG_ECC(x) _SB_GETVALUE(x, S_L2C_TAG_ECC, M_L2C_TAG_ECC) |
59 | 59 | ||
60 | #define S_L2C_TAG_WAY 46 | 60 | #define S_L2C_TAG_WAY 46 |
61 | #define M_L2C_TAG_WAY _SB_MAKEMASK(2,S_L2C_TAG_WAY) | 61 | #define M_L2C_TAG_WAY _SB_MAKEMASK(2, S_L2C_TAG_WAY) |
62 | #define V_L2C_TAG_WAY(x) _SB_MAKEVALUE(x,S_L2C_TAG_WAY) | 62 | #define V_L2C_TAG_WAY(x) _SB_MAKEVALUE(x, S_L2C_TAG_WAY) |
63 | #define G_L2C_TAG_WAY(x) _SB_GETVALUE(x,S_L2C_TAG_WAY,M_L2C_TAG_WAY) | 63 | #define G_L2C_TAG_WAY(x) _SB_GETVALUE(x, S_L2C_TAG_WAY, M_L2C_TAG_WAY) |
64 | 64 | ||
65 | #define M_L2C_TAG_DIRTY _SB_MAKEMASK1(48) | 65 | #define M_L2C_TAG_DIRTY _SB_MAKEMASK1(48) |
66 | #define M_L2C_TAG_VALID _SB_MAKEMASK1(49) | 66 | #define M_L2C_TAG_VALID _SB_MAKEMASK1(49) |
@@ -70,32 +70,32 @@ | |||
70 | */ | 70 | */ |
71 | 71 | ||
72 | #define S_L2C_MGMT_INDEX 5 | 72 | #define S_L2C_MGMT_INDEX 5 |
73 | #define M_L2C_MGMT_INDEX _SB_MAKEMASK(12,S_L2C_MGMT_INDEX) | 73 | #define M_L2C_MGMT_INDEX _SB_MAKEMASK(12, S_L2C_MGMT_INDEX) |
74 | #define V_L2C_MGMT_INDEX(x) _SB_MAKEVALUE(x,S_L2C_MGMT_INDEX) | 74 | #define V_L2C_MGMT_INDEX(x) _SB_MAKEVALUE(x, S_L2C_MGMT_INDEX) |
75 | #define G_L2C_MGMT_INDEX(x) _SB_GETVALUE(x,S_L2C_MGMT_INDEX,M_L2C_MGMT_INDEX) | 75 | #define G_L2C_MGMT_INDEX(x) _SB_GETVALUE(x, S_L2C_MGMT_INDEX, M_L2C_MGMT_INDEX) |
76 | 76 | ||
77 | #define S_L2C_MGMT_QUADRANT 15 | 77 | #define S_L2C_MGMT_QUADRANT 15 |
78 | #define M_L2C_MGMT_QUADRANT _SB_MAKEMASK(2,S_L2C_MGMT_QUADRANT) | 78 | #define M_L2C_MGMT_QUADRANT _SB_MAKEMASK(2, S_L2C_MGMT_QUADRANT) |
79 | #define V_L2C_MGMT_QUADRANT(x) _SB_MAKEVALUE(x,S_L2C_MGMT_QUADRANT) | 79 | #define V_L2C_MGMT_QUADRANT(x) _SB_MAKEVALUE(x, S_L2C_MGMT_QUADRANT) |
80 | #define G_L2C_MGMT_QUADRANT(x) _SB_GETVALUE(x,S_L2C_MGMT_QUADRANT,M_L2C_MGMT_QUADRANT) | 80 | #define G_L2C_MGMT_QUADRANT(x) _SB_GETVALUE(x, S_L2C_MGMT_QUADRANT, M_L2C_MGMT_QUADRANT) |
81 | 81 | ||
82 | #define S_L2C_MGMT_HALF 16 | 82 | #define S_L2C_MGMT_HALF 16 |
83 | #define M_L2C_MGMT_HALF _SB_MAKEMASK(1,S_L2C_MGMT_HALF) | 83 | #define M_L2C_MGMT_HALF _SB_MAKEMASK(1, S_L2C_MGMT_HALF) |
84 | 84 | ||
85 | #define S_L2C_MGMT_WAY 17 | 85 | #define S_L2C_MGMT_WAY 17 |
86 | #define M_L2C_MGMT_WAY _SB_MAKEMASK(2,S_L2C_MGMT_WAY) | 86 | #define M_L2C_MGMT_WAY _SB_MAKEMASK(2, S_L2C_MGMT_WAY) |
87 | #define V_L2C_MGMT_WAY(x) _SB_MAKEVALUE(x,S_L2C_MGMT_WAY) | 87 | #define V_L2C_MGMT_WAY(x) _SB_MAKEVALUE(x, S_L2C_MGMT_WAY) |
88 | #define G_L2C_MGMT_WAY(x) _SB_GETVALUE(x,S_L2C_MGMT_WAY,M_L2C_MGMT_WAY) | 88 | #define G_L2C_MGMT_WAY(x) _SB_GETVALUE(x, S_L2C_MGMT_WAY, M_L2C_MGMT_WAY) |
89 | 89 | ||
90 | #define S_L2C_MGMT_ECC_DIAG 21 | 90 | #define S_L2C_MGMT_ECC_DIAG 21 |
91 | #define M_L2C_MGMT_ECC_DIAG _SB_MAKEMASK(2,S_L2C_MGMT_ECC_DIAG) | 91 | #define M_L2C_MGMT_ECC_DIAG _SB_MAKEMASK(2, S_L2C_MGMT_ECC_DIAG) |
92 | #define V_L2C_MGMT_ECC_DIAG(x) _SB_MAKEVALUE(x,S_L2C_MGMT_ECC_DIAG) | 92 | #define V_L2C_MGMT_ECC_DIAG(x) _SB_MAKEVALUE(x, S_L2C_MGMT_ECC_DIAG) |
93 | #define G_L2C_MGMT_ECC_DIAG(x) _SB_GETVALUE(x,S_L2C_MGMT_ECC_DIAG,M_L2C_MGMT_ECC_DIAG) | 93 | #define G_L2C_MGMT_ECC_DIAG(x) _SB_GETVALUE(x, S_L2C_MGMT_ECC_DIAG, M_L2C_MGMT_ECC_DIAG) |
94 | 94 | ||
95 | #define S_L2C_MGMT_TAG 23 | 95 | #define S_L2C_MGMT_TAG 23 |
96 | #define M_L2C_MGMT_TAG _SB_MAKEMASK(4,S_L2C_MGMT_TAG) | 96 | #define M_L2C_MGMT_TAG _SB_MAKEMASK(4, S_L2C_MGMT_TAG) |
97 | #define V_L2C_MGMT_TAG(x) _SB_MAKEVALUE(x,S_L2C_MGMT_TAG) | 97 | #define V_L2C_MGMT_TAG(x) _SB_MAKEVALUE(x, S_L2C_MGMT_TAG) |
98 | #define G_L2C_MGMT_TAG(x) _SB_GETVALUE(x,S_L2C_MGMT_TAG,M_L2C_MGMT_TAG) | 98 | #define G_L2C_MGMT_TAG(x) _SB_GETVALUE(x, S_L2C_MGMT_TAG, M_L2C_MGMT_TAG) |
99 | 99 | ||
100 | #define M_L2C_MGMT_DIRTY _SB_MAKEMASK1(19) | 100 | #define M_L2C_MGMT_DIRTY _SB_MAKEMASK1(19) |
101 | #define M_L2C_MGMT_VALID _SB_MAKEMASK1(20) | 101 | #define M_L2C_MGMT_VALID _SB_MAKEMASK1(20) |
@@ -111,9 +111,9 @@ | |||
111 | * L2 Read Misc. register (A_L2_READ_MISC) | 111 | * L2 Read Misc. register (A_L2_READ_MISC) |
112 | */ | 112 | */ |
113 | #define S_L2C_MISC_NO_WAY 10 | 113 | #define S_L2C_MISC_NO_WAY 10 |
114 | #define M_L2C_MISC_NO_WAY _SB_MAKEMASK(4,S_L2C_MISC_NO_WAY) | 114 | #define M_L2C_MISC_NO_WAY _SB_MAKEMASK(4, S_L2C_MISC_NO_WAY) |
115 | #define V_L2C_MISC_NO_WAY(x) _SB_MAKEVALUE(x,S_L2C_MISC_NO_WAY) | 115 | #define V_L2C_MISC_NO_WAY(x) _SB_MAKEVALUE(x, S_L2C_MISC_NO_WAY) |
116 | #define G_L2C_MISC_NO_WAY(x) _SB_GETVALUE(x,S_L2C_MISC_NO_WAY,M_L2C_MISC_NO_WAY) | 116 | #define G_L2C_MISC_NO_WAY(x) _SB_GETVALUE(x, S_L2C_MISC_NO_WAY, M_L2C_MISC_NO_WAY) |
117 | 117 | ||
118 | #define M_L2C_MISC_ECC_CLEANUP_DIS _SB_MAKEMASK1(9) | 118 | #define M_L2C_MISC_ECC_CLEANUP_DIS _SB_MAKEMASK1(9) |
119 | #define M_L2C_MISC_MC_PRIO_LOW _SB_MAKEMASK1(8) | 119 | #define M_L2C_MISC_MC_PRIO_LOW _SB_MAKEMASK1(8) |
diff --git a/include/asm-mips/sibyte/sb1250_ldt.h b/include/asm-mips/sibyte/sb1250_ldt.h index 7092535d11..081e8b1c4a 100644 --- a/include/asm-mips/sibyte/sb1250_ldt.h +++ b/include/asm-mips/sibyte/sb1250_ldt.h | |||
@@ -10,7 +10,7 @@ | |||
10 | * | 10 | * |
11 | ********************************************************************* | 11 | ********************************************************************* |
12 | * | 12 | * |
13 | * Copyright 2000,2001,2002,2003 | 13 | * Copyright 2000, 2001, 2002, 2003 |
14 | * Broadcom Corporation. All rights reserved. | 14 | * Broadcom Corporation. All rights reserved. |
15 | * | 15 | * |
16 | * This program is free software; you can redistribute it and/or | 16 | * This program is free software; you can redistribute it and/or |
@@ -81,14 +81,14 @@ | |||
81 | */ | 81 | */ |
82 | 82 | ||
83 | #define S_LDT_DEVICEID_VENDOR 0 | 83 | #define S_LDT_DEVICEID_VENDOR 0 |
84 | #define M_LDT_DEVICEID_VENDOR _SB_MAKEMASK_32(16,S_LDT_DEVICEID_VENDOR) | 84 | #define M_LDT_DEVICEID_VENDOR _SB_MAKEMASK_32(16, S_LDT_DEVICEID_VENDOR) |
85 | #define V_LDT_DEVICEID_VENDOR(x) _SB_MAKEVALUE_32(x,S_LDT_DEVICEID_VENDOR) | 85 | #define V_LDT_DEVICEID_VENDOR(x) _SB_MAKEVALUE_32(x, S_LDT_DEVICEID_VENDOR) |
86 | #define G_LDT_DEVICEID_VENDOR(x) _SB_GETVALUE_32(x,S_LDT_DEVICEID_VENDOR,M_LDT_DEVICEID_VENDOR) | 86 | #define G_LDT_DEVICEID_VENDOR(x) _SB_GETVALUE_32(x, S_LDT_DEVICEID_VENDOR, M_LDT_DEVICEID_VENDOR) |
87 | 87 | ||
88 | #define S_LDT_DEVICEID_DEVICEID 16 | 88 | #define S_LDT_DEVICEID_DEVICEID 16 |
89 | #define M_LDT_DEVICEID_DEVICEID _SB_MAKEMASK_32(16,S_LDT_DEVICEID_DEVICEID) | 89 | #define M_LDT_DEVICEID_DEVICEID _SB_MAKEMASK_32(16, S_LDT_DEVICEID_DEVICEID) |
90 | #define V_LDT_DEVICEID_DEVICEID(x) _SB_MAKEVALUE_32(x,S_LDT_DEVICEID_DEVICEID) | 90 | #define V_LDT_DEVICEID_DEVICEID(x) _SB_MAKEVALUE_32(x, S_LDT_DEVICEID_DEVICEID) |
91 | #define G_LDT_DEVICEID_DEVICEID(x) _SB_GETVALUE_32(x,S_LDT_DEVICEID_DEVICEID,M_LDT_DEVICEID_DEVICEID) | 91 | #define G_LDT_DEVICEID_DEVICEID(x) _SB_GETVALUE_32(x, S_LDT_DEVICEID_DEVICEID, M_LDT_DEVICEID_DEVICEID) |
92 | 92 | ||
93 | 93 | ||
94 | /* | 94 | /* |
@@ -111,14 +111,14 @@ | |||
111 | */ | 111 | */ |
112 | 112 | ||
113 | #define S_LDT_CLASSREV_REV 0 | 113 | #define S_LDT_CLASSREV_REV 0 |
114 | #define M_LDT_CLASSREV_REV _SB_MAKEMASK_32(8,S_LDT_CLASSREV_REV) | 114 | #define M_LDT_CLASSREV_REV _SB_MAKEMASK_32(8, S_LDT_CLASSREV_REV) |
115 | #define V_LDT_CLASSREV_REV(x) _SB_MAKEVALUE_32(x,S_LDT_CLASSREV_REV) | 115 | #define V_LDT_CLASSREV_REV(x) _SB_MAKEVALUE_32(x, S_LDT_CLASSREV_REV) |
116 | #define G_LDT_CLASSREV_REV(x) _SB_GETVALUE_32(x,S_LDT_CLASSREV_REV,M_LDT_CLASSREV_REV) | 116 | #define G_LDT_CLASSREV_REV(x) _SB_GETVALUE_32(x, S_LDT_CLASSREV_REV, M_LDT_CLASSREV_REV) |
117 | 117 | ||
118 | #define S_LDT_CLASSREV_CLASS 8 | 118 | #define S_LDT_CLASSREV_CLASS 8 |
119 | #define M_LDT_CLASSREV_CLASS _SB_MAKEMASK_32(24,S_LDT_CLASSREV_CLASS) | 119 | #define M_LDT_CLASSREV_CLASS _SB_MAKEMASK_32(24, S_LDT_CLASSREV_CLASS) |
120 | #define V_LDT_CLASSREV_CLASS(x) _SB_MAKEVALUE_32(x,S_LDT_CLASSREV_CLASS) | 120 | #define V_LDT_CLASSREV_CLASS(x) _SB_MAKEVALUE_32(x, S_LDT_CLASSREV_CLASS) |
121 | #define G_LDT_CLASSREV_CLASS(x) _SB_GETVALUE_32(x,S_LDT_CLASSREV_CLASS,M_LDT_CLASSREV_CLASS) | 121 | #define G_LDT_CLASSREV_CLASS(x) _SB_GETVALUE_32(x, S_LDT_CLASSREV_CLASS, M_LDT_CLASSREV_CLASS) |
122 | 122 | ||
123 | #define K_LDT_REV 0x01 | 123 | #define K_LDT_REV 0x01 |
124 | #define K_LDT_CLASS 0x060000 | 124 | #define K_LDT_CLASS 0x060000 |
@@ -128,26 +128,26 @@ | |||
128 | */ | 128 | */ |
129 | 129 | ||
130 | #define S_LDT_DEVHDR_CLINESZ 0 | 130 | #define S_LDT_DEVHDR_CLINESZ 0 |
131 | #define M_LDT_DEVHDR_CLINESZ _SB_MAKEMASK_32(8,S_LDT_DEVHDR_CLINESZ) | 131 | #define M_LDT_DEVHDR_CLINESZ _SB_MAKEMASK_32(8, S_LDT_DEVHDR_CLINESZ) |
132 | #define V_LDT_DEVHDR_CLINESZ(x) _SB_MAKEVALUE_32(x,S_LDT_DEVHDR_CLINESZ) | 132 | #define V_LDT_DEVHDR_CLINESZ(x) _SB_MAKEVALUE_32(x, S_LDT_DEVHDR_CLINESZ) |
133 | #define G_LDT_DEVHDR_CLINESZ(x) _SB_GETVALUE_32(x,S_LDT_DEVHDR_CLINESZ,M_LDT_DEVHDR_CLINESZ) | 133 | #define G_LDT_DEVHDR_CLINESZ(x) _SB_GETVALUE_32(x, S_LDT_DEVHDR_CLINESZ, M_LDT_DEVHDR_CLINESZ) |
134 | 134 | ||
135 | #define S_LDT_DEVHDR_LATTMR 8 | 135 | #define S_LDT_DEVHDR_LATTMR 8 |
136 | #define M_LDT_DEVHDR_LATTMR _SB_MAKEMASK_32(8,S_LDT_DEVHDR_LATTMR) | 136 | #define M_LDT_DEVHDR_LATTMR _SB_MAKEMASK_32(8, S_LDT_DEVHDR_LATTMR) |
137 | #define V_LDT_DEVHDR_LATTMR(x) _SB_MAKEVALUE_32(x,S_LDT_DEVHDR_LATTMR) | 137 | #define V_LDT_DEVHDR_LATTMR(x) _SB_MAKEVALUE_32(x, S_LDT_DEVHDR_LATTMR) |
138 | #define G_LDT_DEVHDR_LATTMR(x) _SB_GETVALUE_32(x,S_LDT_DEVHDR_LATTMR,M_LDT_DEVHDR_LATTMR) | 138 | #define G_LDT_DEVHDR_LATTMR(x) _SB_GETVALUE_32(x, S_LDT_DEVHDR_LATTMR, M_LDT_DEVHDR_LATTMR) |
139 | 139 | ||
140 | #define S_LDT_DEVHDR_HDRTYPE 16 | 140 | #define S_LDT_DEVHDR_HDRTYPE 16 |
141 | #define M_LDT_DEVHDR_HDRTYPE _SB_MAKEMASK_32(8,S_LDT_DEVHDR_HDRTYPE) | 141 | #define M_LDT_DEVHDR_HDRTYPE _SB_MAKEMASK_32(8, S_LDT_DEVHDR_HDRTYPE) |
142 | #define V_LDT_DEVHDR_HDRTYPE(x) _SB_MAKEVALUE_32(x,S_LDT_DEVHDR_HDRTYPE) | 142 | #define V_LDT_DEVHDR_HDRTYPE(x) _SB_MAKEVALUE_32(x, S_LDT_DEVHDR_HDRTYPE) |
143 | #define G_LDT_DEVHDR_HDRTYPE(x) _SB_GETVALUE_32(x,S_LDT_DEVHDR_HDRTYPE,M_LDT_DEVHDR_HDRTYPE) | 143 | #define G_LDT_DEVHDR_HDRTYPE(x) _SB_GETVALUE_32(x, S_LDT_DEVHDR_HDRTYPE, M_LDT_DEVHDR_HDRTYPE) |
144 | 144 | ||
145 | #define K_LDT_DEVHDR_HDRTYPE_TYPE1 1 | 145 | #define K_LDT_DEVHDR_HDRTYPE_TYPE1 1 |
146 | 146 | ||
147 | #define S_LDT_DEVHDR_BIST 24 | 147 | #define S_LDT_DEVHDR_BIST 24 |
148 | #define M_LDT_DEVHDR_BIST _SB_MAKEMASK_32(8,S_LDT_DEVHDR_BIST) | 148 | #define M_LDT_DEVHDR_BIST _SB_MAKEMASK_32(8, S_LDT_DEVHDR_BIST) |
149 | #define V_LDT_DEVHDR_BIST(x) _SB_MAKEVALUE_32(x,S_LDT_DEVHDR_BIST) | 149 | #define V_LDT_DEVHDR_BIST(x) _SB_MAKEVALUE_32(x, S_LDT_DEVHDR_BIST) |
150 | #define G_LDT_DEVHDR_BIST(x) _SB_GETVALUE_32(x,S_LDT_DEVHDR_BIST,M_LDT_DEVHDR_BIST) | 150 | #define G_LDT_DEVHDR_BIST(x) _SB_GETVALUE_32(x, S_LDT_DEVHDR_BIST, M_LDT_DEVHDR_BIST) |
151 | 151 | ||
152 | 152 | ||
153 | 153 | ||
@@ -170,9 +170,9 @@ | |||
170 | #define M_LDT_STATUS_MSTRDPARERR _SB_MAKEMASK1_32(24) | 170 | #define M_LDT_STATUS_MSTRDPARERR _SB_MAKEMASK1_32(24) |
171 | 171 | ||
172 | #define S_LDT_STATUS_DEVSELTIMING 25 | 172 | #define S_LDT_STATUS_DEVSELTIMING 25 |
173 | #define M_LDT_STATUS_DEVSELTIMING _SB_MAKEMASK_32(2,S_LDT_STATUS_DEVSELTIMING) | 173 | #define M_LDT_STATUS_DEVSELTIMING _SB_MAKEMASK_32(2, S_LDT_STATUS_DEVSELTIMING) |
174 | #define V_LDT_STATUS_DEVSELTIMING(x) _SB_MAKEVALUE_32(x,S_LDT_STATUS_DEVSELTIMING) | 174 | #define V_LDT_STATUS_DEVSELTIMING(x) _SB_MAKEVALUE_32(x, S_LDT_STATUS_DEVSELTIMING) |
175 | #define G_LDT_STATUS_DEVSELTIMING(x) _SB_GETVALUE_32(x,S_LDT_STATUS_DEVSELTIMING,M_LDT_STATUS_DEVSELTIMING) | 175 | #define G_LDT_STATUS_DEVSELTIMING(x) _SB_GETVALUE_32(x, S_LDT_STATUS_DEVSELTIMING, M_LDT_STATUS_DEVSELTIMING) |
176 | 176 | ||
177 | #define M_LDT_STATUS_SIGDTGTABORT _SB_MAKEMASK1_32(27) | 177 | #define M_LDT_STATUS_SIGDTGTABORT _SB_MAKEMASK1_32(27) |
178 | #define M_LDT_STATUS_RCVDTGTABORT _SB_MAKEMASK1_32(28) | 178 | #define M_LDT_STATUS_RCVDTGTABORT _SB_MAKEMASK1_32(28) |
@@ -208,9 +208,9 @@ | |||
208 | #define M_LDT_CMD_DOUBLEENDED _SB_MAKEMASK1_32(17) | 208 | #define M_LDT_CMD_DOUBLEENDED _SB_MAKEMASK1_32(17) |
209 | 209 | ||
210 | #define S_LDT_CMD_CAPTYPE 29 | 210 | #define S_LDT_CMD_CAPTYPE 29 |
211 | #define M_LDT_CMD_CAPTYPE _SB_MAKEMASK_32(3,S_LDT_CMD_CAPTYPE) | 211 | #define M_LDT_CMD_CAPTYPE _SB_MAKEMASK_32(3, S_LDT_CMD_CAPTYPE) |
212 | #define V_LDT_CMD_CAPTYPE(x) _SB_MAKEVALUE_32(x,S_LDT_CMD_CAPTYPE) | 212 | #define V_LDT_CMD_CAPTYPE(x) _SB_MAKEVALUE_32(x, S_LDT_CMD_CAPTYPE) |
213 | #define G_LDT_CMD_CAPTYPE(x) _SB_GETVALUE_32(x,S_LDT_CMD_CAPTYPE,M_LDT_CMD_CAPTYPE) | 213 | #define G_LDT_CMD_CAPTYPE(x) _SB_GETVALUE_32(x, S_LDT_CMD_CAPTYPE, M_LDT_CMD_CAPTYPE) |
214 | 214 | ||
215 | /* | 215 | /* |
216 | * LDT link control register (Table 8-18), and (Table 8-19) | 216 | * LDT link control register (Table 8-18), and (Table 8-19) |
@@ -225,35 +225,35 @@ | |||
225 | #define M_LDT_LINKCTRL_XMITOFF _SB_MAKEMASK1_32(7) | 225 | #define M_LDT_LINKCTRL_XMITOFF _SB_MAKEMASK1_32(7) |
226 | 226 | ||
227 | #define S_LDT_LINKCTRL_CRCERR 8 | 227 | #define S_LDT_LINKCTRL_CRCERR 8 |
228 | #define M_LDT_LINKCTRL_CRCERR _SB_MAKEMASK_32(4,S_LDT_LINKCTRL_CRCERR) | 228 | #define M_LDT_LINKCTRL_CRCERR _SB_MAKEMASK_32(4, S_LDT_LINKCTRL_CRCERR) |
229 | #define V_LDT_LINKCTRL_CRCERR(x) _SB_MAKEVALUE_32(x,S_LDT_LINKCTRL_CRCERR) | 229 | #define V_LDT_LINKCTRL_CRCERR(x) _SB_MAKEVALUE_32(x, S_LDT_LINKCTRL_CRCERR) |
230 | #define G_LDT_LINKCTRL_CRCERR(x) _SB_GETVALUE_32(x,S_LDT_LINKCTRL_CRCERR,M_LDT_LINKCTRL_CRCERR) | 230 | #define G_LDT_LINKCTRL_CRCERR(x) _SB_GETVALUE_32(x, S_LDT_LINKCTRL_CRCERR, M_LDT_LINKCTRL_CRCERR) |
231 | 231 | ||
232 | #define S_LDT_LINKCTRL_MAXIN 16 | 232 | #define S_LDT_LINKCTRL_MAXIN 16 |
233 | #define M_LDT_LINKCTRL_MAXIN _SB_MAKEMASK_32(3,S_LDT_LINKCTRL_MAXIN) | 233 | #define M_LDT_LINKCTRL_MAXIN _SB_MAKEMASK_32(3, S_LDT_LINKCTRL_MAXIN) |
234 | #define V_LDT_LINKCTRL_MAXIN(x) _SB_MAKEVALUE_32(x,S_LDT_LINKCTRL_MAXIN) | 234 | #define V_LDT_LINKCTRL_MAXIN(x) _SB_MAKEVALUE_32(x, S_LDT_LINKCTRL_MAXIN) |
235 | #define G_LDT_LINKCTRL_MAXIN(x) _SB_GETVALUE_32(x,S_LDT_LINKCTRL_MAXIN,M_LDT_LINKCTRL_MAXIN) | 235 | #define G_LDT_LINKCTRL_MAXIN(x) _SB_GETVALUE_32(x, S_LDT_LINKCTRL_MAXIN, M_LDT_LINKCTRL_MAXIN) |
236 | 236 | ||
237 | #define M_LDT_LINKCTRL_DWFCLN _SB_MAKEMASK1_32(19) | 237 | #define M_LDT_LINKCTRL_DWFCLN _SB_MAKEMASK1_32(19) |
238 | 238 | ||
239 | #define S_LDT_LINKCTRL_MAXOUT 20 | 239 | #define S_LDT_LINKCTRL_MAXOUT 20 |
240 | #define M_LDT_LINKCTRL_MAXOUT _SB_MAKEMASK_32(3,S_LDT_LINKCTRL_MAXOUT) | 240 | #define M_LDT_LINKCTRL_MAXOUT _SB_MAKEMASK_32(3, S_LDT_LINKCTRL_MAXOUT) |
241 | #define V_LDT_LINKCTRL_MAXOUT(x) _SB_MAKEVALUE_32(x,S_LDT_LINKCTRL_MAXOUT) | 241 | #define V_LDT_LINKCTRL_MAXOUT(x) _SB_MAKEVALUE_32(x, S_LDT_LINKCTRL_MAXOUT) |
242 | #define G_LDT_LINKCTRL_MAXOUT(x) _SB_GETVALUE_32(x,S_LDT_LINKCTRL_MAXOUT,M_LDT_LINKCTRL_MAXOUT) | 242 | #define G_LDT_LINKCTRL_MAXOUT(x) _SB_GETVALUE_32(x, S_LDT_LINKCTRL_MAXOUT, M_LDT_LINKCTRL_MAXOUT) |
243 | 243 | ||
244 | #define M_LDT_LINKCTRL_DWFCOUT _SB_MAKEMASK1_32(23) | 244 | #define M_LDT_LINKCTRL_DWFCOUT _SB_MAKEMASK1_32(23) |
245 | 245 | ||
246 | #define S_LDT_LINKCTRL_WIDTHIN 24 | 246 | #define S_LDT_LINKCTRL_WIDTHIN 24 |
247 | #define M_LDT_LINKCTRL_WIDTHIN _SB_MAKEMASK_32(3,S_LDT_LINKCTRL_WIDTHIN) | 247 | #define M_LDT_LINKCTRL_WIDTHIN _SB_MAKEMASK_32(3, S_LDT_LINKCTRL_WIDTHIN) |
248 | #define V_LDT_LINKCTRL_WIDTHIN(x) _SB_MAKEVALUE_32(x,S_LDT_LINKCTRL_WIDTHIN) | 248 | #define V_LDT_LINKCTRL_WIDTHIN(x) _SB_MAKEVALUE_32(x, S_LDT_LINKCTRL_WIDTHIN) |
249 | #define G_LDT_LINKCTRL_WIDTHIN(x) _SB_GETVALUE_32(x,S_LDT_LINKCTRL_WIDTHIN,M_LDT_LINKCTRL_WIDTHIN) | 249 | #define G_LDT_LINKCTRL_WIDTHIN(x) _SB_GETVALUE_32(x, S_LDT_LINKCTRL_WIDTHIN, M_LDT_LINKCTRL_WIDTHIN) |
250 | 250 | ||
251 | #define M_LDT_LINKCTRL_DWFCLIN_EN _SB_MAKEMASK1_32(27) | 251 | #define M_LDT_LINKCTRL_DWFCLIN_EN _SB_MAKEMASK1_32(27) |
252 | 252 | ||
253 | #define S_LDT_LINKCTRL_WIDTHOUT 28 | 253 | #define S_LDT_LINKCTRL_WIDTHOUT 28 |
254 | #define M_LDT_LINKCTRL_WIDTHOUT _SB_MAKEMASK_32(3,S_LDT_LINKCTRL_WIDTHOUT) | 254 | #define M_LDT_LINKCTRL_WIDTHOUT _SB_MAKEMASK_32(3, S_LDT_LINKCTRL_WIDTHOUT) |
255 | #define V_LDT_LINKCTRL_WIDTHOUT(x) _SB_MAKEVALUE_32(x,S_LDT_LINKCTRL_WIDTHOUT) | 255 | #define V_LDT_LINKCTRL_WIDTHOUT(x) _SB_MAKEVALUE_32(x, S_LDT_LINKCTRL_WIDTHOUT) |
256 | #define G_LDT_LINKCTRL_WIDTHOUT(x) _SB_GETVALUE_32(x,S_LDT_LINKCTRL_WIDTHOUT,M_LDT_LINKCTRL_WIDTHOUT) | 256 | #define G_LDT_LINKCTRL_WIDTHOUT(x) _SB_GETVALUE_32(x, S_LDT_LINKCTRL_WIDTHOUT, M_LDT_LINKCTRL_WIDTHOUT) |
257 | 257 | ||
258 | #define M_LDT_LINKCTRL_DWFCOUT_EN _SB_MAKEMASK1_32(31) | 258 | #define M_LDT_LINKCTRL_DWFCOUT_EN _SB_MAKEMASK1_32(31) |
259 | 259 | ||
@@ -262,9 +262,9 @@ | |||
262 | */ | 262 | */ |
263 | 263 | ||
264 | #define S_LDT_LINKFREQ_FREQ 8 | 264 | #define S_LDT_LINKFREQ_FREQ 8 |
265 | #define M_LDT_LINKFREQ_FREQ _SB_MAKEMASK_32(4,S_LDT_LINKFREQ_FREQ) | 265 | #define M_LDT_LINKFREQ_FREQ _SB_MAKEMASK_32(4, S_LDT_LINKFREQ_FREQ) |
266 | #define V_LDT_LINKFREQ_FREQ(x) _SB_MAKEVALUE_32(x,S_LDT_LINKFREQ_FREQ) | 266 | #define V_LDT_LINKFREQ_FREQ(x) _SB_MAKEVALUE_32(x, S_LDT_LINKFREQ_FREQ) |
267 | #define G_LDT_LINKFREQ_FREQ(x) _SB_GETVALUE_32(x,S_LDT_LINKFREQ_FREQ,M_LDT_LINKFREQ_FREQ) | 267 | #define G_LDT_LINKFREQ_FREQ(x) _SB_GETVALUE_32(x, S_LDT_LINKFREQ_FREQ, M_LDT_LINKFREQ_FREQ) |
268 | 268 | ||
269 | #define K_LDT_LINKFREQ_200MHZ 0 | 269 | #define K_LDT_LINKFREQ_200MHZ 0 |
270 | #define K_LDT_LINKFREQ_300MHZ 1 | 270 | #define K_LDT_LINKFREQ_300MHZ 1 |
@@ -293,16 +293,16 @@ | |||
293 | 293 | ||
294 | 294 | ||
295 | #define S_LDT_SRICMD_RXMARGIN 20 | 295 | #define S_LDT_SRICMD_RXMARGIN 20 |
296 | #define M_LDT_SRICMD_RXMARGIN _SB_MAKEMASK_32(5,S_LDT_SRICMD_RXMARGIN) | 296 | #define M_LDT_SRICMD_RXMARGIN _SB_MAKEMASK_32(5, S_LDT_SRICMD_RXMARGIN) |
297 | #define V_LDT_SRICMD_RXMARGIN(x) _SB_MAKEVALUE_32(x,S_LDT_SRICMD_RXMARGIN) | 297 | #define V_LDT_SRICMD_RXMARGIN(x) _SB_MAKEVALUE_32(x, S_LDT_SRICMD_RXMARGIN) |
298 | #define G_LDT_SRICMD_RXMARGIN(x) _SB_GETVALUE_32(x,S_LDT_SRICMD_RXMARGIN,M_LDT_SRICMD_RXMARGIN) | 298 | #define G_LDT_SRICMD_RXMARGIN(x) _SB_GETVALUE_32(x, S_LDT_SRICMD_RXMARGIN, M_LDT_SRICMD_RXMARGIN) |
299 | 299 | ||
300 | #define M_LDT_SRICMD_LDTPLLCOMPAT _SB_MAKEMASK1_32(25) | 300 | #define M_LDT_SRICMD_LDTPLLCOMPAT _SB_MAKEMASK1_32(25) |
301 | 301 | ||
302 | #define S_LDT_SRICMD_TXINITIALOFFSET 28 | 302 | #define S_LDT_SRICMD_TXINITIALOFFSET 28 |
303 | #define M_LDT_SRICMD_TXINITIALOFFSET _SB_MAKEMASK_32(3,S_LDT_SRICMD_TXINITIALOFFSET) | 303 | #define M_LDT_SRICMD_TXINITIALOFFSET _SB_MAKEMASK_32(3, S_LDT_SRICMD_TXINITIALOFFSET) |
304 | #define V_LDT_SRICMD_TXINITIALOFFSET(x) _SB_MAKEVALUE_32(x,S_LDT_SRICMD_TXINITIALOFFSET) | 304 | #define V_LDT_SRICMD_TXINITIALOFFSET(x) _SB_MAKEVALUE_32(x, S_LDT_SRICMD_TXINITIALOFFSET) |
305 | #define G_LDT_SRICMD_TXINITIALOFFSET(x) _SB_GETVALUE_32(x,S_LDT_SRICMD_TXINITIALOFFSET,M_LDT_SRICMD_TXINITIALOFFSET) | 305 | #define G_LDT_SRICMD_TXINITIALOFFSET(x) _SB_GETVALUE_32(x, S_LDT_SRICMD_TXINITIALOFFSET, M_LDT_SRICMD_TXINITIALOFFSET) |
306 | 306 | ||
307 | #define M_LDT_SRICMD_LINKFREQDIRECT _SB_MAKEMASK1_32(31) | 307 | #define M_LDT_SRICMD_LINKFREQDIRECT _SB_MAKEMASK1_32(31) |
308 | 308 | ||
@@ -340,73 +340,73 @@ | |||
340 | */ | 340 | */ |
341 | 341 | ||
342 | #define S_LDT_SRICTRL_NEEDRESP 0 | 342 | #define S_LDT_SRICTRL_NEEDRESP 0 |
343 | #define M_LDT_SRICTRL_NEEDRESP _SB_MAKEMASK_32(2,S_LDT_SRICTRL_NEEDRESP) | 343 | #define M_LDT_SRICTRL_NEEDRESP _SB_MAKEMASK_32(2, S_LDT_SRICTRL_NEEDRESP) |
344 | #define V_LDT_SRICTRL_NEEDRESP(x) _SB_MAKEVALUE_32(x,S_LDT_SRICTRL_NEEDRESP) | 344 | #define V_LDT_SRICTRL_NEEDRESP(x) _SB_MAKEVALUE_32(x, S_LDT_SRICTRL_NEEDRESP) |
345 | #define G_LDT_SRICTRL_NEEDRESP(x) _SB_GETVALUE_32(x,S_LDT_SRICTRL_NEEDRESP,M_LDT_SRICTRL_NEEDRESP) | 345 | #define G_LDT_SRICTRL_NEEDRESP(x) _SB_GETVALUE_32(x, S_LDT_SRICTRL_NEEDRESP, M_LDT_SRICTRL_NEEDRESP) |
346 | 346 | ||
347 | #define S_LDT_SRICTRL_NEEDNPREQ 2 | 347 | #define S_LDT_SRICTRL_NEEDNPREQ 2 |
348 | #define M_LDT_SRICTRL_NEEDNPREQ _SB_MAKEMASK_32(2,S_LDT_SRICTRL_NEEDNPREQ) | 348 | #define M_LDT_SRICTRL_NEEDNPREQ _SB_MAKEMASK_32(2, S_LDT_SRICTRL_NEEDNPREQ) |
349 | #define V_LDT_SRICTRL_NEEDNPREQ(x) _SB_MAKEVALUE_32(x,S_LDT_SRICTRL_NEEDNPREQ) | 349 | #define V_LDT_SRICTRL_NEEDNPREQ(x) _SB_MAKEVALUE_32(x, S_LDT_SRICTRL_NEEDNPREQ) |
350 | #define G_LDT_SRICTRL_NEEDNPREQ(x) _SB_GETVALUE_32(x,S_LDT_SRICTRL_NEEDNPREQ,M_LDT_SRICTRL_NEEDNPREQ) | 350 | #define G_LDT_SRICTRL_NEEDNPREQ(x) _SB_GETVALUE_32(x, S_LDT_SRICTRL_NEEDNPREQ, M_LDT_SRICTRL_NEEDNPREQ) |
351 | 351 | ||
352 | #define S_LDT_SRICTRL_NEEDPREQ 4 | 352 | #define S_LDT_SRICTRL_NEEDPREQ 4 |
353 | #define M_LDT_SRICTRL_NEEDPREQ _SB_MAKEMASK_32(2,S_LDT_SRICTRL_NEEDPREQ) | 353 | #define M_LDT_SRICTRL_NEEDPREQ _SB_MAKEMASK_32(2, S_LDT_SRICTRL_NEEDPREQ) |
354 | #define V_LDT_SRICTRL_NEEDPREQ(x) _SB_MAKEVALUE_32(x,S_LDT_SRICTRL_NEEDPREQ) | 354 | #define V_LDT_SRICTRL_NEEDPREQ(x) _SB_MAKEVALUE_32(x, S_LDT_SRICTRL_NEEDPREQ) |
355 | #define G_LDT_SRICTRL_NEEDPREQ(x) _SB_GETVALUE_32(x,S_LDT_SRICTRL_NEEDPREQ,M_LDT_SRICTRL_NEEDPREQ) | 355 | #define G_LDT_SRICTRL_NEEDPREQ(x) _SB_GETVALUE_32(x, S_LDT_SRICTRL_NEEDPREQ, M_LDT_SRICTRL_NEEDPREQ) |
356 | 356 | ||
357 | #define S_LDT_SRICTRL_WANTRESP 8 | 357 | #define S_LDT_SRICTRL_WANTRESP 8 |
358 | #define M_LDT_SRICTRL_WANTRESP _SB_MAKEMASK_32(2,S_LDT_SRICTRL_WANTRESP) | 358 | #define M_LDT_SRICTRL_WANTRESP _SB_MAKEMASK_32(2, S_LDT_SRICTRL_WANTRESP) |
359 | #define V_LDT_SRICTRL_WANTRESP(x) _SB_MAKEVALUE_32(x,S_LDT_SRICTRL_WANTRESP) | 359 | #define V_LDT_SRICTRL_WANTRESP(x) _SB_MAKEVALUE_32(x, S_LDT_SRICTRL_WANTRESP) |
360 | #define G_LDT_SRICTRL_WANTRESP(x) _SB_GETVALUE_32(x,S_LDT_SRICTRL_WANTRESP,M_LDT_SRICTRL_WANTRESP) | 360 | #define G_LDT_SRICTRL_WANTRESP(x) _SB_GETVALUE_32(x, S_LDT_SRICTRL_WANTRESP, M_LDT_SRICTRL_WANTRESP) |
361 | 361 | ||
362 | #define S_LDT_SRICTRL_WANTNPREQ 10 | 362 | #define S_LDT_SRICTRL_WANTNPREQ 10 |
363 | #define M_LDT_SRICTRL_WANTNPREQ _SB_MAKEMASK_32(2,S_LDT_SRICTRL_WANTNPREQ) | 363 | #define M_LDT_SRICTRL_WANTNPREQ _SB_MAKEMASK_32(2, S_LDT_SRICTRL_WANTNPREQ) |
364 | #define V_LDT_SRICTRL_WANTNPREQ(x) _SB_MAKEVALUE_32(x,S_LDT_SRICTRL_WANTNPREQ) | 364 | #define V_LDT_SRICTRL_WANTNPREQ(x) _SB_MAKEVALUE_32(x, S_LDT_SRICTRL_WANTNPREQ) |
365 | #define G_LDT_SRICTRL_WANTNPREQ(x) _SB_GETVALUE_32(x,S_LDT_SRICTRL_WANTNPREQ,M_LDT_SRICTRL_WANTNPREQ) | 365 | #define G_LDT_SRICTRL_WANTNPREQ(x) _SB_GETVALUE_32(x, S_LDT_SRICTRL_WANTNPREQ, M_LDT_SRICTRL_WANTNPREQ) |
366 | 366 | ||
367 | #define S_LDT_SRICTRL_WANTPREQ 12 | 367 | #define S_LDT_SRICTRL_WANTPREQ 12 |
368 | #define M_LDT_SRICTRL_WANTPREQ _SB_MAKEMASK_32(2,S_LDT_SRICTRL_WANTPREQ) | 368 | #define M_LDT_SRICTRL_WANTPREQ _SB_MAKEMASK_32(2, S_LDT_SRICTRL_WANTPREQ) |
369 | #define V_LDT_SRICTRL_WANTPREQ(x) _SB_MAKEVALUE_32(x,S_LDT_SRICTRL_WANTPREQ) | 369 | #define V_LDT_SRICTRL_WANTPREQ(x) _SB_MAKEVALUE_32(x, S_LDT_SRICTRL_WANTPREQ) |
370 | #define G_LDT_SRICTRL_WANTPREQ(x) _SB_GETVALUE_32(x,S_LDT_SRICTRL_WANTPREQ,M_LDT_SRICTRL_WANTPREQ) | 370 | #define G_LDT_SRICTRL_WANTPREQ(x) _SB_GETVALUE_32(x, S_LDT_SRICTRL_WANTPREQ, M_LDT_SRICTRL_WANTPREQ) |
371 | 371 | ||
372 | #define S_LDT_SRICTRL_BUFRELSPACE 16 | 372 | #define S_LDT_SRICTRL_BUFRELSPACE 16 |
373 | #define M_LDT_SRICTRL_BUFRELSPACE _SB_MAKEMASK_32(4,S_LDT_SRICTRL_BUFRELSPACE) | 373 | #define M_LDT_SRICTRL_BUFRELSPACE _SB_MAKEMASK_32(4, S_LDT_SRICTRL_BUFRELSPACE) |
374 | #define V_LDT_SRICTRL_BUFRELSPACE(x) _SB_MAKEVALUE_32(x,S_LDT_SRICTRL_BUFRELSPACE) | 374 | #define V_LDT_SRICTRL_BUFRELSPACE(x) _SB_MAKEVALUE_32(x, S_LDT_SRICTRL_BUFRELSPACE) |
375 | #define G_LDT_SRICTRL_BUFRELSPACE(x) _SB_GETVALUE_32(x,S_LDT_SRICTRL_BUFRELSPACE,M_LDT_SRICTRL_BUFRELSPACE) | 375 | #define G_LDT_SRICTRL_BUFRELSPACE(x) _SB_GETVALUE_32(x, S_LDT_SRICTRL_BUFRELSPACE, M_LDT_SRICTRL_BUFRELSPACE) |
376 | 376 | ||
377 | /* | 377 | /* |
378 | * LDT SRI Transmit Buffer Count register (Table 8-26) | 378 | * LDT SRI Transmit Buffer Count register (Table 8-26) |
379 | */ | 379 | */ |
380 | 380 | ||
381 | #define S_LDT_TXBUFCNT_PCMD 0 | 381 | #define S_LDT_TXBUFCNT_PCMD 0 |
382 | #define M_LDT_TXBUFCNT_PCMD _SB_MAKEMASK_32(4,S_LDT_TXBUFCNT_PCMD) | 382 | #define M_LDT_TXBUFCNT_PCMD _SB_MAKEMASK_32(4, S_LDT_TXBUFCNT_PCMD) |
383 | #define V_LDT_TXBUFCNT_PCMD(x) _SB_MAKEVALUE_32(x,S_LDT_TXBUFCNT_PCMD) | 383 | #define V_LDT_TXBUFCNT_PCMD(x) _SB_MAKEVALUE_32(x, S_LDT_TXBUFCNT_PCMD) |
384 | #define G_LDT_TXBUFCNT_PCMD(x) _SB_GETVALUE_32(x,S_LDT_TXBUFCNT_PCMD,M_LDT_TXBUFCNT_PCMD) | 384 | #define G_LDT_TXBUFCNT_PCMD(x) _SB_GETVALUE_32(x, S_LDT_TXBUFCNT_PCMD, M_LDT_TXBUFCNT_PCMD) |
385 | 385 | ||
386 | #define S_LDT_TXBUFCNT_PDATA 4 | 386 | #define S_LDT_TXBUFCNT_PDATA 4 |
387 | #define M_LDT_TXBUFCNT_PDATA _SB_MAKEMASK_32(4,S_LDT_TXBUFCNT_PDATA) | 387 | #define M_LDT_TXBUFCNT_PDATA _SB_MAKEMASK_32(4, S_LDT_TXBUFCNT_PDATA) |
388 | #define V_LDT_TXBUFCNT_PDATA(x) _SB_MAKEVALUE_32(x,S_LDT_TXBUFCNT_PDATA) | 388 | #define V_LDT_TXBUFCNT_PDATA(x) _SB_MAKEVALUE_32(x, S_LDT_TXBUFCNT_PDATA) |
389 | #define G_LDT_TXBUFCNT_PDATA(x) _SB_GETVALUE_32(x,S_LDT_TXBUFCNT_PDATA,M_LDT_TXBUFCNT_PDATA) | 389 | #define G_LDT_TXBUFCNT_PDATA(x) _SB_GETVALUE_32(x, S_LDT_TXBUFCNT_PDATA, M_LDT_TXBUFCNT_PDATA) |
390 | 390 | ||
391 | #define S_LDT_TXBUFCNT_NPCMD 8 | 391 | #define S_LDT_TXBUFCNT_NPCMD 8 |
392 | #define M_LDT_TXBUFCNT_NPCMD _SB_MAKEMASK_32(4,S_LDT_TXBUFCNT_NPCMD) | 392 | #define M_LDT_TXBUFCNT_NPCMD _SB_MAKEMASK_32(4, S_LDT_TXBUFCNT_NPCMD) |
393 | #define V_LDT_TXBUFCNT_NPCMD(x) _SB_MAKEVALUE_32(x,S_LDT_TXBUFCNT_NPCMD) | 393 | #define V_LDT_TXBUFCNT_NPCMD(x) _SB_MAKEVALUE_32(x, S_LDT_TXBUFCNT_NPCMD) |
394 | #define G_LDT_TXBUFCNT_NPCMD(x) _SB_GETVALUE_32(x,S_LDT_TXBUFCNT_NPCMD,M_LDT_TXBUFCNT_NPCMD) | 394 | #define G_LDT_TXBUFCNT_NPCMD(x) _SB_GETVALUE_32(x, S_LDT_TXBUFCNT_NPCMD, M_LDT_TXBUFCNT_NPCMD) |
395 | 395 | ||
396 | #define S_LDT_TXBUFCNT_NPDATA 12 | 396 | #define S_LDT_TXBUFCNT_NPDATA 12 |
397 | #define M_LDT_TXBUFCNT_NPDATA _SB_MAKEMASK_32(4,S_LDT_TXBUFCNT_NPDATA) | 397 | #define M_LDT_TXBUFCNT_NPDATA _SB_MAKEMASK_32(4, S_LDT_TXBUFCNT_NPDATA) |
398 | #define V_LDT_TXBUFCNT_NPDATA(x) _SB_MAKEVALUE_32(x,S_LDT_TXBUFCNT_NPDATA) | 398 | #define V_LDT_TXBUFCNT_NPDATA(x) _SB_MAKEVALUE_32(x, S_LDT_TXBUFCNT_NPDATA) |
399 | #define G_LDT_TXBUFCNT_NPDATA(x) _SB_GETVALUE_32(x,S_LDT_TXBUFCNT_NPDATA,M_LDT_TXBUFCNT_NPDATA) | 399 | #define G_LDT_TXBUFCNT_NPDATA(x) _SB_GETVALUE_32(x, S_LDT_TXBUFCNT_NPDATA, M_LDT_TXBUFCNT_NPDATA) |
400 | 400 | ||
401 | #define S_LDT_TXBUFCNT_RCMD 16 | 401 | #define S_LDT_TXBUFCNT_RCMD 16 |
402 | #define M_LDT_TXBUFCNT_RCMD _SB_MAKEMASK_32(4,S_LDT_TXBUFCNT_RCMD) | 402 | #define M_LDT_TXBUFCNT_RCMD _SB_MAKEMASK_32(4, S_LDT_TXBUFCNT_RCMD) |
403 | #define V_LDT_TXBUFCNT_RCMD(x) _SB_MAKEVALUE_32(x,S_LDT_TXBUFCNT_RCMD) | 403 | #define V_LDT_TXBUFCNT_RCMD(x) _SB_MAKEVALUE_32(x, S_LDT_TXBUFCNT_RCMD) |
404 | #define G_LDT_TXBUFCNT_RCMD(x) _SB_GETVALUE_32(x,S_LDT_TXBUFCNT_RCMD,M_LDT_TXBUFCNT_RCMD) | 404 | #define G_LDT_TXBUFCNT_RCMD(x) _SB_GETVALUE_32(x, S_LDT_TXBUFCNT_RCMD, M_LDT_TXBUFCNT_RCMD) |
405 | 405 | ||
406 | #define S_LDT_TXBUFCNT_RDATA 20 | 406 | #define S_LDT_TXBUFCNT_RDATA 20 |
407 | #define M_LDT_TXBUFCNT_RDATA _SB_MAKEMASK_32(4,S_LDT_TXBUFCNT_RDATA) | 407 | #define M_LDT_TXBUFCNT_RDATA _SB_MAKEMASK_32(4, S_LDT_TXBUFCNT_RDATA) |
408 | #define V_LDT_TXBUFCNT_RDATA(x) _SB_MAKEVALUE_32(x,S_LDT_TXBUFCNT_RDATA) | 408 | #define V_LDT_TXBUFCNT_RDATA(x) _SB_MAKEVALUE_32(x, S_LDT_TXBUFCNT_RDATA) |
409 | #define G_LDT_TXBUFCNT_RDATA(x) _SB_GETVALUE_32(x,S_LDT_TXBUFCNT_RDATA,M_LDT_TXBUFCNT_RDATA) | 409 | #define G_LDT_TXBUFCNT_RDATA(x) _SB_GETVALUE_32(x, S_LDT_TXBUFCNT_RDATA, M_LDT_TXBUFCNT_RDATA) |
410 | 410 | ||
411 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) | 411 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) |
412 | /* | 412 | /* |
@@ -414,9 +414,9 @@ | |||
414 | */ | 414 | */ |
415 | 415 | ||
416 | #define S_LDT_ADDSTATUS_TGTDONE 0 | 416 | #define S_LDT_ADDSTATUS_TGTDONE 0 |
417 | #define M_LDT_ADDSTATUS_TGTDONE _SB_MAKEMASK_32(8,S_LDT_ADDSTATUS_TGTDONE) | 417 | #define M_LDT_ADDSTATUS_TGTDONE _SB_MAKEMASK_32(8, S_LDT_ADDSTATUS_TGTDONE) |
418 | #define V_LDT_ADDSTATUS_TGTDONE(x) _SB_MAKEVALUE_32(x,S_LDT_ADDSTATUS_TGTDONE) | 418 | #define V_LDT_ADDSTATUS_TGTDONE(x) _SB_MAKEVALUE_32(x, S_LDT_ADDSTATUS_TGTDONE) |
419 | #define G_LDT_ADDSTATUS_TGTDONE(x) _SB_GETVALUE_32(x,S_LDT_ADDSTATUS_TGTDONE,M_LDT_ADDSTATUS_TGTDONE) | 419 | #define G_LDT_ADDSTATUS_TGTDONE(x) _SB_GETVALUE_32(x, S_LDT_ADDSTATUS_TGTDONE, M_LDT_ADDSTATUS_TGTDONE) |
420 | #endif /* 1250 PASS2 || 112x PASS1 */ | 420 | #endif /* 1250 PASS2 || 112x PASS1 */ |
421 | 421 | ||
422 | #endif | 422 | #endif |
diff --git a/include/asm-mips/sibyte/sb1250_mac.h b/include/asm-mips/sibyte/sb1250_mac.h index 833c8b59d6..b6faf08ca8 100644 --- a/include/asm-mips/sibyte/sb1250_mac.h +++ b/include/asm-mips/sibyte/sb1250_mac.h | |||
@@ -55,8 +55,8 @@ | |||
55 | #define M_MAC_BURST_EN _SB_MAKEMASK1(5) | 55 | #define M_MAC_BURST_EN _SB_MAKEMASK1(5) |
56 | 56 | ||
57 | #define S_MAC_TX_PAUSE _SB_MAKE64(6) | 57 | #define S_MAC_TX_PAUSE _SB_MAKE64(6) |
58 | #define M_MAC_TX_PAUSE_CNT _SB_MAKEMASK(3,S_MAC_TX_PAUSE) | 58 | #define M_MAC_TX_PAUSE_CNT _SB_MAKEMASK(3, S_MAC_TX_PAUSE) |
59 | #define V_MAC_TX_PAUSE_CNT(x) _SB_MAKEVALUE(x,S_MAC_TX_PAUSE) | 59 | #define V_MAC_TX_PAUSE_CNT(x) _SB_MAKEVALUE(x, S_MAC_TX_PAUSE) |
60 | 60 | ||
61 | #define K_MAC_TX_PAUSE_CNT_512 0 | 61 | #define K_MAC_TX_PAUSE_CNT_512 0 |
62 | #define K_MAC_TX_PAUSE_CNT_1K 1 | 62 | #define K_MAC_TX_PAUSE_CNT_1K 1 |
@@ -76,7 +76,7 @@ | |||
76 | #define V_MAC_TX_PAUSE_CNT_32K V_MAC_TX_PAUSE_CNT(K_MAC_TX_PAUSE_CNT_32K) | 76 | #define V_MAC_TX_PAUSE_CNT_32K V_MAC_TX_PAUSE_CNT(K_MAC_TX_PAUSE_CNT_32K) |
77 | #define V_MAC_TX_PAUSE_CNT_64K V_MAC_TX_PAUSE_CNT(K_MAC_TX_PAUSE_CNT_64K) | 77 | #define V_MAC_TX_PAUSE_CNT_64K V_MAC_TX_PAUSE_CNT(K_MAC_TX_PAUSE_CNT_64K) |
78 | 78 | ||
79 | #define M_MAC_RESERVED1 _SB_MAKEMASK(8,9) | 79 | #define M_MAC_RESERVED1 _SB_MAKEMASK(8, 9) |
80 | 80 | ||
81 | #define M_MAC_AP_STAT_EN _SB_MAKEMASK1(17) | 81 | #define M_MAC_AP_STAT_EN _SB_MAKEMASK1(17) |
82 | 82 | ||
@@ -91,15 +91,15 @@ | |||
91 | #define M_MAC_DRP_OSZPKT_EN _SB_MAKEMASK1(24) | 91 | #define M_MAC_DRP_OSZPKT_EN _SB_MAKEMASK1(24) |
92 | #define M_MAC_DRP_LENERRPKT_EN _SB_MAKEMASK1(25) | 92 | #define M_MAC_DRP_LENERRPKT_EN _SB_MAKEMASK1(25) |
93 | 93 | ||
94 | #define M_MAC_RESERVED3 _SB_MAKEMASK(6,26) | 94 | #define M_MAC_RESERVED3 _SB_MAKEMASK(6, 26) |
95 | 95 | ||
96 | #define M_MAC_BYPASS_SEL _SB_MAKEMASK1(32) | 96 | #define M_MAC_BYPASS_SEL _SB_MAKEMASK1(32) |
97 | #define M_MAC_HDX_EN _SB_MAKEMASK1(33) | 97 | #define M_MAC_HDX_EN _SB_MAKEMASK1(33) |
98 | 98 | ||
99 | #define S_MAC_SPEED_SEL _SB_MAKE64(34) | 99 | #define S_MAC_SPEED_SEL _SB_MAKE64(34) |
100 | #define M_MAC_SPEED_SEL _SB_MAKEMASK(2,S_MAC_SPEED_SEL) | 100 | #define M_MAC_SPEED_SEL _SB_MAKEMASK(2, S_MAC_SPEED_SEL) |
101 | #define V_MAC_SPEED_SEL(x) _SB_MAKEVALUE(x,S_MAC_SPEED_SEL) | 101 | #define V_MAC_SPEED_SEL(x) _SB_MAKEVALUE(x, S_MAC_SPEED_SEL) |
102 | #define G_MAC_SPEED_SEL(x) _SB_GETVALUE(x,S_MAC_SPEED_SEL,M_MAC_SPEED_SEL) | 102 | #define G_MAC_SPEED_SEL(x) _SB_GETVALUE(x, S_MAC_SPEED_SEL, M_MAC_SPEED_SEL) |
103 | 103 | ||
104 | #define K_MAC_SPEED_SEL_10MBPS 0 | 104 | #define K_MAC_SPEED_SEL_10MBPS 0 |
105 | #define K_MAC_SPEED_SEL_100MBPS 1 | 105 | #define K_MAC_SPEED_SEL_100MBPS 1 |
@@ -117,9 +117,9 @@ | |||
117 | #define M_MAC_SS_EN _SB_MAKEMASK1(39) | 117 | #define M_MAC_SS_EN _SB_MAKEMASK1(39) |
118 | 118 | ||
119 | #define S_MAC_BYPASS_CFG _SB_MAKE64(40) | 119 | #define S_MAC_BYPASS_CFG _SB_MAKE64(40) |
120 | #define M_MAC_BYPASS_CFG _SB_MAKEMASK(2,S_MAC_BYPASS_CFG) | 120 | #define M_MAC_BYPASS_CFG _SB_MAKEMASK(2, S_MAC_BYPASS_CFG) |
121 | #define V_MAC_BYPASS_CFG(x) _SB_MAKEVALUE(x,S_MAC_BYPASS_CFG) | 121 | #define V_MAC_BYPASS_CFG(x) _SB_MAKEVALUE(x, S_MAC_BYPASS_CFG) |
122 | #define G_MAC_BYPASS_CFG(x) _SB_GETVALUE(x,S_MAC_BYPASS_CFG,M_MAC_BYPASS_CFG) | 122 | #define G_MAC_BYPASS_CFG(x) _SB_GETVALUE(x, S_MAC_BYPASS_CFG, M_MAC_BYPASS_CFG) |
123 | 123 | ||
124 | #define K_MAC_BYPASS_GMII 0 | 124 | #define K_MAC_BYPASS_GMII 0 |
125 | #define K_MAC_BYPASS_ENCODED 1 | 125 | #define K_MAC_BYPASS_ENCODED 1 |
@@ -138,9 +138,9 @@ | |||
138 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 138 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
139 | 139 | ||
140 | #define S_MAC_BYPASS_IFG _SB_MAKE64(46) | 140 | #define S_MAC_BYPASS_IFG _SB_MAKE64(46) |
141 | #define M_MAC_BYPASS_IFG _SB_MAKEMASK(8,S_MAC_BYPASS_IFG) | 141 | #define M_MAC_BYPASS_IFG _SB_MAKEMASK(8, S_MAC_BYPASS_IFG) |
142 | #define V_MAC_BYPASS_IFG(x) _SB_MAKEVALUE(x,S_MAC_BYPASS_IFG) | 142 | #define V_MAC_BYPASS_IFG(x) _SB_MAKEVALUE(x, S_MAC_BYPASS_IFG) |
143 | #define G_MAC_BYPASS_IFG(x) _SB_GETVALUE(x,S_MAC_BYPASS_IFG,M_MAC_BYPASS_IFG) | 143 | #define G_MAC_BYPASS_IFG(x) _SB_GETVALUE(x, S_MAC_BYPASS_IFG, M_MAC_BYPASS_IFG) |
144 | 144 | ||
145 | #define K_MAC_FC_CMD_DISABLED 0 | 145 | #define K_MAC_FC_CMD_DISABLED 0 |
146 | #define K_MAC_FC_CMD_ENABLED 1 | 146 | #define K_MAC_FC_CMD_ENABLED 1 |
@@ -153,14 +153,14 @@ | |||
153 | #define M_MAC_FC_SEL _SB_MAKEMASK1(54) | 153 | #define M_MAC_FC_SEL _SB_MAKEMASK1(54) |
154 | 154 | ||
155 | #define S_MAC_FC_CMD _SB_MAKE64(55) | 155 | #define S_MAC_FC_CMD _SB_MAKE64(55) |
156 | #define M_MAC_FC_CMD _SB_MAKEMASK(2,S_MAC_FC_CMD) | 156 | #define M_MAC_FC_CMD _SB_MAKEMASK(2, S_MAC_FC_CMD) |
157 | #define V_MAC_FC_CMD(x) _SB_MAKEVALUE(x,S_MAC_FC_CMD) | 157 | #define V_MAC_FC_CMD(x) _SB_MAKEVALUE(x, S_MAC_FC_CMD) |
158 | #define G_MAC_FC_CMD(x) _SB_GETVALUE(x,S_MAC_FC_CMD,M_MAC_FC_CMD) | 158 | #define G_MAC_FC_CMD(x) _SB_GETVALUE(x, S_MAC_FC_CMD, M_MAC_FC_CMD) |
159 | 159 | ||
160 | #define S_MAC_RX_CH_SEL _SB_MAKE64(57) | 160 | #define S_MAC_RX_CH_SEL _SB_MAKE64(57) |
161 | #define M_MAC_RX_CH_SEL _SB_MAKEMASK(7,S_MAC_RX_CH_SEL) | 161 | #define M_MAC_RX_CH_SEL _SB_MAKEMASK(7, S_MAC_RX_CH_SEL) |
162 | #define V_MAC_RX_CH_SEL(x) _SB_MAKEVALUE(x,S_MAC_RX_CH_SEL) | 162 | #define V_MAC_RX_CH_SEL(x) _SB_MAKEVALUE(x, S_MAC_RX_CH_SEL) |
163 | #define G_MAC_RX_CH_SEL(x) _SB_GETVALUE(x,S_MAC_RX_CH_SEL,M_MAC_RX_CH_SEL) | 163 | #define G_MAC_RX_CH_SEL(x) _SB_GETVALUE(x, S_MAC_RX_CH_SEL, M_MAC_RX_CH_SEL) |
164 | 164 | ||
165 | 165 | ||
166 | /* | 166 | /* |
@@ -202,14 +202,14 @@ | |||
202 | */ | 202 | */ |
203 | 203 | ||
204 | #define S_MAC_TXD_WEIGHT0 _SB_MAKE64(0) | 204 | #define S_MAC_TXD_WEIGHT0 _SB_MAKE64(0) |
205 | #define M_MAC_TXD_WEIGHT0 _SB_MAKEMASK(4,S_MAC_TXD_WEIGHT0) | 205 | #define M_MAC_TXD_WEIGHT0 _SB_MAKEMASK(4, S_MAC_TXD_WEIGHT0) |
206 | #define V_MAC_TXD_WEIGHT0(x) _SB_MAKEVALUE(x,S_MAC_TXD_WEIGHT0) | 206 | #define V_MAC_TXD_WEIGHT0(x) _SB_MAKEVALUE(x, S_MAC_TXD_WEIGHT0) |
207 | #define G_MAC_TXD_WEIGHT0(x) _SB_GETVALUE(x,S_MAC_TXD_WEIGHT0,M_MAC_TXD_WEIGHT0) | 207 | #define G_MAC_TXD_WEIGHT0(x) _SB_GETVALUE(x, S_MAC_TXD_WEIGHT0, M_MAC_TXD_WEIGHT0) |
208 | 208 | ||
209 | #define S_MAC_TXD_WEIGHT1 _SB_MAKE64(4) | 209 | #define S_MAC_TXD_WEIGHT1 _SB_MAKE64(4) |
210 | #define M_MAC_TXD_WEIGHT1 _SB_MAKEMASK(4,S_MAC_TXD_WEIGHT1) | 210 | #define M_MAC_TXD_WEIGHT1 _SB_MAKEMASK(4, S_MAC_TXD_WEIGHT1) |
211 | #define V_MAC_TXD_WEIGHT1(x) _SB_MAKEVALUE(x,S_MAC_TXD_WEIGHT1) | 211 | #define V_MAC_TXD_WEIGHT1(x) _SB_MAKEVALUE(x, S_MAC_TXD_WEIGHT1) |
212 | #define G_MAC_TXD_WEIGHT1(x) _SB_GETVALUE(x,S_MAC_TXD_WEIGHT1,M_MAC_TXD_WEIGHT1) | 212 | #define G_MAC_TXD_WEIGHT1(x) _SB_GETVALUE(x, S_MAC_TXD_WEIGHT1, M_MAC_TXD_WEIGHT1) |
213 | 213 | ||
214 | /* | 214 | /* |
215 | * MAC Fifo Threshhold registers (Table 9-14) | 215 | * MAC Fifo Threshhold registers (Table 9-14) |
@@ -221,50 +221,50 @@ | |||
221 | #define S_MAC_TX_WR_THRSH _SB_MAKE64(0) | 221 | #define S_MAC_TX_WR_THRSH _SB_MAKE64(0) |
222 | #if SIBYTE_HDR_FEATURE_UP_TO(1250, PASS1) | 222 | #if SIBYTE_HDR_FEATURE_UP_TO(1250, PASS1) |
223 | /* XXX: Can't enable, as it has the same name as a pass2+ define below. */ | 223 | /* XXX: Can't enable, as it has the same name as a pass2+ define below. */ |
224 | /* #define M_MAC_TX_WR_THRSH _SB_MAKEMASK(6,S_MAC_TX_WR_THRSH) */ | 224 | /* #define M_MAC_TX_WR_THRSH _SB_MAKEMASK(6, S_MAC_TX_WR_THRSH) */ |
225 | #endif /* up to 1250 PASS1 */ | 225 | #endif /* up to 1250 PASS1 */ |
226 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 226 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
227 | #define M_MAC_TX_WR_THRSH _SB_MAKEMASK(7,S_MAC_TX_WR_THRSH) | 227 | #define M_MAC_TX_WR_THRSH _SB_MAKEMASK(7, S_MAC_TX_WR_THRSH) |
228 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 228 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
229 | #define V_MAC_TX_WR_THRSH(x) _SB_MAKEVALUE(x,S_MAC_TX_WR_THRSH) | 229 | #define V_MAC_TX_WR_THRSH(x) _SB_MAKEVALUE(x, S_MAC_TX_WR_THRSH) |
230 | #define G_MAC_TX_WR_THRSH(x) _SB_GETVALUE(x,S_MAC_TX_WR_THRSH,M_MAC_TX_WR_THRSH) | 230 | #define G_MAC_TX_WR_THRSH(x) _SB_GETVALUE(x, S_MAC_TX_WR_THRSH, M_MAC_TX_WR_THRSH) |
231 | 231 | ||
232 | #define S_MAC_TX_RD_THRSH _SB_MAKE64(8) | 232 | #define S_MAC_TX_RD_THRSH _SB_MAKE64(8) |
233 | #if SIBYTE_HDR_FEATURE_UP_TO(1250, PASS1) | 233 | #if SIBYTE_HDR_FEATURE_UP_TO(1250, PASS1) |
234 | /* XXX: Can't enable, as it has the same name as a pass2+ define below. */ | 234 | /* XXX: Can't enable, as it has the same name as a pass2+ define below. */ |
235 | /* #define M_MAC_TX_RD_THRSH _SB_MAKEMASK(6,S_MAC_TX_RD_THRSH) */ | 235 | /* #define M_MAC_TX_RD_THRSH _SB_MAKEMASK(6, S_MAC_TX_RD_THRSH) */ |
236 | #endif /* up to 1250 PASS1 */ | 236 | #endif /* up to 1250 PASS1 */ |
237 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 237 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
238 | #define M_MAC_TX_RD_THRSH _SB_MAKEMASK(7,S_MAC_TX_RD_THRSH) | 238 | #define M_MAC_TX_RD_THRSH _SB_MAKEMASK(7, S_MAC_TX_RD_THRSH) |
239 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 239 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
240 | #define V_MAC_TX_RD_THRSH(x) _SB_MAKEVALUE(x,S_MAC_TX_RD_THRSH) | 240 | #define V_MAC_TX_RD_THRSH(x) _SB_MAKEVALUE(x, S_MAC_TX_RD_THRSH) |
241 | #define G_MAC_TX_RD_THRSH(x) _SB_GETVALUE(x,S_MAC_TX_RD_THRSH,M_MAC_TX_RD_THRSH) | 241 | #define G_MAC_TX_RD_THRSH(x) _SB_GETVALUE(x, S_MAC_TX_RD_THRSH, M_MAC_TX_RD_THRSH) |
242 | 242 | ||
243 | #define S_MAC_TX_RL_THRSH _SB_MAKE64(16) | 243 | #define S_MAC_TX_RL_THRSH _SB_MAKE64(16) |
244 | #define M_MAC_TX_RL_THRSH _SB_MAKEMASK(4,S_MAC_TX_RL_THRSH) | 244 | #define M_MAC_TX_RL_THRSH _SB_MAKEMASK(4, S_MAC_TX_RL_THRSH) |
245 | #define V_MAC_TX_RL_THRSH(x) _SB_MAKEVALUE(x,S_MAC_TX_RL_THRSH) | 245 | #define V_MAC_TX_RL_THRSH(x) _SB_MAKEVALUE(x, S_MAC_TX_RL_THRSH) |
246 | #define G_MAC_TX_RL_THRSH(x) _SB_GETVALUE(x,S_MAC_TX_RL_THRSH,M_MAC_TX_RL_THRSH) | 246 | #define G_MAC_TX_RL_THRSH(x) _SB_GETVALUE(x, S_MAC_TX_RL_THRSH, M_MAC_TX_RL_THRSH) |
247 | 247 | ||
248 | #define S_MAC_RX_PL_THRSH _SB_MAKE64(24) | 248 | #define S_MAC_RX_PL_THRSH _SB_MAKE64(24) |
249 | #define M_MAC_RX_PL_THRSH _SB_MAKEMASK(6,S_MAC_RX_PL_THRSH) | 249 | #define M_MAC_RX_PL_THRSH _SB_MAKEMASK(6, S_MAC_RX_PL_THRSH) |
250 | #define V_MAC_RX_PL_THRSH(x) _SB_MAKEVALUE(x,S_MAC_RX_PL_THRSH) | 250 | #define V_MAC_RX_PL_THRSH(x) _SB_MAKEVALUE(x, S_MAC_RX_PL_THRSH) |
251 | #define G_MAC_RX_PL_THRSH(x) _SB_GETVALUE(x,S_MAC_RX_PL_THRSH,M_MAC_RX_PL_THRSH) | 251 | #define G_MAC_RX_PL_THRSH(x) _SB_GETVALUE(x, S_MAC_RX_PL_THRSH, M_MAC_RX_PL_THRSH) |
252 | 252 | ||
253 | #define S_MAC_RX_RD_THRSH _SB_MAKE64(32) | 253 | #define S_MAC_RX_RD_THRSH _SB_MAKE64(32) |
254 | #define M_MAC_RX_RD_THRSH _SB_MAKEMASK(6,S_MAC_RX_RD_THRSH) | 254 | #define M_MAC_RX_RD_THRSH _SB_MAKEMASK(6, S_MAC_RX_RD_THRSH) |
255 | #define V_MAC_RX_RD_THRSH(x) _SB_MAKEVALUE(x,S_MAC_RX_RD_THRSH) | 255 | #define V_MAC_RX_RD_THRSH(x) _SB_MAKEVALUE(x, S_MAC_RX_RD_THRSH) |
256 | #define G_MAC_RX_RD_THRSH(x) _SB_GETVALUE(x,S_MAC_RX_RD_THRSH,M_MAC_RX_RD_THRSH) | 256 | #define G_MAC_RX_RD_THRSH(x) _SB_GETVALUE(x, S_MAC_RX_RD_THRSH, M_MAC_RX_RD_THRSH) |
257 | 257 | ||
258 | #define S_MAC_RX_RL_THRSH _SB_MAKE64(40) | 258 | #define S_MAC_RX_RL_THRSH _SB_MAKE64(40) |
259 | #define M_MAC_RX_RL_THRSH _SB_MAKEMASK(6,S_MAC_RX_RL_THRSH) | 259 | #define M_MAC_RX_RL_THRSH _SB_MAKEMASK(6, S_MAC_RX_RL_THRSH) |
260 | #define V_MAC_RX_RL_THRSH(x) _SB_MAKEVALUE(x,S_MAC_RX_RL_THRSH) | 260 | #define V_MAC_RX_RL_THRSH(x) _SB_MAKEVALUE(x, S_MAC_RX_RL_THRSH) |
261 | #define G_MAC_RX_RL_THRSH(x) _SB_GETVALUE(x,S_MAC_RX_RL_THRSH,M_MAC_RX_RL_THRSH) | 261 | #define G_MAC_RX_RL_THRSH(x) _SB_GETVALUE(x, S_MAC_RX_RL_THRSH, M_MAC_RX_RL_THRSH) |
262 | 262 | ||
263 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 263 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
264 | #define S_MAC_ENC_FC_THRSH _SB_MAKE64(56) | 264 | #define S_MAC_ENC_FC_THRSH _SB_MAKE64(56) |
265 | #define M_MAC_ENC_FC_THRSH _SB_MAKEMASK(6,S_MAC_ENC_FC_THRSH) | 265 | #define M_MAC_ENC_FC_THRSH _SB_MAKEMASK(6, S_MAC_ENC_FC_THRSH) |
266 | #define V_MAC_ENC_FC_THRSH(x) _SB_MAKEVALUE(x,S_MAC_ENC_FC_THRSH) | 266 | #define V_MAC_ENC_FC_THRSH(x) _SB_MAKEVALUE(x, S_MAC_ENC_FC_THRSH) |
267 | #define G_MAC_ENC_FC_THRSH(x) _SB_GETVALUE(x,S_MAC_ENC_FC_THRSH,M_MAC_ENC_FC_THRSH) | 267 | #define G_MAC_ENC_FC_THRSH(x) _SB_GETVALUE(x, S_MAC_ENC_FC_THRSH, M_MAC_ENC_FC_THRSH) |
268 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 268 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
269 | 269 | ||
270 | /* | 270 | /* |
@@ -276,51 +276,51 @@ | |||
276 | 276 | ||
277 | /* XXXCGD: ??? Unused in pass2? */ | 277 | /* XXXCGD: ??? Unused in pass2? */ |
278 | #define S_MAC_IFG_RX _SB_MAKE64(0) | 278 | #define S_MAC_IFG_RX _SB_MAKE64(0) |
279 | #define M_MAC_IFG_RX _SB_MAKEMASK(6,S_MAC_IFG_RX) | 279 | #define M_MAC_IFG_RX _SB_MAKEMASK(6, S_MAC_IFG_RX) |
280 | #define V_MAC_IFG_RX(x) _SB_MAKEVALUE(x,S_MAC_IFG_RX) | 280 | #define V_MAC_IFG_RX(x) _SB_MAKEVALUE(x, S_MAC_IFG_RX) |
281 | #define G_MAC_IFG_RX(x) _SB_GETVALUE(x,S_MAC_IFG_RX,M_MAC_IFG_RX) | 281 | #define G_MAC_IFG_RX(x) _SB_GETVALUE(x, S_MAC_IFG_RX, M_MAC_IFG_RX) |
282 | 282 | ||
283 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 283 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
284 | #define S_MAC_PRE_LEN _SB_MAKE64(0) | 284 | #define S_MAC_PRE_LEN _SB_MAKE64(0) |
285 | #define M_MAC_PRE_LEN _SB_MAKEMASK(6,S_MAC_PRE_LEN) | 285 | #define M_MAC_PRE_LEN _SB_MAKEMASK(6, S_MAC_PRE_LEN) |
286 | #define V_MAC_PRE_LEN(x) _SB_MAKEVALUE(x,S_MAC_PRE_LEN) | 286 | #define V_MAC_PRE_LEN(x) _SB_MAKEVALUE(x, S_MAC_PRE_LEN) |
287 | #define G_MAC_PRE_LEN(x) _SB_GETVALUE(x,S_MAC_PRE_LEN,M_MAC_PRE_LEN) | 287 | #define G_MAC_PRE_LEN(x) _SB_GETVALUE(x, S_MAC_PRE_LEN, M_MAC_PRE_LEN) |
288 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 288 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
289 | 289 | ||
290 | #define S_MAC_IFG_TX _SB_MAKE64(6) | 290 | #define S_MAC_IFG_TX _SB_MAKE64(6) |
291 | #define M_MAC_IFG_TX _SB_MAKEMASK(6,S_MAC_IFG_TX) | 291 | #define M_MAC_IFG_TX _SB_MAKEMASK(6, S_MAC_IFG_TX) |
292 | #define V_MAC_IFG_TX(x) _SB_MAKEVALUE(x,S_MAC_IFG_TX) | 292 | #define V_MAC_IFG_TX(x) _SB_MAKEVALUE(x, S_MAC_IFG_TX) |
293 | #define G_MAC_IFG_TX(x) _SB_GETVALUE(x,S_MAC_IFG_TX,M_MAC_IFG_TX) | 293 | #define G_MAC_IFG_TX(x) _SB_GETVALUE(x, S_MAC_IFG_TX, M_MAC_IFG_TX) |
294 | 294 | ||
295 | #define S_MAC_IFG_THRSH _SB_MAKE64(12) | 295 | #define S_MAC_IFG_THRSH _SB_MAKE64(12) |
296 | #define M_MAC_IFG_THRSH _SB_MAKEMASK(6,S_MAC_IFG_THRSH) | 296 | #define M_MAC_IFG_THRSH _SB_MAKEMASK(6, S_MAC_IFG_THRSH) |
297 | #define V_MAC_IFG_THRSH(x) _SB_MAKEVALUE(x,S_MAC_IFG_THRSH) | 297 | #define V_MAC_IFG_THRSH(x) _SB_MAKEVALUE(x, S_MAC_IFG_THRSH) |
298 | #define G_MAC_IFG_THRSH(x) _SB_GETVALUE(x,S_MAC_IFG_THRSH,M_MAC_IFG_THRSH) | 298 | #define G_MAC_IFG_THRSH(x) _SB_GETVALUE(x, S_MAC_IFG_THRSH, M_MAC_IFG_THRSH) |
299 | 299 | ||
300 | #define S_MAC_BACKOFF_SEL _SB_MAKE64(18) | 300 | #define S_MAC_BACKOFF_SEL _SB_MAKE64(18) |
301 | #define M_MAC_BACKOFF_SEL _SB_MAKEMASK(4,S_MAC_BACKOFF_SEL) | 301 | #define M_MAC_BACKOFF_SEL _SB_MAKEMASK(4, S_MAC_BACKOFF_SEL) |
302 | #define V_MAC_BACKOFF_SEL(x) _SB_MAKEVALUE(x,S_MAC_BACKOFF_SEL) | 302 | #define V_MAC_BACKOFF_SEL(x) _SB_MAKEVALUE(x, S_MAC_BACKOFF_SEL) |
303 | #define G_MAC_BACKOFF_SEL(x) _SB_GETVALUE(x,S_MAC_BACKOFF_SEL,M_MAC_BACKOFF_SEL) | 303 | #define G_MAC_BACKOFF_SEL(x) _SB_GETVALUE(x, S_MAC_BACKOFF_SEL, M_MAC_BACKOFF_SEL) |
304 | 304 | ||
305 | #define S_MAC_LFSR_SEED _SB_MAKE64(22) | 305 | #define S_MAC_LFSR_SEED _SB_MAKE64(22) |
306 | #define M_MAC_LFSR_SEED _SB_MAKEMASK(8,S_MAC_LFSR_SEED) | 306 | #define M_MAC_LFSR_SEED _SB_MAKEMASK(8, S_MAC_LFSR_SEED) |
307 | #define V_MAC_LFSR_SEED(x) _SB_MAKEVALUE(x,S_MAC_LFSR_SEED) | 307 | #define V_MAC_LFSR_SEED(x) _SB_MAKEVALUE(x, S_MAC_LFSR_SEED) |
308 | #define G_MAC_LFSR_SEED(x) _SB_GETVALUE(x,S_MAC_LFSR_SEED,M_MAC_LFSR_SEED) | 308 | #define G_MAC_LFSR_SEED(x) _SB_GETVALUE(x, S_MAC_LFSR_SEED, M_MAC_LFSR_SEED) |
309 | 309 | ||
310 | #define S_MAC_SLOT_SIZE _SB_MAKE64(30) | 310 | #define S_MAC_SLOT_SIZE _SB_MAKE64(30) |
311 | #define M_MAC_SLOT_SIZE _SB_MAKEMASK(10,S_MAC_SLOT_SIZE) | 311 | #define M_MAC_SLOT_SIZE _SB_MAKEMASK(10, S_MAC_SLOT_SIZE) |
312 | #define V_MAC_SLOT_SIZE(x) _SB_MAKEVALUE(x,S_MAC_SLOT_SIZE) | 312 | #define V_MAC_SLOT_SIZE(x) _SB_MAKEVALUE(x, S_MAC_SLOT_SIZE) |
313 | #define G_MAC_SLOT_SIZE(x) _SB_GETVALUE(x,S_MAC_SLOT_SIZE,M_MAC_SLOT_SIZE) | 313 | #define G_MAC_SLOT_SIZE(x) _SB_GETVALUE(x, S_MAC_SLOT_SIZE, M_MAC_SLOT_SIZE) |
314 | 314 | ||
315 | #define S_MAC_MIN_FRAMESZ _SB_MAKE64(40) | 315 | #define S_MAC_MIN_FRAMESZ _SB_MAKE64(40) |
316 | #define M_MAC_MIN_FRAMESZ _SB_MAKEMASK(8,S_MAC_MIN_FRAMESZ) | 316 | #define M_MAC_MIN_FRAMESZ _SB_MAKEMASK(8, S_MAC_MIN_FRAMESZ) |
317 | #define V_MAC_MIN_FRAMESZ(x) _SB_MAKEVALUE(x,S_MAC_MIN_FRAMESZ) | 317 | #define V_MAC_MIN_FRAMESZ(x) _SB_MAKEVALUE(x, S_MAC_MIN_FRAMESZ) |
318 | #define G_MAC_MIN_FRAMESZ(x) _SB_GETVALUE(x,S_MAC_MIN_FRAMESZ,M_MAC_MIN_FRAMESZ) | 318 | #define G_MAC_MIN_FRAMESZ(x) _SB_GETVALUE(x, S_MAC_MIN_FRAMESZ, M_MAC_MIN_FRAMESZ) |
319 | 319 | ||
320 | #define S_MAC_MAX_FRAMESZ _SB_MAKE64(48) | 320 | #define S_MAC_MAX_FRAMESZ _SB_MAKE64(48) |
321 | #define M_MAC_MAX_FRAMESZ _SB_MAKEMASK(16,S_MAC_MAX_FRAMESZ) | 321 | #define M_MAC_MAX_FRAMESZ _SB_MAKEMASK(16, S_MAC_MAX_FRAMESZ) |
322 | #define V_MAC_MAX_FRAMESZ(x) _SB_MAKEVALUE(x,S_MAC_MAX_FRAMESZ) | 322 | #define V_MAC_MAX_FRAMESZ(x) _SB_MAKEVALUE(x, S_MAC_MAX_FRAMESZ) |
323 | #define G_MAC_MAX_FRAMESZ(x) _SB_GETVALUE(x,S_MAC_MAX_FRAMESZ,M_MAC_MAX_FRAMESZ) | 323 | #define G_MAC_MAX_FRAMESZ(x) _SB_GETVALUE(x, S_MAC_MAX_FRAMESZ, M_MAC_MAX_FRAMESZ) |
324 | 324 | ||
325 | /* | 325 | /* |
326 | * These constants are used to configure the fields within the Frame | 326 | * These constants are used to configure the fields within the Frame |
@@ -377,20 +377,20 @@ | |||
377 | */ | 377 | */ |
378 | 378 | ||
379 | #define S_MAC_VLAN_TAG _SB_MAKE64(0) | 379 | #define S_MAC_VLAN_TAG _SB_MAKE64(0) |
380 | #define M_MAC_VLAN_TAG _SB_MAKEMASK(32,S_MAC_VLAN_TAG) | 380 | #define M_MAC_VLAN_TAG _SB_MAKEMASK(32, S_MAC_VLAN_TAG) |
381 | #define V_MAC_VLAN_TAG(x) _SB_MAKEVALUE(x,S_MAC_VLAN_TAG) | 381 | #define V_MAC_VLAN_TAG(x) _SB_MAKEVALUE(x, S_MAC_VLAN_TAG) |
382 | #define G_MAC_VLAN_TAG(x) _SB_GETVALUE(x,S_MAC_VLAN_TAG,M_MAC_VLAN_TAG) | 382 | #define G_MAC_VLAN_TAG(x) _SB_GETVALUE(x, S_MAC_VLAN_TAG, M_MAC_VLAN_TAG) |
383 | 383 | ||
384 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) | 384 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) |
385 | #define S_MAC_TX_PKT_OFFSET _SB_MAKE64(32) | 385 | #define S_MAC_TX_PKT_OFFSET _SB_MAKE64(32) |
386 | #define M_MAC_TX_PKT_OFFSET _SB_MAKEMASK(8,S_MAC_TX_PKT_OFFSET) | 386 | #define M_MAC_TX_PKT_OFFSET _SB_MAKEMASK(8, S_MAC_TX_PKT_OFFSET) |
387 | #define V_MAC_TX_PKT_OFFSET(x) _SB_MAKEVALUE(x,S_MAC_TX_PKT_OFFSET) | 387 | #define V_MAC_TX_PKT_OFFSET(x) _SB_MAKEVALUE(x, S_MAC_TX_PKT_OFFSET) |
388 | #define G_MAC_TX_PKT_OFFSET(x) _SB_GETVALUE(x,S_MAC_TX_PKT_OFFSET,M_MAC_TX_PKT_OFFSET) | 388 | #define G_MAC_TX_PKT_OFFSET(x) _SB_GETVALUE(x, S_MAC_TX_PKT_OFFSET, M_MAC_TX_PKT_OFFSET) |
389 | 389 | ||
390 | #define S_MAC_TX_CRC_OFFSET _SB_MAKE64(40) | 390 | #define S_MAC_TX_CRC_OFFSET _SB_MAKE64(40) |
391 | #define M_MAC_TX_CRC_OFFSET _SB_MAKEMASK(8,S_MAC_TX_CRC_OFFSET) | 391 | #define M_MAC_TX_CRC_OFFSET _SB_MAKEMASK(8, S_MAC_TX_CRC_OFFSET) |
392 | #define V_MAC_TX_CRC_OFFSET(x) _SB_MAKEVALUE(x,S_MAC_TX_CRC_OFFSET) | 392 | #define V_MAC_TX_CRC_OFFSET(x) _SB_MAKEVALUE(x, S_MAC_TX_CRC_OFFSET) |
393 | #define G_MAC_TX_CRC_OFFSET(x) _SB_GETVALUE(x,S_MAC_TX_CRC_OFFSET,M_MAC_TX_CRC_OFFSET) | 393 | #define G_MAC_TX_CRC_OFFSET(x) _SB_GETVALUE(x, S_MAC_TX_CRC_OFFSET, M_MAC_TX_CRC_OFFSET) |
394 | 394 | ||
395 | #define M_MAC_CH_BASE_FC_EN _SB_MAKEMASK1(48) | 395 | #define M_MAC_CH_BASE_FC_EN _SB_MAKEMASK1(48) |
396 | #endif /* 1250 PASS3 || 112x PASS1 */ | 396 | #endif /* 1250 PASS3 || 112x PASS1 */ |
@@ -425,7 +425,7 @@ | |||
425 | * is that you'll use one of the "S_" things above | 425 | * is that you'll use one of the "S_" things above |
426 | * and pass just the six bits to a DMA-channel-specific ISR | 426 | * and pass just the six bits to a DMA-channel-specific ISR |
427 | */ | 427 | */ |
428 | #define M_MAC_INT_CHANNEL _SB_MAKEMASK(8,0) | 428 | #define M_MAC_INT_CHANNEL _SB_MAKEMASK(8, 0) |
429 | #define M_MAC_INT_EOP_COUNT _SB_MAKEMASK1(0) | 429 | #define M_MAC_INT_EOP_COUNT _SB_MAKEMASK1(0) |
430 | #define M_MAC_INT_EOP_TIMER _SB_MAKEMASK1(1) | 430 | #define M_MAC_INT_EOP_TIMER _SB_MAKEMASK1(1) |
431 | #define M_MAC_INT_EOP_SEEN _SB_MAKEMASK1(2) | 431 | #define M_MAC_INT_EOP_SEEN _SB_MAKEMASK1(2) |
@@ -440,19 +440,19 @@ | |||
440 | * In the following definitions we use ch (0/1) and txrx (TX=1, RX=0, see | 440 | * In the following definitions we use ch (0/1) and txrx (TX=1, RX=0, see |
441 | * also DMA_TX/DMA_RX in sb_regs.h). | 441 | * also DMA_TX/DMA_RX in sb_regs.h). |
442 | */ | 442 | */ |
443 | #define S_MAC_STATUS_CH_OFFSET(ch,txrx) _SB_MAKE64(((ch) + 2 * (txrx)) * S_MAC_CHANWIDTH) | 443 | #define S_MAC_STATUS_CH_OFFSET(ch, txrx) _SB_MAKE64(((ch) + 2 * (txrx)) * S_MAC_CHANWIDTH) |
444 | 444 | ||
445 | #define M_MAC_STATUS_CHANNEL(ch,txrx) _SB_MAKEVALUE(_SB_MAKEMASK(8,0),S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 445 | #define M_MAC_STATUS_CHANNEL(ch, txrx) _SB_MAKEVALUE(_SB_MAKEMASK(8, 0), S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
446 | #define M_MAC_STATUS_EOP_COUNT(ch,txrx) _SB_MAKEVALUE(M_MAC_INT_EOP_COUNT,S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 446 | #define M_MAC_STATUS_EOP_COUNT(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_EOP_COUNT, S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
447 | #define M_MAC_STATUS_EOP_TIMER(ch,txrx) _SB_MAKEVALUE(M_MAC_INT_EOP_TIMER,S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 447 | #define M_MAC_STATUS_EOP_TIMER(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_EOP_TIMER, S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
448 | #define M_MAC_STATUS_EOP_SEEN(ch,txrx) _SB_MAKEVALUE(M_MAC_INT_EOP_SEEN,S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 448 | #define M_MAC_STATUS_EOP_SEEN(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_EOP_SEEN, S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
449 | #define M_MAC_STATUS_HWM(ch,txrx) _SB_MAKEVALUE(M_MAC_INT_HWM,S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 449 | #define M_MAC_STATUS_HWM(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_HWM, S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
450 | #define M_MAC_STATUS_LWM(ch,txrx) _SB_MAKEVALUE(M_MAC_INT_LWM,S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 450 | #define M_MAC_STATUS_LWM(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_LWM, S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
451 | #define M_MAC_STATUS_DSCR(ch,txrx) _SB_MAKEVALUE(M_MAC_INT_DSCR,S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 451 | #define M_MAC_STATUS_DSCR(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_DSCR, S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
452 | #define M_MAC_STATUS_ERR(ch,txrx) _SB_MAKEVALUE(M_MAC_INT_ERR,S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 452 | #define M_MAC_STATUS_ERR(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_ERR, S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
453 | #define M_MAC_STATUS_DZERO(ch,txrx) _SB_MAKEVALUE(M_MAC_INT_DZERO,S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 453 | #define M_MAC_STATUS_DZERO(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_DZERO, S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
454 | #define M_MAC_STATUS_DROP(ch,txrx) _SB_MAKEVALUE(M_MAC_INT_DROP,S_MAC_STATUS_CH_OFFSET(ch,txrx)) | 454 | #define M_MAC_STATUS_DROP(ch, txrx) _SB_MAKEVALUE(M_MAC_INT_DROP, S_MAC_STATUS_CH_OFFSET(ch, txrx)) |
455 | #define M_MAC_STATUS_OTHER_ERR _SB_MAKEVALUE(_SB_MAKEMASK(7,0),40) | 455 | #define M_MAC_STATUS_OTHER_ERR _SB_MAKEVALUE(_SB_MAKEMASK(7, 0), 40) |
456 | 456 | ||
457 | 457 | ||
458 | #define M_MAC_RX_UNDRFL _SB_MAKEMASK1(40) | 458 | #define M_MAC_RX_UNDRFL _SB_MAKEMASK1(40) |
@@ -467,9 +467,9 @@ | |||
467 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 467 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
468 | 468 | ||
469 | #define S_MAC_COUNTER_ADDR _SB_MAKE64(47) | 469 | #define S_MAC_COUNTER_ADDR _SB_MAKE64(47) |
470 | #define M_MAC_COUNTER_ADDR _SB_MAKEMASK(5,S_MAC_COUNTER_ADDR) | 470 | #define M_MAC_COUNTER_ADDR _SB_MAKEMASK(5, S_MAC_COUNTER_ADDR) |
471 | #define V_MAC_COUNTER_ADDR(x) _SB_MAKEVALUE(x,S_MAC_COUNTER_ADDR) | 471 | #define V_MAC_COUNTER_ADDR(x) _SB_MAKEVALUE(x, S_MAC_COUNTER_ADDR) |
472 | #define G_MAC_COUNTER_ADDR(x) _SB_GETVALUE(x,S_MAC_COUNTER_ADDR,M_MAC_COUNTER_ADDR) | 472 | #define G_MAC_COUNTER_ADDR(x) _SB_GETVALUE(x, S_MAC_COUNTER_ADDR, M_MAC_COUNTER_ADDR) |
473 | 473 | ||
474 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 474 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
475 | #define M_MAC_TX_PAUSE_ON _SB_MAKEMASK1(52) | 475 | #define M_MAC_TX_PAUSE_ON _SB_MAKEMASK1(52) |
@@ -483,24 +483,24 @@ | |||
483 | */ | 483 | */ |
484 | 484 | ||
485 | #define S_MAC_TX_WRPTR _SB_MAKE64(0) | 485 | #define S_MAC_TX_WRPTR _SB_MAKE64(0) |
486 | #define M_MAC_TX_WRPTR _SB_MAKEMASK(6,S_MAC_TX_WRPTR) | 486 | #define M_MAC_TX_WRPTR _SB_MAKEMASK(6, S_MAC_TX_WRPTR) |
487 | #define V_MAC_TX_WRPTR(x) _SB_MAKEVALUE(x,S_MAC_TX_WRPTR) | 487 | #define V_MAC_TX_WRPTR(x) _SB_MAKEVALUE(x, S_MAC_TX_WRPTR) |
488 | #define G_MAC_TX_WRPTR(x) _SB_GETVALUE(x,S_MAC_TX_WRPTR,M_MAC_TX_WRPTR) | 488 | #define G_MAC_TX_WRPTR(x) _SB_GETVALUE(x, S_MAC_TX_WRPTR, M_MAC_TX_WRPTR) |
489 | 489 | ||
490 | #define S_MAC_TX_RDPTR _SB_MAKE64(8) | 490 | #define S_MAC_TX_RDPTR _SB_MAKE64(8) |
491 | #define M_MAC_TX_RDPTR _SB_MAKEMASK(6,S_MAC_TX_RDPTR) | 491 | #define M_MAC_TX_RDPTR _SB_MAKEMASK(6, S_MAC_TX_RDPTR) |
492 | #define V_MAC_TX_RDPTR(x) _SB_MAKEVALUE(x,S_MAC_TX_RDPTR) | 492 | #define V_MAC_TX_RDPTR(x) _SB_MAKEVALUE(x, S_MAC_TX_RDPTR) |
493 | #define G_MAC_TX_RDPTR(x) _SB_GETVALUE(x,S_MAC_TX_RDPTR,M_MAC_TX_RDPTR) | 493 | #define G_MAC_TX_RDPTR(x) _SB_GETVALUE(x, S_MAC_TX_RDPTR, M_MAC_TX_RDPTR) |
494 | 494 | ||
495 | #define S_MAC_RX_WRPTR _SB_MAKE64(16) | 495 | #define S_MAC_RX_WRPTR _SB_MAKE64(16) |
496 | #define M_MAC_RX_WRPTR _SB_MAKEMASK(6,S_MAC_RX_WRPTR) | 496 | #define M_MAC_RX_WRPTR _SB_MAKEMASK(6, S_MAC_RX_WRPTR) |
497 | #define V_MAC_RX_WRPTR(x) _SB_MAKEVALUE(x,S_MAC_RX_WRPTR) | 497 | #define V_MAC_RX_WRPTR(x) _SB_MAKEVALUE(x, S_MAC_RX_WRPTR) |
498 | #define G_MAC_RX_WRPTR(x) _SB_GETVALUE(x,S_MAC_RX_WRPTR,M_MAC_TX_WRPTR) | 498 | #define G_MAC_RX_WRPTR(x) _SB_GETVALUE(x, S_MAC_RX_WRPTR, M_MAC_TX_WRPTR) |
499 | 499 | ||
500 | #define S_MAC_RX_RDPTR _SB_MAKE64(24) | 500 | #define S_MAC_RX_RDPTR _SB_MAKE64(24) |
501 | #define M_MAC_RX_RDPTR _SB_MAKEMASK(6,S_MAC_RX_RDPTR) | 501 | #define M_MAC_RX_RDPTR _SB_MAKEMASK(6, S_MAC_RX_RDPTR) |
502 | #define V_MAC_RX_RDPTR(x) _SB_MAKEVALUE(x,S_MAC_RX_RDPTR) | 502 | #define V_MAC_RX_RDPTR(x) _SB_MAKEVALUE(x, S_MAC_RX_RDPTR) |
503 | #define G_MAC_RX_RDPTR(x) _SB_GETVALUE(x,S_MAC_RX_RDPTR,M_MAC_TX_RDPTR) | 503 | #define G_MAC_RX_RDPTR(x) _SB_GETVALUE(x, S_MAC_RX_RDPTR, M_MAC_TX_RDPTR) |
504 | 504 | ||
505 | /* | 505 | /* |
506 | * MAC Fifo End Of Packet Count Registers (Table 9-20) [Debug register] | 506 | * MAC Fifo End Of Packet Count Registers (Table 9-20) [Debug register] |
@@ -510,14 +510,14 @@ | |||
510 | */ | 510 | */ |
511 | 511 | ||
512 | #define S_MAC_TX_EOP_COUNTER _SB_MAKE64(0) | 512 | #define S_MAC_TX_EOP_COUNTER _SB_MAKE64(0) |
513 | #define M_MAC_TX_EOP_COUNTER _SB_MAKEMASK(6,S_MAC_TX_EOP_COUNTER) | 513 | #define M_MAC_TX_EOP_COUNTER _SB_MAKEMASK(6, S_MAC_TX_EOP_COUNTER) |
514 | #define V_MAC_TX_EOP_COUNTER(x) _SB_MAKEVALUE(x,S_MAC_TX_EOP_COUNTER) | 514 | #define V_MAC_TX_EOP_COUNTER(x) _SB_MAKEVALUE(x, S_MAC_TX_EOP_COUNTER) |
515 | #define G_MAC_TX_EOP_COUNTER(x) _SB_GETVALUE(x,S_MAC_TX_EOP_COUNTER,M_MAC_TX_EOP_COUNTER) | 515 | #define G_MAC_TX_EOP_COUNTER(x) _SB_GETVALUE(x, S_MAC_TX_EOP_COUNTER, M_MAC_TX_EOP_COUNTER) |
516 | 516 | ||
517 | #define S_MAC_RX_EOP_COUNTER _SB_MAKE64(8) | 517 | #define S_MAC_RX_EOP_COUNTER _SB_MAKE64(8) |
518 | #define M_MAC_RX_EOP_COUNTER _SB_MAKEMASK(6,S_MAC_RX_EOP_COUNTER) | 518 | #define M_MAC_RX_EOP_COUNTER _SB_MAKEMASK(6, S_MAC_RX_EOP_COUNTER) |
519 | #define V_MAC_RX_EOP_COUNTER(x) _SB_MAKEVALUE(x,S_MAC_RX_EOP_COUNTER) | 519 | #define V_MAC_RX_EOP_COUNTER(x) _SB_MAKEVALUE(x, S_MAC_RX_EOP_COUNTER) |
520 | #define G_MAC_RX_EOP_COUNTER(x) _SB_GETVALUE(x,S_MAC_RX_EOP_COUNTER,M_MAC_RX_EOP_COUNTER) | 520 | #define G_MAC_RX_EOP_COUNTER(x) _SB_GETVALUE(x, S_MAC_RX_EOP_COUNTER, M_MAC_RX_EOP_COUNTER) |
521 | 521 | ||
522 | /* | 522 | /* |
523 | * MAC Recieve Address Filter Exact Match Registers (Table 9-21) | 523 | * MAC Recieve Address Filter Exact Match Registers (Table 9-21) |
@@ -565,24 +565,24 @@ | |||
565 | #define S_TYPECFG_TYPESIZE _SB_MAKE64(16) | 565 | #define S_TYPECFG_TYPESIZE _SB_MAKE64(16) |
566 | 566 | ||
567 | #define S_TYPECFG_TYPE0 _SB_MAKE64(0) | 567 | #define S_TYPECFG_TYPE0 _SB_MAKE64(0) |
568 | #define M_TYPECFG_TYPE0 _SB_MAKEMASK(16,S_TYPECFG_TYPE0) | 568 | #define M_TYPECFG_TYPE0 _SB_MAKEMASK(16, S_TYPECFG_TYPE0) |
569 | #define V_TYPECFG_TYPE0(x) _SB_MAKEVALUE(x,S_TYPECFG_TYPE0) | 569 | #define V_TYPECFG_TYPE0(x) _SB_MAKEVALUE(x, S_TYPECFG_TYPE0) |
570 | #define G_TYPECFG_TYPE0(x) _SB_GETVALUE(x,S_TYPECFG_TYPE0,M_TYPECFG_TYPE0) | 570 | #define G_TYPECFG_TYPE0(x) _SB_GETVALUE(x, S_TYPECFG_TYPE0, M_TYPECFG_TYPE0) |
571 | 571 | ||
572 | #define S_TYPECFG_TYPE1 _SB_MAKE64(0) | 572 | #define S_TYPECFG_TYPE1 _SB_MAKE64(0) |
573 | #define M_TYPECFG_TYPE1 _SB_MAKEMASK(16,S_TYPECFG_TYPE1) | 573 | #define M_TYPECFG_TYPE1 _SB_MAKEMASK(16, S_TYPECFG_TYPE1) |
574 | #define V_TYPECFG_TYPE1(x) _SB_MAKEVALUE(x,S_TYPECFG_TYPE1) | 574 | #define V_TYPECFG_TYPE1(x) _SB_MAKEVALUE(x, S_TYPECFG_TYPE1) |
575 | #define G_TYPECFG_TYPE1(x) _SB_GETVALUE(x,S_TYPECFG_TYPE1,M_TYPECFG_TYPE1) | 575 | #define G_TYPECFG_TYPE1(x) _SB_GETVALUE(x, S_TYPECFG_TYPE1, M_TYPECFG_TYPE1) |
576 | 576 | ||
577 | #define S_TYPECFG_TYPE2 _SB_MAKE64(0) | 577 | #define S_TYPECFG_TYPE2 _SB_MAKE64(0) |
578 | #define M_TYPECFG_TYPE2 _SB_MAKEMASK(16,S_TYPECFG_TYPE2) | 578 | #define M_TYPECFG_TYPE2 _SB_MAKEMASK(16, S_TYPECFG_TYPE2) |
579 | #define V_TYPECFG_TYPE2(x) _SB_MAKEVALUE(x,S_TYPECFG_TYPE2) | 579 | #define V_TYPECFG_TYPE2(x) _SB_MAKEVALUE(x, S_TYPECFG_TYPE2) |
580 | #define G_TYPECFG_TYPE2(x) _SB_GETVALUE(x,S_TYPECFG_TYPE2,M_TYPECFG_TYPE2) | 580 | #define G_TYPECFG_TYPE2(x) _SB_GETVALUE(x, S_TYPECFG_TYPE2, M_TYPECFG_TYPE2) |
581 | 581 | ||
582 | #define S_TYPECFG_TYPE3 _SB_MAKE64(0) | 582 | #define S_TYPECFG_TYPE3 _SB_MAKE64(0) |
583 | #define M_TYPECFG_TYPE3 _SB_MAKEMASK(16,S_TYPECFG_TYPE3) | 583 | #define M_TYPECFG_TYPE3 _SB_MAKEMASK(16, S_TYPECFG_TYPE3) |
584 | #define V_TYPECFG_TYPE3(x) _SB_MAKEVALUE(x,S_TYPECFG_TYPE3) | 584 | #define V_TYPECFG_TYPE3(x) _SB_MAKEVALUE(x, S_TYPECFG_TYPE3) |
585 | #define G_TYPECFG_TYPE3(x) _SB_GETVALUE(x,S_TYPECFG_TYPE3,M_TYPECFG_TYPE3) | 585 | #define G_TYPECFG_TYPE3(x) _SB_GETVALUE(x, S_TYPECFG_TYPE3, M_TYPECFG_TYPE3) |
586 | 586 | ||
587 | /* | 587 | /* |
588 | * MAC Receive Address Filter Control Registers (Table 9-24) | 588 | * MAC Receive Address Filter Control Registers (Table 9-24) |
@@ -603,28 +603,28 @@ | |||
603 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 603 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
604 | 604 | ||
605 | #define S_MAC_IPHDR_OFFSET _SB_MAKE64(8) | 605 | #define S_MAC_IPHDR_OFFSET _SB_MAKE64(8) |
606 | #define M_MAC_IPHDR_OFFSET _SB_MAKEMASK(8,S_MAC_IPHDR_OFFSET) | 606 | #define M_MAC_IPHDR_OFFSET _SB_MAKEMASK(8, S_MAC_IPHDR_OFFSET) |
607 | #define V_MAC_IPHDR_OFFSET(x) _SB_MAKEVALUE(x,S_MAC_IPHDR_OFFSET) | 607 | #define V_MAC_IPHDR_OFFSET(x) _SB_MAKEVALUE(x, S_MAC_IPHDR_OFFSET) |
608 | #define G_MAC_IPHDR_OFFSET(x) _SB_GETVALUE(x,S_MAC_IPHDR_OFFSET,M_MAC_IPHDR_OFFSET) | 608 | #define G_MAC_IPHDR_OFFSET(x) _SB_GETVALUE(x, S_MAC_IPHDR_OFFSET, M_MAC_IPHDR_OFFSET) |
609 | 609 | ||
610 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 610 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
611 | #define S_MAC_RX_CRC_OFFSET _SB_MAKE64(16) | 611 | #define S_MAC_RX_CRC_OFFSET _SB_MAKE64(16) |
612 | #define M_MAC_RX_CRC_OFFSET _SB_MAKEMASK(8,S_MAC_RX_CRC_OFFSET) | 612 | #define M_MAC_RX_CRC_OFFSET _SB_MAKEMASK(8, S_MAC_RX_CRC_OFFSET) |
613 | #define V_MAC_RX_CRC_OFFSET(x) _SB_MAKEVALUE(x,S_MAC_RX_CRC_OFFSET) | 613 | #define V_MAC_RX_CRC_OFFSET(x) _SB_MAKEVALUE(x, S_MAC_RX_CRC_OFFSET) |
614 | #define G_MAC_RX_CRC_OFFSET(x) _SB_GETVALUE(x,S_MAC_RX_CRC_OFFSET,M_MAC_RX_CRC_OFFSET) | 614 | #define G_MAC_RX_CRC_OFFSET(x) _SB_GETVALUE(x, S_MAC_RX_CRC_OFFSET, M_MAC_RX_CRC_OFFSET) |
615 | 615 | ||
616 | #define S_MAC_RX_PKT_OFFSET _SB_MAKE64(24) | 616 | #define S_MAC_RX_PKT_OFFSET _SB_MAKE64(24) |
617 | #define M_MAC_RX_PKT_OFFSET _SB_MAKEMASK(8,S_MAC_RX_PKT_OFFSET) | 617 | #define M_MAC_RX_PKT_OFFSET _SB_MAKEMASK(8, S_MAC_RX_PKT_OFFSET) |
618 | #define V_MAC_RX_PKT_OFFSET(x) _SB_MAKEVALUE(x,S_MAC_RX_PKT_OFFSET) | 618 | #define V_MAC_RX_PKT_OFFSET(x) _SB_MAKEVALUE(x, S_MAC_RX_PKT_OFFSET) |
619 | #define G_MAC_RX_PKT_OFFSET(x) _SB_GETVALUE(x,S_MAC_RX_PKT_OFFSET,M_MAC_RX_PKT_OFFSET) | 619 | #define G_MAC_RX_PKT_OFFSET(x) _SB_GETVALUE(x, S_MAC_RX_PKT_OFFSET, M_MAC_RX_PKT_OFFSET) |
620 | 620 | ||
621 | #define M_MAC_FWDPAUSE_EN _SB_MAKEMASK1(32) | 621 | #define M_MAC_FWDPAUSE_EN _SB_MAKEMASK1(32) |
622 | #define M_MAC_VLAN_DET_EN _SB_MAKEMASK1(33) | 622 | #define M_MAC_VLAN_DET_EN _SB_MAKEMASK1(33) |
623 | 623 | ||
624 | #define S_MAC_RX_CH_MSN_SEL _SB_MAKE64(34) | 624 | #define S_MAC_RX_CH_MSN_SEL _SB_MAKE64(34) |
625 | #define M_MAC_RX_CH_MSN_SEL _SB_MAKEMASK(8,S_MAC_RX_CH_MSN_SEL) | 625 | #define M_MAC_RX_CH_MSN_SEL _SB_MAKEMASK(8, S_MAC_RX_CH_MSN_SEL) |
626 | #define V_MAC_RX_CH_MSN_SEL(x) _SB_MAKEVALUE(x,S_MAC_RX_CH_MSN_SEL) | 626 | #define V_MAC_RX_CH_MSN_SEL(x) _SB_MAKEVALUE(x, S_MAC_RX_CH_MSN_SEL) |
627 | #define G_MAC_RX_CH_MSN_SEL(x) _SB_GETVALUE(x,S_MAC_RX_CH_MSN_SEL,M_MAC_RX_CH_MSN_SEL) | 627 | #define G_MAC_RX_CH_MSN_SEL(x) _SB_GETVALUE(x, S_MAC_RX_CH_MSN_SEL, M_MAC_RX_CH_MSN_SEL) |
628 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 628 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
629 | 629 | ||
630 | /* | 630 | /* |
diff --git a/include/asm-mips/sibyte/sb1250_mc.h b/include/asm-mips/sibyte/sb1250_mc.h index 4fe848ffbc..1eb1b5a887 100644 --- a/include/asm-mips/sibyte/sb1250_mc.h +++ b/include/asm-mips/sibyte/sb1250_mc.h | |||
@@ -10,7 +10,7 @@ | |||
10 | * | 10 | * |
11 | ********************************************************************* | 11 | ********************************************************************* |
12 | * | 12 | * |
13 | * Copyright 2000,2001,2002,2003 | 13 | * Copyright 2000, 2001, 2002, 2003 |
14 | * Broadcom Corporation. All rights reserved. | 14 | * Broadcom Corporation. All rights reserved. |
15 | * | 15 | * |
16 | * This program is free software; you can redistribute it and/or | 16 | * This program is free software; you can redistribute it and/or |
@@ -40,73 +40,73 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #define S_MC_RESERVED0 0 | 42 | #define S_MC_RESERVED0 0 |
43 | #define M_MC_RESERVED0 _SB_MAKEMASK(8,S_MC_RESERVED0) | 43 | #define M_MC_RESERVED0 _SB_MAKEMASK(8, S_MC_RESERVED0) |
44 | 44 | ||
45 | #define S_MC_CHANNEL_SEL 8 | 45 | #define S_MC_CHANNEL_SEL 8 |
46 | #define M_MC_CHANNEL_SEL _SB_MAKEMASK(8,S_MC_CHANNEL_SEL) | 46 | #define M_MC_CHANNEL_SEL _SB_MAKEMASK(8, S_MC_CHANNEL_SEL) |
47 | #define V_MC_CHANNEL_SEL(x) _SB_MAKEVALUE(x,S_MC_CHANNEL_SEL) | 47 | #define V_MC_CHANNEL_SEL(x) _SB_MAKEVALUE(x, S_MC_CHANNEL_SEL) |
48 | #define G_MC_CHANNEL_SEL(x) _SB_GETVALUE(x,S_MC_CHANNEL_SEL,M_MC_CHANNEL_SEL) | 48 | #define G_MC_CHANNEL_SEL(x) _SB_GETVALUE(x, S_MC_CHANNEL_SEL, M_MC_CHANNEL_SEL) |
49 | 49 | ||
50 | #define S_MC_BANK0_MAP 16 | 50 | #define S_MC_BANK0_MAP 16 |
51 | #define M_MC_BANK0_MAP _SB_MAKEMASK(4,S_MC_BANK0_MAP) | 51 | #define M_MC_BANK0_MAP _SB_MAKEMASK(4, S_MC_BANK0_MAP) |
52 | #define V_MC_BANK0_MAP(x) _SB_MAKEVALUE(x,S_MC_BANK0_MAP) | 52 | #define V_MC_BANK0_MAP(x) _SB_MAKEVALUE(x, S_MC_BANK0_MAP) |
53 | #define G_MC_BANK0_MAP(x) _SB_GETVALUE(x,S_MC_BANK0_MAP,M_MC_BANK0_MAP) | 53 | #define G_MC_BANK0_MAP(x) _SB_GETVALUE(x, S_MC_BANK0_MAP, M_MC_BANK0_MAP) |
54 | 54 | ||
55 | #define K_MC_BANK0_MAP_DEFAULT 0x00 | 55 | #define K_MC_BANK0_MAP_DEFAULT 0x00 |
56 | #define V_MC_BANK0_MAP_DEFAULT V_MC_BANK0_MAP(K_MC_BANK0_MAP_DEFAULT) | 56 | #define V_MC_BANK0_MAP_DEFAULT V_MC_BANK0_MAP(K_MC_BANK0_MAP_DEFAULT) |
57 | 57 | ||
58 | #define S_MC_BANK1_MAP 20 | 58 | #define S_MC_BANK1_MAP 20 |
59 | #define M_MC_BANK1_MAP _SB_MAKEMASK(4,S_MC_BANK1_MAP) | 59 | #define M_MC_BANK1_MAP _SB_MAKEMASK(4, S_MC_BANK1_MAP) |
60 | #define V_MC_BANK1_MAP(x) _SB_MAKEVALUE(x,S_MC_BANK1_MAP) | 60 | #define V_MC_BANK1_MAP(x) _SB_MAKEVALUE(x, S_MC_BANK1_MAP) |
61 | #define G_MC_BANK1_MAP(x) _SB_GETVALUE(x,S_MC_BANK1_MAP,M_MC_BANK1_MAP) | 61 | #define G_MC_BANK1_MAP(x) _SB_GETVALUE(x, S_MC_BANK1_MAP, M_MC_BANK1_MAP) |
62 | 62 | ||
63 | #define K_MC_BANK1_MAP_DEFAULT 0x08 | 63 | #define K_MC_BANK1_MAP_DEFAULT 0x08 |
64 | #define V_MC_BANK1_MAP_DEFAULT V_MC_BANK1_MAP(K_MC_BANK1_MAP_DEFAULT) | 64 | #define V_MC_BANK1_MAP_DEFAULT V_MC_BANK1_MAP(K_MC_BANK1_MAP_DEFAULT) |
65 | 65 | ||
66 | #define S_MC_BANK2_MAP 24 | 66 | #define S_MC_BANK2_MAP 24 |
67 | #define M_MC_BANK2_MAP _SB_MAKEMASK(4,S_MC_BANK2_MAP) | 67 | #define M_MC_BANK2_MAP _SB_MAKEMASK(4, S_MC_BANK2_MAP) |
68 | #define V_MC_BANK2_MAP(x) _SB_MAKEVALUE(x,S_MC_BANK2_MAP) | 68 | #define V_MC_BANK2_MAP(x) _SB_MAKEVALUE(x, S_MC_BANK2_MAP) |
69 | #define G_MC_BANK2_MAP(x) _SB_GETVALUE(x,S_MC_BANK2_MAP,M_MC_BANK2_MAP) | 69 | #define G_MC_BANK2_MAP(x) _SB_GETVALUE(x, S_MC_BANK2_MAP, M_MC_BANK2_MAP) |
70 | 70 | ||
71 | #define K_MC_BANK2_MAP_DEFAULT 0x09 | 71 | #define K_MC_BANK2_MAP_DEFAULT 0x09 |
72 | #define V_MC_BANK2_MAP_DEFAULT V_MC_BANK2_MAP(K_MC_BANK2_MAP_DEFAULT) | 72 | #define V_MC_BANK2_MAP_DEFAULT V_MC_BANK2_MAP(K_MC_BANK2_MAP_DEFAULT) |
73 | 73 | ||
74 | #define S_MC_BANK3_MAP 28 | 74 | #define S_MC_BANK3_MAP 28 |
75 | #define M_MC_BANK3_MAP _SB_MAKEMASK(4,S_MC_BANK3_MAP) | 75 | #define M_MC_BANK3_MAP _SB_MAKEMASK(4, S_MC_BANK3_MAP) |
76 | #define V_MC_BANK3_MAP(x) _SB_MAKEVALUE(x,S_MC_BANK3_MAP) | 76 | #define V_MC_BANK3_MAP(x) _SB_MAKEVALUE(x, S_MC_BANK3_MAP) |
77 | #define G_MC_BANK3_MAP(x) _SB_GETVALUE(x,S_MC_BANK3_MAP,M_MC_BANK3_MAP) | 77 | #define G_MC_BANK3_MAP(x) _SB_GETVALUE(x, S_MC_BANK3_MAP, M_MC_BANK3_MAP) |
78 | 78 | ||
79 | #define K_MC_BANK3_MAP_DEFAULT 0x0C | 79 | #define K_MC_BANK3_MAP_DEFAULT 0x0C |
80 | #define V_MC_BANK3_MAP_DEFAULT V_MC_BANK3_MAP(K_MC_BANK3_MAP_DEFAULT) | 80 | #define V_MC_BANK3_MAP_DEFAULT V_MC_BANK3_MAP(K_MC_BANK3_MAP_DEFAULT) |
81 | 81 | ||
82 | #define M_MC_RESERVED1 _SB_MAKEMASK(8,32) | 82 | #define M_MC_RESERVED1 _SB_MAKEMASK(8, 32) |
83 | 83 | ||
84 | #define S_MC_QUEUE_SIZE 40 | 84 | #define S_MC_QUEUE_SIZE 40 |
85 | #define M_MC_QUEUE_SIZE _SB_MAKEMASK(4,S_MC_QUEUE_SIZE) | 85 | #define M_MC_QUEUE_SIZE _SB_MAKEMASK(4, S_MC_QUEUE_SIZE) |
86 | #define V_MC_QUEUE_SIZE(x) _SB_MAKEVALUE(x,S_MC_QUEUE_SIZE) | 86 | #define V_MC_QUEUE_SIZE(x) _SB_MAKEVALUE(x, S_MC_QUEUE_SIZE) |
87 | #define G_MC_QUEUE_SIZE(x) _SB_GETVALUE(x,S_MC_QUEUE_SIZE,M_MC_QUEUE_SIZE) | 87 | #define G_MC_QUEUE_SIZE(x) _SB_GETVALUE(x, S_MC_QUEUE_SIZE, M_MC_QUEUE_SIZE) |
88 | #define V_MC_QUEUE_SIZE_DEFAULT V_MC_QUEUE_SIZE(0x0A) | 88 | #define V_MC_QUEUE_SIZE_DEFAULT V_MC_QUEUE_SIZE(0x0A) |
89 | 89 | ||
90 | #define S_MC_AGE_LIMIT 44 | 90 | #define S_MC_AGE_LIMIT 44 |
91 | #define M_MC_AGE_LIMIT _SB_MAKEMASK(4,S_MC_AGE_LIMIT) | 91 | #define M_MC_AGE_LIMIT _SB_MAKEMASK(4, S_MC_AGE_LIMIT) |
92 | #define V_MC_AGE_LIMIT(x) _SB_MAKEVALUE(x,S_MC_AGE_LIMIT) | 92 | #define V_MC_AGE_LIMIT(x) _SB_MAKEVALUE(x, S_MC_AGE_LIMIT) |
93 | #define G_MC_AGE_LIMIT(x) _SB_GETVALUE(x,S_MC_AGE_LIMIT,M_MC_AGE_LIMIT) | 93 | #define G_MC_AGE_LIMIT(x) _SB_GETVALUE(x, S_MC_AGE_LIMIT, M_MC_AGE_LIMIT) |
94 | #define V_MC_AGE_LIMIT_DEFAULT V_MC_AGE_LIMIT(8) | 94 | #define V_MC_AGE_LIMIT_DEFAULT V_MC_AGE_LIMIT(8) |
95 | 95 | ||
96 | #define S_MC_WR_LIMIT 48 | 96 | #define S_MC_WR_LIMIT 48 |
97 | #define M_MC_WR_LIMIT _SB_MAKEMASK(4,S_MC_WR_LIMIT) | 97 | #define M_MC_WR_LIMIT _SB_MAKEMASK(4, S_MC_WR_LIMIT) |
98 | #define V_MC_WR_LIMIT(x) _SB_MAKEVALUE(x,S_MC_WR_LIMIT) | 98 | #define V_MC_WR_LIMIT(x) _SB_MAKEVALUE(x, S_MC_WR_LIMIT) |
99 | #define G_MC_WR_LIMIT(x) _SB_GETVALUE(x,S_MC_WR_LIMIT,M_MC_WR_LIMIT) | 99 | #define G_MC_WR_LIMIT(x) _SB_GETVALUE(x, S_MC_WR_LIMIT, M_MC_WR_LIMIT) |
100 | #define V_MC_WR_LIMIT_DEFAULT V_MC_WR_LIMIT(5) | 100 | #define V_MC_WR_LIMIT_DEFAULT V_MC_WR_LIMIT(5) |
101 | 101 | ||
102 | #define M_MC_IOB1HIGHPRIORITY _SB_MAKEMASK1(52) | 102 | #define M_MC_IOB1HIGHPRIORITY _SB_MAKEMASK1(52) |
103 | 103 | ||
104 | #define M_MC_RESERVED2 _SB_MAKEMASK(3,53) | 104 | #define M_MC_RESERVED2 _SB_MAKEMASK(3, 53) |
105 | 105 | ||
106 | #define S_MC_CS_MODE 56 | 106 | #define S_MC_CS_MODE 56 |
107 | #define M_MC_CS_MODE _SB_MAKEMASK(4,S_MC_CS_MODE) | 107 | #define M_MC_CS_MODE _SB_MAKEMASK(4, S_MC_CS_MODE) |
108 | #define V_MC_CS_MODE(x) _SB_MAKEVALUE(x,S_MC_CS_MODE) | 108 | #define V_MC_CS_MODE(x) _SB_MAKEVALUE(x, S_MC_CS_MODE) |
109 | #define G_MC_CS_MODE(x) _SB_GETVALUE(x,S_MC_CS_MODE,M_MC_CS_MODE) | 109 | #define G_MC_CS_MODE(x) _SB_GETVALUE(x, S_MC_CS_MODE, M_MC_CS_MODE) |
110 | 110 | ||
111 | #define K_MC_CS_MODE_MSB_CS 0 | 111 | #define K_MC_CS_MODE_MSB_CS 0 |
112 | #define K_MC_CS_MODE_INTLV_CS 15 | 112 | #define K_MC_CS_MODE_INTLV_CS 15 |
@@ -138,9 +138,9 @@ | |||
138 | */ | 138 | */ |
139 | 139 | ||
140 | #define S_MC_CLK_RATIO 0 | 140 | #define S_MC_CLK_RATIO 0 |
141 | #define M_MC_CLK_RATIO _SB_MAKEMASK(4,S_MC_CLK_RATIO) | 141 | #define M_MC_CLK_RATIO _SB_MAKEMASK(4, S_MC_CLK_RATIO) |
142 | #define V_MC_CLK_RATIO(x) _SB_MAKEVALUE(x,S_MC_CLK_RATIO) | 142 | #define V_MC_CLK_RATIO(x) _SB_MAKEVALUE(x, S_MC_CLK_RATIO) |
143 | #define G_MC_CLK_RATIO(x) _SB_GETVALUE(x,S_MC_CLK_RATIO,M_MC_CLK_RATIO) | 143 | #define G_MC_CLK_RATIO(x) _SB_GETVALUE(x, S_MC_CLK_RATIO, M_MC_CLK_RATIO) |
144 | 144 | ||
145 | #define K_MC_CLK_RATIO_2X 4 | 145 | #define K_MC_CLK_RATIO_2X 4 |
146 | #define K_MC_CLK_RATIO_25X 5 | 146 | #define K_MC_CLK_RATIO_25X 5 |
@@ -158,9 +158,9 @@ | |||
158 | #define V_MC_CLK_RATIO_DEFAULT V_MC_CLK_RATIO_25X | 158 | #define V_MC_CLK_RATIO_DEFAULT V_MC_CLK_RATIO_25X |
159 | 159 | ||
160 | #define S_MC_REF_RATE 8 | 160 | #define S_MC_REF_RATE 8 |
161 | #define M_MC_REF_RATE _SB_MAKEMASK(8,S_MC_REF_RATE) | 161 | #define M_MC_REF_RATE _SB_MAKEMASK(8, S_MC_REF_RATE) |
162 | #define V_MC_REF_RATE(x) _SB_MAKEVALUE(x,S_MC_REF_RATE) | 162 | #define V_MC_REF_RATE(x) _SB_MAKEVALUE(x, S_MC_REF_RATE) |
163 | #define G_MC_REF_RATE(x) _SB_GETVALUE(x,S_MC_REF_RATE,M_MC_REF_RATE) | 163 | #define G_MC_REF_RATE(x) _SB_GETVALUE(x, S_MC_REF_RATE, M_MC_REF_RATE) |
164 | 164 | ||
165 | #define K_MC_REF_RATE_100MHz 0x62 | 165 | #define K_MC_REF_RATE_100MHz 0x62 |
166 | #define K_MC_REF_RATE_133MHz 0x81 | 166 | #define K_MC_REF_RATE_133MHz 0x81 |
@@ -172,21 +172,21 @@ | |||
172 | #define V_MC_REF_RATE_DEFAULT V_MC_REF_RATE_100MHz | 172 | #define V_MC_REF_RATE_DEFAULT V_MC_REF_RATE_100MHz |
173 | 173 | ||
174 | #define S_MC_CLOCK_DRIVE 16 | 174 | #define S_MC_CLOCK_DRIVE 16 |
175 | #define M_MC_CLOCK_DRIVE _SB_MAKEMASK(4,S_MC_CLOCK_DRIVE) | 175 | #define M_MC_CLOCK_DRIVE _SB_MAKEMASK(4, S_MC_CLOCK_DRIVE) |
176 | #define V_MC_CLOCK_DRIVE(x) _SB_MAKEVALUE(x,S_MC_CLOCK_DRIVE) | 176 | #define V_MC_CLOCK_DRIVE(x) _SB_MAKEVALUE(x, S_MC_CLOCK_DRIVE) |
177 | #define G_MC_CLOCK_DRIVE(x) _SB_GETVALUE(x,S_MC_CLOCK_DRIVE,M_MC_CLOCK_DRIVE) | 177 | #define G_MC_CLOCK_DRIVE(x) _SB_GETVALUE(x, S_MC_CLOCK_DRIVE, M_MC_CLOCK_DRIVE) |
178 | #define V_MC_CLOCK_DRIVE_DEFAULT V_MC_CLOCK_DRIVE(0xF) | 178 | #define V_MC_CLOCK_DRIVE_DEFAULT V_MC_CLOCK_DRIVE(0xF) |
179 | 179 | ||
180 | #define S_MC_DATA_DRIVE 20 | 180 | #define S_MC_DATA_DRIVE 20 |
181 | #define M_MC_DATA_DRIVE _SB_MAKEMASK(4,S_MC_DATA_DRIVE) | 181 | #define M_MC_DATA_DRIVE _SB_MAKEMASK(4, S_MC_DATA_DRIVE) |
182 | #define V_MC_DATA_DRIVE(x) _SB_MAKEVALUE(x,S_MC_DATA_DRIVE) | 182 | #define V_MC_DATA_DRIVE(x) _SB_MAKEVALUE(x, S_MC_DATA_DRIVE) |
183 | #define G_MC_DATA_DRIVE(x) _SB_GETVALUE(x,S_MC_DATA_DRIVE,M_MC_DATA_DRIVE) | 183 | #define G_MC_DATA_DRIVE(x) _SB_GETVALUE(x, S_MC_DATA_DRIVE, M_MC_DATA_DRIVE) |
184 | #define V_MC_DATA_DRIVE_DEFAULT V_MC_DATA_DRIVE(0x0) | 184 | #define V_MC_DATA_DRIVE_DEFAULT V_MC_DATA_DRIVE(0x0) |
185 | 185 | ||
186 | #define S_MC_ADDR_DRIVE 24 | 186 | #define S_MC_ADDR_DRIVE 24 |
187 | #define M_MC_ADDR_DRIVE _SB_MAKEMASK(4,S_MC_ADDR_DRIVE) | 187 | #define M_MC_ADDR_DRIVE _SB_MAKEMASK(4, S_MC_ADDR_DRIVE) |
188 | #define V_MC_ADDR_DRIVE(x) _SB_MAKEVALUE(x,S_MC_ADDR_DRIVE) | 188 | #define V_MC_ADDR_DRIVE(x) _SB_MAKEVALUE(x, S_MC_ADDR_DRIVE) |
189 | #define G_MC_ADDR_DRIVE(x) _SB_GETVALUE(x,S_MC_ADDR_DRIVE,M_MC_ADDR_DRIVE) | 189 | #define G_MC_ADDR_DRIVE(x) _SB_GETVALUE(x, S_MC_ADDR_DRIVE, M_MC_ADDR_DRIVE) |
190 | #define V_MC_ADDR_DRIVE_DEFAULT V_MC_ADDR_DRIVE(0x0) | 190 | #define V_MC_ADDR_DRIVE_DEFAULT V_MC_ADDR_DRIVE(0x0) |
191 | 191 | ||
192 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) | 192 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) |
@@ -196,27 +196,27 @@ | |||
196 | #define M_MC_DLL_BYPASS _SB_MAKEMASK1(31) | 196 | #define M_MC_DLL_BYPASS _SB_MAKEMASK1(31) |
197 | 197 | ||
198 | #define S_MC_DQI_SKEW 32 | 198 | #define S_MC_DQI_SKEW 32 |
199 | #define M_MC_DQI_SKEW _SB_MAKEMASK(8,S_MC_DQI_SKEW) | 199 | #define M_MC_DQI_SKEW _SB_MAKEMASK(8, S_MC_DQI_SKEW) |
200 | #define V_MC_DQI_SKEW(x) _SB_MAKEVALUE(x,S_MC_DQI_SKEW) | 200 | #define V_MC_DQI_SKEW(x) _SB_MAKEVALUE(x, S_MC_DQI_SKEW) |
201 | #define G_MC_DQI_SKEW(x) _SB_GETVALUE(x,S_MC_DQI_SKEW,M_MC_DQI_SKEW) | 201 | #define G_MC_DQI_SKEW(x) _SB_GETVALUE(x, S_MC_DQI_SKEW, M_MC_DQI_SKEW) |
202 | #define V_MC_DQI_SKEW_DEFAULT V_MC_DQI_SKEW(0) | 202 | #define V_MC_DQI_SKEW_DEFAULT V_MC_DQI_SKEW(0) |
203 | 203 | ||
204 | #define S_MC_DQO_SKEW 40 | 204 | #define S_MC_DQO_SKEW 40 |
205 | #define M_MC_DQO_SKEW _SB_MAKEMASK(8,S_MC_DQO_SKEW) | 205 | #define M_MC_DQO_SKEW _SB_MAKEMASK(8, S_MC_DQO_SKEW) |
206 | #define V_MC_DQO_SKEW(x) _SB_MAKEVALUE(x,S_MC_DQO_SKEW) | 206 | #define V_MC_DQO_SKEW(x) _SB_MAKEVALUE(x, S_MC_DQO_SKEW) |
207 | #define G_MC_DQO_SKEW(x) _SB_GETVALUE(x,S_MC_DQO_SKEW,M_MC_DQO_SKEW) | 207 | #define G_MC_DQO_SKEW(x) _SB_GETVALUE(x, S_MC_DQO_SKEW, M_MC_DQO_SKEW) |
208 | #define V_MC_DQO_SKEW_DEFAULT V_MC_DQO_SKEW(0) | 208 | #define V_MC_DQO_SKEW_DEFAULT V_MC_DQO_SKEW(0) |
209 | 209 | ||
210 | #define S_MC_ADDR_SKEW 48 | 210 | #define S_MC_ADDR_SKEW 48 |
211 | #define M_MC_ADDR_SKEW _SB_MAKEMASK(8,S_MC_ADDR_SKEW) | 211 | #define M_MC_ADDR_SKEW _SB_MAKEMASK(8, S_MC_ADDR_SKEW) |
212 | #define V_MC_ADDR_SKEW(x) _SB_MAKEVALUE(x,S_MC_ADDR_SKEW) | 212 | #define V_MC_ADDR_SKEW(x) _SB_MAKEVALUE(x, S_MC_ADDR_SKEW) |
213 | #define G_MC_ADDR_SKEW(x) _SB_GETVALUE(x,S_MC_ADDR_SKEW,M_MC_ADDR_SKEW) | 213 | #define G_MC_ADDR_SKEW(x) _SB_GETVALUE(x, S_MC_ADDR_SKEW, M_MC_ADDR_SKEW) |
214 | #define V_MC_ADDR_SKEW_DEFAULT V_MC_ADDR_SKEW(0x0F) | 214 | #define V_MC_ADDR_SKEW_DEFAULT V_MC_ADDR_SKEW(0x0F) |
215 | 215 | ||
216 | #define S_MC_DLL_DEFAULT 56 | 216 | #define S_MC_DLL_DEFAULT 56 |
217 | #define M_MC_DLL_DEFAULT _SB_MAKEMASK(8,S_MC_DLL_DEFAULT) | 217 | #define M_MC_DLL_DEFAULT _SB_MAKEMASK(8, S_MC_DLL_DEFAULT) |
218 | #define V_MC_DLL_DEFAULT(x) _SB_MAKEVALUE(x,S_MC_DLL_DEFAULT) | 218 | #define V_MC_DLL_DEFAULT(x) _SB_MAKEVALUE(x, S_MC_DLL_DEFAULT) |
219 | #define G_MC_DLL_DEFAULT(x) _SB_GETVALUE(x,S_MC_DLL_DEFAULT,M_MC_DLL_DEFAULT) | 219 | #define G_MC_DLL_DEFAULT(x) _SB_GETVALUE(x, S_MC_DLL_DEFAULT, M_MC_DLL_DEFAULT) |
220 | #define V_MC_DLL_DEFAULT_DEFAULT V_MC_DLL_DEFAULT(0x10) | 220 | #define V_MC_DLL_DEFAULT_DEFAULT V_MC_DLL_DEFAULT(0x10) |
221 | 221 | ||
222 | #define V_MC_CLKCONFIG_DEFAULT V_MC_DLL_DEFAULT_DEFAULT | \ | 222 | #define V_MC_CLKCONFIG_DEFAULT V_MC_DLL_DEFAULT_DEFAULT | \ |
@@ -235,9 +235,9 @@ | |||
235 | */ | 235 | */ |
236 | 236 | ||
237 | #define S_MC_COMMAND 0 | 237 | #define S_MC_COMMAND 0 |
238 | #define M_MC_COMMAND _SB_MAKEMASK(4,S_MC_COMMAND) | 238 | #define M_MC_COMMAND _SB_MAKEMASK(4, S_MC_COMMAND) |
239 | #define V_MC_COMMAND(x) _SB_MAKEVALUE(x,S_MC_COMMAND) | 239 | #define V_MC_COMMAND(x) _SB_MAKEVALUE(x, S_MC_COMMAND) |
240 | #define G_MC_COMMAND(x) _SB_GETVALUE(x,S_MC_COMMAND,M_MC_COMMAND) | 240 | #define G_MC_COMMAND(x) _SB_GETVALUE(x, S_MC_COMMAND, M_MC_COMMAND) |
241 | 241 | ||
242 | #define K_MC_COMMAND_EMRS 0 | 242 | #define K_MC_COMMAND_EMRS 0 |
243 | #define K_MC_COMMAND_MRS 1 | 243 | #define K_MC_COMMAND_MRS 1 |
@@ -267,21 +267,21 @@ | |||
267 | */ | 267 | */ |
268 | 268 | ||
269 | #define S_MC_EMODE 0 | 269 | #define S_MC_EMODE 0 |
270 | #define M_MC_EMODE _SB_MAKEMASK(15,S_MC_EMODE) | 270 | #define M_MC_EMODE _SB_MAKEMASK(15, S_MC_EMODE) |
271 | #define V_MC_EMODE(x) _SB_MAKEVALUE(x,S_MC_EMODE) | 271 | #define V_MC_EMODE(x) _SB_MAKEVALUE(x, S_MC_EMODE) |
272 | #define G_MC_EMODE(x) _SB_GETVALUE(x,S_MC_EMODE,M_MC_EMODE) | 272 | #define G_MC_EMODE(x) _SB_GETVALUE(x, S_MC_EMODE, M_MC_EMODE) |
273 | #define V_MC_EMODE_DEFAULT V_MC_EMODE(0) | 273 | #define V_MC_EMODE_DEFAULT V_MC_EMODE(0) |
274 | 274 | ||
275 | #define S_MC_MODE 16 | 275 | #define S_MC_MODE 16 |
276 | #define M_MC_MODE _SB_MAKEMASK(15,S_MC_MODE) | 276 | #define M_MC_MODE _SB_MAKEMASK(15, S_MC_MODE) |
277 | #define V_MC_MODE(x) _SB_MAKEVALUE(x,S_MC_MODE) | 277 | #define V_MC_MODE(x) _SB_MAKEVALUE(x, S_MC_MODE) |
278 | #define G_MC_MODE(x) _SB_GETVALUE(x,S_MC_MODE,M_MC_MODE) | 278 | #define G_MC_MODE(x) _SB_GETVALUE(x, S_MC_MODE, M_MC_MODE) |
279 | #define V_MC_MODE_DEFAULT V_MC_MODE(0x22) | 279 | #define V_MC_MODE_DEFAULT V_MC_MODE(0x22) |
280 | 280 | ||
281 | #define S_MC_DRAM_TYPE 32 | 281 | #define S_MC_DRAM_TYPE 32 |
282 | #define M_MC_DRAM_TYPE _SB_MAKEMASK(3,S_MC_DRAM_TYPE) | 282 | #define M_MC_DRAM_TYPE _SB_MAKEMASK(3, S_MC_DRAM_TYPE) |
283 | #define V_MC_DRAM_TYPE(x) _SB_MAKEVALUE(x,S_MC_DRAM_TYPE) | 283 | #define V_MC_DRAM_TYPE(x) _SB_MAKEVALUE(x, S_MC_DRAM_TYPE) |
284 | #define G_MC_DRAM_TYPE(x) _SB_GETVALUE(x,S_MC_DRAM_TYPE,M_MC_DRAM_TYPE) | 284 | #define G_MC_DRAM_TYPE(x) _SB_GETVALUE(x, S_MC_DRAM_TYPE, M_MC_DRAM_TYPE) |
285 | 285 | ||
286 | #define K_MC_DRAM_TYPE_JEDEC 0 | 286 | #define K_MC_DRAM_TYPE_JEDEC 0 |
287 | #define K_MC_DRAM_TYPE_FCRAM 1 | 287 | #define K_MC_DRAM_TYPE_FCRAM 1 |
@@ -309,16 +309,16 @@ | |||
309 | #define M_MC_r2rIDLE_TWOCYCLES _SB_MAKEMASK1(62) | 309 | #define M_MC_r2rIDLE_TWOCYCLES _SB_MAKEMASK1(62) |
310 | 310 | ||
311 | #define S_MC_tFIFO 56 | 311 | #define S_MC_tFIFO 56 |
312 | #define M_MC_tFIFO _SB_MAKEMASK(4,S_MC_tFIFO) | 312 | #define M_MC_tFIFO _SB_MAKEMASK(4, S_MC_tFIFO) |
313 | #define V_MC_tFIFO(x) _SB_MAKEVALUE(x,S_MC_tFIFO) | 313 | #define V_MC_tFIFO(x) _SB_MAKEVALUE(x, S_MC_tFIFO) |
314 | #define G_MC_tFIFO(x) _SB_GETVALUE(x,S_MC_tFIFO,M_MC_tFIFO) | 314 | #define G_MC_tFIFO(x) _SB_GETVALUE(x, S_MC_tFIFO, M_MC_tFIFO) |
315 | #define K_MC_tFIFO_DEFAULT 1 | 315 | #define K_MC_tFIFO_DEFAULT 1 |
316 | #define V_MC_tFIFO_DEFAULT V_MC_tFIFO(K_MC_tFIFO_DEFAULT) | 316 | #define V_MC_tFIFO_DEFAULT V_MC_tFIFO(K_MC_tFIFO_DEFAULT) |
317 | 317 | ||
318 | #define S_MC_tRFC 52 | 318 | #define S_MC_tRFC 52 |
319 | #define M_MC_tRFC _SB_MAKEMASK(4,S_MC_tRFC) | 319 | #define M_MC_tRFC _SB_MAKEMASK(4, S_MC_tRFC) |
320 | #define V_MC_tRFC(x) _SB_MAKEVALUE(x,S_MC_tRFC) | 320 | #define V_MC_tRFC(x) _SB_MAKEVALUE(x, S_MC_tRFC) |
321 | #define G_MC_tRFC(x) _SB_GETVALUE(x,S_MC_tRFC,M_MC_tRFC) | 321 | #define G_MC_tRFC(x) _SB_GETVALUE(x, S_MC_tRFC, M_MC_tRFC) |
322 | #define K_MC_tRFC_DEFAULT 12 | 322 | #define K_MC_tRFC_DEFAULT 12 |
323 | #define V_MC_tRFC_DEFAULT V_MC_tRFC(K_MC_tRFC_DEFAULT) | 323 | #define V_MC_tRFC_DEFAULT V_MC_tRFC(K_MC_tRFC_DEFAULT) |
324 | 324 | ||
@@ -327,44 +327,44 @@ | |||
327 | #endif | 327 | #endif |
328 | 328 | ||
329 | #define S_MC_tCwCr 40 | 329 | #define S_MC_tCwCr 40 |
330 | #define M_MC_tCwCr _SB_MAKEMASK(4,S_MC_tCwCr) | 330 | #define M_MC_tCwCr _SB_MAKEMASK(4, S_MC_tCwCr) |
331 | #define V_MC_tCwCr(x) _SB_MAKEVALUE(x,S_MC_tCwCr) | 331 | #define V_MC_tCwCr(x) _SB_MAKEVALUE(x, S_MC_tCwCr) |
332 | #define G_MC_tCwCr(x) _SB_GETVALUE(x,S_MC_tCwCr,M_MC_tCwCr) | 332 | #define G_MC_tCwCr(x) _SB_GETVALUE(x, S_MC_tCwCr, M_MC_tCwCr) |
333 | #define K_MC_tCwCr_DEFAULT 4 | 333 | #define K_MC_tCwCr_DEFAULT 4 |
334 | #define V_MC_tCwCr_DEFAULT V_MC_tCwCr(K_MC_tCwCr_DEFAULT) | 334 | #define V_MC_tCwCr_DEFAULT V_MC_tCwCr(K_MC_tCwCr_DEFAULT) |
335 | 335 | ||
336 | #define S_MC_tRCr 28 | 336 | #define S_MC_tRCr 28 |
337 | #define M_MC_tRCr _SB_MAKEMASK(4,S_MC_tRCr) | 337 | #define M_MC_tRCr _SB_MAKEMASK(4, S_MC_tRCr) |
338 | #define V_MC_tRCr(x) _SB_MAKEVALUE(x,S_MC_tRCr) | 338 | #define V_MC_tRCr(x) _SB_MAKEVALUE(x, S_MC_tRCr) |
339 | #define G_MC_tRCr(x) _SB_GETVALUE(x,S_MC_tRCr,M_MC_tRCr) | 339 | #define G_MC_tRCr(x) _SB_GETVALUE(x, S_MC_tRCr, M_MC_tRCr) |
340 | #define K_MC_tRCr_DEFAULT 9 | 340 | #define K_MC_tRCr_DEFAULT 9 |
341 | #define V_MC_tRCr_DEFAULT V_MC_tRCr(K_MC_tRCr_DEFAULT) | 341 | #define V_MC_tRCr_DEFAULT V_MC_tRCr(K_MC_tRCr_DEFAULT) |
342 | 342 | ||
343 | #define S_MC_tRCw 24 | 343 | #define S_MC_tRCw 24 |
344 | #define M_MC_tRCw _SB_MAKEMASK(4,S_MC_tRCw) | 344 | #define M_MC_tRCw _SB_MAKEMASK(4, S_MC_tRCw) |
345 | #define V_MC_tRCw(x) _SB_MAKEVALUE(x,S_MC_tRCw) | 345 | #define V_MC_tRCw(x) _SB_MAKEVALUE(x, S_MC_tRCw) |
346 | #define G_MC_tRCw(x) _SB_GETVALUE(x,S_MC_tRCw,M_MC_tRCw) | 346 | #define G_MC_tRCw(x) _SB_GETVALUE(x, S_MC_tRCw, M_MC_tRCw) |
347 | #define K_MC_tRCw_DEFAULT 10 | 347 | #define K_MC_tRCw_DEFAULT 10 |
348 | #define V_MC_tRCw_DEFAULT V_MC_tRCw(K_MC_tRCw_DEFAULT) | 348 | #define V_MC_tRCw_DEFAULT V_MC_tRCw(K_MC_tRCw_DEFAULT) |
349 | 349 | ||
350 | #define S_MC_tRRD 20 | 350 | #define S_MC_tRRD 20 |
351 | #define M_MC_tRRD _SB_MAKEMASK(4,S_MC_tRRD) | 351 | #define M_MC_tRRD _SB_MAKEMASK(4, S_MC_tRRD) |
352 | #define V_MC_tRRD(x) _SB_MAKEVALUE(x,S_MC_tRRD) | 352 | #define V_MC_tRRD(x) _SB_MAKEVALUE(x, S_MC_tRRD) |
353 | #define G_MC_tRRD(x) _SB_GETVALUE(x,S_MC_tRRD,M_MC_tRRD) | 353 | #define G_MC_tRRD(x) _SB_GETVALUE(x, S_MC_tRRD, M_MC_tRRD) |
354 | #define K_MC_tRRD_DEFAULT 2 | 354 | #define K_MC_tRRD_DEFAULT 2 |
355 | #define V_MC_tRRD_DEFAULT V_MC_tRRD(K_MC_tRRD_DEFAULT) | 355 | #define V_MC_tRRD_DEFAULT V_MC_tRRD(K_MC_tRRD_DEFAULT) |
356 | 356 | ||
357 | #define S_MC_tRP 16 | 357 | #define S_MC_tRP 16 |
358 | #define M_MC_tRP _SB_MAKEMASK(4,S_MC_tRP) | 358 | #define M_MC_tRP _SB_MAKEMASK(4, S_MC_tRP) |
359 | #define V_MC_tRP(x) _SB_MAKEVALUE(x,S_MC_tRP) | 359 | #define V_MC_tRP(x) _SB_MAKEVALUE(x, S_MC_tRP) |
360 | #define G_MC_tRP(x) _SB_GETVALUE(x,S_MC_tRP,M_MC_tRP) | 360 | #define G_MC_tRP(x) _SB_GETVALUE(x, S_MC_tRP, M_MC_tRP) |
361 | #define K_MC_tRP_DEFAULT 4 | 361 | #define K_MC_tRP_DEFAULT 4 |
362 | #define V_MC_tRP_DEFAULT V_MC_tRP(K_MC_tRP_DEFAULT) | 362 | #define V_MC_tRP_DEFAULT V_MC_tRP(K_MC_tRP_DEFAULT) |
363 | 363 | ||
364 | #define S_MC_tCwD 8 | 364 | #define S_MC_tCwD 8 |
365 | #define M_MC_tCwD _SB_MAKEMASK(4,S_MC_tCwD) | 365 | #define M_MC_tCwD _SB_MAKEMASK(4, S_MC_tCwD) |
366 | #define V_MC_tCwD(x) _SB_MAKEVALUE(x,S_MC_tCwD) | 366 | #define V_MC_tCwD(x) _SB_MAKEVALUE(x, S_MC_tCwD) |
367 | #define G_MC_tCwD(x) _SB_GETVALUE(x,S_MC_tCwD,M_MC_tCwD) | 367 | #define G_MC_tCwD(x) _SB_GETVALUE(x, S_MC_tCwD, M_MC_tCwD) |
368 | #define K_MC_tCwD_DEFAULT 1 | 368 | #define K_MC_tCwD_DEFAULT 1 |
369 | #define V_MC_tCwD_DEFAULT V_MC_tCwD(K_MC_tCwD_DEFAULT) | 369 | #define V_MC_tCwD_DEFAULT V_MC_tCwD(K_MC_tCwD_DEFAULT) |
370 | 370 | ||
@@ -372,16 +372,16 @@ | |||
372 | #define M_MC_tCrDh M_tCrDh | 372 | #define M_MC_tCrDh M_tCrDh |
373 | 373 | ||
374 | #define S_MC_tCrD 4 | 374 | #define S_MC_tCrD 4 |
375 | #define M_MC_tCrD _SB_MAKEMASK(3,S_MC_tCrD) | 375 | #define M_MC_tCrD _SB_MAKEMASK(3, S_MC_tCrD) |
376 | #define V_MC_tCrD(x) _SB_MAKEVALUE(x,S_MC_tCrD) | 376 | #define V_MC_tCrD(x) _SB_MAKEVALUE(x, S_MC_tCrD) |
377 | #define G_MC_tCrD(x) _SB_GETVALUE(x,S_MC_tCrD,M_MC_tCrD) | 377 | #define G_MC_tCrD(x) _SB_GETVALUE(x, S_MC_tCrD, M_MC_tCrD) |
378 | #define K_MC_tCrD_DEFAULT 2 | 378 | #define K_MC_tCrD_DEFAULT 2 |
379 | #define V_MC_tCrD_DEFAULT V_MC_tCrD(K_MC_tCrD_DEFAULT) | 379 | #define V_MC_tCrD_DEFAULT V_MC_tCrD(K_MC_tCrD_DEFAULT) |
380 | 380 | ||
381 | #define S_MC_tRCD 0 | 381 | #define S_MC_tRCD 0 |
382 | #define M_MC_tRCD _SB_MAKEMASK(4,S_MC_tRCD) | 382 | #define M_MC_tRCD _SB_MAKEMASK(4, S_MC_tRCD) |
383 | #define V_MC_tRCD(x) _SB_MAKEVALUE(x,S_MC_tRCD) | 383 | #define V_MC_tRCD(x) _SB_MAKEVALUE(x, S_MC_tRCD) |
384 | #define G_MC_tRCD(x) _SB_GETVALUE(x,S_MC_tRCD,M_MC_tRCD) | 384 | #define G_MC_tRCD(x) _SB_GETVALUE(x, S_MC_tRCD, M_MC_tRCD) |
385 | #define K_MC_tRCD_DEFAULT 3 | 385 | #define K_MC_tRCD_DEFAULT 3 |
386 | #define V_MC_tRCD_DEFAULT V_MC_tRCD(K_MC_tRCD_DEFAULT) | 386 | #define V_MC_tRCD_DEFAULT V_MC_tRCD(K_MC_tRCD_DEFAULT) |
387 | 387 | ||
@@ -409,76 +409,76 @@ | |||
409 | */ | 409 | */ |
410 | 410 | ||
411 | #define S_MC_CS0_START 0 | 411 | #define S_MC_CS0_START 0 |
412 | #define M_MC_CS0_START _SB_MAKEMASK(16,S_MC_CS0_START) | 412 | #define M_MC_CS0_START _SB_MAKEMASK(16, S_MC_CS0_START) |
413 | #define V_MC_CS0_START(x) _SB_MAKEVALUE(x,S_MC_CS0_START) | 413 | #define V_MC_CS0_START(x) _SB_MAKEVALUE(x, S_MC_CS0_START) |
414 | #define G_MC_CS0_START(x) _SB_GETVALUE(x,S_MC_CS0_START,M_MC_CS0_START) | 414 | #define G_MC_CS0_START(x) _SB_GETVALUE(x, S_MC_CS0_START, M_MC_CS0_START) |
415 | 415 | ||
416 | #define S_MC_CS1_START 16 | 416 | #define S_MC_CS1_START 16 |
417 | #define M_MC_CS1_START _SB_MAKEMASK(16,S_MC_CS1_START) | 417 | #define M_MC_CS1_START _SB_MAKEMASK(16, S_MC_CS1_START) |
418 | #define V_MC_CS1_START(x) _SB_MAKEVALUE(x,S_MC_CS1_START) | 418 | #define V_MC_CS1_START(x) _SB_MAKEVALUE(x, S_MC_CS1_START) |
419 | #define G_MC_CS1_START(x) _SB_GETVALUE(x,S_MC_CS1_START,M_MC_CS1_START) | 419 | #define G_MC_CS1_START(x) _SB_GETVALUE(x, S_MC_CS1_START, M_MC_CS1_START) |
420 | 420 | ||
421 | #define S_MC_CS2_START 32 | 421 | #define S_MC_CS2_START 32 |
422 | #define M_MC_CS2_START _SB_MAKEMASK(16,S_MC_CS2_START) | 422 | #define M_MC_CS2_START _SB_MAKEMASK(16, S_MC_CS2_START) |
423 | #define V_MC_CS2_START(x) _SB_MAKEVALUE(x,S_MC_CS2_START) | 423 | #define V_MC_CS2_START(x) _SB_MAKEVALUE(x, S_MC_CS2_START) |
424 | #define G_MC_CS2_START(x) _SB_GETVALUE(x,S_MC_CS2_START,M_MC_CS2_START) | 424 | #define G_MC_CS2_START(x) _SB_GETVALUE(x, S_MC_CS2_START, M_MC_CS2_START) |
425 | 425 | ||
426 | #define S_MC_CS3_START 48 | 426 | #define S_MC_CS3_START 48 |
427 | #define M_MC_CS3_START _SB_MAKEMASK(16,S_MC_CS3_START) | 427 | #define M_MC_CS3_START _SB_MAKEMASK(16, S_MC_CS3_START) |
428 | #define V_MC_CS3_START(x) _SB_MAKEVALUE(x,S_MC_CS3_START) | 428 | #define V_MC_CS3_START(x) _SB_MAKEVALUE(x, S_MC_CS3_START) |
429 | #define G_MC_CS3_START(x) _SB_GETVALUE(x,S_MC_CS3_START,M_MC_CS3_START) | 429 | #define G_MC_CS3_START(x) _SB_GETVALUE(x, S_MC_CS3_START, M_MC_CS3_START) |
430 | 430 | ||
431 | /* | 431 | /* |
432 | * Chip Select End Address Register (Table 6-18) | 432 | * Chip Select End Address Register (Table 6-18) |
433 | */ | 433 | */ |
434 | 434 | ||
435 | #define S_MC_CS0_END 0 | 435 | #define S_MC_CS0_END 0 |
436 | #define M_MC_CS0_END _SB_MAKEMASK(16,S_MC_CS0_END) | 436 | #define M_MC_CS0_END _SB_MAKEMASK(16, S_MC_CS0_END) |
437 | #define V_MC_CS0_END(x) _SB_MAKEVALUE(x,S_MC_CS0_END) | 437 | #define V_MC_CS0_END(x) _SB_MAKEVALUE(x, S_MC_CS0_END) |
438 | #define G_MC_CS0_END(x) _SB_GETVALUE(x,S_MC_CS0_END,M_MC_CS0_END) | 438 | #define G_MC_CS0_END(x) _SB_GETVALUE(x, S_MC_CS0_END, M_MC_CS0_END) |
439 | 439 | ||
440 | #define S_MC_CS1_END 16 | 440 | #define S_MC_CS1_END 16 |
441 | #define M_MC_CS1_END _SB_MAKEMASK(16,S_MC_CS1_END) | 441 | #define M_MC_CS1_END _SB_MAKEMASK(16, S_MC_CS1_END) |
442 | #define V_MC_CS1_END(x) _SB_MAKEVALUE(x,S_MC_CS1_END) | 442 | #define V_MC_CS1_END(x) _SB_MAKEVALUE(x, S_MC_CS1_END) |
443 | #define G_MC_CS1_END(x) _SB_GETVALUE(x,S_MC_CS1_END,M_MC_CS1_END) | 443 | #define G_MC_CS1_END(x) _SB_GETVALUE(x, S_MC_CS1_END, M_MC_CS1_END) |
444 | 444 | ||
445 | #define S_MC_CS2_END 32 | 445 | #define S_MC_CS2_END 32 |
446 | #define M_MC_CS2_END _SB_MAKEMASK(16,S_MC_CS2_END) | 446 | #define M_MC_CS2_END _SB_MAKEMASK(16, S_MC_CS2_END) |
447 | #define V_MC_CS2_END(x) _SB_MAKEVALUE(x,S_MC_CS2_END) | 447 | #define V_MC_CS2_END(x) _SB_MAKEVALUE(x, S_MC_CS2_END) |
448 | #define G_MC_CS2_END(x) _SB_GETVALUE(x,S_MC_CS2_END,M_MC_CS2_END) | 448 | #define G_MC_CS2_END(x) _SB_GETVALUE(x, S_MC_CS2_END, M_MC_CS2_END) |
449 | 449 | ||
450 | #define S_MC_CS3_END 48 | 450 | #define S_MC_CS3_END 48 |
451 | #define M_MC_CS3_END _SB_MAKEMASK(16,S_MC_CS3_END) | 451 | #define M_MC_CS3_END _SB_MAKEMASK(16, S_MC_CS3_END) |
452 | #define V_MC_CS3_END(x) _SB_MAKEVALUE(x,S_MC_CS3_END) | 452 | #define V_MC_CS3_END(x) _SB_MAKEVALUE(x, S_MC_CS3_END) |
453 | #define G_MC_CS3_END(x) _SB_GETVALUE(x,S_MC_CS3_END,M_MC_CS3_END) | 453 | #define G_MC_CS3_END(x) _SB_GETVALUE(x, S_MC_CS3_END, M_MC_CS3_END) |
454 | 454 | ||
455 | /* | 455 | /* |
456 | * Chip Select Interleave Register (Table 6-19) | 456 | * Chip Select Interleave Register (Table 6-19) |
457 | */ | 457 | */ |
458 | 458 | ||
459 | #define S_MC_INTLV_RESERVED 0 | 459 | #define S_MC_INTLV_RESERVED 0 |
460 | #define M_MC_INTLV_RESERVED _SB_MAKEMASK(5,S_MC_INTLV_RESERVED) | 460 | #define M_MC_INTLV_RESERVED _SB_MAKEMASK(5, S_MC_INTLV_RESERVED) |
461 | 461 | ||
462 | #define S_MC_INTERLEAVE 7 | 462 | #define S_MC_INTERLEAVE 7 |
463 | #define M_MC_INTERLEAVE _SB_MAKEMASK(18,S_MC_INTERLEAVE) | 463 | #define M_MC_INTERLEAVE _SB_MAKEMASK(18, S_MC_INTERLEAVE) |
464 | #define V_MC_INTERLEAVE(x) _SB_MAKEVALUE(x,S_MC_INTERLEAVE) | 464 | #define V_MC_INTERLEAVE(x) _SB_MAKEVALUE(x, S_MC_INTERLEAVE) |
465 | 465 | ||
466 | #define S_MC_INTLV_MBZ 25 | 466 | #define S_MC_INTLV_MBZ 25 |
467 | #define M_MC_INTLV_MBZ _SB_MAKEMASK(39,S_MC_INTLV_MBZ) | 467 | #define M_MC_INTLV_MBZ _SB_MAKEMASK(39, S_MC_INTLV_MBZ) |
468 | 468 | ||
469 | /* | 469 | /* |
470 | * Row Address Bits Register (Table 6-20) | 470 | * Row Address Bits Register (Table 6-20) |
471 | */ | 471 | */ |
472 | 472 | ||
473 | #define S_MC_RAS_RESERVED 0 | 473 | #define S_MC_RAS_RESERVED 0 |
474 | #define M_MC_RAS_RESERVED _SB_MAKEMASK(5,S_MC_RAS_RESERVED) | 474 | #define M_MC_RAS_RESERVED _SB_MAKEMASK(5, S_MC_RAS_RESERVED) |
475 | 475 | ||
476 | #define S_MC_RAS_SELECT 12 | 476 | #define S_MC_RAS_SELECT 12 |
477 | #define M_MC_RAS_SELECT _SB_MAKEMASK(25,S_MC_RAS_SELECT) | 477 | #define M_MC_RAS_SELECT _SB_MAKEMASK(25, S_MC_RAS_SELECT) |
478 | #define V_MC_RAS_SELECT(x) _SB_MAKEVALUE(x,S_MC_RAS_SELECT) | 478 | #define V_MC_RAS_SELECT(x) _SB_MAKEVALUE(x, S_MC_RAS_SELECT) |
479 | 479 | ||
480 | #define S_MC_RAS_MBZ 37 | 480 | #define S_MC_RAS_MBZ 37 |
481 | #define M_MC_RAS_MBZ _SB_MAKEMASK(27,S_MC_RAS_MBZ) | 481 | #define M_MC_RAS_MBZ _SB_MAKEMASK(27, S_MC_RAS_MBZ) |
482 | 482 | ||
483 | 483 | ||
484 | /* | 484 | /* |
@@ -486,14 +486,14 @@ | |||
486 | */ | 486 | */ |
487 | 487 | ||
488 | #define S_MC_CAS_RESERVED 0 | 488 | #define S_MC_CAS_RESERVED 0 |
489 | #define M_MC_CAS_RESERVED _SB_MAKEMASK(5,S_MC_CAS_RESERVED) | 489 | #define M_MC_CAS_RESERVED _SB_MAKEMASK(5, S_MC_CAS_RESERVED) |
490 | 490 | ||
491 | #define S_MC_CAS_SELECT 5 | 491 | #define S_MC_CAS_SELECT 5 |
492 | #define M_MC_CAS_SELECT _SB_MAKEMASK(18,S_MC_CAS_SELECT) | 492 | #define M_MC_CAS_SELECT _SB_MAKEMASK(18, S_MC_CAS_SELECT) |
493 | #define V_MC_CAS_SELECT(x) _SB_MAKEVALUE(x,S_MC_CAS_SELECT) | 493 | #define V_MC_CAS_SELECT(x) _SB_MAKEVALUE(x, S_MC_CAS_SELECT) |
494 | 494 | ||
495 | #define S_MC_CAS_MBZ 23 | 495 | #define S_MC_CAS_MBZ 23 |
496 | #define M_MC_CAS_MBZ _SB_MAKEMASK(41,S_MC_CAS_MBZ) | 496 | #define M_MC_CAS_MBZ _SB_MAKEMASK(41, S_MC_CAS_MBZ) |
497 | 497 | ||
498 | 498 | ||
499 | /* | 499 | /* |
@@ -501,14 +501,14 @@ | |||
501 | */ | 501 | */ |
502 | 502 | ||
503 | #define S_MC_BA_RESERVED 0 | 503 | #define S_MC_BA_RESERVED 0 |
504 | #define M_MC_BA_RESERVED _SB_MAKEMASK(5,S_MC_BA_RESERVED) | 504 | #define M_MC_BA_RESERVED _SB_MAKEMASK(5, S_MC_BA_RESERVED) |
505 | 505 | ||
506 | #define S_MC_BA_SELECT 5 | 506 | #define S_MC_BA_SELECT 5 |
507 | #define M_MC_BA_SELECT _SB_MAKEMASK(20,S_MC_BA_SELECT) | 507 | #define M_MC_BA_SELECT _SB_MAKEMASK(20, S_MC_BA_SELECT) |
508 | #define V_MC_BA_SELECT(x) _SB_MAKEVALUE(x,S_MC_BA_SELECT) | 508 | #define V_MC_BA_SELECT(x) _SB_MAKEVALUE(x, S_MC_BA_SELECT) |
509 | 509 | ||
510 | #define S_MC_BA_MBZ 25 | 510 | #define S_MC_BA_MBZ 25 |
511 | #define M_MC_BA_MBZ _SB_MAKEMASK(39,S_MC_BA_MBZ) | 511 | #define M_MC_BA_MBZ _SB_MAKEMASK(39, S_MC_BA_MBZ) |
512 | 512 | ||
513 | /* | 513 | /* |
514 | * Chip Select Attribute Register (Table 6-23) | 514 | * Chip Select Attribute Register (Table 6-23) |
@@ -520,31 +520,31 @@ | |||
520 | #define K_MC_CS_ATTR_OPEN 3 | 520 | #define K_MC_CS_ATTR_OPEN 3 |
521 | 521 | ||
522 | #define S_MC_CS0_PAGE 0 | 522 | #define S_MC_CS0_PAGE 0 |
523 | #define M_MC_CS0_PAGE _SB_MAKEMASK(2,S_MC_CS0_PAGE) | 523 | #define M_MC_CS0_PAGE _SB_MAKEMASK(2, S_MC_CS0_PAGE) |
524 | #define V_MC_CS0_PAGE(x) _SB_MAKEVALUE(x,S_MC_CS0_PAGE) | 524 | #define V_MC_CS0_PAGE(x) _SB_MAKEVALUE(x, S_MC_CS0_PAGE) |
525 | #define G_MC_CS0_PAGE(x) _SB_GETVALUE(x,S_MC_CS0_PAGE,M_MC_CS0_PAGE) | 525 | #define G_MC_CS0_PAGE(x) _SB_GETVALUE(x, S_MC_CS0_PAGE, M_MC_CS0_PAGE) |
526 | 526 | ||
527 | #define S_MC_CS1_PAGE 16 | 527 | #define S_MC_CS1_PAGE 16 |
528 | #define M_MC_CS1_PAGE _SB_MAKEMASK(2,S_MC_CS1_PAGE) | 528 | #define M_MC_CS1_PAGE _SB_MAKEMASK(2, S_MC_CS1_PAGE) |
529 | #define V_MC_CS1_PAGE(x) _SB_MAKEVALUE(x,S_MC_CS1_PAGE) | 529 | #define V_MC_CS1_PAGE(x) _SB_MAKEVALUE(x, S_MC_CS1_PAGE) |
530 | #define G_MC_CS1_PAGE(x) _SB_GETVALUE(x,S_MC_CS1_PAGE,M_MC_CS1_PAGE) | 530 | #define G_MC_CS1_PAGE(x) _SB_GETVALUE(x, S_MC_CS1_PAGE, M_MC_CS1_PAGE) |
531 | 531 | ||
532 | #define S_MC_CS2_PAGE 32 | 532 | #define S_MC_CS2_PAGE 32 |
533 | #define M_MC_CS2_PAGE _SB_MAKEMASK(2,S_MC_CS2_PAGE) | 533 | #define M_MC_CS2_PAGE _SB_MAKEMASK(2, S_MC_CS2_PAGE) |
534 | #define V_MC_CS2_PAGE(x) _SB_MAKEVALUE(x,S_MC_CS2_PAGE) | 534 | #define V_MC_CS2_PAGE(x) _SB_MAKEVALUE(x, S_MC_CS2_PAGE) |
535 | #define G_MC_CS2_PAGE(x) _SB_GETVALUE(x,S_MC_CS2_PAGE,M_MC_CS2_PAGE) | 535 | #define G_MC_CS2_PAGE(x) _SB_GETVALUE(x, S_MC_CS2_PAGE, M_MC_CS2_PAGE) |
536 | 536 | ||
537 | #define S_MC_CS3_PAGE 48 | 537 | #define S_MC_CS3_PAGE 48 |
538 | #define M_MC_CS3_PAGE _SB_MAKEMASK(2,S_MC_CS3_PAGE) | 538 | #define M_MC_CS3_PAGE _SB_MAKEMASK(2, S_MC_CS3_PAGE) |
539 | #define V_MC_CS3_PAGE(x) _SB_MAKEVALUE(x,S_MC_CS3_PAGE) | 539 | #define V_MC_CS3_PAGE(x) _SB_MAKEVALUE(x, S_MC_CS3_PAGE) |
540 | #define G_MC_CS3_PAGE(x) _SB_GETVALUE(x,S_MC_CS3_PAGE,M_MC_CS3_PAGE) | 540 | #define G_MC_CS3_PAGE(x) _SB_GETVALUE(x, S_MC_CS3_PAGE, M_MC_CS3_PAGE) |
541 | 541 | ||
542 | /* | 542 | /* |
543 | * ECC Test ECC Register (Table 6-25) | 543 | * ECC Test ECC Register (Table 6-25) |
544 | */ | 544 | */ |
545 | 545 | ||
546 | #define S_MC_ECC_INVERT 0 | 546 | #define S_MC_ECC_INVERT 0 |
547 | #define M_MC_ECC_INVERT _SB_MAKEMASK(8,S_MC_ECC_INVERT) | 547 | #define M_MC_ECC_INVERT _SB_MAKEMASK(8, S_MC_ECC_INVERT) |
548 | 548 | ||
549 | 549 | ||
550 | #endif | 550 | #endif |
diff --git a/include/asm-mips/sibyte/sb1250_regs.h b/include/asm-mips/sibyte/sb1250_regs.h index 220b7e94f1..8f53ec817a 100644 --- a/include/asm-mips/sibyte/sb1250_regs.h +++ b/include/asm-mips/sibyte/sb1250_regs.h | |||
@@ -66,7 +66,7 @@ | |||
66 | #define MC_REGISTER_SPACING 0x1000 | 66 | #define MC_REGISTER_SPACING 0x1000 |
67 | 67 | ||
68 | #define A_MC_BASE(ctlid) ((ctlid)*MC_REGISTER_SPACING+A_MC_BASE_0) | 68 | #define A_MC_BASE(ctlid) ((ctlid)*MC_REGISTER_SPACING+A_MC_BASE_0) |
69 | #define A_MC_REGISTER(ctlid,reg) (A_MC_BASE(ctlid)+(reg)) | 69 | #define A_MC_REGISTER(ctlid, reg) (A_MC_BASE(ctlid)+(reg)) |
70 | 70 | ||
71 | #define R_MC_CONFIG 0x0000000100 | 71 | #define R_MC_CONFIG 0x0000000100 |
72 | #define R_MC_DRAMCMD 0x0000000120 | 72 | #define R_MC_DRAMCMD 0x0000000120 |
@@ -173,23 +173,23 @@ | |||
173 | 173 | ||
174 | #define R_MAC_DMA_CHANNELS 0x800 /* Relative to A_MAC_CHANNEL_BASE */ | 174 | #define R_MAC_DMA_CHANNELS 0x800 /* Relative to A_MAC_CHANNEL_BASE */ |
175 | 175 | ||
176 | #define A_MAC_DMA_CHANNEL_BASE(macnum,txrx,chan) \ | 176 | #define A_MAC_DMA_CHANNEL_BASE(macnum, txrx, chan) \ |
177 | ((A_MAC_CHANNEL_BASE(macnum)) + \ | 177 | ((A_MAC_CHANNEL_BASE(macnum)) + \ |
178 | R_MAC_DMA_CHANNELS + \ | 178 | R_MAC_DMA_CHANNELS + \ |
179 | (MAC_DMA_TXRX_SPACING*(txrx)) + \ | 179 | (MAC_DMA_TXRX_SPACING*(txrx)) + \ |
180 | (MAC_DMA_CHANNEL_SPACING*(chan))) | 180 | (MAC_DMA_CHANNEL_SPACING*(chan))) |
181 | 181 | ||
182 | #define R_MAC_DMA_CHANNEL_BASE(txrx,chan) \ | 182 | #define R_MAC_DMA_CHANNEL_BASE(txrx, chan) \ |
183 | (R_MAC_DMA_CHANNELS + \ | 183 | (R_MAC_DMA_CHANNELS + \ |
184 | (MAC_DMA_TXRX_SPACING*(txrx)) + \ | 184 | (MAC_DMA_TXRX_SPACING*(txrx)) + \ |
185 | (MAC_DMA_CHANNEL_SPACING*(chan))) | 185 | (MAC_DMA_CHANNEL_SPACING*(chan))) |
186 | 186 | ||
187 | #define A_MAC_DMA_REGISTER(macnum,txrx,chan,reg) \ | 187 | #define A_MAC_DMA_REGISTER(macnum, txrx, chan, reg) \ |
188 | (A_MAC_DMA_CHANNEL_BASE(macnum,txrx,chan) + \ | 188 | (A_MAC_DMA_CHANNEL_BASE(macnum, txrx, chan) + \ |
189 | (reg)) | 189 | (reg)) |
190 | 190 | ||
191 | #define R_MAC_DMA_REGISTER(txrx,chan,reg) \ | 191 | #define R_MAC_DMA_REGISTER(txrx, chan, reg) \ |
192 | (R_MAC_DMA_CHANNEL_BASE(txrx,chan) + \ | 192 | (R_MAC_DMA_CHANNEL_BASE(txrx, chan) + \ |
193 | (reg)) | 193 | (reg)) |
194 | 194 | ||
195 | /* | 195 | /* |
@@ -415,8 +415,8 @@ | |||
415 | R_SER_DMA_CHANNELS + \ | 415 | R_SER_DMA_CHANNELS + \ |
416 | (SER_DMA_TXRX_SPACING*(txrx))) | 416 | (SER_DMA_TXRX_SPACING*(txrx))) |
417 | 417 | ||
418 | #define A_SER_DMA_REGISTER(sernum,txrx,reg) \ | 418 | #define A_SER_DMA_REGISTER(sernum, txrx, reg) \ |
419 | (A_SER_DMA_CHANNEL_BASE(sernum,txrx) + \ | 419 | (A_SER_DMA_CHANNEL_BASE(sernum, txrx) + \ |
420 | (reg)) | 420 | (reg)) |
421 | 421 | ||
422 | 422 | ||
@@ -499,7 +499,7 @@ | |||
499 | 499 | ||
500 | #define IO_EXT_REGISTER_SPACING 8 | 500 | #define IO_EXT_REGISTER_SPACING 8 |
501 | #define A_IO_EXT_CS_BASE(cs) (A_IO_EXT_CFG_BASE+IO_EXT_REGISTER_SPACING*(cs)) | 501 | #define A_IO_EXT_CS_BASE(cs) (A_IO_EXT_CFG_BASE+IO_EXT_REGISTER_SPACING*(cs)) |
502 | #define R_IO_EXT_REG(reg,cs) ((cs)*IO_EXT_REGISTER_SPACING + (reg)) | 502 | #define R_IO_EXT_REG(reg, cs) ((cs)*IO_EXT_REGISTER_SPACING + (reg)) |
503 | 503 | ||
504 | #define R_IO_EXT_CFG 0x0000 | 504 | #define R_IO_EXT_CFG 0x0000 |
505 | #define R_IO_EXT_MULT_SIZE 0x0100 | 505 | #define R_IO_EXT_MULT_SIZE 0x0100 |
@@ -587,7 +587,7 @@ | |||
587 | #define A_SMB_1 0x0010060008 | 587 | #define A_SMB_1 0x0010060008 |
588 | #define SMB_REGISTER_SPACING 0x8 | 588 | #define SMB_REGISTER_SPACING 0x8 |
589 | #define A_SMB_BASE(idx) (A_SMB_0+(idx)*SMB_REGISTER_SPACING) | 589 | #define A_SMB_BASE(idx) (A_SMB_0+(idx)*SMB_REGISTER_SPACING) |
590 | #define A_SMB_REGISTER(idx,reg) (A_SMB_BASE(idx)+(reg)) | 590 | #define A_SMB_REGISTER(idx, reg) (A_SMB_BASE(idx)+(reg)) |
591 | 591 | ||
592 | #define R_SMB_XTRA 0x0000000000 | 592 | #define R_SMB_XTRA 0x0000000000 |
593 | #define R_SMB_FREQ 0x0000000010 | 593 | #define R_SMB_FREQ 0x0000000010 |
@@ -611,7 +611,7 @@ | |||
611 | #define SCD_WDOG_SPACING 0x100 | 611 | #define SCD_WDOG_SPACING 0x100 |
612 | #define SCD_NUM_WDOGS 2 | 612 | #define SCD_NUM_WDOGS 2 |
613 | #define A_SCD_WDOG_BASE(w) (A_SCD_WDOG_0+SCD_WDOG_SPACING*(w)) | 613 | #define A_SCD_WDOG_BASE(w) (A_SCD_WDOG_0+SCD_WDOG_SPACING*(w)) |
614 | #define A_SCD_WDOG_REGISTER(w,r) (A_SCD_WDOG_BASE(w) + (r)) | 614 | #define A_SCD_WDOG_REGISTER(w, r) (A_SCD_WDOG_BASE(w) + (r)) |
615 | 615 | ||
616 | #define R_SCD_WDOG_INIT 0x0000000000 | 616 | #define R_SCD_WDOG_INIT 0x0000000000 |
617 | #define R_SCD_WDOG_CNT 0x0000000008 | 617 | #define R_SCD_WDOG_CNT 0x0000000008 |
@@ -635,7 +635,7 @@ | |||
635 | #define A_SCD_TIMER_3 0x0010020178 | 635 | #define A_SCD_TIMER_3 0x0010020178 |
636 | #define SCD_NUM_TIMERS 4 | 636 | #define SCD_NUM_TIMERS 4 |
637 | #define A_SCD_TIMER_BASE(w) (A_SCD_TIMER_0+0x08*((w)&1)+0x100*(((w)&2)>>1)) | 637 | #define A_SCD_TIMER_BASE(w) (A_SCD_TIMER_0+0x08*((w)&1)+0x100*(((w)&2)>>1)) |
638 | #define A_SCD_TIMER_REGISTER(w,r) (A_SCD_TIMER_BASE(w) + (r)) | 638 | #define A_SCD_TIMER_REGISTER(w, r) (A_SCD_TIMER_BASE(w) + (r)) |
639 | 639 | ||
640 | #define R_SCD_TIMER_INIT 0x0000000000 | 640 | #define R_SCD_TIMER_INIT 0x0000000000 |
641 | #define R_SCD_TIMER_CNT 0x0000000010 | 641 | #define R_SCD_TIMER_CNT 0x0000000010 |
@@ -714,7 +714,7 @@ | |||
714 | #define IMR_REGISTER_SPACING_SHIFT 13 | 714 | #define IMR_REGISTER_SPACING_SHIFT 13 |
715 | 715 | ||
716 | #define A_IMR_MAPPER(cpu) (A_IMR_CPU0_BASE+(cpu)*IMR_REGISTER_SPACING) | 716 | #define A_IMR_MAPPER(cpu) (A_IMR_CPU0_BASE+(cpu)*IMR_REGISTER_SPACING) |
717 | #define A_IMR_REGISTER(cpu,reg) (A_IMR_MAPPER(cpu)+(reg)) | 717 | #define A_IMR_REGISTER(cpu, reg) (A_IMR_MAPPER(cpu)+(reg)) |
718 | 718 | ||
719 | #define R_IMR_INTERRUPT_DIAG 0x0010 | 719 | #define R_IMR_INTERRUPT_DIAG 0x0010 |
720 | #define R_IMR_INTERRUPT_LDT 0x0018 | 720 | #define R_IMR_INTERRUPT_LDT 0x0018 |
@@ -821,7 +821,7 @@ | |||
821 | #define DM_REGISTER_SPACING 0x20 | 821 | #define DM_REGISTER_SPACING 0x20 |
822 | #define DM_NUM_CHANNELS 4 | 822 | #define DM_NUM_CHANNELS 4 |
823 | #define A_DM_BASE(idx) (A_DM_0 + ((idx) * DM_REGISTER_SPACING)) | 823 | #define A_DM_BASE(idx) (A_DM_0 + ((idx) * DM_REGISTER_SPACING)) |
824 | #define A_DM_REGISTER(idx,reg) (A_DM_BASE(idx) + (reg)) | 824 | #define A_DM_REGISTER(idx, reg) (A_DM_BASE(idx) + (reg)) |
825 | 825 | ||
826 | #define R_DM_DSCR_BASE 0x0000000000 | 826 | #define R_DM_DSCR_BASE 0x0000000000 |
827 | #define R_DM_DSCR_COUNT 0x0000000008 | 827 | #define R_DM_DSCR_COUNT 0x0000000008 |
@@ -843,7 +843,7 @@ | |||
843 | #define DM_CRC_REGISTER_SPACING 0x10 | 843 | #define DM_CRC_REGISTER_SPACING 0x10 |
844 | #define DM_CRC_NUM_CHANNELS 2 | 844 | #define DM_CRC_NUM_CHANNELS 2 |
845 | #define A_DM_CRC_BASE(idx) (A_DM_CRC_0 + ((idx) * DM_CRC_REGISTER_SPACING)) | 845 | #define A_DM_CRC_BASE(idx) (A_DM_CRC_0 + ((idx) * DM_CRC_REGISTER_SPACING)) |
846 | #define A_DM_CRC_REGISTER(idx,reg) (A_DM_CRC_BASE(idx) + (reg)) | 846 | #define A_DM_CRC_REGISTER(idx, reg) (A_DM_CRC_BASE(idx) + (reg)) |
847 | 847 | ||
848 | #define R_CRC_DEF_0 0x00 | 848 | #define R_CRC_DEF_0 0x00 |
849 | #define R_CTCP_DEF_0 0x08 | 849 | #define R_CTCP_DEF_0 0x08 |
diff --git a/include/asm-mips/sibyte/sb1250_scd.h b/include/asm-mips/sibyte/sb1250_scd.h index 9ea3da367a..e49c3e89b5 100644 --- a/include/asm-mips/sibyte/sb1250_scd.h +++ b/include/asm-mips/sibyte/sb1250_scd.h | |||
@@ -42,12 +42,12 @@ | |||
42 | * System Revision Register (Table 4-1) | 42 | * System Revision Register (Table 4-1) |
43 | */ | 43 | */ |
44 | 44 | ||
45 | #define M_SYS_RESERVED _SB_MAKEMASK(8,0) | 45 | #define M_SYS_RESERVED _SB_MAKEMASK(8, 0) |
46 | 46 | ||
47 | #define S_SYS_REVISION _SB_MAKE64(8) | 47 | #define S_SYS_REVISION _SB_MAKE64(8) |
48 | #define M_SYS_REVISION _SB_MAKEMASK(8,S_SYS_REVISION) | 48 | #define M_SYS_REVISION _SB_MAKEMASK(8, S_SYS_REVISION) |
49 | #define V_SYS_REVISION(x) _SB_MAKEVALUE(x,S_SYS_REVISION) | 49 | #define V_SYS_REVISION(x) _SB_MAKEVALUE(x, S_SYS_REVISION) |
50 | #define G_SYS_REVISION(x) _SB_GETVALUE(x,S_SYS_REVISION,M_SYS_REVISION) | 50 | #define G_SYS_REVISION(x) _SB_GETVALUE(x, S_SYS_REVISION, M_SYS_REVISION) |
51 | 51 | ||
52 | #define K_SYS_REVISION_BCM1250_PASS1 0x01 | 52 | #define K_SYS_REVISION_BCM1250_PASS1 0x01 |
53 | 53 | ||
@@ -94,9 +94,9 @@ | |||
94 | 94 | ||
95 | /*Cache size - 23:20 of revision register*/ | 95 | /*Cache size - 23:20 of revision register*/ |
96 | #define S_SYS_L2C_SIZE _SB_MAKE64(20) | 96 | #define S_SYS_L2C_SIZE _SB_MAKE64(20) |
97 | #define M_SYS_L2C_SIZE _SB_MAKEMASK(4,S_SYS_L2C_SIZE) | 97 | #define M_SYS_L2C_SIZE _SB_MAKEMASK(4, S_SYS_L2C_SIZE) |
98 | #define V_SYS_L2C_SIZE(x) _SB_MAKEVALUE(x,S_SYS_L2C_SIZE) | 98 | #define V_SYS_L2C_SIZE(x) _SB_MAKEVALUE(x, S_SYS_L2C_SIZE) |
99 | #define G_SYS_L2C_SIZE(x) _SB_GETVALUE(x,S_SYS_L2C_SIZE,M_SYS_L2C_SIZE) | 99 | #define G_SYS_L2C_SIZE(x) _SB_GETVALUE(x, S_SYS_L2C_SIZE, M_SYS_L2C_SIZE) |
100 | 100 | ||
101 | #define K_SYS_L2C_SIZE_1MB 0 | 101 | #define K_SYS_L2C_SIZE_1MB 0 |
102 | #define K_SYS_L2C_SIZE_512KB 5 | 102 | #define K_SYS_L2C_SIZE_512KB 5 |
@@ -110,16 +110,16 @@ | |||
110 | 110 | ||
111 | /* Number of CPU cores, bits 27:24 of revision register*/ | 111 | /* Number of CPU cores, bits 27:24 of revision register*/ |
112 | #define S_SYS_NUM_CPUS _SB_MAKE64(24) | 112 | #define S_SYS_NUM_CPUS _SB_MAKE64(24) |
113 | #define M_SYS_NUM_CPUS _SB_MAKEMASK(4,S_SYS_NUM_CPUS) | 113 | #define M_SYS_NUM_CPUS _SB_MAKEMASK(4, S_SYS_NUM_CPUS) |
114 | #define V_SYS_NUM_CPUS(x) _SB_MAKEVALUE(x,S_SYS_NUM_CPUS) | 114 | #define V_SYS_NUM_CPUS(x) _SB_MAKEVALUE(x, S_SYS_NUM_CPUS) |
115 | #define G_SYS_NUM_CPUS(x) _SB_GETVALUE(x,S_SYS_NUM_CPUS,M_SYS_NUM_CPUS) | 115 | #define G_SYS_NUM_CPUS(x) _SB_GETVALUE(x, S_SYS_NUM_CPUS, M_SYS_NUM_CPUS) |
116 | 116 | ||
117 | 117 | ||
118 | /* XXX: discourage people from using these constants. */ | 118 | /* XXX: discourage people from using these constants. */ |
119 | #define S_SYS_PART _SB_MAKE64(16) | 119 | #define S_SYS_PART _SB_MAKE64(16) |
120 | #define M_SYS_PART _SB_MAKEMASK(16,S_SYS_PART) | 120 | #define M_SYS_PART _SB_MAKEMASK(16, S_SYS_PART) |
121 | #define V_SYS_PART(x) _SB_MAKEVALUE(x,S_SYS_PART) | 121 | #define V_SYS_PART(x) _SB_MAKEVALUE(x, S_SYS_PART) |
122 | #define G_SYS_PART(x) _SB_GETVALUE(x,S_SYS_PART,M_SYS_PART) | 122 | #define G_SYS_PART(x) _SB_GETVALUE(x, S_SYS_PART, M_SYS_PART) |
123 | 123 | ||
124 | /* XXX: discourage people from using these constants. */ | 124 | /* XXX: discourage people from using these constants. */ |
125 | #define K_SYS_PART_SB1250 0x1250 | 125 | #define K_SYS_PART_SB1250 0x1250 |
@@ -131,9 +131,9 @@ | |||
131 | 131 | ||
132 | /* The "peripheral set" (SOC type) is the low 4 bits of the "part" field. */ | 132 | /* The "peripheral set" (SOC type) is the low 4 bits of the "part" field. */ |
133 | #define S_SYS_SOC_TYPE _SB_MAKE64(16) | 133 | #define S_SYS_SOC_TYPE _SB_MAKE64(16) |
134 | #define M_SYS_SOC_TYPE _SB_MAKEMASK(4,S_SYS_SOC_TYPE) | 134 | #define M_SYS_SOC_TYPE _SB_MAKEMASK(4, S_SYS_SOC_TYPE) |
135 | #define V_SYS_SOC_TYPE(x) _SB_MAKEVALUE(x,S_SYS_SOC_TYPE) | 135 | #define V_SYS_SOC_TYPE(x) _SB_MAKEVALUE(x, S_SYS_SOC_TYPE) |
136 | #define G_SYS_SOC_TYPE(x) _SB_GETVALUE(x,S_SYS_SOC_TYPE,M_SYS_SOC_TYPE) | 136 | #define G_SYS_SOC_TYPE(x) _SB_GETVALUE(x, S_SYS_SOC_TYPE, M_SYS_SOC_TYPE) |
137 | 137 | ||
138 | #define K_SYS_SOC_TYPE_BCM1250 0x0 | 138 | #define K_SYS_SOC_TYPE_BCM1250 0x0 |
139 | #define K_SYS_SOC_TYPE_BCM1120 0x1 | 139 | #define K_SYS_SOC_TYPE_BCM1120 0x1 |
@@ -170,9 +170,9 @@ | |||
170 | #endif | 170 | #endif |
171 | 171 | ||
172 | #define S_SYS_WID _SB_MAKE64(32) | 172 | #define S_SYS_WID _SB_MAKE64(32) |
173 | #define M_SYS_WID _SB_MAKEMASK(32,S_SYS_WID) | 173 | #define M_SYS_WID _SB_MAKEMASK(32, S_SYS_WID) |
174 | #define V_SYS_WID(x) _SB_MAKEVALUE(x,S_SYS_WID) | 174 | #define V_SYS_WID(x) _SB_MAKEVALUE(x, S_SYS_WID) |
175 | #define G_SYS_WID(x) _SB_GETVALUE(x,S_SYS_WID,M_SYS_WID) | 175 | #define G_SYS_WID(x) _SB_GETVALUE(x, S_SYS_WID, M_SYS_WID) |
176 | 176 | ||
177 | /* | 177 | /* |
178 | * System Manufacturing Register | 178 | * System Manufacturing Register |
@@ -182,36 +182,36 @@ | |||
182 | #if SIBYTE_HDR_FEATURE_1250_112x | 182 | #if SIBYTE_HDR_FEATURE_1250_112x |
183 | /* Wafer ID: bits 31:0 */ | 183 | /* Wafer ID: bits 31:0 */ |
184 | #define S_SYS_WAFERID1_200 _SB_MAKE64(0) | 184 | #define S_SYS_WAFERID1_200 _SB_MAKE64(0) |
185 | #define M_SYS_WAFERID1_200 _SB_MAKEMASK(32,S_SYS_WAFERID1_200) | 185 | #define M_SYS_WAFERID1_200 _SB_MAKEMASK(32, S_SYS_WAFERID1_200) |
186 | #define V_SYS_WAFERID1_200(x) _SB_MAKEVALUE(x,S_SYS_WAFERID1_200) | 186 | #define V_SYS_WAFERID1_200(x) _SB_MAKEVALUE(x, S_SYS_WAFERID1_200) |
187 | #define G_SYS_WAFERID1_200(x) _SB_GETVALUE(x,S_SYS_WAFERID1_200,M_SYS_WAFERID1_200) | 187 | #define G_SYS_WAFERID1_200(x) _SB_GETVALUE(x, S_SYS_WAFERID1_200, M_SYS_WAFERID1_200) |
188 | 188 | ||
189 | #define S_SYS_BIN _SB_MAKE64(32) | 189 | #define S_SYS_BIN _SB_MAKE64(32) |
190 | #define M_SYS_BIN _SB_MAKEMASK(4,S_SYS_BIN) | 190 | #define M_SYS_BIN _SB_MAKEMASK(4, S_SYS_BIN) |
191 | #define V_SYS_BIN(x) _SB_MAKEVALUE(x,S_SYS_BIN) | 191 | #define V_SYS_BIN(x) _SB_MAKEVALUE(x, S_SYS_BIN) |
192 | #define G_SYS_BIN(x) _SB_GETVALUE(x,S_SYS_BIN,M_SYS_BIN) | 192 | #define G_SYS_BIN(x) _SB_GETVALUE(x, S_SYS_BIN, M_SYS_BIN) |
193 | 193 | ||
194 | /* Wafer ID: bits 39:36 */ | 194 | /* Wafer ID: bits 39:36 */ |
195 | #define S_SYS_WAFERID2_200 _SB_MAKE64(36) | 195 | #define S_SYS_WAFERID2_200 _SB_MAKE64(36) |
196 | #define M_SYS_WAFERID2_200 _SB_MAKEMASK(4,S_SYS_WAFERID2_200) | 196 | #define M_SYS_WAFERID2_200 _SB_MAKEMASK(4, S_SYS_WAFERID2_200) |
197 | #define V_SYS_WAFERID2_200(x) _SB_MAKEVALUE(x,S_SYS_WAFERID2_200) | 197 | #define V_SYS_WAFERID2_200(x) _SB_MAKEVALUE(x, S_SYS_WAFERID2_200) |
198 | #define G_SYS_WAFERID2_200(x) _SB_GETVALUE(x,S_SYS_WAFERID2_200,M_SYS_WAFERID2_200) | 198 | #define G_SYS_WAFERID2_200(x) _SB_GETVALUE(x, S_SYS_WAFERID2_200, M_SYS_WAFERID2_200) |
199 | 199 | ||
200 | /* Wafer ID: bits 39:0 */ | 200 | /* Wafer ID: bits 39:0 */ |
201 | #define S_SYS_WAFERID_300 _SB_MAKE64(0) | 201 | #define S_SYS_WAFERID_300 _SB_MAKE64(0) |
202 | #define M_SYS_WAFERID_300 _SB_MAKEMASK(40,S_SYS_WAFERID_300) | 202 | #define M_SYS_WAFERID_300 _SB_MAKEMASK(40, S_SYS_WAFERID_300) |
203 | #define V_SYS_WAFERID_300(x) _SB_MAKEVALUE(x,S_SYS_WAFERID_300) | 203 | #define V_SYS_WAFERID_300(x) _SB_MAKEVALUE(x, S_SYS_WAFERID_300) |
204 | #define G_SYS_WAFERID_300(x) _SB_GETVALUE(x,S_SYS_WAFERID_300,M_SYS_WAFERID_300) | 204 | #define G_SYS_WAFERID_300(x) _SB_GETVALUE(x, S_SYS_WAFERID_300, M_SYS_WAFERID_300) |
205 | 205 | ||
206 | #define S_SYS_XPOS _SB_MAKE64(40) | 206 | #define S_SYS_XPOS _SB_MAKE64(40) |
207 | #define M_SYS_XPOS _SB_MAKEMASK(6,S_SYS_XPOS) | 207 | #define M_SYS_XPOS _SB_MAKEMASK(6, S_SYS_XPOS) |
208 | #define V_SYS_XPOS(x) _SB_MAKEVALUE(x,S_SYS_XPOS) | 208 | #define V_SYS_XPOS(x) _SB_MAKEVALUE(x, S_SYS_XPOS) |
209 | #define G_SYS_XPOS(x) _SB_GETVALUE(x,S_SYS_XPOS,M_SYS_XPOS) | 209 | #define G_SYS_XPOS(x) _SB_GETVALUE(x, S_SYS_XPOS, M_SYS_XPOS) |
210 | 210 | ||
211 | #define S_SYS_YPOS _SB_MAKE64(46) | 211 | #define S_SYS_YPOS _SB_MAKE64(46) |
212 | #define M_SYS_YPOS _SB_MAKEMASK(6,S_SYS_YPOS) | 212 | #define M_SYS_YPOS _SB_MAKEMASK(6, S_SYS_YPOS) |
213 | #define V_SYS_YPOS(x) _SB_MAKEVALUE(x,S_SYS_YPOS) | 213 | #define V_SYS_YPOS(x) _SB_MAKEVALUE(x, S_SYS_YPOS) |
214 | #define G_SYS_YPOS(x) _SB_GETVALUE(x,S_SYS_YPOS,M_SYS_YPOS) | 214 | #define G_SYS_YPOS(x) _SB_GETVALUE(x, S_SYS_YPOS, M_SYS_YPOS) |
215 | #endif | 215 | #endif |
216 | 216 | ||
217 | 217 | ||
@@ -227,9 +227,9 @@ | |||
227 | #define M_SYS_IOB1_DIV _SB_MAKEMASK1(6) | 227 | #define M_SYS_IOB1_DIV _SB_MAKEMASK1(6) |
228 | 228 | ||
229 | #define S_SYS_PLL_DIV _SB_MAKE64(7) | 229 | #define S_SYS_PLL_DIV _SB_MAKE64(7) |
230 | #define M_SYS_PLL_DIV _SB_MAKEMASK(5,S_SYS_PLL_DIV) | 230 | #define M_SYS_PLL_DIV _SB_MAKEMASK(5, S_SYS_PLL_DIV) |
231 | #define V_SYS_PLL_DIV(x) _SB_MAKEVALUE(x,S_SYS_PLL_DIV) | 231 | #define V_SYS_PLL_DIV(x) _SB_MAKEVALUE(x, S_SYS_PLL_DIV) |
232 | #define G_SYS_PLL_DIV(x) _SB_GETVALUE(x,S_SYS_PLL_DIV,M_SYS_PLL_DIV) | 232 | #define G_SYS_PLL_DIV(x) _SB_GETVALUE(x, S_SYS_PLL_DIV, M_SYS_PLL_DIV) |
233 | 233 | ||
234 | #define M_SYS_SER0_ENABLE _SB_MAKEMASK1(12) | 234 | #define M_SYS_SER0_ENABLE _SB_MAKEMASK1(12) |
235 | #define M_SYS_SER0_RSTB_EN _SB_MAKEMASK1(13) | 235 | #define M_SYS_SER0_RSTB_EN _SB_MAKEMASK1(13) |
@@ -238,9 +238,9 @@ | |||
238 | #define M_SYS_PCMCIA_ENABLE _SB_MAKEMASK1(16) | 238 | #define M_SYS_PCMCIA_ENABLE _SB_MAKEMASK1(16) |
239 | 239 | ||
240 | #define S_SYS_BOOT_MODE _SB_MAKE64(17) | 240 | #define S_SYS_BOOT_MODE _SB_MAKE64(17) |
241 | #define M_SYS_BOOT_MODE _SB_MAKEMASK(2,S_SYS_BOOT_MODE) | 241 | #define M_SYS_BOOT_MODE _SB_MAKEMASK(2, S_SYS_BOOT_MODE) |
242 | #define V_SYS_BOOT_MODE(x) _SB_MAKEVALUE(x,S_SYS_BOOT_MODE) | 242 | #define V_SYS_BOOT_MODE(x) _SB_MAKEVALUE(x, S_SYS_BOOT_MODE) |
243 | #define G_SYS_BOOT_MODE(x) _SB_GETVALUE(x,S_SYS_BOOT_MODE,M_SYS_BOOT_MODE) | 243 | #define G_SYS_BOOT_MODE(x) _SB_GETVALUE(x, S_SYS_BOOT_MODE, M_SYS_BOOT_MODE) |
244 | #define K_SYS_BOOT_MODE_ROM32 0 | 244 | #define K_SYS_BOOT_MODE_ROM32 0 |
245 | #define K_SYS_BOOT_MODE_ROM8 1 | 245 | #define K_SYS_BOOT_MODE_ROM8 1 |
246 | #define K_SYS_BOOT_MODE_SMBUS_SMALL 2 | 246 | #define K_SYS_BOOT_MODE_SMBUS_SMALL 2 |
@@ -255,9 +255,9 @@ | |||
255 | #define M_SYS_GEN_PARITY_EN _SB_MAKEMASK1(25) | 255 | #define M_SYS_GEN_PARITY_EN _SB_MAKEMASK1(25) |
256 | 256 | ||
257 | #define S_SYS_CONFIG 26 | 257 | #define S_SYS_CONFIG 26 |
258 | #define M_SYS_CONFIG _SB_MAKEMASK(6,S_SYS_CONFIG) | 258 | #define M_SYS_CONFIG _SB_MAKEMASK(6, S_SYS_CONFIG) |
259 | #define V_SYS_CONFIG(x) _SB_MAKEVALUE(x,S_SYS_CONFIG) | 259 | #define V_SYS_CONFIG(x) _SB_MAKEVALUE(x, S_SYS_CONFIG) |
260 | #define G_SYS_CONFIG(x) _SB_GETVALUE(x,S_SYS_CONFIG,M_SYS_CONFIG) | 260 | #define G_SYS_CONFIG(x) _SB_GETVALUE(x, S_SYS_CONFIG, M_SYS_CONFIG) |
261 | 261 | ||
262 | /* The following bits are writeable by JTAG only. */ | 262 | /* The following bits are writeable by JTAG only. */ |
263 | 263 | ||
@@ -265,20 +265,20 @@ | |||
265 | #define M_SYS_CLKSTEP _SB_MAKEMASK1(33) | 265 | #define M_SYS_CLKSTEP _SB_MAKEMASK1(33) |
266 | 266 | ||
267 | #define S_SYS_CLKCOUNT 34 | 267 | #define S_SYS_CLKCOUNT 34 |
268 | #define M_SYS_CLKCOUNT _SB_MAKEMASK(8,S_SYS_CLKCOUNT) | 268 | #define M_SYS_CLKCOUNT _SB_MAKEMASK(8, S_SYS_CLKCOUNT) |
269 | #define V_SYS_CLKCOUNT(x) _SB_MAKEVALUE(x,S_SYS_CLKCOUNT) | 269 | #define V_SYS_CLKCOUNT(x) _SB_MAKEVALUE(x, S_SYS_CLKCOUNT) |
270 | #define G_SYS_CLKCOUNT(x) _SB_GETVALUE(x,S_SYS_CLKCOUNT,M_SYS_CLKCOUNT) | 270 | #define G_SYS_CLKCOUNT(x) _SB_GETVALUE(x, S_SYS_CLKCOUNT, M_SYS_CLKCOUNT) |
271 | 271 | ||
272 | #define M_SYS_PLL_BYPASS _SB_MAKEMASK1(42) | 272 | #define M_SYS_PLL_BYPASS _SB_MAKEMASK1(42) |
273 | 273 | ||
274 | #define S_SYS_PLL_IREF 43 | 274 | #define S_SYS_PLL_IREF 43 |
275 | #define M_SYS_PLL_IREF _SB_MAKEMASK(2,S_SYS_PLL_IREF) | 275 | #define M_SYS_PLL_IREF _SB_MAKEMASK(2, S_SYS_PLL_IREF) |
276 | 276 | ||
277 | #define S_SYS_PLL_VCO 45 | 277 | #define S_SYS_PLL_VCO 45 |
278 | #define M_SYS_PLL_VCO _SB_MAKEMASK(2,S_SYS_PLL_VCO) | 278 | #define M_SYS_PLL_VCO _SB_MAKEMASK(2, S_SYS_PLL_VCO) |
279 | 279 | ||
280 | #define S_SYS_PLL_VREG 47 | 280 | #define S_SYS_PLL_VREG 47 |
281 | #define M_SYS_PLL_VREG _SB_MAKEMASK(2,S_SYS_PLL_VREG) | 281 | #define M_SYS_PLL_VREG _SB_MAKEMASK(2, S_SYS_PLL_VREG) |
282 | 282 | ||
283 | #define M_SYS_MEM_RESET _SB_MAKEMASK1(49) | 283 | #define M_SYS_MEM_RESET _SB_MAKEMASK1(49) |
284 | #define M_SYS_L2C_RESET _SB_MAKEMASK1(50) | 284 | #define M_SYS_L2C_RESET _SB_MAKEMASK1(50) |
@@ -314,13 +314,13 @@ | |||
314 | */ | 314 | */ |
315 | 315 | ||
316 | #define S_MBOX_INT_3 0 | 316 | #define S_MBOX_INT_3 0 |
317 | #define M_MBOX_INT_3 _SB_MAKEMASK(16,S_MBOX_INT_3) | 317 | #define M_MBOX_INT_3 _SB_MAKEMASK(16, S_MBOX_INT_3) |
318 | #define S_MBOX_INT_2 16 | 318 | #define S_MBOX_INT_2 16 |
319 | #define M_MBOX_INT_2 _SB_MAKEMASK(16,S_MBOX_INT_2) | 319 | #define M_MBOX_INT_2 _SB_MAKEMASK(16, S_MBOX_INT_2) |
320 | #define S_MBOX_INT_1 32 | 320 | #define S_MBOX_INT_1 32 |
321 | #define M_MBOX_INT_1 _SB_MAKEMASK(16,S_MBOX_INT_1) | 321 | #define M_MBOX_INT_1 _SB_MAKEMASK(16, S_MBOX_INT_1) |
322 | #define S_MBOX_INT_0 48 | 322 | #define S_MBOX_INT_0 48 |
323 | #define M_MBOX_INT_0 _SB_MAKEMASK(16,S_MBOX_INT_0) | 323 | #define M_MBOX_INT_0 _SB_MAKEMASK(16, S_MBOX_INT_0) |
324 | 324 | ||
325 | /* | 325 | /* |
326 | * Watchdog Registers (Table 4-8) (Table 4-9) (Table 4-10) | 326 | * Watchdog Registers (Table 4-8) (Table 4-9) (Table 4-10) |
@@ -330,18 +330,18 @@ | |||
330 | #define V_SCD_WDOG_FREQ 1000000 | 330 | #define V_SCD_WDOG_FREQ 1000000 |
331 | 331 | ||
332 | #define S_SCD_WDOG_INIT 0 | 332 | #define S_SCD_WDOG_INIT 0 |
333 | #define M_SCD_WDOG_INIT _SB_MAKEMASK(23,S_SCD_WDOG_INIT) | 333 | #define M_SCD_WDOG_INIT _SB_MAKEMASK(23, S_SCD_WDOG_INIT) |
334 | 334 | ||
335 | #define S_SCD_WDOG_CNT 0 | 335 | #define S_SCD_WDOG_CNT 0 |
336 | #define M_SCD_WDOG_CNT _SB_MAKEMASK(23,S_SCD_WDOG_CNT) | 336 | #define M_SCD_WDOG_CNT _SB_MAKEMASK(23, S_SCD_WDOG_CNT) |
337 | 337 | ||
338 | #define S_SCD_WDOG_ENABLE 0 | 338 | #define S_SCD_WDOG_ENABLE 0 |
339 | #define M_SCD_WDOG_ENABLE _SB_MAKEMASK1(S_SCD_WDOG_ENABLE) | 339 | #define M_SCD_WDOG_ENABLE _SB_MAKEMASK1(S_SCD_WDOG_ENABLE) |
340 | 340 | ||
341 | #define S_SCD_WDOG_RESET_TYPE 2 | 341 | #define S_SCD_WDOG_RESET_TYPE 2 |
342 | #define M_SCD_WDOG_RESET_TYPE _SB_MAKEMASK(3,S_SCD_WDOG_RESET_TYPE) | 342 | #define M_SCD_WDOG_RESET_TYPE _SB_MAKEMASK(3, S_SCD_WDOG_RESET_TYPE) |
343 | #define V_SCD_WDOG_RESET_TYPE(x) _SB_MAKEVALUE(x,S_SCD_WDOG_RESET_TYPE) | 343 | #define V_SCD_WDOG_RESET_TYPE(x) _SB_MAKEVALUE(x, S_SCD_WDOG_RESET_TYPE) |
344 | #define G_SCD_WDOG_RESET_TYPE(x) _SB_GETVALUE(x,S_SCD_WDOG_RESET_TYPE,M_SCD_WDOG_RESET_TYPE) | 344 | #define G_SCD_WDOG_RESET_TYPE(x) _SB_GETVALUE(x, S_SCD_WDOG_RESET_TYPE, M_SCD_WDOG_RESET_TYPE) |
345 | 345 | ||
346 | #define K_SCD_WDOG_RESET_FULL 0 /* actually, (x & 1) == 0 */ | 346 | #define K_SCD_WDOG_RESET_FULL 0 /* actually, (x & 1) == 0 */ |
347 | #define K_SCD_WDOG_RESET_SOFT 1 | 347 | #define K_SCD_WDOG_RESET_SOFT 1 |
@@ -363,15 +363,15 @@ | |||
363 | #define V_SCD_TIMER_FREQ 1000000 | 363 | #define V_SCD_TIMER_FREQ 1000000 |
364 | 364 | ||
365 | #define S_SCD_TIMER_INIT 0 | 365 | #define S_SCD_TIMER_INIT 0 |
366 | #define M_SCD_TIMER_INIT _SB_MAKEMASK(23,S_SCD_TIMER_INIT) | 366 | #define M_SCD_TIMER_INIT _SB_MAKEMASK(23, S_SCD_TIMER_INIT) |
367 | #define V_SCD_TIMER_INIT(x) _SB_MAKEVALUE(x,S_SCD_TIMER_INIT) | 367 | #define V_SCD_TIMER_INIT(x) _SB_MAKEVALUE(x, S_SCD_TIMER_INIT) |
368 | #define G_SCD_TIMER_INIT(x) _SB_GETVALUE(x,S_SCD_TIMER_INIT,M_SCD_TIMER_INIT) | 368 | #define G_SCD_TIMER_INIT(x) _SB_GETVALUE(x, S_SCD_TIMER_INIT, M_SCD_TIMER_INIT) |
369 | 369 | ||
370 | #define V_SCD_TIMER_WIDTH 23 | 370 | #define V_SCD_TIMER_WIDTH 23 |
371 | #define S_SCD_TIMER_CNT 0 | 371 | #define S_SCD_TIMER_CNT 0 |
372 | #define M_SCD_TIMER_CNT _SB_MAKEMASK(V_SCD_TIMER_WIDTH,S_SCD_TIMER_CNT) | 372 | #define M_SCD_TIMER_CNT _SB_MAKEMASK(V_SCD_TIMER_WIDTH, S_SCD_TIMER_CNT) |
373 | #define V_SCD_TIMER_CNT(x) _SB_MAKEVALUE(x,S_SCD_TIMER_CNT) | 373 | #define V_SCD_TIMER_CNT(x) _SB_MAKEVALUE(x, S_SCD_TIMER_CNT) |
374 | #define G_SCD_TIMER_CNT(x) _SB_GETVALUE(x,S_SCD_TIMER_CNT,M_SCD_TIMER_CNT) | 374 | #define G_SCD_TIMER_CNT(x) _SB_GETVALUE(x, S_SCD_TIMER_CNT, M_SCD_TIMER_CNT) |
375 | 375 | ||
376 | #define M_SCD_TIMER_ENABLE _SB_MAKEMASK1(0) | 376 | #define M_SCD_TIMER_ENABLE _SB_MAKEMASK1(0) |
377 | #define M_SCD_TIMER_MODE _SB_MAKEMASK1(1) | 377 | #define M_SCD_TIMER_MODE _SB_MAKEMASK1(1) |
@@ -382,24 +382,24 @@ | |||
382 | */ | 382 | */ |
383 | 383 | ||
384 | #define S_SPC_CFG_SRC0 0 | 384 | #define S_SPC_CFG_SRC0 0 |
385 | #define M_SPC_CFG_SRC0 _SB_MAKEMASK(8,S_SPC_CFG_SRC0) | 385 | #define M_SPC_CFG_SRC0 _SB_MAKEMASK(8, S_SPC_CFG_SRC0) |
386 | #define V_SPC_CFG_SRC0(x) _SB_MAKEVALUE(x,S_SPC_CFG_SRC0) | 386 | #define V_SPC_CFG_SRC0(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC0) |
387 | #define G_SPC_CFG_SRC0(x) _SB_GETVALUE(x,S_SPC_CFG_SRC0,M_SPC_CFG_SRC0) | 387 | #define G_SPC_CFG_SRC0(x) _SB_GETVALUE(x, S_SPC_CFG_SRC0, M_SPC_CFG_SRC0) |
388 | 388 | ||
389 | #define S_SPC_CFG_SRC1 8 | 389 | #define S_SPC_CFG_SRC1 8 |
390 | #define M_SPC_CFG_SRC1 _SB_MAKEMASK(8,S_SPC_CFG_SRC1) | 390 | #define M_SPC_CFG_SRC1 _SB_MAKEMASK(8, S_SPC_CFG_SRC1) |
391 | #define V_SPC_CFG_SRC1(x) _SB_MAKEVALUE(x,S_SPC_CFG_SRC1) | 391 | #define V_SPC_CFG_SRC1(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC1) |
392 | #define G_SPC_CFG_SRC1(x) _SB_GETVALUE(x,S_SPC_CFG_SRC1,M_SPC_CFG_SRC1) | 392 | #define G_SPC_CFG_SRC1(x) _SB_GETVALUE(x, S_SPC_CFG_SRC1, M_SPC_CFG_SRC1) |
393 | 393 | ||
394 | #define S_SPC_CFG_SRC2 16 | 394 | #define S_SPC_CFG_SRC2 16 |
395 | #define M_SPC_CFG_SRC2 _SB_MAKEMASK(8,S_SPC_CFG_SRC2) | 395 | #define M_SPC_CFG_SRC2 _SB_MAKEMASK(8, S_SPC_CFG_SRC2) |
396 | #define V_SPC_CFG_SRC2(x) _SB_MAKEVALUE(x,S_SPC_CFG_SRC2) | 396 | #define V_SPC_CFG_SRC2(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC2) |
397 | #define G_SPC_CFG_SRC2(x) _SB_GETVALUE(x,S_SPC_CFG_SRC2,M_SPC_CFG_SRC2) | 397 | #define G_SPC_CFG_SRC2(x) _SB_GETVALUE(x, S_SPC_CFG_SRC2, M_SPC_CFG_SRC2) |
398 | 398 | ||
399 | #define S_SPC_CFG_SRC3 24 | 399 | #define S_SPC_CFG_SRC3 24 |
400 | #define M_SPC_CFG_SRC3 _SB_MAKEMASK(8,S_SPC_CFG_SRC3) | 400 | #define M_SPC_CFG_SRC3 _SB_MAKEMASK(8, S_SPC_CFG_SRC3) |
401 | #define V_SPC_CFG_SRC3(x) _SB_MAKEVALUE(x,S_SPC_CFG_SRC3) | 401 | #define V_SPC_CFG_SRC3(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC3) |
402 | #define G_SPC_CFG_SRC3(x) _SB_GETVALUE(x,S_SPC_CFG_SRC3,M_SPC_CFG_SRC3) | 402 | #define G_SPC_CFG_SRC3(x) _SB_GETVALUE(x, S_SPC_CFG_SRC3, M_SPC_CFG_SRC3) |
403 | 403 | ||
404 | #if SIBYTE_HDR_FEATURE_1250_112x | 404 | #if SIBYTE_HDR_FEATURE_1250_112x |
405 | #define M_SPC_CFG_CLEAR _SB_MAKEMASK1(32) | 405 | #define M_SPC_CFG_CLEAR _SB_MAKEMASK1(32) |
@@ -412,57 +412,57 @@ | |||
412 | */ | 412 | */ |
413 | 413 | ||
414 | #define S_SCD_BERR_TID 8 | 414 | #define S_SCD_BERR_TID 8 |
415 | #define M_SCD_BERR_TID _SB_MAKEMASK(10,S_SCD_BERR_TID) | 415 | #define M_SCD_BERR_TID _SB_MAKEMASK(10, S_SCD_BERR_TID) |
416 | #define V_SCD_BERR_TID(x) _SB_MAKEVALUE(x,S_SCD_BERR_TID) | 416 | #define V_SCD_BERR_TID(x) _SB_MAKEVALUE(x, S_SCD_BERR_TID) |
417 | #define G_SCD_BERR_TID(x) _SB_GETVALUE(x,S_SCD_BERR_TID,M_SCD_BERR_TID) | 417 | #define G_SCD_BERR_TID(x) _SB_GETVALUE(x, S_SCD_BERR_TID, M_SCD_BERR_TID) |
418 | 418 | ||
419 | #define S_SCD_BERR_RID 18 | 419 | #define S_SCD_BERR_RID 18 |
420 | #define M_SCD_BERR_RID _SB_MAKEMASK(4,S_SCD_BERR_RID) | 420 | #define M_SCD_BERR_RID _SB_MAKEMASK(4, S_SCD_BERR_RID) |
421 | #define V_SCD_BERR_RID(x) _SB_MAKEVALUE(x,S_SCD_BERR_RID) | 421 | #define V_SCD_BERR_RID(x) _SB_MAKEVALUE(x, S_SCD_BERR_RID) |
422 | #define G_SCD_BERR_RID(x) _SB_GETVALUE(x,S_SCD_BERR_RID,M_SCD_BERR_RID) | 422 | #define G_SCD_BERR_RID(x) _SB_GETVALUE(x, S_SCD_BERR_RID, M_SCD_BERR_RID) |
423 | 423 | ||
424 | #define S_SCD_BERR_DCODE 22 | 424 | #define S_SCD_BERR_DCODE 22 |
425 | #define M_SCD_BERR_DCODE _SB_MAKEMASK(3,S_SCD_BERR_DCODE) | 425 | #define M_SCD_BERR_DCODE _SB_MAKEMASK(3, S_SCD_BERR_DCODE) |
426 | #define V_SCD_BERR_DCODE(x) _SB_MAKEVALUE(x,S_SCD_BERR_DCODE) | 426 | #define V_SCD_BERR_DCODE(x) _SB_MAKEVALUE(x, S_SCD_BERR_DCODE) |
427 | #define G_SCD_BERR_DCODE(x) _SB_GETVALUE(x,S_SCD_BERR_DCODE,M_SCD_BERR_DCODE) | 427 | #define G_SCD_BERR_DCODE(x) _SB_GETVALUE(x, S_SCD_BERR_DCODE, M_SCD_BERR_DCODE) |
428 | 428 | ||
429 | #define M_SCD_BERR_MULTERRS _SB_MAKEMASK1(30) | 429 | #define M_SCD_BERR_MULTERRS _SB_MAKEMASK1(30) |
430 | 430 | ||
431 | 431 | ||
432 | #define S_SCD_L2ECC_CORR_D 0 | 432 | #define S_SCD_L2ECC_CORR_D 0 |
433 | #define M_SCD_L2ECC_CORR_D _SB_MAKEMASK(8,S_SCD_L2ECC_CORR_D) | 433 | #define M_SCD_L2ECC_CORR_D _SB_MAKEMASK(8, S_SCD_L2ECC_CORR_D) |
434 | #define V_SCD_L2ECC_CORR_D(x) _SB_MAKEVALUE(x,S_SCD_L2ECC_CORR_D) | 434 | #define V_SCD_L2ECC_CORR_D(x) _SB_MAKEVALUE(x, S_SCD_L2ECC_CORR_D) |
435 | #define G_SCD_L2ECC_CORR_D(x) _SB_GETVALUE(x,S_SCD_L2ECC_CORR_D,M_SCD_L2ECC_CORR_D) | 435 | #define G_SCD_L2ECC_CORR_D(x) _SB_GETVALUE(x, S_SCD_L2ECC_CORR_D, M_SCD_L2ECC_CORR_D) |
436 | 436 | ||
437 | #define S_SCD_L2ECC_BAD_D 8 | 437 | #define S_SCD_L2ECC_BAD_D 8 |
438 | #define M_SCD_L2ECC_BAD_D _SB_MAKEMASK(8,S_SCD_L2ECC_BAD_D) | 438 | #define M_SCD_L2ECC_BAD_D _SB_MAKEMASK(8, S_SCD_L2ECC_BAD_D) |
439 | #define V_SCD_L2ECC_BAD_D(x) _SB_MAKEVALUE(x,S_SCD_L2ECC_BAD_D) | 439 | #define V_SCD_L2ECC_BAD_D(x) _SB_MAKEVALUE(x, S_SCD_L2ECC_BAD_D) |
440 | #define G_SCD_L2ECC_BAD_D(x) _SB_GETVALUE(x,S_SCD_L2ECC_BAD_D,M_SCD_L2ECC_BAD_D) | 440 | #define G_SCD_L2ECC_BAD_D(x) _SB_GETVALUE(x, S_SCD_L2ECC_BAD_D, M_SCD_L2ECC_BAD_D) |
441 | 441 | ||
442 | #define S_SCD_L2ECC_CORR_T 16 | 442 | #define S_SCD_L2ECC_CORR_T 16 |
443 | #define M_SCD_L2ECC_CORR_T _SB_MAKEMASK(8,S_SCD_L2ECC_CORR_T) | 443 | #define M_SCD_L2ECC_CORR_T _SB_MAKEMASK(8, S_SCD_L2ECC_CORR_T) |
444 | #define V_SCD_L2ECC_CORR_T(x) _SB_MAKEVALUE(x,S_SCD_L2ECC_CORR_T) | 444 | #define V_SCD_L2ECC_CORR_T(x) _SB_MAKEVALUE(x, S_SCD_L2ECC_CORR_T) |
445 | #define G_SCD_L2ECC_CORR_T(x) _SB_GETVALUE(x,S_SCD_L2ECC_CORR_T,M_SCD_L2ECC_CORR_T) | 445 | #define G_SCD_L2ECC_CORR_T(x) _SB_GETVALUE(x, S_SCD_L2ECC_CORR_T, M_SCD_L2ECC_CORR_T) |
446 | 446 | ||
447 | #define S_SCD_L2ECC_BAD_T 24 | 447 | #define S_SCD_L2ECC_BAD_T 24 |
448 | #define M_SCD_L2ECC_BAD_T _SB_MAKEMASK(8,S_SCD_L2ECC_BAD_T) | 448 | #define M_SCD_L2ECC_BAD_T _SB_MAKEMASK(8, S_SCD_L2ECC_BAD_T) |
449 | #define V_SCD_L2ECC_BAD_T(x) _SB_MAKEVALUE(x,S_SCD_L2ECC_BAD_T) | 449 | #define V_SCD_L2ECC_BAD_T(x) _SB_MAKEVALUE(x, S_SCD_L2ECC_BAD_T) |
450 | #define G_SCD_L2ECC_BAD_T(x) _SB_GETVALUE(x,S_SCD_L2ECC_BAD_T,M_SCD_L2ECC_BAD_T) | 450 | #define G_SCD_L2ECC_BAD_T(x) _SB_GETVALUE(x, S_SCD_L2ECC_BAD_T, M_SCD_L2ECC_BAD_T) |
451 | 451 | ||
452 | #define S_SCD_MEM_ECC_CORR 0 | 452 | #define S_SCD_MEM_ECC_CORR 0 |
453 | #define M_SCD_MEM_ECC_CORR _SB_MAKEMASK(8,S_SCD_MEM_ECC_CORR) | 453 | #define M_SCD_MEM_ECC_CORR _SB_MAKEMASK(8, S_SCD_MEM_ECC_CORR) |
454 | #define V_SCD_MEM_ECC_CORR(x) _SB_MAKEVALUE(x,S_SCD_MEM_ECC_CORR) | 454 | #define V_SCD_MEM_ECC_CORR(x) _SB_MAKEVALUE(x, S_SCD_MEM_ECC_CORR) |
455 | #define G_SCD_MEM_ECC_CORR(x) _SB_GETVALUE(x,S_SCD_MEM_ECC_CORR,M_SCD_MEM_ECC_CORR) | 455 | #define G_SCD_MEM_ECC_CORR(x) _SB_GETVALUE(x, S_SCD_MEM_ECC_CORR, M_SCD_MEM_ECC_CORR) |
456 | 456 | ||
457 | #define S_SCD_MEM_ECC_BAD 8 | 457 | #define S_SCD_MEM_ECC_BAD 8 |
458 | #define M_SCD_MEM_ECC_BAD _SB_MAKEMASK(8,S_SCD_MEM_ECC_BAD) | 458 | #define M_SCD_MEM_ECC_BAD _SB_MAKEMASK(8, S_SCD_MEM_ECC_BAD) |
459 | #define V_SCD_MEM_ECC_BAD(x) _SB_MAKEVALUE(x,S_SCD_MEM_ECC_BAD) | 459 | #define V_SCD_MEM_ECC_BAD(x) _SB_MAKEVALUE(x, S_SCD_MEM_ECC_BAD) |
460 | #define G_SCD_MEM_ECC_BAD(x) _SB_GETVALUE(x,S_SCD_MEM_ECC_BAD,M_SCD_MEM_ECC_BAD) | 460 | #define G_SCD_MEM_ECC_BAD(x) _SB_GETVALUE(x, S_SCD_MEM_ECC_BAD, M_SCD_MEM_ECC_BAD) |
461 | 461 | ||
462 | #define S_SCD_MEM_BUSERR 16 | 462 | #define S_SCD_MEM_BUSERR 16 |
463 | #define M_SCD_MEM_BUSERR _SB_MAKEMASK(8,S_SCD_MEM_BUSERR) | 463 | #define M_SCD_MEM_BUSERR _SB_MAKEMASK(8, S_SCD_MEM_BUSERR) |
464 | #define V_SCD_MEM_BUSERR(x) _SB_MAKEVALUE(x,S_SCD_MEM_BUSERR) | 464 | #define V_SCD_MEM_BUSERR(x) _SB_MAKEVALUE(x, S_SCD_MEM_BUSERR) |
465 | #define G_SCD_MEM_BUSERR(x) _SB_GETVALUE(x,S_SCD_MEM_BUSERR,M_SCD_MEM_BUSERR) | 465 | #define G_SCD_MEM_BUSERR(x) _SB_GETVALUE(x, S_SCD_MEM_BUSERR, M_SCD_MEM_BUSERR) |
466 | 466 | ||
467 | 467 | ||
468 | /* | 468 | /* |
@@ -470,13 +470,13 @@ | |||
470 | */ | 470 | */ |
471 | 471 | ||
472 | #if SIBYTE_HDR_FEATURE_1250_112x | 472 | #if SIBYTE_HDR_FEATURE_1250_112x |
473 | #define M_ATRAP_INDEX _SB_MAKEMASK(4,0) | 473 | #define M_ATRAP_INDEX _SB_MAKEMASK(4, 0) |
474 | #define M_ATRAP_ADDRESS _SB_MAKEMASK(40,0) | 474 | #define M_ATRAP_ADDRESS _SB_MAKEMASK(40, 0) |
475 | 475 | ||
476 | #define S_ATRAP_CFG_CNT 0 | 476 | #define S_ATRAP_CFG_CNT 0 |
477 | #define M_ATRAP_CFG_CNT _SB_MAKEMASK(3,S_ATRAP_CFG_CNT) | 477 | #define M_ATRAP_CFG_CNT _SB_MAKEMASK(3, S_ATRAP_CFG_CNT) |
478 | #define V_ATRAP_CFG_CNT(x) _SB_MAKEVALUE(x,S_ATRAP_CFG_CNT) | 478 | #define V_ATRAP_CFG_CNT(x) _SB_MAKEVALUE(x, S_ATRAP_CFG_CNT) |
479 | #define G_ATRAP_CFG_CNT(x) _SB_GETVALUE(x,S_ATRAP_CFG_CNT,M_ATRAP_CFG_CNT) | 479 | #define G_ATRAP_CFG_CNT(x) _SB_GETVALUE(x, S_ATRAP_CFG_CNT, M_ATRAP_CFG_CNT) |
480 | 480 | ||
481 | #define M_ATRAP_CFG_WRITE _SB_MAKEMASK1(3) | 481 | #define M_ATRAP_CFG_WRITE _SB_MAKEMASK1(3) |
482 | #define M_ATRAP_CFG_ALL _SB_MAKEMASK1(4) | 482 | #define M_ATRAP_CFG_ALL _SB_MAKEMASK1(4) |
@@ -485,9 +485,9 @@ | |||
485 | #define M_ATRAP_CFG_SRCINV _SB_MAKEMASK1(7) | 485 | #define M_ATRAP_CFG_SRCINV _SB_MAKEMASK1(7) |
486 | 486 | ||
487 | #define S_ATRAP_CFG_AGENTID 8 | 487 | #define S_ATRAP_CFG_AGENTID 8 |
488 | #define M_ATRAP_CFG_AGENTID _SB_MAKEMASK(4,S_ATRAP_CFG_AGENTID) | 488 | #define M_ATRAP_CFG_AGENTID _SB_MAKEMASK(4, S_ATRAP_CFG_AGENTID) |
489 | #define V_ATRAP_CFG_AGENTID(x) _SB_MAKEVALUE(x,S_ATRAP_CFG_AGENTID) | 489 | #define V_ATRAP_CFG_AGENTID(x) _SB_MAKEVALUE(x, S_ATRAP_CFG_AGENTID) |
490 | #define G_ATRAP_CFG_AGENTID(x) _SB_GETVALUE(x,S_ATRAP_CFG_AGENTID,M_ATRAP_CFG_AGENTID) | 490 | #define G_ATRAP_CFG_AGENTID(x) _SB_GETVALUE(x, S_ATRAP_CFG_AGENTID, M_ATRAP_CFG_AGENTID) |
491 | 491 | ||
492 | #define K_BUS_AGENT_CPU0 0 | 492 | #define K_BUS_AGENT_CPU0 0 |
493 | #define K_BUS_AGENT_CPU1 1 | 493 | #define K_BUS_AGENT_CPU1 1 |
@@ -498,9 +498,9 @@ | |||
498 | #define K_BUS_AGENT_MC 7 | 498 | #define K_BUS_AGENT_MC 7 |
499 | 499 | ||
500 | #define S_ATRAP_CFG_CATTR 12 | 500 | #define S_ATRAP_CFG_CATTR 12 |
501 | #define M_ATRAP_CFG_CATTR _SB_MAKEMASK(3,S_ATRAP_CFG_CATTR) | 501 | #define M_ATRAP_CFG_CATTR _SB_MAKEMASK(3, S_ATRAP_CFG_CATTR) |
502 | #define V_ATRAP_CFG_CATTR(x) _SB_MAKEVALUE(x,S_ATRAP_CFG_CATTR) | 502 | #define V_ATRAP_CFG_CATTR(x) _SB_MAKEVALUE(x, S_ATRAP_CFG_CATTR) |
503 | #define G_ATRAP_CFG_CATTR(x) _SB_GETVALUE(x,S_ATRAP_CFG_CATTR,M_ATRAP_CFG_CATTR) | 503 | #define G_ATRAP_CFG_CATTR(x) _SB_GETVALUE(x, S_ATRAP_CFG_CATTR, M_ATRAP_CFG_CATTR) |
504 | 504 | ||
505 | #define K_ATRAP_CFG_CATTR_IGNORE 0 | 505 | #define K_ATRAP_CFG_CATTR_IGNORE 0 |
506 | #define K_ATRAP_CFG_CATTR_UNC 1 | 506 | #define K_ATRAP_CFG_CATTR_UNC 1 |
@@ -541,18 +541,18 @@ | |||
541 | #endif /* 1480 */ | 541 | #endif /* 1480 */ |
542 | #endif /* 1250/112x */ | 542 | #endif /* 1250/112x */ |
543 | 543 | ||
544 | #define M_SCD_TRACE_CFG_CUR_ADDR _SB_MAKEMASK(8,S_SCD_TRACE_CFG_CUR_ADDR) | 544 | #define M_SCD_TRACE_CFG_CUR_ADDR _SB_MAKEMASK(8, S_SCD_TRACE_CFG_CUR_ADDR) |
545 | #define V_SCD_TRACE_CFG_CUR_ADDR(x) _SB_MAKEVALUE(x,S_SCD_TRACE_CFG_CUR_ADDR) | 545 | #define V_SCD_TRACE_CFG_CUR_ADDR(x) _SB_MAKEVALUE(x, S_SCD_TRACE_CFG_CUR_ADDR) |
546 | #define G_SCD_TRACE_CFG_CUR_ADDR(x) _SB_GETVALUE(x,S_SCD_TRACE_CFG_CUR_ADDR,M_SCD_TRACE_CFG_CUR_ADDR) | 546 | #define G_SCD_TRACE_CFG_CUR_ADDR(x) _SB_GETVALUE(x, S_SCD_TRACE_CFG_CUR_ADDR, M_SCD_TRACE_CFG_CUR_ADDR) |
547 | 547 | ||
548 | /* | 548 | /* |
549 | * Trace Event registers | 549 | * Trace Event registers |
550 | */ | 550 | */ |
551 | 551 | ||
552 | #define S_SCD_TREVT_ADDR_MATCH 0 | 552 | #define S_SCD_TREVT_ADDR_MATCH 0 |
553 | #define M_SCD_TREVT_ADDR_MATCH _SB_MAKEMASK(4,S_SCD_TREVT_ADDR_MATCH) | 553 | #define M_SCD_TREVT_ADDR_MATCH _SB_MAKEMASK(4, S_SCD_TREVT_ADDR_MATCH) |
554 | #define V_SCD_TREVT_ADDR_MATCH(x) _SB_MAKEVALUE(x,S_SCD_TREVT_ADDR_MATCH) | 554 | #define V_SCD_TREVT_ADDR_MATCH(x) _SB_MAKEVALUE(x, S_SCD_TREVT_ADDR_MATCH) |
555 | #define G_SCD_TREVT_ADDR_MATCH(x) _SB_GETVALUE(x,S_SCD_TREVT_ADDR_MATCH,M_SCD_TREVT_ADDR_MATCH) | 555 | #define G_SCD_TREVT_ADDR_MATCH(x) _SB_GETVALUE(x, S_SCD_TREVT_ADDR_MATCH, M_SCD_TREVT_ADDR_MATCH) |
556 | 556 | ||
557 | #define M_SCD_TREVT_REQID_MATCH _SB_MAKEMASK1(4) | 557 | #define M_SCD_TREVT_REQID_MATCH _SB_MAKEMASK1(4) |
558 | #define M_SCD_TREVT_DATAID_MATCH _SB_MAKEMASK1(5) | 558 | #define M_SCD_TREVT_DATAID_MATCH _SB_MAKEMASK1(5) |
@@ -563,48 +563,48 @@ | |||
563 | #define M_SCD_TREVT_READ _SB_MAKEMASK1(11) | 563 | #define M_SCD_TREVT_READ _SB_MAKEMASK1(11) |
564 | 564 | ||
565 | #define S_SCD_TREVT_REQID 12 | 565 | #define S_SCD_TREVT_REQID 12 |
566 | #define M_SCD_TREVT_REQID _SB_MAKEMASK(4,S_SCD_TREVT_REQID) | 566 | #define M_SCD_TREVT_REQID _SB_MAKEMASK(4, S_SCD_TREVT_REQID) |
567 | #define V_SCD_TREVT_REQID(x) _SB_MAKEVALUE(x,S_SCD_TREVT_REQID) | 567 | #define V_SCD_TREVT_REQID(x) _SB_MAKEVALUE(x, S_SCD_TREVT_REQID) |
568 | #define G_SCD_TREVT_REQID(x) _SB_GETVALUE(x,S_SCD_TREVT_REQID,M_SCD_TREVT_REQID) | 568 | #define G_SCD_TREVT_REQID(x) _SB_GETVALUE(x, S_SCD_TREVT_REQID, M_SCD_TREVT_REQID) |
569 | 569 | ||
570 | #define S_SCD_TREVT_RESPID 16 | 570 | #define S_SCD_TREVT_RESPID 16 |
571 | #define M_SCD_TREVT_RESPID _SB_MAKEMASK(4,S_SCD_TREVT_RESPID) | 571 | #define M_SCD_TREVT_RESPID _SB_MAKEMASK(4, S_SCD_TREVT_RESPID) |
572 | #define V_SCD_TREVT_RESPID(x) _SB_MAKEVALUE(x,S_SCD_TREVT_RESPID) | 572 | #define V_SCD_TREVT_RESPID(x) _SB_MAKEVALUE(x, S_SCD_TREVT_RESPID) |
573 | #define G_SCD_TREVT_RESPID(x) _SB_GETVALUE(x,S_SCD_TREVT_RESPID,M_SCD_TREVT_RESPID) | 573 | #define G_SCD_TREVT_RESPID(x) _SB_GETVALUE(x, S_SCD_TREVT_RESPID, M_SCD_TREVT_RESPID) |
574 | 574 | ||
575 | #define S_SCD_TREVT_DATAID 20 | 575 | #define S_SCD_TREVT_DATAID 20 |
576 | #define M_SCD_TREVT_DATAID _SB_MAKEMASK(4,S_SCD_TREVT_DATAID) | 576 | #define M_SCD_TREVT_DATAID _SB_MAKEMASK(4, S_SCD_TREVT_DATAID) |
577 | #define V_SCD_TREVT_DATAID(x) _SB_MAKEVALUE(x,S_SCD_TREVT_DATAID) | 577 | #define V_SCD_TREVT_DATAID(x) _SB_MAKEVALUE(x, S_SCD_TREVT_DATAID) |
578 | #define G_SCD_TREVT_DATAID(x) _SB_GETVALUE(x,S_SCD_TREVT_DATAID,M_SCD_TREVT_DATID) | 578 | #define G_SCD_TREVT_DATAID(x) _SB_GETVALUE(x, S_SCD_TREVT_DATAID, M_SCD_TREVT_DATID) |
579 | 579 | ||
580 | #define S_SCD_TREVT_COUNT 24 | 580 | #define S_SCD_TREVT_COUNT 24 |
581 | #define M_SCD_TREVT_COUNT _SB_MAKEMASK(8,S_SCD_TREVT_COUNT) | 581 | #define M_SCD_TREVT_COUNT _SB_MAKEMASK(8, S_SCD_TREVT_COUNT) |
582 | #define V_SCD_TREVT_COUNT(x) _SB_MAKEVALUE(x,S_SCD_TREVT_COUNT) | 582 | #define V_SCD_TREVT_COUNT(x) _SB_MAKEVALUE(x, S_SCD_TREVT_COUNT) |
583 | #define G_SCD_TREVT_COUNT(x) _SB_GETVALUE(x,S_SCD_TREVT_COUNT,M_SCD_TREVT_COUNT) | 583 | #define G_SCD_TREVT_COUNT(x) _SB_GETVALUE(x, S_SCD_TREVT_COUNT, M_SCD_TREVT_COUNT) |
584 | 584 | ||
585 | /* | 585 | /* |
586 | * Trace Sequence registers | 586 | * Trace Sequence registers |
587 | */ | 587 | */ |
588 | 588 | ||
589 | #define S_SCD_TRSEQ_EVENT4 0 | 589 | #define S_SCD_TRSEQ_EVENT4 0 |
590 | #define M_SCD_TRSEQ_EVENT4 _SB_MAKEMASK(4,S_SCD_TRSEQ_EVENT4) | 590 | #define M_SCD_TRSEQ_EVENT4 _SB_MAKEMASK(4, S_SCD_TRSEQ_EVENT4) |
591 | #define V_SCD_TRSEQ_EVENT4(x) _SB_MAKEVALUE(x,S_SCD_TRSEQ_EVENT4) | 591 | #define V_SCD_TRSEQ_EVENT4(x) _SB_MAKEVALUE(x, S_SCD_TRSEQ_EVENT4) |
592 | #define G_SCD_TRSEQ_EVENT4(x) _SB_GETVALUE(x,S_SCD_TRSEQ_EVENT4,M_SCD_TRSEQ_EVENT4) | 592 | #define G_SCD_TRSEQ_EVENT4(x) _SB_GETVALUE(x, S_SCD_TRSEQ_EVENT4, M_SCD_TRSEQ_EVENT4) |
593 | 593 | ||
594 | #define S_SCD_TRSEQ_EVENT3 4 | 594 | #define S_SCD_TRSEQ_EVENT3 4 |
595 | #define M_SCD_TRSEQ_EVENT3 _SB_MAKEMASK(4,S_SCD_TRSEQ_EVENT3) | 595 | #define M_SCD_TRSEQ_EVENT3 _SB_MAKEMASK(4, S_SCD_TRSEQ_EVENT3) |
596 | #define V_SCD_TRSEQ_EVENT3(x) _SB_MAKEVALUE(x,S_SCD_TRSEQ_EVENT3) | 596 | #define V_SCD_TRSEQ_EVENT3(x) _SB_MAKEVALUE(x, S_SCD_TRSEQ_EVENT3) |
597 | #define G_SCD_TRSEQ_EVENT3(x) _SB_GETVALUE(x,S_SCD_TRSEQ_EVENT3,M_SCD_TRSEQ_EVENT3) | 597 | #define G_SCD_TRSEQ_EVENT3(x) _SB_GETVALUE(x, S_SCD_TRSEQ_EVENT3, M_SCD_TRSEQ_EVENT3) |
598 | 598 | ||
599 | #define S_SCD_TRSEQ_EVENT2 8 | 599 | #define S_SCD_TRSEQ_EVENT2 8 |
600 | #define M_SCD_TRSEQ_EVENT2 _SB_MAKEMASK(4,S_SCD_TRSEQ_EVENT2) | 600 | #define M_SCD_TRSEQ_EVENT2 _SB_MAKEMASK(4, S_SCD_TRSEQ_EVENT2) |
601 | #define V_SCD_TRSEQ_EVENT2(x) _SB_MAKEVALUE(x,S_SCD_TRSEQ_EVENT2) | 601 | #define V_SCD_TRSEQ_EVENT2(x) _SB_MAKEVALUE(x, S_SCD_TRSEQ_EVENT2) |
602 | #define G_SCD_TRSEQ_EVENT2(x) _SB_GETVALUE(x,S_SCD_TRSEQ_EVENT2,M_SCD_TRSEQ_EVENT2) | 602 | #define G_SCD_TRSEQ_EVENT2(x) _SB_GETVALUE(x, S_SCD_TRSEQ_EVENT2, M_SCD_TRSEQ_EVENT2) |
603 | 603 | ||
604 | #define S_SCD_TRSEQ_EVENT1 12 | 604 | #define S_SCD_TRSEQ_EVENT1 12 |
605 | #define M_SCD_TRSEQ_EVENT1 _SB_MAKEMASK(4,S_SCD_TRSEQ_EVENT1) | 605 | #define M_SCD_TRSEQ_EVENT1 _SB_MAKEMASK(4, S_SCD_TRSEQ_EVENT1) |
606 | #define V_SCD_TRSEQ_EVENT1(x) _SB_MAKEVALUE(x,S_SCD_TRSEQ_EVENT1) | 606 | #define V_SCD_TRSEQ_EVENT1(x) _SB_MAKEVALUE(x, S_SCD_TRSEQ_EVENT1) |
607 | #define G_SCD_TRSEQ_EVENT1(x) _SB_GETVALUE(x,S_SCD_TRSEQ_EVENT1,M_SCD_TRSEQ_EVENT1) | 607 | #define G_SCD_TRSEQ_EVENT1(x) _SB_GETVALUE(x, S_SCD_TRSEQ_EVENT1, M_SCD_TRSEQ_EVENT1) |
608 | 608 | ||
609 | #define K_SCD_TRSEQ_E0 0 | 609 | #define K_SCD_TRSEQ_E0 0 |
610 | #define K_SCD_TRSEQ_E1 1 | 610 | #define K_SCD_TRSEQ_E1 1 |
@@ -629,9 +629,9 @@ | |||
629 | V_SCD_TRSEQ_EVENT4(K_SCD_TRSEQ_IGNORED)) | 629 | V_SCD_TRSEQ_EVENT4(K_SCD_TRSEQ_IGNORED)) |
630 | 630 | ||
631 | #define S_SCD_TRSEQ_FUNCTION 16 | 631 | #define S_SCD_TRSEQ_FUNCTION 16 |
632 | #define M_SCD_TRSEQ_FUNCTION _SB_MAKEMASK(4,S_SCD_TRSEQ_FUNCTION) | 632 | #define M_SCD_TRSEQ_FUNCTION _SB_MAKEMASK(4, S_SCD_TRSEQ_FUNCTION) |
633 | #define V_SCD_TRSEQ_FUNCTION(x) _SB_MAKEVALUE(x,S_SCD_TRSEQ_FUNCTION) | 633 | #define V_SCD_TRSEQ_FUNCTION(x) _SB_MAKEVALUE(x, S_SCD_TRSEQ_FUNCTION) |
634 | #define G_SCD_TRSEQ_FUNCTION(x) _SB_GETVALUE(x,S_SCD_TRSEQ_FUNCTION,M_SCD_TRSEQ_FUNCTION) | 634 | #define G_SCD_TRSEQ_FUNCTION(x) _SB_GETVALUE(x, S_SCD_TRSEQ_FUNCTION, M_SCD_TRSEQ_FUNCTION) |
635 | 635 | ||
636 | #define K_SCD_TRSEQ_FUNC_NOP 0 | 636 | #define K_SCD_TRSEQ_FUNC_NOP 0 |
637 | #define K_SCD_TRSEQ_FUNC_START 1 | 637 | #define K_SCD_TRSEQ_FUNC_START 1 |
diff --git a/include/asm-mips/sibyte/sb1250_smbus.h b/include/asm-mips/sibyte/sb1250_smbus.h index 279a912213..04769923cf 100644 --- a/include/asm-mips/sibyte/sb1250_smbus.h +++ b/include/asm-mips/sibyte/sb1250_smbus.h | |||
@@ -41,16 +41,16 @@ | |||
41 | */ | 41 | */ |
42 | 42 | ||
43 | #define S_SMB_FREQ_DIV 0 | 43 | #define S_SMB_FREQ_DIV 0 |
44 | #define M_SMB_FREQ_DIV _SB_MAKEMASK(13,S_SMB_FREQ_DIV) | 44 | #define M_SMB_FREQ_DIV _SB_MAKEMASK(13, S_SMB_FREQ_DIV) |
45 | #define V_SMB_FREQ_DIV(x) _SB_MAKEVALUE(x,S_SMB_FREQ_DIV) | 45 | #define V_SMB_FREQ_DIV(x) _SB_MAKEVALUE(x, S_SMB_FREQ_DIV) |
46 | 46 | ||
47 | #define K_SMB_FREQ_400KHZ 0x1F | 47 | #define K_SMB_FREQ_400KHZ 0x1F |
48 | #define K_SMB_FREQ_100KHZ 0x7D | 48 | #define K_SMB_FREQ_100KHZ 0x7D |
49 | #define K_SMB_FREQ_10KHZ 1250 | 49 | #define K_SMB_FREQ_10KHZ 1250 |
50 | 50 | ||
51 | #define S_SMB_CMD 0 | 51 | #define S_SMB_CMD 0 |
52 | #define M_SMB_CMD _SB_MAKEMASK(8,S_SMB_CMD) | 52 | #define M_SMB_CMD _SB_MAKEMASK(8, S_SMB_CMD) |
53 | #define V_SMB_CMD(x) _SB_MAKEVALUE(x,S_SMB_CMD) | 53 | #define V_SMB_CMD(x) _SB_MAKEVALUE(x, S_SMB_CMD) |
54 | 54 | ||
55 | /* | 55 | /* |
56 | * SMBus control register (Table 14-4) | 56 | * SMBus control register (Table 14-4) |
@@ -61,7 +61,7 @@ | |||
61 | 61 | ||
62 | #define S_SMB_DATA_OUT 4 | 62 | #define S_SMB_DATA_OUT 4 |
63 | #define M_SMB_DATA_OUT _SB_MAKEMASK1(S_SMB_DATA_OUT) | 63 | #define M_SMB_DATA_OUT _SB_MAKEMASK1(S_SMB_DATA_OUT) |
64 | #define V_SMB_DATA_OUT(x) _SB_MAKEVALUE(x,S_SMB_DATA_OUT) | 64 | #define V_SMB_DATA_OUT(x) _SB_MAKEVALUE(x, S_SMB_DATA_OUT) |
65 | 65 | ||
66 | #define M_SMB_DATA_DIR _SB_MAKEMASK1(5) | 66 | #define M_SMB_DATA_DIR _SB_MAKEMASK1(5) |
67 | #define M_SMB_DATA_DIR_OUTPUT M_SMB_DATA_DIR | 67 | #define M_SMB_DATA_DIR_OUTPUT M_SMB_DATA_DIR |
@@ -79,35 +79,35 @@ | |||
79 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 79 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
80 | #define S_SMB_SCL_IN 5 | 80 | #define S_SMB_SCL_IN 5 |
81 | #define M_SMB_SCL_IN _SB_MAKEMASK1(S_SMB_SCL_IN) | 81 | #define M_SMB_SCL_IN _SB_MAKEMASK1(S_SMB_SCL_IN) |
82 | #define V_SMB_SCL_IN(x) _SB_MAKEVALUE(x,S_SMB_SCL_IN) | 82 | #define V_SMB_SCL_IN(x) _SB_MAKEVALUE(x, S_SMB_SCL_IN) |
83 | #define G_SMB_SCL_IN(x) _SB_GETVALUE(x,S_SMB_SCL_IN,M_SMB_SCL_IN) | 83 | #define G_SMB_SCL_IN(x) _SB_GETVALUE(x, S_SMB_SCL_IN, M_SMB_SCL_IN) |
84 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ | 84 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
85 | 85 | ||
86 | #define S_SMB_REF 6 | 86 | #define S_SMB_REF 6 |
87 | #define M_SMB_REF _SB_MAKEMASK1(S_SMB_REF) | 87 | #define M_SMB_REF _SB_MAKEMASK1(S_SMB_REF) |
88 | #define V_SMB_REF(x) _SB_MAKEVALUE(x,S_SMB_REF) | 88 | #define V_SMB_REF(x) _SB_MAKEVALUE(x, S_SMB_REF) |
89 | #define G_SMB_REF(x) _SB_GETVALUE(x,S_SMB_REF,M_SMB_REF) | 89 | #define G_SMB_REF(x) _SB_GETVALUE(x, S_SMB_REF, M_SMB_REF) |
90 | 90 | ||
91 | #define S_SMB_DATA_IN 7 | 91 | #define S_SMB_DATA_IN 7 |
92 | #define M_SMB_DATA_IN _SB_MAKEMASK1(S_SMB_DATA_IN) | 92 | #define M_SMB_DATA_IN _SB_MAKEMASK1(S_SMB_DATA_IN) |
93 | #define V_SMB_DATA_IN(x) _SB_MAKEVALUE(x,S_SMB_DATA_IN) | 93 | #define V_SMB_DATA_IN(x) _SB_MAKEVALUE(x, S_SMB_DATA_IN) |
94 | #define G_SMB_DATA_IN(x) _SB_GETVALUE(x,S_SMB_DATA_IN,M_SMB_DATA_IN) | 94 | #define G_SMB_DATA_IN(x) _SB_GETVALUE(x, S_SMB_DATA_IN, M_SMB_DATA_IN) |
95 | 95 | ||
96 | /* | 96 | /* |
97 | * SMBus Start/Command registers (Table 14-9) | 97 | * SMBus Start/Command registers (Table 14-9) |
98 | */ | 98 | */ |
99 | 99 | ||
100 | #define S_SMB_ADDR 0 | 100 | #define S_SMB_ADDR 0 |
101 | #define M_SMB_ADDR _SB_MAKEMASK(7,S_SMB_ADDR) | 101 | #define M_SMB_ADDR _SB_MAKEMASK(7, S_SMB_ADDR) |
102 | #define V_SMB_ADDR(x) _SB_MAKEVALUE(x,S_SMB_ADDR) | 102 | #define V_SMB_ADDR(x) _SB_MAKEVALUE(x, S_SMB_ADDR) |
103 | #define G_SMB_ADDR(x) _SB_GETVALUE(x,S_SMB_ADDR,M_SMB_ADDR) | 103 | #define G_SMB_ADDR(x) _SB_GETVALUE(x, S_SMB_ADDR, M_SMB_ADDR) |
104 | 104 | ||
105 | #define M_SMB_QDATA _SB_MAKEMASK1(7) | 105 | #define M_SMB_QDATA _SB_MAKEMASK1(7) |
106 | 106 | ||
107 | #define S_SMB_TT 8 | 107 | #define S_SMB_TT 8 |
108 | #define M_SMB_TT _SB_MAKEMASK(3,S_SMB_TT) | 108 | #define M_SMB_TT _SB_MAKEMASK(3, S_SMB_TT) |
109 | #define V_SMB_TT(x) _SB_MAKEVALUE(x,S_SMB_TT) | 109 | #define V_SMB_TT(x) _SB_MAKEVALUE(x, S_SMB_TT) |
110 | #define G_SMB_TT(x) _SB_GETVALUE(x,S_SMB_TT,M_SMB_TT) | 110 | #define G_SMB_TT(x) _SB_GETVALUE(x, S_SMB_TT, M_SMB_TT) |
111 | 111 | ||
112 | #define K_SMB_TT_WR1BYTE 0 | 112 | #define K_SMB_TT_WR1BYTE 0 |
113 | #define K_SMB_TT_WR2BYTE 1 | 113 | #define K_SMB_TT_WR2BYTE 1 |
@@ -134,12 +134,12 @@ | |||
134 | */ | 134 | */ |
135 | 135 | ||
136 | #define S_SMB_LB 0 | 136 | #define S_SMB_LB 0 |
137 | #define M_SMB_LB _SB_MAKEMASK(8,S_SMB_LB) | 137 | #define M_SMB_LB _SB_MAKEMASK(8, S_SMB_LB) |
138 | #define V_SMB_LB(x) _SB_MAKEVALUE(x,S_SMB_LB) | 138 | #define V_SMB_LB(x) _SB_MAKEVALUE(x, S_SMB_LB) |
139 | 139 | ||
140 | #define S_SMB_MB 8 | 140 | #define S_SMB_MB 8 |
141 | #define M_SMB_MB _SB_MAKEMASK(8,S_SMB_MB) | 141 | #define M_SMB_MB _SB_MAKEMASK(8, S_SMB_MB) |
142 | #define V_SMB_MB(x) _SB_MAKEVALUE(x,S_SMB_MB) | 142 | #define V_SMB_MB(x) _SB_MAKEVALUE(x, S_SMB_MB) |
143 | 143 | ||
144 | 144 | ||
145 | /* | 145 | /* |
@@ -147,22 +147,22 @@ | |||
147 | */ | 147 | */ |
148 | 148 | ||
149 | #define S_SPEC_PEC 0 | 149 | #define S_SPEC_PEC 0 |
150 | #define M_SPEC_PEC _SB_MAKEMASK(8,S_SPEC_PEC) | 150 | #define M_SPEC_PEC _SB_MAKEMASK(8, S_SPEC_PEC) |
151 | #define V_SPEC_MB(x) _SB_MAKEVALUE(x,S_SPEC_PEC) | 151 | #define V_SPEC_MB(x) _SB_MAKEVALUE(x, S_SPEC_PEC) |
152 | 152 | ||
153 | 153 | ||
154 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) | 154 | #if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
155 | 155 | ||
156 | #define S_SMB_CMDH 8 | 156 | #define S_SMB_CMDH 8 |
157 | #define M_SMB_CMDH _SB_MAKEMASK(8,S_SMB_CMDH) | 157 | #define M_SMB_CMDH _SB_MAKEMASK(8, S_SMB_CMDH) |
158 | #define V_SMB_CMDH(x) _SB_MAKEVALUE(x,S_SMB_CMDH) | 158 | #define V_SMB_CMDH(x) _SB_MAKEVALUE(x, S_SMB_CMDH) |
159 | 159 | ||
160 | #define M_SMB_EXTEND _SB_MAKEMASK1(14) | 160 | #define M_SMB_EXTEND _SB_MAKEMASK1(14) |
161 | 161 | ||
162 | #define S_SMB_DFMT 8 | 162 | #define S_SMB_DFMT 8 |
163 | #define M_SMB_DFMT _SB_MAKEMASK(3,S_SMB_DFMT) | 163 | #define M_SMB_DFMT _SB_MAKEMASK(3, S_SMB_DFMT) |
164 | #define V_SMB_DFMT(x) _SB_MAKEVALUE(x,S_SMB_DFMT) | 164 | #define V_SMB_DFMT(x) _SB_MAKEVALUE(x, S_SMB_DFMT) |
165 | #define G_SMB_DFMT(x) _SB_GETVALUE(x,S_SMB_DFMT,M_SMB_DFMT) | 165 | #define G_SMB_DFMT(x) _SB_GETVALUE(x, S_SMB_DFMT, M_SMB_DFMT) |
166 | 166 | ||
167 | #define K_SMB_DFMT_1BYTE 0 | 167 | #define K_SMB_DFMT_1BYTE 0 |
168 | #define K_SMB_DFMT_2BYTE 1 | 168 | #define K_SMB_DFMT_2BYTE 1 |
@@ -183,9 +183,9 @@ | |||
183 | #define V_SMB_DFMT_RESERVED V_SMB_DFMT(K_SMB_DFMT_RESERVED) | 183 | #define V_SMB_DFMT_RESERVED V_SMB_DFMT(K_SMB_DFMT_RESERVED) |
184 | 184 | ||
185 | #define S_SMB_AFMT 11 | 185 | #define S_SMB_AFMT 11 |
186 | #define M_SMB_AFMT _SB_MAKEMASK(2,S_SMB_AFMT) | 186 | #define M_SMB_AFMT _SB_MAKEMASK(2, S_SMB_AFMT) |
187 | #define V_SMB_AFMT(x) _SB_MAKEVALUE(x,S_SMB_AFMT) | 187 | #define V_SMB_AFMT(x) _SB_MAKEVALUE(x, S_SMB_AFMT) |
188 | #define G_SMB_AFMT(x) _SB_GETVALUE(x,S_SMB_AFMT,M_SMB_AFMT) | 188 | #define G_SMB_AFMT(x) _SB_GETVALUE(x, S_SMB_AFMT, M_SMB_AFMT) |
189 | 189 | ||
190 | #define K_SMB_AFMT_NONE 0 | 190 | #define K_SMB_AFMT_NONE 0 |
191 | #define K_SMB_AFMT_ADDR 1 | 191 | #define K_SMB_AFMT_ADDR 1 |
diff --git a/include/asm-mips/sibyte/sb1250_syncser.h b/include/asm-mips/sibyte/sb1250_syncser.h index dd154ac505..d4b8558e0b 100644 --- a/include/asm-mips/sibyte/sb1250_syncser.h +++ b/include/asm-mips/sibyte/sb1250_syncser.h | |||
@@ -43,8 +43,8 @@ | |||
43 | #define M_SYNCSER_MSB_FIRST _SB_MAKEMASK1(1) | 43 | #define M_SYNCSER_MSB_FIRST _SB_MAKEMASK1(1) |
44 | 44 | ||
45 | #define S_SYNCSER_FLAG_NUM 2 | 45 | #define S_SYNCSER_FLAG_NUM 2 |
46 | #define M_SYNCSER_FLAG_NUM _SB_MAKEMASK(4,S_SYNCSER_FLAG_NUM) | 46 | #define M_SYNCSER_FLAG_NUM _SB_MAKEMASK(4, S_SYNCSER_FLAG_NUM) |
47 | #define V_SYNCSER_FLAG_NUM _SB_MAKEVALUE(x,S_SYNCSER_FLAG_NUM) | 47 | #define V_SYNCSER_FLAG_NUM _SB_MAKEVALUE(x, S_SYNCSER_FLAG_NUM) |
48 | 48 | ||
49 | #define M_SYNCSER_FLAG_EN _SB_MAKEMASK1(6) | 49 | #define M_SYNCSER_FLAG_EN _SB_MAKEMASK1(6) |
50 | #define M_SYNCSER_HDLC_EN _SB_MAKEMASK1(7) | 50 | #define M_SYNCSER_HDLC_EN _SB_MAKEMASK1(7) |
@@ -59,8 +59,8 @@ | |||
59 | #define M_SYNCSER_RXCLK_EXT _SB_MAKEMASK1(1) | 59 | #define M_SYNCSER_RXCLK_EXT _SB_MAKEMASK1(1) |
60 | 60 | ||
61 | #define S_SYNCSER_RXSYNC_DLY 2 | 61 | #define S_SYNCSER_RXSYNC_DLY 2 |
62 | #define M_SYNCSER_RXSYNC_DLY _SB_MAKEMASK(2,S_SYNCSER_RXSYNC_DLY) | 62 | #define M_SYNCSER_RXSYNC_DLY _SB_MAKEMASK(2, S_SYNCSER_RXSYNC_DLY) |
63 | #define V_SYNCSER_RXSYNC_DLY(x) _SB_MAKEVALUE(x,S_SYNCSER_RXSYNC_DLY) | 63 | #define V_SYNCSER_RXSYNC_DLY(x) _SB_MAKEVALUE(x, S_SYNCSER_RXSYNC_DLY) |
64 | 64 | ||
65 | #define M_SYNCSER_RXSYNC_LOW _SB_MAKEMASK1(4) | 65 | #define M_SYNCSER_RXSYNC_LOW _SB_MAKEMASK1(4) |
66 | #define M_SYNCSER_RXSTRB_LOW _SB_MAKEMASK1(5) | 66 | #define M_SYNCSER_RXSTRB_LOW _SB_MAKEMASK1(5) |
@@ -72,8 +72,8 @@ | |||
72 | #define M_SYNCSER_TXCLK_EXT _SB_MAKEMASK1(9) | 72 | #define M_SYNCSER_TXCLK_EXT _SB_MAKEMASK1(9) |
73 | 73 | ||
74 | #define S_SYNCSER_TXSYNC_DLY 10 | 74 | #define S_SYNCSER_TXSYNC_DLY 10 |
75 | #define M_SYNCSER_TXSYNC_DLY _SB_MAKEMASK(2,S_SYNCSER_TXSYNC_DLY) | 75 | #define M_SYNCSER_TXSYNC_DLY _SB_MAKEMASK(2, S_SYNCSER_TXSYNC_DLY) |
76 | #define V_SYNCSER_TXSYNC_DLY(x) _SB_MAKEVALUE(x,S_SYNCSER_TXSYNC_DLY) | 76 | #define V_SYNCSER_TXSYNC_DLY(x) _SB_MAKEVALUE(x, S_SYNCSER_TXSYNC_DLY) |
77 | 77 | ||
78 | #define M_SYNCSER_TXSYNC_LOW _SB_MAKEMASK1(12) | 78 | #define M_SYNCSER_TXSYNC_LOW _SB_MAKEMASK1(12) |
79 | #define M_SYNCSER_TXSTRB_LOW _SB_MAKEMASK1(13) | 79 | #define M_SYNCSER_TXSTRB_LOW _SB_MAKEMASK1(13) |
@@ -137,8 +137,8 @@ | |||
137 | #define M_SYNCSER_SEQ_BYTE _SB_MAKEMASK1(1) | 137 | #define M_SYNCSER_SEQ_BYTE _SB_MAKEMASK1(1) |
138 | 138 | ||
139 | #define S_SYNCSER_SEQ_COUNT 2 | 139 | #define S_SYNCSER_SEQ_COUNT 2 |
140 | #define M_SYNCSER_SEQ_COUNT _SB_MAKEMASK(4,S_SYNCSER_SEQ_COUNT) | 140 | #define M_SYNCSER_SEQ_COUNT _SB_MAKEMASK(4, S_SYNCSER_SEQ_COUNT) |
141 | #define V_SYNCSER_SEQ_COUNT(x) _SB_MAKEVALUE(x,S_SYNCSER_SEQ_COUNT) | 141 | #define V_SYNCSER_SEQ_COUNT(x) _SB_MAKEVALUE(x, S_SYNCSER_SEQ_COUNT) |
142 | 142 | ||
143 | #define M_SYNCSER_SEQ_ENABLE _SB_MAKEMASK1(6) | 143 | #define M_SYNCSER_SEQ_ENABLE _SB_MAKEMASK1(6) |
144 | #define M_SYNCSER_SEQ_STROBE _SB_MAKEMASK1(7) | 144 | #define M_SYNCSER_SEQ_STROBE _SB_MAKEMASK1(7) |
diff --git a/include/asm-mips/sibyte/sb1250_uart.h b/include/asm-mips/sibyte/sb1250_uart.h index cf74fedcbe..d835bf2801 100644 --- a/include/asm-mips/sibyte/sb1250_uart.h +++ b/include/asm-mips/sibyte/sb1250_uart.h | |||
@@ -46,8 +46,8 @@ | |||
46 | */ | 46 | */ |
47 | 47 | ||
48 | #define S_DUART_BITS_PER_CHAR 0 | 48 | #define S_DUART_BITS_PER_CHAR 0 |
49 | #define M_DUART_BITS_PER_CHAR _SB_MAKEMASK(2,S_DUART_BITS_PER_CHAR) | 49 | #define M_DUART_BITS_PER_CHAR _SB_MAKEMASK(2, S_DUART_BITS_PER_CHAR) |
50 | #define V_DUART_BITS_PER_CHAR(x) _SB_MAKEVALUE(x,S_DUART_BITS_PER_CHAR) | 50 | #define V_DUART_BITS_PER_CHAR(x) _SB_MAKEVALUE(x, S_DUART_BITS_PER_CHAR) |
51 | 51 | ||
52 | #define K_DUART_BITS_PER_CHAR_RSV0 0 | 52 | #define K_DUART_BITS_PER_CHAR_RSV0 0 |
53 | #define K_DUART_BITS_PER_CHAR_RSV1 1 | 53 | #define K_DUART_BITS_PER_CHAR_RSV1 1 |
@@ -64,8 +64,8 @@ | |||
64 | #define M_DUART_PARITY_TYPE_ODD _SB_MAKEMASK1(2) | 64 | #define M_DUART_PARITY_TYPE_ODD _SB_MAKEMASK1(2) |
65 | 65 | ||
66 | #define S_DUART_PARITY_MODE 3 | 66 | #define S_DUART_PARITY_MODE 3 |
67 | #define M_DUART_PARITY_MODE _SB_MAKEMASK(2,S_DUART_PARITY_MODE) | 67 | #define M_DUART_PARITY_MODE _SB_MAKEMASK(2, S_DUART_PARITY_MODE) |
68 | #define V_DUART_PARITY_MODE(x) _SB_MAKEVALUE(x,S_DUART_PARITY_MODE) | 68 | #define V_DUART_PARITY_MODE(x) _SB_MAKEVALUE(x, S_DUART_PARITY_MODE) |
69 | 69 | ||
70 | #define K_DUART_PARITY_MODE_ADD 0 | 70 | #define K_DUART_PARITY_MODE_ADD 0 |
71 | #define K_DUART_PARITY_MODE_ADD_FIXED 1 | 71 | #define K_DUART_PARITY_MODE_ADD_FIXED 1 |
@@ -89,7 +89,7 @@ | |||
89 | * Register: DUART_MODE_REG_2_B | 89 | * Register: DUART_MODE_REG_2_B |
90 | */ | 90 | */ |
91 | 91 | ||
92 | #define M_DUART_MODE_RESERVED1 _SB_MAKEMASK(3,0) /* ignored */ | 92 | #define M_DUART_MODE_RESERVED1 _SB_MAKEMASK(3, 0) /* ignored */ |
93 | 93 | ||
94 | #define M_DUART_STOP_BIT_LEN_2 _SB_MAKEMASK1(3) | 94 | #define M_DUART_STOP_BIT_LEN_2 _SB_MAKEMASK1(3) |
95 | #define M_DUART_STOP_BIT_LEN_1 0 | 95 | #define M_DUART_STOP_BIT_LEN_1 0 |
@@ -100,8 +100,8 @@ | |||
100 | #define M_DUART_MODE_RESERVED2 _SB_MAKEMASK1(5) /* must be zero */ | 100 | #define M_DUART_MODE_RESERVED2 _SB_MAKEMASK1(5) /* must be zero */ |
101 | 101 | ||
102 | #define S_DUART_CHAN_MODE 6 | 102 | #define S_DUART_CHAN_MODE 6 |
103 | #define M_DUART_CHAN_MODE _SB_MAKEMASK(2,S_DUART_CHAN_MODE) | 103 | #define M_DUART_CHAN_MODE _SB_MAKEMASK(2, S_DUART_CHAN_MODE) |
104 | #define V_DUART_CHAN_MODE(x) _SB_MAKEVALUE(x,S_DUART_CHAN_MODE) | 104 | #define V_DUART_CHAN_MODE(x) _SB_MAKEVALUE(x, S_DUART_CHAN_MODE) |
105 | 105 | ||
106 | #define K_DUART_CHAN_MODE_NORMAL 0 | 106 | #define K_DUART_CHAN_MODE_NORMAL 0 |
107 | #define K_DUART_CHAN_MODE_LCL_LOOP 2 | 107 | #define K_DUART_CHAN_MODE_LCL_LOOP 2 |
@@ -123,8 +123,8 @@ | |||
123 | #define M_DUART_TX_DIS _SB_MAKEMASK1(3) | 123 | #define M_DUART_TX_DIS _SB_MAKEMASK1(3) |
124 | 124 | ||
125 | #define S_DUART_MISC_CMD 4 | 125 | #define S_DUART_MISC_CMD 4 |
126 | #define M_DUART_MISC_CMD _SB_MAKEMASK(3,S_DUART_MISC_CMD) | 126 | #define M_DUART_MISC_CMD _SB_MAKEMASK(3, S_DUART_MISC_CMD) |
127 | #define V_DUART_MISC_CMD(x) _SB_MAKEVALUE(x,S_DUART_MISC_CMD) | 127 | #define V_DUART_MISC_CMD(x) _SB_MAKEVALUE(x, S_DUART_MISC_CMD) |
128 | 128 | ||
129 | #define K_DUART_MISC_CMD_NOACTION0 0 | 129 | #define K_DUART_MISC_CMD_NOACTION0 0 |
130 | #define K_DUART_MISC_CMD_NOACTION1 1 | 130 | #define K_DUART_MISC_CMD_NOACTION1 1 |
@@ -168,7 +168,7 @@ | |||
168 | * Register: DUART_CLK_SEL_B | 168 | * Register: DUART_CLK_SEL_B |
169 | */ | 169 | */ |
170 | 170 | ||
171 | #define M_DUART_CLK_COUNTER _SB_MAKEMASK(12,0) | 171 | #define M_DUART_CLK_COUNTER _SB_MAKEMASK(12, 0) |
172 | #define V_DUART_BAUD_RATE(x) (100000000/((x)*20)-1) | 172 | #define V_DUART_BAUD_RATE(x) (100000000/((x)*20)-1) |
173 | 173 | ||
174 | /* | 174 | /* |
@@ -179,8 +179,8 @@ | |||
179 | * Register: DUART_TX_HOLD_B | 179 | * Register: DUART_TX_HOLD_B |
180 | */ | 180 | */ |
181 | 181 | ||
182 | #define M_DUART_RX_DATA _SB_MAKEMASK(8,0) | 182 | #define M_DUART_RX_DATA _SB_MAKEMASK(8, 0) |
183 | #define M_DUART_TX_DATA _SB_MAKEMASK(8,0) | 183 | #define M_DUART_TX_DATA _SB_MAKEMASK(8, 0) |
184 | 184 | ||
185 | /* | 185 | /* |
186 | * DUART Input Port Register (Table 10-10) | 186 | * DUART Input Port Register (Table 10-10) |
@@ -202,10 +202,10 @@ | |||
202 | */ | 202 | */ |
203 | 203 | ||
204 | #define S_DUART_IN_PIN_VAL 0 | 204 | #define S_DUART_IN_PIN_VAL 0 |
205 | #define M_DUART_IN_PIN_VAL _SB_MAKEMASK(4,S_DUART_IN_PIN_VAL) | 205 | #define M_DUART_IN_PIN_VAL _SB_MAKEMASK(4, S_DUART_IN_PIN_VAL) |
206 | 206 | ||
207 | #define S_DUART_IN_PIN_CHNG 4 | 207 | #define S_DUART_IN_PIN_CHNG 4 |
208 | #define M_DUART_IN_PIN_CHNG _SB_MAKEMASK(4,S_DUART_IN_PIN_CHNG) | 208 | #define M_DUART_IN_PIN_CHNG _SB_MAKEMASK(4, S_DUART_IN_PIN_CHNG) |
209 | 209 | ||
210 | 210 | ||
211 | /* | 211 | /* |
@@ -217,7 +217,7 @@ | |||
217 | #define M_DUART_OPC2_SEL _SB_MAKEMASK1(1) | 217 | #define M_DUART_OPC2_SEL _SB_MAKEMASK1(1) |
218 | #define M_DUART_OPCR_RESERVED1 _SB_MAKEMASK1(2) /* must be zero */ | 218 | #define M_DUART_OPCR_RESERVED1 _SB_MAKEMASK1(2) /* must be zero */ |
219 | #define M_DUART_OPC3_SEL _SB_MAKEMASK1(3) | 219 | #define M_DUART_OPC3_SEL _SB_MAKEMASK1(3) |
220 | #define M_DUART_OPCR_RESERVED2 _SB_MAKEMASK(4,4) /* must be zero */ | 220 | #define M_DUART_OPCR_RESERVED2 _SB_MAKEMASK(4, 4) /* must be zero */ |
221 | 221 | ||
222 | /* | 222 | /* |
223 | * DUART Aux Control Register (Table 10-15) | 223 | * DUART Aux Control Register (Table 10-15) |
@@ -228,7 +228,7 @@ | |||
228 | #define M_DUART_IP1_CHNG_ENA _SB_MAKEMASK1(1) | 228 | #define M_DUART_IP1_CHNG_ENA _SB_MAKEMASK1(1) |
229 | #define M_DUART_IP2_CHNG_ENA _SB_MAKEMASK1(2) | 229 | #define M_DUART_IP2_CHNG_ENA _SB_MAKEMASK1(2) |
230 | #define M_DUART_IP3_CHNG_ENA _SB_MAKEMASK1(3) | 230 | #define M_DUART_IP3_CHNG_ENA _SB_MAKEMASK1(3) |
231 | #define M_DUART_ACR_RESERVED _SB_MAKEMASK(4,4) | 231 | #define M_DUART_ACR_RESERVED _SB_MAKEMASK(4, 4) |
232 | 232 | ||
233 | #define M_DUART_CTS_CHNG_ENA _SB_MAKEMASK1(0) | 233 | #define M_DUART_CTS_CHNG_ENA _SB_MAKEMASK1(0) |
234 | #define M_DUART_CIN_CHNG_ENA _SB_MAKEMASK1(2) | 234 | #define M_DUART_CIN_CHNG_ENA _SB_MAKEMASK1(2) |
@@ -242,18 +242,18 @@ | |||
242 | 242 | ||
243 | #define S_DUART_ISR_RX_A 1 | 243 | #define S_DUART_ISR_RX_A 1 |
244 | #define M_DUART_ISR_RX_A _SB_MAKEMASK1(S_DUART_ISR_RX_A) | 244 | #define M_DUART_ISR_RX_A _SB_MAKEMASK1(S_DUART_ISR_RX_A) |
245 | #define V_DUART_ISR_RX_A(x) _SB_MAKEVALUE(x,S_DUART_ISR_RX_A) | 245 | #define V_DUART_ISR_RX_A(x) _SB_MAKEVALUE(x, S_DUART_ISR_RX_A) |
246 | #define G_DUART_ISR_RX_A(x) _SB_GETVALUE(x,S_DUART_ISR_RX_A,M_DUART_ISR_RX_A) | 246 | #define G_DUART_ISR_RX_A(x) _SB_GETVALUE(x, S_DUART_ISR_RX_A, M_DUART_ISR_RX_A) |
247 | 247 | ||
248 | #define M_DUART_ISR_BRK_A _SB_MAKEMASK1(2) | 248 | #define M_DUART_ISR_BRK_A _SB_MAKEMASK1(2) |
249 | #define M_DUART_ISR_IN_A _SB_MAKEMASK1(3) | 249 | #define M_DUART_ISR_IN_A _SB_MAKEMASK1(3) |
250 | #define M_DUART_ISR_ALL_A _SB_MAKEMASK(4,0) | 250 | #define M_DUART_ISR_ALL_A _SB_MAKEMASK(4, 0) |
251 | 251 | ||
252 | #define M_DUART_ISR_TX_B _SB_MAKEMASK1(4) | 252 | #define M_DUART_ISR_TX_B _SB_MAKEMASK1(4) |
253 | #define M_DUART_ISR_RX_B _SB_MAKEMASK1(5) | 253 | #define M_DUART_ISR_RX_B _SB_MAKEMASK1(5) |
254 | #define M_DUART_ISR_BRK_B _SB_MAKEMASK1(6) | 254 | #define M_DUART_ISR_BRK_B _SB_MAKEMASK1(6) |
255 | #define M_DUART_ISR_IN_B _SB_MAKEMASK1(7) | 255 | #define M_DUART_ISR_IN_B _SB_MAKEMASK1(7) |
256 | #define M_DUART_ISR_ALL_B _SB_MAKEMASK(4,4) | 256 | #define M_DUART_ISR_ALL_B _SB_MAKEMASK(4, 4) |
257 | 257 | ||
258 | /* | 258 | /* |
259 | * DUART Channel A Interrupt Status Register (Table 10-17) | 259 | * DUART Channel A Interrupt Status Register (Table 10-17) |
@@ -266,8 +266,8 @@ | |||
266 | #define M_DUART_ISR_RX _SB_MAKEMASK1(1) | 266 | #define M_DUART_ISR_RX _SB_MAKEMASK1(1) |
267 | #define M_DUART_ISR_BRK _SB_MAKEMASK1(2) | 267 | #define M_DUART_ISR_BRK _SB_MAKEMASK1(2) |
268 | #define M_DUART_ISR_IN _SB_MAKEMASK1(3) | 268 | #define M_DUART_ISR_IN _SB_MAKEMASK1(3) |
269 | #define M_DUART_ISR_ALL _SB_MAKEMASK(4,0) | 269 | #define M_DUART_ISR_ALL _SB_MAKEMASK(4, 0) |
270 | #define M_DUART_ISR_RESERVED _SB_MAKEMASK(4,4) | 270 | #define M_DUART_ISR_RESERVED _SB_MAKEMASK(4, 4) |
271 | 271 | ||
272 | /* | 272 | /* |
273 | * DUART Interrupt Mask Register (Table 10-19) | 273 | * DUART Interrupt Mask Register (Table 10-19) |
@@ -278,13 +278,13 @@ | |||
278 | #define M_DUART_IMR_RX_A _SB_MAKEMASK1(1) | 278 | #define M_DUART_IMR_RX_A _SB_MAKEMASK1(1) |
279 | #define M_DUART_IMR_BRK_A _SB_MAKEMASK1(2) | 279 | #define M_DUART_IMR_BRK_A _SB_MAKEMASK1(2) |
280 | #define M_DUART_IMR_IN_A _SB_MAKEMASK1(3) | 280 | #define M_DUART_IMR_IN_A _SB_MAKEMASK1(3) |
281 | #define M_DUART_IMR_ALL_A _SB_MAKEMASK(4,0) | 281 | #define M_DUART_IMR_ALL_A _SB_MAKEMASK(4, 0) |
282 | 282 | ||
283 | #define M_DUART_IMR_TX_B _SB_MAKEMASK1(4) | 283 | #define M_DUART_IMR_TX_B _SB_MAKEMASK1(4) |
284 | #define M_DUART_IMR_RX_B _SB_MAKEMASK1(5) | 284 | #define M_DUART_IMR_RX_B _SB_MAKEMASK1(5) |
285 | #define M_DUART_IMR_BRK_B _SB_MAKEMASK1(6) | 285 | #define M_DUART_IMR_BRK_B _SB_MAKEMASK1(6) |
286 | #define M_DUART_IMR_IN_B _SB_MAKEMASK1(7) | 286 | #define M_DUART_IMR_IN_B _SB_MAKEMASK1(7) |
287 | #define M_DUART_IMR_ALL_B _SB_MAKEMASK(4,4) | 287 | #define M_DUART_IMR_ALL_B _SB_MAKEMASK(4, 4) |
288 | 288 | ||
289 | /* | 289 | /* |
290 | * DUART Channel A Interrupt Mask Register (Table 10-20) | 290 | * DUART Channel A Interrupt Mask Register (Table 10-20) |
@@ -297,8 +297,8 @@ | |||
297 | #define M_DUART_IMR_RX _SB_MAKEMASK1(1) | 297 | #define M_DUART_IMR_RX _SB_MAKEMASK1(1) |
298 | #define M_DUART_IMR_BRK _SB_MAKEMASK1(2) | 298 | #define M_DUART_IMR_BRK _SB_MAKEMASK1(2) |
299 | #define M_DUART_IMR_IN _SB_MAKEMASK1(3) | 299 | #define M_DUART_IMR_IN _SB_MAKEMASK1(3) |
300 | #define M_DUART_IMR_ALL _SB_MAKEMASK(4,0) | 300 | #define M_DUART_IMR_ALL _SB_MAKEMASK(4, 0) |
301 | #define M_DUART_IMR_RESERVED _SB_MAKEMASK(4,4) | 301 | #define M_DUART_IMR_RESERVED _SB_MAKEMASK(4, 4) |
302 | 302 | ||
303 | 303 | ||
304 | /* | 304 | /* |
@@ -310,7 +310,7 @@ | |||
310 | #define M_DUART_SET_OPR1 _SB_MAKEMASK1(1) | 310 | #define M_DUART_SET_OPR1 _SB_MAKEMASK1(1) |
311 | #define M_DUART_SET_OPR2 _SB_MAKEMASK1(2) | 311 | #define M_DUART_SET_OPR2 _SB_MAKEMASK1(2) |
312 | #define M_DUART_SET_OPR3 _SB_MAKEMASK1(3) | 312 | #define M_DUART_SET_OPR3 _SB_MAKEMASK1(3) |
313 | #define M_DUART_OPSR_RESERVED _SB_MAKEMASK(4,4) | 313 | #define M_DUART_OPSR_RESERVED _SB_MAKEMASK(4, 4) |
314 | 314 | ||
315 | /* | 315 | /* |
316 | * DUART Output Port Clear Register (Table 10-23) | 316 | * DUART Output Port Clear Register (Table 10-23) |
@@ -321,7 +321,7 @@ | |||
321 | #define M_DUART_CLR_OPR1 _SB_MAKEMASK1(1) | 321 | #define M_DUART_CLR_OPR1 _SB_MAKEMASK1(1) |
322 | #define M_DUART_CLR_OPR2 _SB_MAKEMASK1(2) | 322 | #define M_DUART_CLR_OPR2 _SB_MAKEMASK1(2) |
323 | #define M_DUART_CLR_OPR3 _SB_MAKEMASK1(3) | 323 | #define M_DUART_CLR_OPR3 _SB_MAKEMASK1(3) |
324 | #define M_DUART_OPCR_RESERVED _SB_MAKEMASK(4,4) | 324 | #define M_DUART_OPCR_RESERVED _SB_MAKEMASK(4, 4) |
325 | 325 | ||
326 | /* | 326 | /* |
327 | * DUART Output Port RTS Register (Table 10-24) | 327 | * DUART Output Port RTS Register (Table 10-24) |
@@ -332,7 +332,7 @@ | |||
332 | #define M_DUART_OUT_PIN_SET1 _SB_MAKEMASK1(1) | 332 | #define M_DUART_OUT_PIN_SET1 _SB_MAKEMASK1(1) |
333 | #define M_DUART_OUT_PIN_CLR0 _SB_MAKEMASK1(2) | 333 | #define M_DUART_OUT_PIN_CLR0 _SB_MAKEMASK1(2) |
334 | #define M_DUART_OUT_PIN_CLR1 _SB_MAKEMASK1(3) | 334 | #define M_DUART_OUT_PIN_CLR1 _SB_MAKEMASK1(3) |
335 | #define M_DUART_OPRR_RESERVED _SB_MAKEMASK(4,4) | 335 | #define M_DUART_OPRR_RESERVED _SB_MAKEMASK(4, 4) |
336 | 336 | ||
337 | #define M_DUART_OUT_PIN_SET(chan) \ | 337 | #define M_DUART_OUT_PIN_SET(chan) \ |
338 | (chan == 0 ? M_DUART_OUT_PIN_SET0 : M_DUART_OUT_PIN_SET1) | 338 | (chan == 0 ? M_DUART_OUT_PIN_SET0 : M_DUART_OUT_PIN_SET1) |
@@ -345,14 +345,14 @@ | |||
345 | */ | 345 | */ |
346 | 346 | ||
347 | #define S_DUART_SIG_FULL _SB_MAKE64(0) | 347 | #define S_DUART_SIG_FULL _SB_MAKE64(0) |
348 | #define M_DUART_SIG_FULL _SB_MAKEMASK(4,S_DUART_SIG_FULL) | 348 | #define M_DUART_SIG_FULL _SB_MAKEMASK(4, S_DUART_SIG_FULL) |
349 | #define V_DUART_SIG_FULL(x) _SB_MAKEVALUE(x,S_DUART_SIG_FULL) | 349 | #define V_DUART_SIG_FULL(x) _SB_MAKEVALUE(x, S_DUART_SIG_FULL) |
350 | #define G_DUART_SIG_FULL(x) _SB_GETVALUE(x,S_DUART_SIG_FULL,M_DUART_SIG_FULL) | 350 | #define G_DUART_SIG_FULL(x) _SB_GETVALUE(x, S_DUART_SIG_FULL, M_DUART_SIG_FULL) |
351 | 351 | ||
352 | #define S_DUART_INT_TIME _SB_MAKE64(4) | 352 | #define S_DUART_INT_TIME _SB_MAKE64(4) |
353 | #define M_DUART_INT_TIME _SB_MAKEMASK(4,S_DUART_INT_TIME) | 353 | #define M_DUART_INT_TIME _SB_MAKEMASK(4, S_DUART_INT_TIME) |
354 | #define V_DUART_INT_TIME(x) _SB_MAKEVALUE(x,S_DUART_INT_TIME) | 354 | #define V_DUART_INT_TIME(x) _SB_MAKEVALUE(x, S_DUART_INT_TIME) |
355 | #define G_DUART_INT_TIME(x) _SB_GETVALUE(x,S_DUART_INT_TIME,M_DUART_INT_TIME) | 355 | #define G_DUART_INT_TIME(x) _SB_GETVALUE(x, S_DUART_INT_TIME, M_DUART_INT_TIME) |
356 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ | 356 | #endif /* 1250 PASS2 || 112x PASS1 || 1480 */ |
357 | 357 | ||
358 | 358 | ||
diff --git a/include/asm-mips/siginfo.h b/include/asm-mips/siginfo.h index 2e32949bd6..96e28f18da 100644 --- a/include/asm-mips/siginfo.h +++ b/include/asm-mips/siginfo.h | |||
@@ -106,8 +106,8 @@ typedef struct siginfo { | |||
106 | #undef SI_TIMER | 106 | #undef SI_TIMER |
107 | #undef SI_MESGQ | 107 | #undef SI_MESGQ |
108 | #define SI_ASYNCIO -2 /* sent by AIO completion */ | 108 | #define SI_ASYNCIO -2 /* sent by AIO completion */ |
109 | #define SI_TIMER __SI_CODE(__SI_TIMER,-3) /* sent by timer expiration */ | 109 | #define SI_TIMER __SI_CODE(__SI_TIMER, -3) /* sent by timer expiration */ |
110 | #define SI_MESGQ __SI_CODE(__SI_MESGQ,-4) /* sent by real time mesq state change */ | 110 | #define SI_MESGQ __SI_CODE(__SI_MESGQ, -4) /* sent by real time mesq state change */ |
111 | 111 | ||
112 | #ifdef __KERNEL__ | 112 | #ifdef __KERNEL__ |
113 | 113 | ||
diff --git a/include/asm-mips/sim.h b/include/asm-mips/sim.h index 67c4fe52bb..0cd719fabb 100644 --- a/include/asm-mips/sim.h +++ b/include/asm-mips/sim.h | |||
@@ -18,7 +18,7 @@ | |||
18 | #ifdef CONFIG_32BIT | 18 | #ifdef CONFIG_32BIT |
19 | 19 | ||
20 | #define save_static_function(symbol) \ | 20 | #define save_static_function(symbol) \ |
21 | __asm__ ( \ | 21 | __asm__( \ |
22 | ".text\n\t" \ | 22 | ".text\n\t" \ |
23 | ".globl\t" #symbol "\n\t" \ | 23 | ".globl\t" #symbol "\n\t" \ |
24 | ".align\t2\n\t" \ | 24 | ".align\t2\n\t" \ |
@@ -46,7 +46,7 @@ __asm__ ( \ | |||
46 | #ifdef CONFIG_64BIT | 46 | #ifdef CONFIG_64BIT |
47 | 47 | ||
48 | #define save_static_function(symbol) \ | 48 | #define save_static_function(symbol) \ |
49 | __asm__ ( \ | 49 | __asm__( \ |
50 | ".text\n\t" \ | 50 | ".text\n\t" \ |
51 | ".globl\t" #symbol "\n\t" \ | 51 | ".globl\t" #symbol "\n\t" \ |
52 | ".align\t2\n\t" \ | 52 | ".align\t2\n\t" \ |
diff --git a/include/asm-mips/smp.h b/include/asm-mips/smp.h index 13aef6af42..dc770025a9 100644 --- a/include/asm-mips/smp.h +++ b/include/asm-mips/smp.h | |||
@@ -60,6 +60,15 @@ extern cpumask_t phys_cpu_present_map; | |||
60 | */ | 60 | */ |
61 | extern void core_send_ipi(int cpu, unsigned int action); | 61 | extern void core_send_ipi(int cpu, unsigned int action); |
62 | 62 | ||
63 | static inline void core_send_ipi_mask(cpumask_t mask, unsigned int action) | ||
64 | { | ||
65 | unsigned int i; | ||
66 | |||
67 | for_each_cpu_mask(i, mask) | ||
68 | core_send_ipi(i, action); | ||
69 | } | ||
70 | |||
71 | |||
63 | /* | 72 | /* |
64 | * Firmware CPU startup hook | 73 | * Firmware CPU startup hook |
65 | */ | 74 | */ |
diff --git a/include/asm-mips/smtc_ipi.h b/include/asm-mips/smtc_ipi.h index a52a4a7a36..e09131a612 100644 --- a/include/asm-mips/smtc_ipi.h +++ b/include/asm-mips/smtc_ipi.h | |||
@@ -34,6 +34,7 @@ struct smtc_ipi { | |||
34 | 34 | ||
35 | #define LINUX_SMP_IPI 1 | 35 | #define LINUX_SMP_IPI 1 |
36 | #define SMTC_CLOCK_TICK 2 | 36 | #define SMTC_CLOCK_TICK 2 |
37 | #define IRQ_AFFINITY_IPI 3 | ||
37 | 38 | ||
38 | /* | 39 | /* |
39 | * A queue of IPI messages | 40 | * A queue of IPI messages |
diff --git a/include/asm-mips/sn/addrs.h b/include/asm-mips/sn/addrs.h index 8fa0af6b68..fec9bdd349 100644 --- a/include/asm-mips/sn/addrs.h +++ b/include/asm-mips/sn/addrs.h | |||
@@ -50,7 +50,7 @@ | |||
50 | #define TO_NODE_ADDRSPACE(_pa) (UINT64_CAST (_pa) & NODE_ADDRSPACE_MASK) | 50 | #define TO_NODE_ADDRSPACE(_pa) (UINT64_CAST (_pa) & NODE_ADDRSPACE_MASK) |
51 | 51 | ||
52 | #define CHANGE_ADDR_NASID(_pa, _nasid) \ | 52 | #define CHANGE_ADDR_NASID(_pa, _nasid) \ |
53 | ((UINT64_CAST (_pa) & ~NASID_MASK) | \ | 53 | ((UINT64_CAST(_pa) & ~NASID_MASK) | \ |
54 | (UINT64_CAST(_nasid) << NASID_SHFT)) | 54 | (UINT64_CAST(_nasid) << NASID_SHFT)) |
55 | 55 | ||
56 | 56 | ||
@@ -75,7 +75,7 @@ | |||
75 | 75 | ||
76 | 76 | ||
77 | #define RAW_NODE_SWIN_BASE(nasid, widget) \ | 77 | #define RAW_NODE_SWIN_BASE(nasid, widget) \ |
78 | (NODE_IO_BASE(nasid) + (UINT64_CAST (widget) << SWIN_SIZE_BITS)) | 78 | (NODE_IO_BASE(nasid) + (UINT64_CAST(widget) << SWIN_SIZE_BITS)) |
79 | 79 | ||
80 | #define WIDGETID_GET(addr) ((unsigned char)((addr >> SWIN_SIZE_BITS) & 0xff)) | 80 | #define WIDGETID_GET(addr) ((unsigned char)((addr >> SWIN_SIZE_BITS) & 0xff)) |
81 | 81 | ||
@@ -192,31 +192,31 @@ | |||
192 | #define BDDIR_ENTRY_LO(_pa) ((HSPEC_BASE + \ | 192 | #define BDDIR_ENTRY_LO(_pa) ((HSPEC_BASE + \ |
193 | NODE_ADDRSPACE_SIZE * 3 / 4 + \ | 193 | NODE_ADDRSPACE_SIZE * 3 / 4 + \ |
194 | 0x200) | \ | 194 | 0x200) | \ |
195 | UINT64_CAST (_pa) & NASID_MASK | \ | 195 | UINT64_CAST(_pa) & NASID_MASK | \ |
196 | UINT64_CAST (_pa) >> 2 & BDDIR_UPPER_MASK | \ | 196 | UINT64_CAST(_pa) >> 2 & BDDIR_UPPER_MASK | \ |
197 | UINT64_CAST (_pa) >> 3 & 0x1f << 4) | 197 | UINT64_CAST(_pa) >> 3 & 0x1f << 4) |
198 | 198 | ||
199 | #define BDDIR_ENTRY_HI(_pa) ((HSPEC_BASE + \ | 199 | #define BDDIR_ENTRY_HI(_pa) ((HSPEC_BASE + \ |
200 | NODE_ADDRSPACE_SIZE * 3 / 4 + \ | 200 | NODE_ADDRSPACE_SIZE * 3 / 4 + \ |
201 | 0x208) | \ | 201 | 0x208) | \ |
202 | UINT64_CAST (_pa) & NASID_MASK | \ | 202 | UINT64_CAST(_pa) & NASID_MASK | \ |
203 | UINT64_CAST (_pa) >> 2 & BDDIR_UPPER_MASK | \ | 203 | UINT64_CAST(_pa) >> 2 & BDDIR_UPPER_MASK | \ |
204 | UINT64_CAST (_pa) >> 3 & 0x1f << 4) | 204 | UINT64_CAST(_pa) >> 3 & 0x1f << 4) |
205 | 205 | ||
206 | #define BDPRT_ENTRY(_pa, _rgn) ((HSPEC_BASE + \ | 206 | #define BDPRT_ENTRY(_pa, _rgn) ((HSPEC_BASE + \ |
207 | NODE_ADDRSPACE_SIZE * 3 / 4) | \ | 207 | NODE_ADDRSPACE_SIZE * 3 / 4) | \ |
208 | UINT64_CAST (_pa) & NASID_MASK | \ | 208 | UINT64_CAST(_pa) & NASID_MASK | \ |
209 | UINT64_CAST (_pa) >> 2 & BDDIR_UPPER_MASK | \ | 209 | UINT64_CAST(_pa) >> 2 & BDDIR_UPPER_MASK | \ |
210 | (_rgn) << 3) | 210 | (_rgn) << 3) |
211 | #define BDPRT_ENTRY_ADDR(_pa,_rgn) (BDPRT_ENTRY((_pa),(_rgn))) | 211 | #define BDPRT_ENTRY_ADDR(_pa, _rgn) (BDPRT_ENTRY((_pa), (_rgn))) |
212 | #define BDPRT_ENTRY_S(_pa,_rgn,_val) (*(__psunsigned_t *)BDPRT_ENTRY((_pa),(_rgn))=(_val)) | 212 | #define BDPRT_ENTRY_S(_pa, _rgn, _val) (*(__psunsigned_t *)BDPRT_ENTRY((_pa), (_rgn))=(_val)) |
213 | #define BDPRT_ENTRY_L(_pa,_rgn) (*(__psunsigned_t *)BDPRT_ENTRY((_pa),(_rgn))) | 213 | #define BDPRT_ENTRY_L(_pa, _rgn) (*(__psunsigned_t *)BDPRT_ENTRY((_pa), (_rgn))) |
214 | 214 | ||
215 | #define BDECC_ENTRY(_pa) ((HSPEC_BASE + \ | 215 | #define BDECC_ENTRY(_pa) ((HSPEC_BASE + \ |
216 | NODE_ADDRSPACE_SIZE / 2) | \ | 216 | NODE_ADDRSPACE_SIZE / 2) | \ |
217 | UINT64_CAST (_pa) & NASID_MASK | \ | 217 | UINT64_CAST(_pa) & NASID_MASK | \ |
218 | UINT64_CAST (_pa) >> 2 & BDECC_UPPER_MASK | \ | 218 | UINT64_CAST(_pa) >> 2 & BDECC_UPPER_MASK | \ |
219 | UINT64_CAST (_pa) >> 3 & 3) | 219 | UINT64_CAST(_pa) >> 3 & 3) |
220 | 220 | ||
221 | /* | 221 | /* |
222 | * Macro to convert a back door directory or protection address into the | 222 | * Macro to convert a back door directory or protection address into the |
@@ -225,16 +225,16 @@ | |||
225 | #define BDADDR_IS_DIR(_ba) ((UINT64_CAST (_ba) & 0x200) != 0) | 225 | #define BDADDR_IS_DIR(_ba) ((UINT64_CAST (_ba) & 0x200) != 0) |
226 | #define BDADDR_IS_PRT(_ba) ((UINT64_CAST (_ba) & 0x200) == 0) | 226 | #define BDADDR_IS_PRT(_ba) ((UINT64_CAST (_ba) & 0x200) == 0) |
227 | 227 | ||
228 | #define BDDIR_TO_MEM(_ba) (UINT64_CAST (_ba) & NASID_MASK | \ | 228 | #define BDDIR_TO_MEM(_ba) (UINT64_CAST (_ba) & NASID_MASK | \ |
229 | (UINT64_CAST (_ba) & BDDIR_UPPER_MASK)<<2 | \ | 229 | (UINT64_CAST(_ba) & BDDIR_UPPER_MASK)<<2 | \ |
230 | (UINT64_CAST (_ba) & 0x1f << 4) << 3) | 230 | (UINT64_CAST(_ba) & 0x1f << 4) << 3) |
231 | 231 | ||
232 | #define BDPRT_TO_MEM(_ba) (UINT64_CAST (_ba) & NASID_MASK | \ | 232 | #define BDPRT_TO_MEM(_ba) (UINT64_CAST (_ba) & NASID_MASK | \ |
233 | (UINT64_CAST (_ba) & BDDIR_UPPER_MASK)<<2) | 233 | (UINT64_CAST(_ba) & BDDIR_UPPER_MASK)<<2) |
234 | 234 | ||
235 | #define BDECC_TO_MEM(_ba) (UINT64_CAST (_ba) & NASID_MASK | \ | 235 | #define BDECC_TO_MEM(_ba) (UINT64_CAST (_ba) & NASID_MASK | \ |
236 | (UINT64_CAST (_ba) & BDECC_UPPER_MASK)<<2 | \ | 236 | (UINT64_CAST(_ba) & BDECC_UPPER_MASK)<<2 | \ |
237 | (UINT64_CAST (_ba) & 3) << 3) | 237 | (UINT64_CAST(_ba) & 3) << 3) |
238 | #endif /* CONFIG_SGI_IP27 */ | 238 | #endif /* CONFIG_SGI_IP27 */ |
239 | 239 | ||
240 | 240 | ||
@@ -282,7 +282,7 @@ | |||
282 | * the base of the register space. | 282 | * the base of the register space. |
283 | */ | 283 | */ |
284 | #define HUB_REG_PTR(_base, _off) \ | 284 | #define HUB_REG_PTR(_base, _off) \ |
285 | (HUBREG_CAST ((__psunsigned_t)(_base) + (__psunsigned_t)(_off))) | 285 | (HUBREG_CAST((__psunsigned_t)(_base) + (__psunsigned_t)(_off))) |
286 | 286 | ||
287 | #define HUB_REG_PTR_L(_base, _off) \ | 287 | #define HUB_REG_PTR_L(_base, _off) \ |
288 | HUB_L(HUB_REG_PTR((_base), (_off))) | 288 | HUB_L(HUB_REG_PTR((_base), (_off))) |
diff --git a/include/asm-mips/sn/arch.h b/include/asm-mips/sn/arch.h index da523de628..bd75945e10 100644 --- a/include/asm-mips/sn/arch.h +++ b/include/asm-mips/sn/arch.h | |||
@@ -19,8 +19,8 @@ | |||
19 | 19 | ||
20 | typedef u64 hubreg_t; | 20 | typedef u64 hubreg_t; |
21 | 21 | ||
22 | #define cputonasid(cpu) (cpu_data[(cpu)].p_nasid) | 22 | #define cputonasid(cpu) (sn_cpu_info[(cpu)].p_nasid) |
23 | #define cputoslice(cpu) (cpu_data[(cpu)].p_slice) | 23 | #define cputoslice(cpu) (sn_cpu_info[(cpu)].p_slice) |
24 | #define makespnum(_nasid, _slice) \ | 24 | #define makespnum(_nasid, _slice) \ |
25 | (((_nasid) << CPUS_PER_NODE_SHFT) | (_slice)) | 25 | (((_nasid) << CPUS_PER_NODE_SHFT) | (_slice)) |
26 | 26 | ||
diff --git a/include/asm-mips/sn/io.h b/include/asm-mips/sn/io.h index ab2fa8cd26..24c6775fbb 100644 --- a/include/asm-mips/sn/io.h +++ b/include/asm-mips/sn/io.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #ifndef _ASM_SN_IO_H | 9 | #ifndef _ASM_SN_IO_H |
10 | #define _ASM_SN_IO_H | 10 | #define _ASM_SN_IO_H |
11 | 11 | ||
12 | #if defined (CONFIG_SGI_IP27) | 12 | #if defined(CONFIG_SGI_IP27) |
13 | #include <asm/sn/sn0/hubio.h> | 13 | #include <asm/sn/sn0/hubio.h> |
14 | #endif | 14 | #endif |
15 | 15 | ||
diff --git a/include/asm-mips/sn/klconfig.h b/include/asm-mips/sn/klconfig.h index 82aeb9e322..96cfd2ab1b 100644 --- a/include/asm-mips/sn/klconfig.h +++ b/include/asm-mips/sn/klconfig.h | |||
@@ -51,8 +51,8 @@ | |||
51 | 51 | ||
52 | #if defined(CONFIG_SGI_IP27) || defined(CONFIG_SGI_IP35) | 52 | #if defined(CONFIG_SGI_IP27) || defined(CONFIG_SGI_IP35) |
53 | #include <asm/sn/agent.h> | 53 | #include <asm/sn/agent.h> |
54 | #include <asm/arc/types.h> | 54 | #include <asm/fw/arc/types.h> |
55 | #include <asm/arc/hinv.h> | 55 | #include <asm/fw/arc/hinv.h> |
56 | #if defined(CONFIG_SGI_IP35) | 56 | #if defined(CONFIG_SGI_IP35) |
57 | // The hack file has to be before vector and after sn0_fru.... | 57 | // The hack file has to be before vector and after sn0_fru.... |
58 | #include <asm/hack.h> | 58 | #include <asm/hack.h> |
@@ -405,7 +405,7 @@ typedef struct kl_config_hdr { | |||
405 | #define KLTYPE(_x) ((_x) & KLTYPE_MASK) | 405 | #define KLTYPE(_x) ((_x) & KLTYPE_MASK) |
406 | #define IS_MIO_PRESENT(l) ((l->brd_type == KLTYPE_BASEIO) && \ | 406 | #define IS_MIO_PRESENT(l) ((l->brd_type == KLTYPE_BASEIO) && \ |
407 | (l->brd_flags & SECOND_NIC_PRESENT)) | 407 | (l->brd_flags & SECOND_NIC_PRESENT)) |
408 | #define IS_MIO_IOC3(l,n) (IS_MIO_PRESENT(l) && (n > 2)) | 408 | #define IS_MIO_IOC3(l, n) (IS_MIO_PRESENT(l) && (n > 2)) |
409 | 409 | ||
410 | /* | 410 | /* |
411 | * board structures | 411 | * board structures |
diff --git a/include/asm-mips/sn/kldir.h b/include/asm-mips/sn/kldir.h index 0573cbffc1..1327e12e96 100644 --- a/include/asm-mips/sn/kldir.h +++ b/include/asm-mips/sn/kldir.h | |||
@@ -140,7 +140,7 @@ | |||
140 | */ | 140 | */ |
141 | #define SYMMON_STACK_SIZE 0x8000 | 141 | #define SYMMON_STACK_SIZE 0x8000 |
142 | 142 | ||
143 | #if defined (PROM) | 143 | #if defined(PROM) |
144 | 144 | ||
145 | /* | 145 | /* |
146 | * These defines are prom version dependent. No code other than the IP27 | 146 | * These defines are prom version dependent. No code other than the IP27 |
diff --git a/include/asm-mips/sn/sn0/addrs.h b/include/asm-mips/sn/sn0/addrs.h index 9e8cc52910..b06190093b 100644 --- a/include/asm-mips/sn/sn0/addrs.h +++ b/include/asm-mips/sn/sn0/addrs.h | |||
@@ -91,7 +91,7 @@ | |||
91 | : RAW_NODE_SWIN_BASE(nasid, widget)) | 91 | : RAW_NODE_SWIN_BASE(nasid, widget)) |
92 | #else /* __ASSEMBLY__ */ | 92 | #else /* __ASSEMBLY__ */ |
93 | #define NODE_SWIN_BASE(nasid, widget) \ | 93 | #define NODE_SWIN_BASE(nasid, widget) \ |
94 | (NODE_IO_BASE(nasid) + (UINT64_CAST (widget) << SWIN_SIZE_BITS)) | 94 | (NODE_IO_BASE(nasid) + (UINT64_CAST(widget) << SWIN_SIZE_BITS)) |
95 | #endif /* __ASSEMBLY__ */ | 95 | #endif /* __ASSEMBLY__ */ |
96 | 96 | ||
97 | /* | 97 | /* |
@@ -106,7 +106,7 @@ | |||
106 | #define BWIN_WIDGET_MASK 0x7 | 106 | #define BWIN_WIDGET_MASK 0x7 |
107 | #define NODE_BWIN_BASE0(nasid) (NODE_IO_BASE(nasid) + BWIN_SIZE) | 107 | #define NODE_BWIN_BASE0(nasid) (NODE_IO_BASE(nasid) + BWIN_SIZE) |
108 | #define NODE_BWIN_BASE(nasid, bigwin) (NODE_BWIN_BASE0(nasid) + \ | 108 | #define NODE_BWIN_BASE(nasid, bigwin) (NODE_BWIN_BASE0(nasid) + \ |
109 | (UINT64_CAST (bigwin) << BWIN_SIZE_BITS)) | 109 | (UINT64_CAST(bigwin) << BWIN_SIZE_BITS)) |
110 | 110 | ||
111 | #define BWIN_WIDGETADDR(addr) ((addr) & BWIN_SIZEMASK) | 111 | #define BWIN_WIDGETADDR(addr) ((addr) & BWIN_SIZEMASK) |
112 | #define BWIN_WINDOWNUM(addr) (((addr) >> BWIN_SIZE_BITS) & BWIN_WIDGET_MASK) | 112 | #define BWIN_WINDOWNUM(addr) (((addr) >> BWIN_SIZE_BITS) & BWIN_WIDGET_MASK) |
@@ -259,7 +259,7 @@ | |||
259 | * CACHE_ERR_SP_PTR could either contain an address to the stack, or | 259 | * CACHE_ERR_SP_PTR could either contain an address to the stack, or |
260 | * the stack could start at CACHE_ERR_SP_PTR | 260 | * the stack could start at CACHE_ERR_SP_PTR |
261 | */ | 261 | */ |
262 | #if defined (HUB_ERR_STS_WAR) | 262 | #if defined(HUB_ERR_STS_WAR) |
263 | #define CACHE_ERR_EFRAME 0x480 | 263 | #define CACHE_ERR_EFRAME 0x480 |
264 | #else /* HUB_ERR_STS_WAR */ | 264 | #else /* HUB_ERR_STS_WAR */ |
265 | #define CACHE_ERR_EFRAME 0x400 | 265 | #define CACHE_ERR_EFRAME 0x400 |
@@ -275,7 +275,7 @@ | |||
275 | 275 | ||
276 | #define _ARCSPROM | 276 | #define _ARCSPROM |
277 | 277 | ||
278 | #if defined (HUB_ERR_STS_WAR) | 278 | #if defined(HUB_ERR_STS_WAR) |
279 | 279 | ||
280 | #define ERR_STS_WAR_REGISTER IIO_IIBUSERR | 280 | #define ERR_STS_WAR_REGISTER IIO_IIBUSERR |
281 | #define ERR_STS_WAR_ADDR LOCAL_HUB_ADDR(IIO_IIBUSERR) | 281 | #define ERR_STS_WAR_ADDR LOCAL_HUB_ADDR(IIO_IIBUSERR) |
diff --git a/include/asm-mips/sni.h b/include/asm-mips/sni.h index ddaf36a1e3..4d43dbb7f8 100644 --- a/include/asm-mips/sni.h +++ b/include/asm-mips/sni.h | |||
@@ -194,17 +194,17 @@ extern unsigned int sni_brd_type; | |||
194 | #define PCIMT_INT_ACKNOWLEDGE 0xba000000 | 194 | #define PCIMT_INT_ACKNOWLEDGE 0xba000000 |
195 | 195 | ||
196 | /* board specific init functions */ | 196 | /* board specific init functions */ |
197 | extern void sni_a20r_init (void); | 197 | extern void sni_a20r_init(void); |
198 | extern void sni_pcit_init (void); | 198 | extern void sni_pcit_init(void); |
199 | extern void sni_rm200_init (void); | 199 | extern void sni_rm200_init(void); |
200 | extern void sni_pcimt_init (void); | 200 | extern void sni_pcimt_init(void); |
201 | 201 | ||
202 | /* board specific irq init functions */ | 202 | /* board specific irq init functions */ |
203 | extern void sni_a20r_irq_init (void); | 203 | extern void sni_a20r_irq_init(void); |
204 | extern void sni_pcit_irq_init (void); | 204 | extern void sni_pcit_irq_init(void); |
205 | extern void sni_pcit_cplus_irq_init (void); | 205 | extern void sni_pcit_cplus_irq_init(void); |
206 | extern void sni_rm200_irq_init (void); | 206 | extern void sni_rm200_irq_init(void); |
207 | extern void sni_pcimt_irq_init (void); | 207 | extern void sni_pcimt_irq_init(void); |
208 | 208 | ||
209 | /* timer inits */ | 209 | /* timer inits */ |
210 | extern void sni_cpu_time_init(void); | 210 | extern void sni_cpu_time_init(void); |
diff --git a/include/asm-mips/stackframe.h b/include/asm-mips/stackframe.h index ed33366b85..fb41a8d763 100644 --- a/include/asm-mips/stackframe.h +++ b/include/asm-mips/stackframe.h | |||
@@ -91,14 +91,14 @@ | |||
91 | #else | 91 | #else |
92 | MFC0 k0, CP0_CONTEXT | 92 | MFC0 k0, CP0_CONTEXT |
93 | #endif | 93 | #endif |
94 | #if defined(CONFIG_BUILD_ELF64) || (defined(CONFIG_64BIT) && __GNUC__ < 4) | 94 | #if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32) |
95 | lui k1, %hi(kernelsp) | ||
96 | #else | ||
95 | lui k1, %highest(kernelsp) | 97 | lui k1, %highest(kernelsp) |
96 | daddiu k1, %higher(kernelsp) | 98 | daddiu k1, %higher(kernelsp) |
97 | dsll k1, 16 | 99 | dsll k1, 16 |
98 | daddiu k1, %hi(kernelsp) | 100 | daddiu k1, %hi(kernelsp) |
99 | dsll k1, 16 | 101 | dsll k1, 16 |
100 | #else | ||
101 | lui k1, %hi(kernelsp) | ||
102 | #endif | 102 | #endif |
103 | LONG_SRL k0, PTEBASE_SHIFT | 103 | LONG_SRL k0, PTEBASE_SHIFT |
104 | LONG_ADDU k1, k0 | 104 | LONG_ADDU k1, k0 |
@@ -116,14 +116,14 @@ | |||
116 | .endm | 116 | .endm |
117 | #else | 117 | #else |
118 | .macro get_saved_sp /* Uniprocessor variation */ | 118 | .macro get_saved_sp /* Uniprocessor variation */ |
119 | #if defined(CONFIG_BUILD_ELF64) || (defined(CONFIG_64BIT) && __GNUC__ < 4) | 119 | #if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32) |
120 | lui k1, %hi(kernelsp) | ||
121 | #else | ||
120 | lui k1, %highest(kernelsp) | 122 | lui k1, %highest(kernelsp) |
121 | daddiu k1, %higher(kernelsp) | 123 | daddiu k1, %higher(kernelsp) |
122 | dsll k1, k1, 16 | 124 | dsll k1, k1, 16 |
123 | daddiu k1, %hi(kernelsp) | 125 | daddiu k1, %hi(kernelsp) |
124 | dsll k1, k1, 16 | 126 | dsll k1, k1, 16 |
125 | #else | ||
126 | lui k1, %hi(kernelsp) | ||
127 | #endif | 127 | #endif |
128 | LONG_L k1, %lo(kernelsp)(k1) | 128 | LONG_L k1, %lo(kernelsp)(k1) |
129 | .endm | 129 | .endm |
@@ -393,11 +393,11 @@ | |||
393 | * and disable interrupts only for the | 393 | * and disable interrupts only for the |
394 | * current TC, using the TCStatus register. | 394 | * current TC, using the TCStatus register. |
395 | */ | 395 | */ |
396 | mfc0 t0,CP0_TCSTATUS | 396 | mfc0 t0, CP0_TCSTATUS |
397 | /* Fortunately CU 0 is in the same place in both registers */ | 397 | /* Fortunately CU 0 is in the same place in both registers */ |
398 | /* Set TCU0, TMX, TKSU (for later inversion) and IXMT */ | 398 | /* Set TCU0, TMX, TKSU (for later inversion) and IXMT */ |
399 | li t1, ST0_CU0 | 0x08001c00 | 399 | li t1, ST0_CU0 | 0x08001c00 |
400 | or t0,t1 | 400 | or t0, t1 |
401 | /* Clear TKSU, leave IXMT */ | 401 | /* Clear TKSU, leave IXMT */ |
402 | xori t0, 0x00001800 | 402 | xori t0, 0x00001800 |
403 | mtc0 t0, CP0_TCSTATUS | 403 | mtc0 t0, CP0_TCSTATUS |
@@ -429,11 +429,11 @@ | |||
429 | * current TC, using the TCStatus register. | 429 | * current TC, using the TCStatus register. |
430 | */ | 430 | */ |
431 | _ehb | 431 | _ehb |
432 | mfc0 t0,CP0_TCSTATUS | 432 | mfc0 t0, CP0_TCSTATUS |
433 | /* Fortunately CU 0 is in the same place in both registers */ | 433 | /* Fortunately CU 0 is in the same place in both registers */ |
434 | /* Set TCU0, TKSU (for later inversion) and IXMT */ | 434 | /* Set TCU0, TKSU (for later inversion) and IXMT */ |
435 | li t1, ST0_CU0 | 0x08001c00 | 435 | li t1, ST0_CU0 | 0x08001c00 |
436 | or t0,t1 | 436 | or t0, t1 |
437 | /* Clear TKSU *and* IXMT */ | 437 | /* Clear TKSU *and* IXMT */ |
438 | xori t0, 0x00001c00 | 438 | xori t0, 0x00001c00 |
439 | mtc0 t0, CP0_TCSTATUS | 439 | mtc0 t0, CP0_TCSTATUS |
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index 480b574e24..90e4b403f5 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h | |||
@@ -62,7 +62,7 @@ do { \ | |||
62 | #define __mips_mt_fpaff_switch_to(prev) do { (void) (prev); } while (0) | 62 | #define __mips_mt_fpaff_switch_to(prev) do { (void) (prev); } while (0) |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | #define switch_to(prev,next,last) \ | 65 | #define switch_to(prev, next, last) \ |
66 | do { \ | 66 | do { \ |
67 | __mips_mt_fpaff_switch_to(prev); \ | 67 | __mips_mt_fpaff_switch_to(prev); \ |
68 | if (cpu_has_dsp) \ | 68 | if (cpu_has_dsp) \ |
@@ -193,13 +193,13 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz | |||
193 | return x; | 193 | return x; |
194 | } | 194 | } |
195 | 195 | ||
196 | #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) | 196 | #define xchg(ptr, x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) |
197 | 197 | ||
198 | extern void set_handler (unsigned long offset, void *addr, unsigned long len); | 198 | extern void set_handler(unsigned long offset, void *addr, unsigned long len); |
199 | extern void set_uncached_handler (unsigned long offset, void *addr, unsigned long len); | 199 | extern void set_uncached_handler(unsigned long offset, void *addr, unsigned long len); |
200 | 200 | ||
201 | typedef void (*vi_handler_t)(void); | 201 | typedef void (*vi_handler_t)(void); |
202 | extern void *set_vi_handler (int n, vi_handler_t addr); | 202 | extern void *set_vi_handler(int n, vi_handler_t addr); |
203 | 203 | ||
204 | extern void *set_except_vector(int n, void *addr); | 204 | extern void *set_except_vector(int n, void *addr); |
205 | extern unsigned long ebase; | 205 | extern unsigned long ebase; |
diff --git a/include/asm-mips/time.h b/include/asm-mips/time.h index a632cef830..35555bd5c5 100644 --- a/include/asm-mips/time.h +++ b/include/asm-mips/time.h | |||
@@ -26,15 +26,13 @@ | |||
26 | extern spinlock_t rtc_lock; | 26 | extern spinlock_t rtc_lock; |
27 | 27 | ||
28 | /* | 28 | /* |
29 | * RTC ops. By default, they point to no-RTC functions. | 29 | * RTC ops. By default, they point to weak no-op RTC functions. |
30 | * rtc_mips_get_time - mktime(year, mon, day, hour, min, sec) in seconds. | ||
31 | * rtc_mips_set_time - reverse the above translation and set time to RTC. | 30 | * rtc_mips_set_time - reverse the above translation and set time to RTC. |
32 | * rtc_mips_set_mmss - similar to rtc_set_time, but only min and sec need | 31 | * rtc_mips_set_mmss - similar to rtc_set_time, but only min and sec need |
33 | * to be set. Used by RTC sync-up. | 32 | * to be set. Used by RTC sync-up. |
34 | */ | 33 | */ |
35 | extern unsigned long (*rtc_mips_get_time)(void); | 34 | extern int rtc_mips_set_time(unsigned long); |
36 | extern int (*rtc_mips_set_time)(unsigned long); | 35 | extern int rtc_mips_set_mmss(unsigned long); |
37 | extern int (*rtc_mips_set_mmss)(unsigned long); | ||
38 | 36 | ||
39 | /* | 37 | /* |
40 | * Timer interrupt functions. | 38 | * Timer interrupt functions. |
@@ -51,35 +49,15 @@ extern void (*mips_timer_ack)(void); | |||
51 | extern struct clocksource clocksource_mips; | 49 | extern struct clocksource clocksource_mips; |
52 | 50 | ||
53 | /* | 51 | /* |
54 | * to_tm() converts system time back to (year, mon, day, hour, min, sec). | ||
55 | * It is intended to help implement rtc_set_time() functions. | ||
56 | * Copied from PPC implementation. | ||
57 | */ | ||
58 | extern void to_tm(unsigned long tim, struct rtc_time *tm); | ||
59 | |||
60 | /* | ||
61 | * high-level timer interrupt routines. | ||
62 | */ | ||
63 | extern irqreturn_t timer_interrupt(int irq, void *dev_id); | ||
64 | |||
65 | /* | ||
66 | * the corresponding low-level timer interrupt routine. | ||
67 | */ | ||
68 | extern asmlinkage void ll_timer_interrupt(int irq); | ||
69 | |||
70 | /* | ||
71 | * profiling and process accouting is done separately in local_timer_interrupt | 52 | * profiling and process accouting is done separately in local_timer_interrupt |
72 | */ | 53 | */ |
73 | extern void local_timer_interrupt(int irq, void *dev_id); | 54 | extern void local_timer_interrupt(int irq, void *dev_id); |
74 | extern asmlinkage void ll_local_timer_interrupt(int irq); | ||
75 | 55 | ||
76 | /* | 56 | /* |
77 | * board specific routines required by time_init(). | 57 | * board specific routines required by time_init(). |
78 | * board_time_init is defaulted to NULL and can remain so. | ||
79 | * plat_timer_setup must be setup properly in machine setup routine. | ||
80 | */ | 58 | */ |
81 | struct irqaction; | 59 | struct irqaction; |
82 | extern void (*board_time_init)(void); | 60 | extern void plat_time_init(void); |
83 | extern void plat_timer_setup(struct irqaction *irq); | 61 | extern void plat_timer_setup(struct irqaction *irq); |
84 | 62 | ||
85 | /* | 63 | /* |
@@ -89,4 +67,15 @@ extern void plat_timer_setup(struct irqaction *irq); | |||
89 | */ | 67 | */ |
90 | extern unsigned int mips_hpt_frequency; | 68 | extern unsigned int mips_hpt_frequency; |
91 | 69 | ||
70 | /* | ||
71 | * The performance counter IRQ on MIPS is a close relative to the timer IRQ | ||
72 | * so it lives here. | ||
73 | */ | ||
74 | extern int (*perf_irq)(void); | ||
75 | |||
76 | /* | ||
77 | * Initialize the calling CPU's compare interrupt as clockevent device | ||
78 | */ | ||
79 | extern void mips_clockevent_init(void); | ||
80 | |||
92 | #endif /* _ASM_TIME_H */ | 81 | #endif /* _ASM_TIME_H */ |
diff --git a/include/asm-mips/timex.h b/include/asm-mips/timex.h index b80de8e0fb..87c68ae76f 100644 --- a/include/asm-mips/timex.h +++ b/include/asm-mips/timex.h | |||
@@ -48,7 +48,7 @@ | |||
48 | 48 | ||
49 | typedef unsigned int cycles_t; | 49 | typedef unsigned int cycles_t; |
50 | 50 | ||
51 | static inline cycles_t get_cycles (void) | 51 | static inline cycles_t get_cycles(void) |
52 | { | 52 | { |
53 | return read_c0_count(); | 53 | return read_c0_count(); |
54 | } | 54 | } |
diff --git a/include/asm-mips/tlbflush.h b/include/asm-mips/tlbflush.h index 276be77c3e..730e841fb0 100644 --- a/include/asm-mips/tlbflush.h +++ b/include/asm-mips/tlbflush.h | |||
@@ -37,10 +37,10 @@ extern void flush_tlb_one(unsigned long vaddr); | |||
37 | 37 | ||
38 | #define flush_tlb_all() local_flush_tlb_all() | 38 | #define flush_tlb_all() local_flush_tlb_all() |
39 | #define flush_tlb_mm(mm) local_flush_tlb_mm(mm) | 39 | #define flush_tlb_mm(mm) local_flush_tlb_mm(mm) |
40 | #define flush_tlb_range(vma,vmaddr,end) local_flush_tlb_range(vma, vmaddr, end) | 40 | #define flush_tlb_range(vma, vmaddr, end) local_flush_tlb_range(vma, vmaddr, end) |
41 | #define flush_tlb_kernel_range(vmaddr,end) \ | 41 | #define flush_tlb_kernel_range(vmaddr,end) \ |
42 | local_flush_tlb_kernel_range(vmaddr, end) | 42 | local_flush_tlb_kernel_range(vmaddr, end) |
43 | #define flush_tlb_page(vma,page) local_flush_tlb_page(vma, page) | 43 | #define flush_tlb_page(vma, page) local_flush_tlb_page(vma, page) |
44 | #define flush_tlb_one(vaddr) local_flush_tlb_one(vaddr) | 44 | #define flush_tlb_one(vaddr) local_flush_tlb_one(vaddr) |
45 | 45 | ||
46 | #endif /* CONFIG_SMP */ | 46 | #endif /* CONFIG_SMP */ |
diff --git a/include/asm-mips/tx4927/toshiba_rbtx4927.h b/include/asm-mips/tx4927/toshiba_rbtx4927.h index a60649569c..b188a659ce 100644 --- a/include/asm-mips/tx4927/toshiba_rbtx4927.h +++ b/include/asm-mips/tx4927/toshiba_rbtx4927.h | |||
@@ -28,24 +28,20 @@ | |||
28 | #define __ASM_TX4927_TOSHIBA_RBTX4927_H | 28 | #define __ASM_TX4927_TOSHIBA_RBTX4927_H |
29 | 29 | ||
30 | #include <asm/tx4927/tx4927.h> | 30 | #include <asm/tx4927/tx4927.h> |
31 | #include <asm/tx4927/tx4927_mips.h> | ||
32 | #ifdef CONFIG_PCI | 31 | #ifdef CONFIG_PCI |
33 | #include <asm/tx4927/tx4927_pci.h> | 32 | #include <asm/tx4927/tx4927_pci.h> |
34 | #endif | 33 | #endif |
35 | 34 | ||
36 | #define TOSHIBA_RBTX4927_WR08(a,b) do { TX4927_WR08(a,b); wbflush(); } while ( 0 ) | ||
37 | |||
38 | |||
39 | #ifdef CONFIG_PCI | 35 | #ifdef CONFIG_PCI |
40 | #define TBTX4927_ISA_IO_OFFSET TX4927_PCIIO | 36 | #define TBTX4927_ISA_IO_OFFSET TX4927_PCIIO |
41 | #else | 37 | #else |
42 | #define TBTX4927_ISA_IO_OFFSET 0 | 38 | #define TBTX4927_ISA_IO_OFFSET 0 |
43 | #endif | 39 | #endif |
44 | 40 | ||
45 | #define RBTX4927_SW_RESET_DO 0xbc00f000 | 41 | #define RBTX4927_SW_RESET_DO (void __iomem *)0xbc00f000UL |
46 | #define RBTX4927_SW_RESET_DO_SET 0x01 | 42 | #define RBTX4927_SW_RESET_DO_SET 0x01 |
47 | 43 | ||
48 | #define RBTX4927_SW_RESET_ENABLE 0xbc00f002 | 44 | #define RBTX4927_SW_RESET_ENABLE (void __iomem *)0xbc00f002UL |
49 | #define RBTX4927_SW_RESET_ENABLE_SET 0x01 | 45 | #define RBTX4927_SW_RESET_ENABLE_SET 0x01 |
50 | 46 | ||
51 | 47 | ||
diff --git a/include/asm-mips/tx4927/tx4927.h b/include/asm-mips/tx4927/tx4927.h index 4bd4368e18..193e80a17c 100644 --- a/include/asm-mips/tx4927/tx4927.h +++ b/include/asm-mips/tx4927/tx4927.h | |||
@@ -27,447 +27,8 @@ | |||
27 | #ifndef __ASM_TX4927_TX4927_H | 27 | #ifndef __ASM_TX4927_TX4927_H |
28 | #define __ASM_TX4927_TX4927_H | 28 | #define __ASM_TX4927_TX4927_H |
29 | 29 | ||
30 | #include <asm/tx4927/tx4927_mips.h> | ||
31 | #include <asm/txx9irq.h> | 30 | #include <asm/txx9irq.h> |
32 | 31 | ||
33 | /* | ||
34 | This register naming came from the integrated CPU/controller name TX4927 | ||
35 | followed by the device name from table 4.2.2 on page 4-3 and then followed | ||
36 | by the register name from table 4.2.3 on pages 4-4 to 4-8. The manaul | ||
37 | used was "TMPR4927BT Preliminary Rev 0.1 20.Jul.2001". | ||
38 | */ | ||
39 | |||
40 | #define TX4927_SIO_0_BASE | ||
41 | |||
42 | /* TX4927 controller */ | ||
43 | #define TX4927_BASE 0xfff1f0000 | ||
44 | #define TX4927_BASE 0xfff1f0000 | ||
45 | #define TX4927_LIMIT 0xfff1fffff | ||
46 | |||
47 | |||
48 | /* TX4927 SDRAM controller (64-bit registers) */ | ||
49 | #define TX4927_SDRAMC_BASE 0x8000 | ||
50 | #define TX4927_SDRAMC_SDCCR0 0x8000 | ||
51 | #define TX4927_SDRAMC_SDCCR1 0x8008 | ||
52 | #define TX4927_SDRAMC_SDCCR2 0x8010 | ||
53 | #define TX4927_SDRAMC_SDCCR3 0x8018 | ||
54 | #define TX4927_SDRAMC_SDCTR 0x8040 | ||
55 | #define TX4927_SDRAMC_SDCMD 0x8058 | ||
56 | #define TX4927_SDRAMC_LIMIT 0x8fff | ||
57 | |||
58 | |||
59 | /* TX4927 external bus controller (64-bit registers) */ | ||
60 | #define TX4927_EBUSC_BASE 0x9000 | ||
61 | #define TX4927_EBUSC_EBCCR0 0x9000 | ||
62 | #define TX4927_EBUSC_EBCCR1 0x9008 | ||
63 | #define TX4927_EBUSC_EBCCR2 0x9010 | ||
64 | #define TX4927_EBUSC_EBCCR3 0x9018 | ||
65 | #define TX4927_EBUSC_EBCCR4 0x9020 | ||
66 | #define TX4927_EBUSC_EBCCR5 0x9028 | ||
67 | #define TX4927_EBUSC_EBCCR6 0x9030 | ||
68 | #define TX4927_EBUSC_EBCCR7 0x9008 | ||
69 | #define TX4927_EBUSC_LIMIT 0x9fff | ||
70 | |||
71 | |||
72 | /* TX4927 SDRRAM Error Check Correction (64-bit registers) */ | ||
73 | #define TX4927_ECC_BASE 0xa000 | ||
74 | #define TX4927_ECC_ECCCR 0xa000 | ||
75 | #define TX4927_ECC_ECCSR 0xa008 | ||
76 | #define TX4927_ECC_LIMIT 0xafff | ||
77 | |||
78 | |||
79 | /* TX4927 DMA Controller (64-bit registers) */ | ||
80 | #define TX4927_DMAC_BASE 0xb000 | ||
81 | #define TX4927_DMAC_TBD 0xb000 | ||
82 | #define TX4927_DMAC_LIMIT 0xbfff | ||
83 | |||
84 | |||
85 | /* TX4927 PCI Controller (32-bit registers) */ | ||
86 | #define TX4927_PCIC_BASE 0xd000 | ||
87 | #define TX4927_PCIC_TBD 0xb000 | ||
88 | #define TX4927_PCIC_LIMIT 0xdfff | ||
89 | |||
90 | |||
91 | /* TX4927 Configuration registers (64-bit registers) */ | ||
92 | #define TX4927_CONFIG_BASE 0xe000 | ||
93 | #define TX4927_CONFIG_CCFG 0xe000 | ||
94 | #define TX4927_CONFIG_CCFG_RESERVED_42_63 BM_63_42 | ||
95 | #define TX4927_CONFIG_CCFG_WDRST BM_41_41 | ||
96 | #define TX4927_CONFIG_CCFG_WDREXEN BM_40_40 | ||
97 | #define TX4927_CONFIG_CCFG_BCFG BM_39_32 | ||
98 | #define TX4927_CONFIG_CCFG_RESERVED_27_31 BM_31_27 | ||
99 | #define TX4927_CONFIG_CCFG_GTOT BM_26_25 | ||
100 | #define TX4927_CONFIG_CCFG_GTOT_4096 BM_26_25 | ||
101 | #define TX4927_CONFIG_CCFG_GTOT_2048 BM_26_26 | ||
102 | #define TX4927_CONFIG_CCFG_GTOT_1024 BM_25_25 | ||
103 | #define TX4927_CONFIG_CCFG_GTOT_0512 (~BM_26_25) | ||
104 | #define TX4927_CONFIG_CCFG_TINTDIS BM_24_24 | ||
105 | #define TX4927_CONFIG_CCFG_PCI66 BM_23_23 | ||
106 | #define TX4927_CONFIG_CCFG_PCIMODE BM_22_22 | ||
107 | #define TX4927_CONFIG_CCFG_RESERVED_20_21 BM_21_20 | ||
108 | #define TX4927_CONFIG_CCFG_DIVMODE BM_19_17 | ||
109 | #define TX4927_CONFIG_CCFG_DIVMODE_2_0 BM_19_19 | ||
110 | #define TX4927_CONFIG_CCFG_DIVMODE_3_0 (BM_19_19|BM_17_17) | ||
111 | #define TX4927_CONFIG_CCFG_DIVMODE_4_0 BM_19_18 | ||
112 | #define TX4927_CONFIG_CCFG_DIVMODE_2_5 BM_19_17 | ||
113 | #define TX4927_CONFIG_CCFG_DIVMODE_8_0 (~BM_19_17) | ||
114 | #define TX4927_CONFIG_CCFG_DIVMODE_12_0 BM_17_17 | ||
115 | #define TX4927_CONFIG_CCFG_DIVMODE_16_0 BM_18_18 | ||
116 | #define TX4927_CONFIG_CCFG_DIVMODE_10_0 BM_18_17 | ||
117 | #define TX4927_CONFIG_CCFG_BEOW BM_16_16 | ||
118 | #define TX4927_CONFIG_CCFG_WR BM_15_15 | ||
119 | #define TX4927_CONFIG_CCFG_TOE BM_14_14 | ||
120 | #define TX4927_CONFIG_CCFG_PCIARB BM_13_13 | ||
121 | #define TX4927_CONFIG_CCFG_PCIDIVMODE BM_12_11 | ||
122 | #define TX4927_CONFIG_CCFG_RESERVED_08_10 BM_10_08 | ||
123 | #define TX4927_CONFIG_CCFG_SYSSP BM_07_06 | ||
124 | #define TX4927_CONFIG_CCFG_RESERVED_03_05 BM_05_03 | ||
125 | #define TX4927_CONFIG_CCFG_ENDIAN BM_02_02 | ||
126 | #define TX4927_CONFIG_CCFG_ARMODE BM_01_01 | ||
127 | #define TX4927_CONFIG_CCFG_ACEHOLD BM_00_00 | ||
128 | #define TX4927_CONFIG_REVID 0xe008 | ||
129 | #define TX4927_CONFIG_REVID_RESERVED_32_63 BM_32_63 | ||
130 | #define TX4927_CONFIG_REVID_PCODE BM_16_31 | ||
131 | #define TX4927_CONFIG_REVID_MJERREV BM_12_15 | ||
132 | #define TX4927_CONFIG_REVID_MINEREV BM_08_11 | ||
133 | #define TX4927_CONFIG_REVID_MJREV BM_04_07 | ||
134 | #define TX4927_CONFIG_REVID_MINREV BM_00_03 | ||
135 | #define TX4927_CONFIG_PCFG 0xe010 | ||
136 | #define TX4927_CONFIG_PCFG_RESERVED_57_63 BM_57_63 | ||
137 | #define TX4927_CONFIG_PCFG_DRVDATA BM_56_56 | ||
138 | #define TX4927_CONFIG_PCFG_DRVCB BM_55_55 | ||
139 | #define TX4927_CONFIG_PCFG_DRVDQM BM_54_54 | ||
140 | #define TX4927_CONFIG_PCFG_DRVADDR BM_53_53 | ||
141 | #define TX4927_CONFIG_PCFG_DRVCKE BM_52_52 | ||
142 | #define TX4927_CONFIG_PCFG_DRVRAS BM_51_51 | ||
143 | #define TX4927_CONFIG_PCFG_DRVCAS BM_50_50 | ||
144 | #define TX4927_CONFIG_PCFG_DRVWE BM_49_49 | ||
145 | #define TX4927_CONFIG_PCFG_DRVCS3 BM_48_48 | ||
146 | #define TX4927_CONFIG_PCFG_DRVCS2 BM_47_47 | ||
147 | #define TX4927_CONFIG_PCFG_DRVCS1 BM_46_4k | ||
148 | #define TX4927_CONFIG_PCFG_DRVCS0 BM_45_45 | ||
149 | #define TX4927_CONFIG_PCFG_DRVCK3 BM_44_44 | ||
150 | #define TX4927_CONFIG_PCFG_DRVCK2 BM_43_43 | ||
151 | #define TX4927_CONFIG_PCFG_DRVCK1 BM_42_42 | ||
152 | #define TX4927_CONFIG_PCFG_DRVCK0 BM_41_41 | ||
153 | #define TX4927_CONFIG_PCFG_DRVCKIN BM_40_40 | ||
154 | #define TX4927_CONFIG_PCFG_RESERVED_33_39 BM_33_39 | ||
155 | #define TX4927_CONFIG_PCFG_BYPASS_PLL BM_32_32 | ||
156 | #define TX4927_CONFIG_PCFG_RESERVED_30_31 BM_30_31 | ||
157 | #define TX4927_CONFIG_PCFG_SDCLKDLY BM_28_29 | ||
158 | #define TX4927_CONFIG_PCFG_SDCLKDLY_DELAY_1 (~BM_28_29) | ||
159 | #define TX4927_CONFIG_PCFG_SDCLKDLY_DELAY_2 BM_28_28 | ||
160 | #define TX4927_CONFIG_PCFG_SDCLKDLY_DELAY_3 BM_29_29 | ||
161 | #define TX4927_CONFIG_PCFG_SDCLKDLY_DELAY_4 BM_28_29 | ||
162 | #define TX4927_CONFIG_PCFG_SYSCLKEN BM_27_27 | ||
163 | #define TX4927_CONFIG_PCFG_SDCLKEN3 BM_26_26 | ||
164 | #define TX4927_CONFIG_PCFG_SDCLKEN2 BM_25_25 | ||
165 | #define TX4927_CONFIG_PCFG_SDCLKEN1 BM_24_24 | ||
166 | #define TX4927_CONFIG_PCFG_SDCLKEN0 BM_23_23 | ||
167 | #define TX4927_CONFIG_PCFG_SDCLKINEN BM_22_22 | ||
168 | #define TX4927_CONFIG_PCFG_PCICLKEN5 BM_21_21 | ||
169 | #define TX4927_CONFIG_PCFG_PCICLKEN4 BM_20_20 | ||
170 | #define TX4927_CONFIG_PCFG_PCICLKEN3 BM_19_19 | ||
171 | #define TX4927_CONFIG_PCFG_PCICLKEN2 BM_18_18 | ||
172 | #define TX4927_CONFIG_PCFG_PCICLKEN1 BM_17_17 | ||
173 | #define TX4927_CONFIG_PCFG_PCICLKEN0 BM_16_16 | ||
174 | #define TX4927_CONFIG_PCFG_RESERVED_10_15 BM_10_15 | ||
175 | #define TX4927_CONFIG_PCFG_SEL2 BM_09_09 | ||
176 | #define TX4927_CONFIG_PCFG_SEL1 BM_08_08 | ||
177 | #define TX4927_CONFIG_PCFG_DMASEL3 BM_06_07 | ||
178 | #define TX4927_CONFIG_PCFG_DMASEL3_DMAREQ3 (~BM_06_07) | ||
179 | #define TX4927_CONFIG_PCFG_DMASEL3_SIO0 BM_06_06 | ||
180 | #define TX4927_CONFIG_PCFG_DMASEL3_ACLC3 BM_07_07 | ||
181 | #define TX4927_CONFIG_PCFG_DMASEL3_ACLC1 BM_06_07 | ||
182 | #define TX4927_CONFIG_PCFG_DMASEL2 BM_06_07 | ||
183 | #define TX4927_CONFIG_PCFG_DMASEL2_SEL2_0_DMAREQ2 (~BM_06_07) | ||
184 | #define TX4927_CONFIG_PCFG_DMASEL2_SEL2_0_SIO0 BM_06_06 | ||
185 | #define TX4927_CONFIG_PCFG_DMASEL2_SEL2_0_RESERVED_10 BM_07_07 | ||
186 | #define TX4927_CONFIG_PCFG_DMASEL2_SEL2_0_RESERVED_11 BM_06_07 | ||
187 | #define TX4927_CONFIG_PCFG_DMASEL2_SEL2_1_ACLC1 (~BM_06_07) | ||
188 | #define TX4927_CONFIG_PCFG_DMASEL2_SEL2_1_SIO0 BM_06_06 | ||
189 | #define TX4927_CONFIG_PCFG_DMASEL2_SEL2_1_ACLC2 BM_07_07 | ||
190 | #define TX4927_CONFIG_PCFG_DMASEL2_SEL2_1_ACLC0 BM_06_07 | ||
191 | #define TX4927_CONFIG_PCFG_DMASEL1 BM_02_03 | ||
192 | #define TX4927_CONFIG_PCFG_DMASEL1_DMAREQ1 (~BM_02_03) | ||
193 | #define TX4927_CONFIG_PCFG_DMASEL1_SIO1 BM_02_02 | ||
194 | #define TX4927_CONFIG_PCFG_DMASEL1_ACLC1 BM_03_03 | ||
195 | #define TX4927_CONFIG_PCFG_DMASEL1_ACLC3 BM_02_03 | ||
196 | #define TX4927_CONFIG_PCFG_DMASEL0 BM_00_01 | ||
197 | #define TX4927_CONFIG_PCFG_DMASEL0_DMAREQ0 (~BM_00_01) | ||
198 | #define TX4927_CONFIG_PCFG_DMASEL0_SIO1 BM_00_00 | ||
199 | #define TX4927_CONFIG_PCFG_DMASEL0_ACLC0 BM_01_01 | ||
200 | #define TX4927_CONFIG_PCFG_DMASEL0_ACLC2 BM_00_01 | ||
201 | #define TX4927_CONFIG_TOEA 0xe018 | ||
202 | #define TX4927_CONFIG_TOEA_RESERVED_36_63 BM_36_63 | ||
203 | #define TX4927_CONFIG_TOEA_TOEA BM_00_35 | ||
204 | #define TX4927_CONFIG_CLKCTR 0xe020 | ||
205 | #define TX4927_CONFIG_CLKCTR_RESERVED_26_63 BM_26_63 | ||
206 | #define TX4927_CONFIG_CLKCTR_ACLCKD BM_25_25 | ||
207 | #define TX4927_CONFIG_CLKCTR_PIOCKD BM_24_24 | ||
208 | #define TX4927_CONFIG_CLKCTR_DMACKD BM_23_23 | ||
209 | #define TX4927_CONFIG_CLKCTR_PCICKD BM_22_22 | ||
210 | #define TX4927_CONFIG_CLKCTR_SET_21 BM_21_21 | ||
211 | #define TX4927_CONFIG_CLKCTR_TM0CKD BM_20_20 | ||
212 | #define TX4927_CONFIG_CLKCTR_TM1CKD BM_19_19 | ||
213 | #define TX4927_CONFIG_CLKCTR_TM2CKD BM_18_18 | ||
214 | #define TX4927_CONFIG_CLKCTR_SIO0CKD BM_17_17 | ||
215 | #define TX4927_CONFIG_CLKCTR_SIO1CKD BM_16_16 | ||
216 | #define TX4927_CONFIG_CLKCTR_RESERVED_10_15 BM_10_15 | ||
217 | #define TX4927_CONFIG_CLKCTR_ACLRST BM_09_09 | ||
218 | #define TX4927_CONFIG_CLKCTR_PIORST BM_08_08 | ||
219 | #define TX4927_CONFIG_CLKCTR_DMARST BM_07_07 | ||
220 | #define TX4927_CONFIG_CLKCTR_PCIRST BM_06_06 | ||
221 | #define TX4927_CONFIG_CLKCTR_RESERVED_05_05 BM_05_05 | ||
222 | #define TX4927_CONFIG_CLKCTR_TM0RST BM_04_04 | ||
223 | #define TX4927_CONFIG_CLKCTR_TM1RST BM_03_03 | ||
224 | #define TX4927_CONFIG_CLKCTR_TM2RST BM_02_02 | ||
225 | #define TX4927_CONFIG_CLKCTR_SIO0RST BM_01_01 | ||
226 | #define TX4927_CONFIG_CLKCTR_SIO1RST BM_00_00 | ||
227 | #define TX4927_CONFIG_GARBC 0xe030 | ||
228 | #define TX4927_CONFIG_GARBC_RESERVED_10_63 BM_10_63 | ||
229 | #define TX4927_CONFIG_GARBC_SET_09 BM_09_09 | ||
230 | #define TX4927_CONFIG_GARBC_ARBMD BM_08_08 | ||
231 | #define TX4927_CONFIG_GARBC_RESERVED_06_07 BM_06_07 | ||
232 | #define TX4927_CONFIG_GARBC_PRIORITY_H1 BM_04_05 | ||
233 | #define TX4927_CONFIG_GARBC_PRIORITY_H1_PCI (~BM_04_05) | ||
234 | #define TX4927_CONFIG_GARBC_PRIORITY_H1_PDMAC BM_04_04 | ||
235 | #define TX4927_CONFIG_GARBC_PRIORITY_H1_DMAC BM_05_05 | ||
236 | #define TX4927_CONFIG_GARBC_PRIORITY_H1_BAD_VALUE BM_04_05 | ||
237 | #define TX4927_CONFIG_GARBC_PRIORITY_H2 BM_02_03 | ||
238 | #define TX4927_CONFIG_GARBC_PRIORITY_H2_PCI (~BM_02_03) | ||
239 | #define TX4927_CONFIG_GARBC_PRIORITY_H2_PDMAC BM_02_02 | ||
240 | #define TX4927_CONFIG_GARBC_PRIORITY_H2_DMAC BM_03_03 | ||
241 | #define TX4927_CONFIG_GARBC_PRIORITY_H2_BAD_VALUE BM_02_03 | ||
242 | #define TX4927_CONFIG_GARBC_PRIORITY_H3 BM_00_01 | ||
243 | #define TX4927_CONFIG_GARBC_PRIORITY_H3_PCI (~BM_00_01) | ||
244 | #define TX4927_CONFIG_GARBC_PRIORITY_H3_PDMAC BM_00_00 | ||
245 | #define TX4927_CONFIG_GARBC_PRIORITY_H3_DMAC BM_01_01 | ||
246 | #define TX4927_CONFIG_GARBC_PRIORITY_H3_BAD_VALUE BM_00_01 | ||
247 | #define TX4927_CONFIG_RAMP 0xe048 | ||
248 | #define TX4927_CONFIG_RAMP_RESERVED_20_63 BM_20_63 | ||
249 | #define TX4927_CONFIG_RAMP_RAMP BM_00_19 | ||
250 | #define TX4927_CONFIG_LIMIT 0xefff | ||
251 | |||
252 | |||
253 | /* TX4927 Timer 0 (32-bit registers) */ | ||
254 | #define TX4927_TMR0_BASE 0xf000 | ||
255 | #define TX4927_TMR0_TMTCR0 0xf000 | ||
256 | #define TX4927_TMR0_TMTISR0 0xf004 | ||
257 | #define TX4927_TMR0_TMCPRA0 0xf008 | ||
258 | #define TX4927_TMR0_TMCPRB0 0xf00c | ||
259 | #define TX4927_TMR0_TMITMR0 0xf010 | ||
260 | #define TX4927_TMR0_TMCCDR0 0xf020 | ||
261 | #define TX4927_TMR0_TMPGMR0 0xf030 | ||
262 | #define TX4927_TMR0_TMTRR0 0xf0f0 | ||
263 | #define TX4927_TMR0_LIMIT 0xf0ff | ||
264 | |||
265 | |||
266 | /* TX4927 Timer 1 (32-bit registers) */ | ||
267 | #define TX4927_TMR1_BASE 0xf100 | ||
268 | #define TX4927_TMR1_TMTCR1 0xf100 | ||
269 | #define TX4927_TMR1_TMTISR1 0xf104 | ||
270 | #define TX4927_TMR1_TMCPRA1 0xf108 | ||
271 | #define TX4927_TMR1_TMCPRB1 0xf10c | ||
272 | #define TX4927_TMR1_TMITMR1 0xf110 | ||
273 | #define TX4927_TMR1_TMCCDR1 0xf120 | ||
274 | #define TX4927_TMR1_TMPGMR1 0xf130 | ||
275 | #define TX4927_TMR1_TMTRR1 0xf1f0 | ||
276 | #define TX4927_TMR1_LIMIT 0xf1ff | ||
277 | |||
278 | |||
279 | /* TX4927 Timer 2 (32-bit registers) */ | ||
280 | #define TX4927_TMR2_BASE 0xf200 | ||
281 | #define TX4927_TMR2_TMTCR2 0xf200 | ||
282 | #define TX4927_TMR2_TMTISR2 0xf204 | ||
283 | #define TX4927_TMR2_TMCPRA2 0xf208 | ||
284 | #define TX4927_TMR2_TMITMR2 0xf210 | ||
285 | #define TX4927_TMR2_TMCCDR2 0xf220 | ||
286 | #define TX4927_TMR2_TMWTMR2 0xf240 | ||
287 | #define TX4927_TMR2_TMTRR2 0xf2f0 | ||
288 | #define TX4927_TMR2_LIMIT 0xf2ff | ||
289 | |||
290 | |||
291 | /* TX4927 serial port 0 (32-bit registers) */ | ||
292 | #define TX4927_SIO0_BASE 0xf300 | ||
293 | #define TX4927_SIO0_SILCR0 0xf300 | ||
294 | #define TX4927_SIO0_SILCR0_RESERVED_16_31 BM_16_31 | ||
295 | #define TX4927_SIO0_SILCR0_RWUB BM_15_15 | ||
296 | #define TX4927_SIO0_SILCR0_TWUB BM_14_14 | ||
297 | #define TX4927_SIO0_SILCR0_UODE BM_13_13 | ||
298 | #define TX4927_SIO0_SILCR0_RESERVED_07_12 BM_07_12 | ||
299 | #define TX4927_SIO0_SILCR0_SCS BM_05_06 | ||
300 | #define TX4927_SIO0_SILCR0_SCS_IMBUSCLK_IC (~BM_05_06) | ||
301 | #define TX4927_SIO0_SILCR0_SCS_IMBUSCLK_BRG BM_05_05 | ||
302 | #define TX4927_SIO0_SILCR0_SCS_SCLK_EC BM_06_06 | ||
303 | #define TX4927_SIO0_SILCR0_SCS_SCLK_BRG BM_05_06 | ||
304 | #define TX4927_SIO0_SILCR0_UEPS BM_04_04 | ||
305 | #define TX4927_SIO0_SILCR0_UPEN BM_03_03 | ||
306 | #define TX4927_SIO0_SILCR0_USBL BM_02_02 | ||
307 | #define TX4927_SIO0_SILCR0_UMODE BM_00_01 | ||
308 | #define TX4927_SIO0_SILCR0_UMODE_DATA_8_BIT BM_00_01 | ||
309 | #define TX4927_SIO0_SILCR0_UMODE_DATA_7_BIT (~BM_00_01) | ||
310 | #define TX4927_SIO0_SILCR0_UMODE_DATA_8_BIT_MC BM_01_01 | ||
311 | #define TX4927_SIO0_SILCR0_UMODE_DATA_7_BIT_MC BM_00_01 | ||
312 | #define TX4927_SIO0_SIDICR0 0xf304 | ||
313 | #define TX4927_SIO0_SIDICR0_RESERVED_16_31 BM_16_31 | ||
314 | #define TX4927_SIO0_SIDICR0_TDE BM_15_15 | ||
315 | #define TX4927_SIO0_SIDICR0_RDE BM_14_14 | ||
316 | #define TX4927_SIO0_SIDICR0_TIE BM_13_13 | ||
317 | #define TX4927_SIO0_SIDICR0_RIE BM_12_12 | ||
318 | #define TX4927_SIO0_SIDICR0_SPIE BM_11_11 | ||
319 | #define TX4927_SIO0_SIDICR0_CTSAC BM_09_10 | ||
320 | #define TX4927_SIO0_SIDICR0_CTSAC_NONE (~BM_09_10) | ||
321 | #define TX4927_SIO0_SIDICR0_CTSAC_RISE BM_09_09 | ||
322 | #define TX4927_SIO0_SIDICR0_CTSAC_FALL BM_10_10 | ||
323 | #define TX4927_SIO0_SIDICR0_CTSAC_BOTH BM_09_10 | ||
324 | #define TX4927_SIO0_SIDICR0_RESERVED_06_08 BM_06_08 | ||
325 | #define TX4927_SIO0_SIDICR0_STIE BM_00_05 | ||
326 | #define TX4927_SIO0_SIDICR0_STIE_NONE (~BM_00_05) | ||
327 | #define TX4927_SIO0_SIDICR0_STIE_OERS BM_05_05 | ||
328 | #define TX4927_SIO0_SIDICR0_STIE_CTSAC BM_04_04 | ||
329 | #define TX4927_SIO0_SIDICR0_STIE_RBRKD BM_03_03 | ||
330 | #define TX4927_SIO0_SIDICR0_STIE_TRDY BM_02_02 | ||
331 | #define TX4927_SIO0_SIDICR0_STIE_TXALS BM_01_01 | ||
332 | #define TX4927_SIO0_SIDICR0_STIE_UBRKD BM_00_00 | ||
333 | #define TX4927_SIO0_SIDISR0 0xf308 | ||
334 | #define TX4927_SIO0_SIDISR0_RESERVED_16_31 BM_16_31 | ||
335 | #define TX4927_SIO0_SIDISR0_UBRK BM_15_15 | ||
336 | #define TX4927_SIO0_SIDISR0_UVALID BM_14_14 | ||
337 | #define TX4927_SIO0_SIDISR0_UFER BM_13_13 | ||
338 | #define TX4927_SIO0_SIDISR0_UPER BM_12_12 | ||
339 | #define TX4927_SIO0_SIDISR0_UOER BM_11_11 | ||
340 | #define TX4927_SIO0_SIDISR0_ERI BM_10_10 | ||
341 | #define TX4927_SIO0_SIDISR0_TOUT BM_09_09 | ||
342 | #define TX4927_SIO0_SIDISR0_TDIS BM_08_08 | ||
343 | #define TX4927_SIO0_SIDISR0_RDIS BM_07_07 | ||
344 | #define TX4927_SIO0_SIDISR0_STIS BM_06_06 | ||
345 | #define TX4927_SIO0_SIDISR0_RESERVED_05_05 BM_05_05 | ||
346 | #define TX4927_SIO0_SIDISR0_RFDN BM_00_04 | ||
347 | #define TX4927_SIO0_SISCISR0 0xf30c | ||
348 | #define TX4927_SIO0_SISCISR0_RESERVED_06_31 BM_06_31 | ||
349 | #define TX4927_SIO0_SISCISR0_OERS BM_05_05 | ||
350 | #define TX4927_SIO0_SISCISR0_CTSS BM_04_04 | ||
351 | #define TX4927_SIO0_SISCISR0_RBRKD BM_03_03 | ||
352 | #define TX4927_SIO0_SISCISR0_TRDY BM_02_02 | ||
353 | #define TX4927_SIO0_SISCISR0_TXALS BM_01_01 | ||
354 | #define TX4927_SIO0_SISCISR0_UBRKD BM_00_00 | ||
355 | #define TX4927_SIO0_SIFCR0 0xf310 | ||
356 | #define TX4927_SIO0_SIFCR0_RESERVED_16_31 BM_16_31 | ||
357 | #define TX4927_SIO0_SIFCR0_SWRST BM_16_31 | ||
358 | #define TX4927_SIO0_SIFCR0_RESERVED_09_14 BM_09_14 | ||
359 | #define TX4927_SIO0_SIFCR0_RDIL BM_16_31 | ||
360 | #define TX4927_SIO0_SIFCR0_RDIL_BYTES_1 (~BM_07_08) | ||
361 | #define TX4927_SIO0_SIFCR0_RDIL_BYTES_4 BM_07_07 | ||
362 | #define TX4927_SIO0_SIFCR0_RDIL_BYTES_8 BM_08_08 | ||
363 | #define TX4927_SIO0_SIFCR0_RDIL_BYTES_12 BM_07_08 | ||
364 | #define TX4927_SIO0_SIFCR0_RESERVED_05_06 BM_05_06 | ||
365 | #define TX4927_SIO0_SIFCR0_TDIL BM_03_04 | ||
366 | #define TX4927_SIO0_SIFCR0_TDIL_BYTES_1 (~BM_03_04) | ||
367 | #define TX4927_SIO0_SIFCR0_TDIL_BYTES_4 BM_03_03 | ||
368 | #define TX4927_SIO0_SIFCR0_TDIL_BYTES_8 BM_04_04 | ||
369 | #define TX4927_SIO0_SIFCR0_TDIL_BYTES_0 BM_03_04 | ||
370 | #define TX4927_SIO0_SIFCR0_TFRST BM_02_02 | ||
371 | #define TX4927_SIO0_SIFCR0_RFRST BM_01_01 | ||
372 | #define TX4927_SIO0_SIFCR0_FRSTE BM_00_00 | ||
373 | #define TX4927_SIO0_SIFLCR0 0xf314 | ||
374 | #define TX4927_SIO0_SIFLCR0_RESERVED_13_31 BM_13_31 | ||
375 | #define TX4927_SIO0_SIFLCR0_RCS BM_12_12 | ||
376 | #define TX4927_SIO0_SIFLCR0_TES BM_11_11 | ||
377 | #define TX4927_SIO0_SIFLCR0_RESERVED_10_10 BM_10_10 | ||
378 | #define TX4927_SIO0_SIFLCR0_RTSSC BM_09_09 | ||
379 | #define TX4927_SIO0_SIFLCR0_RSDE BM_08_08 | ||
380 | #define TX4927_SIO0_SIFLCR0_TSDE BM_07_07 | ||
381 | #define TX4927_SIO0_SIFLCR0_RESERVED_05_06 BM_05_06 | ||
382 | #define TX4927_SIO0_SIFLCR0_RTSTL BM_01_04 | ||
383 | #define TX4927_SIO0_SIFLCR0_TBRK BM_00_00 | ||
384 | #define TX4927_SIO0_SIBGR0 0xf318 | ||
385 | #define TX4927_SIO0_SIBGR0_RESERVED_10_31 BM_10_31 | ||
386 | #define TX4927_SIO0_SIBGR0_BCLK BM_08_09 | ||
387 | #define TX4927_SIO0_SIBGR0_BCLK_T0 (~BM_08_09) | ||
388 | #define TX4927_SIO0_SIBGR0_BCLK_T2 BM_08_08 | ||
389 | #define TX4927_SIO0_SIBGR0_BCLK_T4 BM_09_09 | ||
390 | #define TX4927_SIO0_SIBGR0_BCLK_T6 BM_08_09 | ||
391 | #define TX4927_SIO0_SIBGR0_BRD BM_00_07 | ||
392 | #define TX4927_SIO0_SITFIF00 0xf31c | ||
393 | #define TX4927_SIO0_SITFIF00_RESERVED_08_31 BM_08_31 | ||
394 | #define TX4927_SIO0_SITFIF00_TXD BM_00_07 | ||
395 | #define TX4927_SIO0_SIRFIFO0 0xf320 | ||
396 | #define TX4927_SIO0_SIRFIFO0_RESERVED_08_31 BM_08_31 | ||
397 | #define TX4927_SIO0_SIRFIFO0_RXD BM_00_07 | ||
398 | #define TX4927_SIO0_SIRFIFO0 0xf320 | ||
399 | #define TX4927_SIO0_LIMIT 0xf3ff | ||
400 | |||
401 | |||
402 | /* TX4927 serial port 1 (32-bit registers) */ | ||
403 | #define TX4927_SIO1_BASE 0xf400 | ||
404 | #define TX4927_SIO1_SILCR1 0xf400 | ||
405 | #define TX4927_SIO1_SIDICR1 0xf404 | ||
406 | #define TX4927_SIO1_SIDISR1 0xf408 | ||
407 | #define TX4927_SIO1_SISCISR1 0xf40c | ||
408 | #define TX4927_SIO1_SIFCR1 0xf410 | ||
409 | #define TX4927_SIO1_SIFLCR1 0xf414 | ||
410 | #define TX4927_SIO1_SIBGR1 0xf418 | ||
411 | #define TX4927_SIO1_SITFIF01 0xf41c | ||
412 | #define TX4927_SIO1_SIRFIFO1 0xf420 | ||
413 | #define TX4927_SIO1_LIMIT 0xf4ff | ||
414 | |||
415 | |||
416 | /* TX4927 parallel port (32-bit registers) */ | ||
417 | #define TX4927_PIO_BASE 0xf500 | ||
418 | #define TX4927_PIO_PIOD0 0xf500 | ||
419 | #define TX4927_PIO_PIODI 0xf504 | ||
420 | #define TX4927_PIO_PIODIR 0xf508 | ||
421 | #define TX4927_PIO_PIOOD 0xf50c | ||
422 | #define TX4927_PIO_LIMIT 0xf50f | ||
423 | |||
424 | |||
425 | /* TX4927 AC-link controller (32-bit registers) */ | ||
426 | #define TX4927_ACLC_BASE 0xf700 | ||
427 | #define TX4927_ACLC_ACCTLEN 0xf700 | ||
428 | #define TX4927_ACLC_ACCTLDIS 0xf704 | ||
429 | #define TX4927_ACLC_ACREGACC 0xf708 | ||
430 | #define TX4927_ACLC_ACINTSTS 0xf710 | ||
431 | #define TX4927_ACLC_ACINTMSTS 0xf714 | ||
432 | #define TX4927_ACLC_ACINTEN 0xf718 | ||
433 | #define TX4927_ACLC_ACINTDIS 0xf71c | ||
434 | #define TX4927_ACLC_ACSEMAPH 0xf720 | ||
435 | #define TX4927_ACLC_ACGPIDAT 0xf740 | ||
436 | #define TX4927_ACLC_ACGPODAT 0xf744 | ||
437 | #define TX4927_ACLC_ACSLTEN 0xf748 | ||
438 | #define TX4927_ACLC_ACSLTDIS 0xf74c | ||
439 | #define TX4927_ACLC_ACFIFOSTS 0xf750 | ||
440 | #define TX4927_ACLC_ACDMASTS 0xf780 | ||
441 | #define TX4927_ACLC_ACDMASEL 0xf784 | ||
442 | #define TX4927_ACLC_ACAUDODAT 0xf7a0 | ||
443 | #define TX4927_ACLC_ACSURRDAT 0xf7a4 | ||
444 | #define TX4927_ACLC_ACCENTDAT 0xf7a8 | ||
445 | #define TX4927_ACLC_ACLFEDAT 0xf7ac | ||
446 | #define TX4927_ACLC_ACAUDIDAT 0xf7b0 | ||
447 | #define TX4927_ACLC_ACMODODAT 0xf7b8 | ||
448 | #define TX4927_ACLC_ACMODIDAT 0xf7bc | ||
449 | #define TX4927_ACLC_ACREVID 0xf7fc | ||
450 | #define TX4927_ACLC_LIMIT 0xf7ff | ||
451 | |||
452 | |||
453 | #define TX4927_REG(x) ((TX4927_BASE)+(x)) | ||
454 | |||
455 | #define TX4927_RD08( reg ) (*(vu08*)(reg)) | ||
456 | #define TX4927_WR08( reg, val ) ((*(vu08*)(reg))=(val)) | ||
457 | |||
458 | #define TX4927_RD16( reg ) (*(vu16*)(reg)) | ||
459 | #define TX4927_WR16( reg, val ) ((*(vu16*)(reg))=(val)) | ||
460 | |||
461 | #define TX4927_RD32( reg ) (*(vu32*)(reg)) | ||
462 | #define TX4927_WR32( reg, val ) ((*(vu32*)(reg))=(val)) | ||
463 | |||
464 | #define TX4927_RD64( reg ) (*(vu64*)(reg)) | ||
465 | #define TX4927_WR64( reg, val ) ((*(vu64*)(reg))=(val)) | ||
466 | |||
467 | #define TX4927_RD( reg ) TX4927_RD32( reg ) | ||
468 | #define TX4927_WR( reg, val ) TX4927_WR32( reg, val ) | ||
469 | |||
470 | |||
471 | #define TX4927_IRQ_CP0_BEG MIPS_CPU_IRQ_BASE | 32 | #define TX4927_IRQ_CP0_BEG MIPS_CPU_IRQ_BASE |
472 | #define TX4927_IRQ_CP0_END (MIPS_CPU_IRQ_BASE + 8 - 1) | 33 | #define TX4927_IRQ_CP0_END (MIPS_CPU_IRQ_BASE + 8 - 1) |
473 | 34 | ||
diff --git a/include/asm-mips/tx4927/tx4927_mips.h b/include/asm-mips/tx4927/tx4927_mips.h deleted file mode 100644 index 242ab93bf2..0000000000 --- a/include/asm-mips/tx4927/tx4927_mips.h +++ /dev/null | |||
@@ -1,4177 +0,0 @@ | |||
1 | /* | ||
2 | * Author: MontaVista Software, Inc. | ||
3 | * source@mvista.com | ||
4 | * | ||
5 | * Copyright 2001-2002 MontaVista Software Inc. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License as published by the | ||
9 | * Free Software Foundation; either version 2 of the License, or (at your | ||
10 | * option) any later version. | ||
11 | * | ||
12 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
13 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
14 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
15 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
16 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
17 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS | ||
18 | * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
19 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | ||
20 | * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
21 | * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
22 | * | ||
23 | * You should have received a copy of the GNU General Public License along | ||
24 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
25 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
26 | */ | ||
27 | #ifndef __ASM_TX4927_TX4927_MIPS_H | ||
28 | #define __ASM_TX4927_TX4927_MIPS_H | ||
29 | |||
30 | #ifndef __ASSEMBLY__ | ||
31 | |||
32 | static inline void asm_wait(void) | ||
33 | { | ||
34 | __asm__(".set\tmips3\n\t" | ||
35 | "wait\n\t" | ||
36 | ".set\tmips0"); | ||
37 | } | ||
38 | |||
39 | #define reg_rd08(r) ((u8 )(*((vu8 *)(r)))) | ||
40 | #define reg_rd16(r) ((u16)(*((vu16*)(r)))) | ||
41 | #define reg_rd32(r) ((u32)(*((vu32*)(r)))) | ||
42 | #define reg_rd64(r) ((u64)(*((vu64*)(r)))) | ||
43 | |||
44 | #define reg_wr08(r,v) ((*((vu8 *)(r)))=((u8 )(v))) | ||
45 | #define reg_wr16(r,v) ((*((vu16*)(r)))=((u16)(v))) | ||
46 | #define reg_wr32(r,v) ((*((vu32*)(r)))=((u32)(v))) | ||
47 | #define reg_wr64(r,v) ((*((vu64*)(r)))=((u64)(v))) | ||
48 | |||
49 | typedef volatile __signed char vs8; | ||
50 | typedef volatile unsigned char vu8; | ||
51 | |||
52 | typedef volatile __signed short vs16; | ||
53 | typedef volatile unsigned short vu16; | ||
54 | |||
55 | typedef volatile __signed int vs32; | ||
56 | typedef volatile unsigned int vu32; | ||
57 | |||
58 | typedef s8 s08; | ||
59 | typedef vs8 vs08; | ||
60 | |||
61 | typedef u8 u08; | ||
62 | typedef vu8 vu08; | ||
63 | |||
64 | |||
65 | #if (_MIPS_SZLONG == 64) | ||
66 | |||
67 | typedef volatile __signed__ long vs64; | ||
68 | typedef volatile unsigned long vu64; | ||
69 | |||
70 | #else | ||
71 | |||
72 | typedef volatile __signed__ long long vs64; | ||
73 | typedef volatile unsigned long long vu64; | ||
74 | |||
75 | #endif | ||
76 | |||
77 | |||
78 | #define BM_00_00 0x0000000000000001 | ||
79 | #define BM_01_00 0x0000000000000003 | ||
80 | #define BM_00_01 BM_01_00 | ||
81 | #define BM_02_00 0x0000000000000007 | ||
82 | #define BM_00_02 BM_02_00 | ||
83 | #define BM_03_00 0x000000000000000f | ||
84 | #define BM_00_03 BM_03_00 | ||
85 | #define BM_04_00 0x000000000000001f | ||
86 | #define BM_00_04 BM_04_00 | ||
87 | #define BM_05_00 0x000000000000003f | ||
88 | #define BM_00_05 BM_05_00 | ||
89 | #define BM_06_00 0x000000000000007f | ||
90 | #define BM_00_06 BM_06_00 | ||
91 | #define BM_07_00 0x00000000000000ff | ||
92 | #define BM_00_07 BM_07_00 | ||
93 | #define BM_08_00 0x00000000000001ff | ||
94 | #define BM_00_08 BM_08_00 | ||
95 | #define BM_09_00 0x00000000000003ff | ||
96 | #define BM_00_09 BM_09_00 | ||
97 | #define BM_10_00 0x00000000000007ff | ||
98 | #define BM_00_10 BM_10_00 | ||
99 | #define BM_11_00 0x0000000000000fff | ||
100 | #define BM_00_11 BM_11_00 | ||
101 | #define BM_12_00 0x0000000000001fff | ||
102 | #define BM_00_12 BM_12_00 | ||
103 | #define BM_13_00 0x0000000000003fff | ||
104 | #define BM_00_13 BM_13_00 | ||
105 | #define BM_14_00 0x0000000000007fff | ||
106 | #define BM_00_14 BM_14_00 | ||
107 | #define BM_15_00 0x000000000000ffff | ||
108 | #define BM_00_15 BM_15_00 | ||
109 | #define BM_16_00 0x000000000001ffff | ||
110 | #define BM_00_16 BM_16_00 | ||
111 | #define BM_17_00 0x000000000003ffff | ||
112 | #define BM_00_17 BM_17_00 | ||
113 | #define BM_18_00 0x000000000007ffff | ||
114 | #define BM_00_18 BM_18_00 | ||
115 | #define BM_19_00 0x00000000000fffff | ||
116 | #define BM_00_19 BM_19_00 | ||
117 | #define BM_20_00 0x00000000001fffff | ||
118 | #define BM_00_20 BM_20_00 | ||
119 | #define BM_21_00 0x00000000003fffff | ||
120 | #define BM_00_21 BM_21_00 | ||
121 | #define BM_22_00 0x00000000007fffff | ||
122 | #define BM_00_22 BM_22_00 | ||
123 | #define BM_23_00 0x0000000000ffffff | ||
124 | #define BM_00_23 BM_23_00 | ||
125 | #define BM_24_00 0x0000000001ffffff | ||
126 | #define BM_00_24 BM_24_00 | ||
127 | #define BM_25_00 0x0000000003ffffff | ||
128 | #define BM_00_25 BM_25_00 | ||
129 | #define BM_26_00 0x0000000007ffffff | ||
130 | #define BM_00_26 BM_26_00 | ||
131 | #define BM_27_00 0x000000000fffffff | ||
132 | #define BM_00_27 BM_27_00 | ||
133 | #define BM_28_00 0x000000001fffffff | ||
134 | #define BM_00_28 BM_28_00 | ||
135 | #define BM_29_00 0x000000003fffffff | ||
136 | #define BM_00_29 BM_29_00 | ||
137 | #define BM_30_00 0x000000007fffffff | ||
138 | #define BM_00_30 BM_30_00 | ||
139 | #define BM_31_00 0x00000000ffffffff | ||
140 | #define BM_00_31 BM_31_00 | ||
141 | #define BM_32_00 0x00000001ffffffff | ||
142 | #define BM_00_32 BM_32_00 | ||
143 | #define BM_33_00 0x00000003ffffffff | ||
144 | #define BM_00_33 BM_33_00 | ||
145 | #define BM_34_00 0x00000007ffffffff | ||
146 | #define BM_00_34 BM_34_00 | ||
147 | #define BM_35_00 0x0000000fffffffff | ||
148 | #define BM_00_35 BM_35_00 | ||
149 | #define BM_36_00 0x0000001fffffffff | ||
150 | #define BM_00_36 BM_36_00 | ||
151 | #define BM_37_00 0x0000003fffffffff | ||
152 | #define BM_00_37 BM_37_00 | ||
153 | #define BM_38_00 0x0000007fffffffff | ||
154 | #define BM_00_38 BM_38_00 | ||
155 | #define BM_39_00 0x000000ffffffffff | ||
156 | #define BM_00_39 BM_39_00 | ||
157 | #define BM_40_00 0x000001ffffffffff | ||
158 | #define BM_00_40 BM_40_00 | ||
159 | #define BM_41_00 0x000003ffffffffff | ||
160 | #define BM_00_41 BM_41_00 | ||
161 | #define BM_42_00 0x000007ffffffffff | ||
162 | #define BM_00_42 BM_42_00 | ||
163 | #define BM_43_00 0x00000fffffffffff | ||
164 | #define BM_00_43 BM_43_00 | ||
165 | #define BM_44_00 0x00001fffffffffff | ||
166 | #define BM_00_44 BM_44_00 | ||
167 | #define BM_45_00 0x00003fffffffffff | ||
168 | #define BM_00_45 BM_45_00 | ||
169 | #define BM_46_00 0x00007fffffffffff | ||
170 | #define BM_00_46 BM_46_00 | ||
171 | #define BM_47_00 0x0000ffffffffffff | ||
172 | #define BM_00_47 BM_47_00 | ||
173 | #define BM_48_00 0x0001ffffffffffff | ||
174 | #define BM_00_48 BM_48_00 | ||
175 | #define BM_49_00 0x0003ffffffffffff | ||
176 | #define BM_00_49 BM_49_00 | ||
177 | #define BM_50_00 0x0007ffffffffffff | ||
178 | #define BM_00_50 BM_50_00 | ||
179 | #define BM_51_00 0x000fffffffffffff | ||
180 | #define BM_00_51 BM_51_00 | ||
181 | #define BM_52_00 0x001fffffffffffff | ||
182 | #define BM_00_52 BM_52_00 | ||
183 | #define BM_53_00 0x003fffffffffffff | ||
184 | #define BM_00_53 BM_53_00 | ||
185 | #define BM_54_00 0x007fffffffffffff | ||
186 | #define BM_00_54 BM_54_00 | ||
187 | #define BM_55_00 0x00ffffffffffffff | ||
188 | #define BM_00_55 BM_55_00 | ||
189 | #define BM_56_00 0x01ffffffffffffff | ||
190 | #define BM_00_56 BM_56_00 | ||
191 | #define BM_57_00 0x03ffffffffffffff | ||
192 | #define BM_00_57 BM_57_00 | ||
193 | #define BM_58_00 0x07ffffffffffffff | ||
194 | #define BM_00_58 BM_58_00 | ||
195 | #define BM_59_00 0x0fffffffffffffff | ||
196 | #define BM_00_59 BM_59_00 | ||
197 | #define BM_60_00 0x1fffffffffffffff | ||
198 | #define BM_00_60 BM_60_00 | ||
199 | #define BM_61_00 0x3fffffffffffffff | ||
200 | #define BM_00_61 BM_61_00 | ||
201 | #define BM_62_00 0x7fffffffffffffff | ||
202 | #define BM_00_62 BM_62_00 | ||
203 | #define BM_63_00 0xffffffffffffffff | ||
204 | #define BM_00_63 BM_63_00 | ||
205 | #define BM_01_01 0x0000000000000002 | ||
206 | #define BM_02_01 0x0000000000000006 | ||
207 | #define BM_01_02 BM_02_01 | ||
208 | #define BM_03_01 0x000000000000000e | ||
209 | #define BM_01_03 BM_03_01 | ||
210 | #define BM_04_01 0x000000000000001e | ||
211 | #define BM_01_04 BM_04_01 | ||
212 | #define BM_05_01 0x000000000000003e | ||
213 | #define BM_01_05 BM_05_01 | ||
214 | #define BM_06_01 0x000000000000007e | ||
215 | #define BM_01_06 BM_06_01 | ||
216 | #define BM_07_01 0x00000000000000fe | ||
217 | #define BM_01_07 BM_07_01 | ||
218 | #define BM_08_01 0x00000000000001fe | ||
219 | #define BM_01_08 BM_08_01 | ||
220 | #define BM_09_01 0x00000000000003fe | ||
221 | #define BM_01_09 BM_09_01 | ||
222 | #define BM_10_01 0x00000000000007fe | ||
223 | #define BM_01_10 BM_10_01 | ||
224 | #define BM_11_01 0x0000000000000ffe | ||
225 | #define BM_01_11 BM_11_01 | ||
226 | #define BM_12_01 0x0000000000001ffe | ||
227 | #define BM_01_12 BM_12_01 | ||
228 | #define BM_13_01 0x0000000000003ffe | ||
229 | #define BM_01_13 BM_13_01 | ||
230 | #define BM_14_01 0x0000000000007ffe | ||
231 | #define BM_01_14 BM_14_01 | ||
232 | #define BM_15_01 0x000000000000fffe | ||
233 | #define BM_01_15 BM_15_01 | ||
234 | #define BM_16_01 0x000000000001fffe | ||
235 | #define BM_01_16 BM_16_01 | ||
236 | #define BM_17_01 0x000000000003fffe | ||
237 | #define BM_01_17 BM_17_01 | ||
238 | #define BM_18_01 0x000000000007fffe | ||
239 | #define BM_01_18 BM_18_01 | ||
240 | #define BM_19_01 0x00000000000ffffe | ||
241 | #define BM_01_19 BM_19_01 | ||
242 | #define BM_20_01 0x00000000001ffffe | ||
243 | #define BM_01_20 BM_20_01 | ||
244 | #define BM_21_01 0x00000000003ffffe | ||
245 | #define BM_01_21 BM_21_01 | ||
246 | #define BM_22_01 0x00000000007ffffe | ||
247 | #define BM_01_22 BM_22_01 | ||
248 | #define BM_23_01 0x0000000000fffffe | ||
249 | #define BM_01_23 BM_23_01 | ||
250 | #define BM_24_01 0x0000000001fffffe | ||
251 | #define BM_01_24 BM_24_01 | ||
252 | #define BM_25_01 0x0000000003fffffe | ||
253 | #define BM_01_25 BM_25_01 | ||
254 | #define BM_26_01 0x0000000007fffffe | ||
255 | #define BM_01_26 BM_26_01 | ||
256 | #define BM_27_01 0x000000000ffffffe | ||
257 | #define BM_01_27 BM_27_01 | ||
258 | #define BM_28_01 0x000000001ffffffe | ||
259 | #define BM_01_28 BM_28_01 | ||
260 | #define BM_29_01 0x000000003ffffffe | ||
261 | #define BM_01_29 BM_29_01 | ||
262 | #define BM_30_01 0x000000007ffffffe | ||
263 | #define BM_01_30 BM_30_01 | ||
264 | #define BM_31_01 0x00000000fffffffe | ||
265 | #define BM_01_31 BM_31_01 | ||
266 | #define BM_32_01 0x00000001fffffffe | ||
267 | #define BM_01_32 BM_32_01 | ||
268 | #define BM_33_01 0x00000003fffffffe | ||
269 | #define BM_01_33 BM_33_01 | ||
270 | #define BM_34_01 0x00000007fffffffe | ||
271 | #define BM_01_34 BM_34_01 | ||
272 | #define BM_35_01 0x0000000ffffffffe | ||
273 | #define BM_01_35 BM_35_01 | ||
274 | #define BM_36_01 0x0000001ffffffffe | ||
275 | #define BM_01_36 BM_36_01 | ||
276 | #define BM_37_01 0x0000003ffffffffe | ||
277 | #define BM_01_37 BM_37_01 | ||
278 | #define BM_38_01 0x0000007ffffffffe | ||
279 | #define BM_01_38 BM_38_01 | ||
280 | #define BM_39_01 0x000000fffffffffe | ||
281 | #define BM_01_39 BM_39_01 | ||
282 | #define BM_40_01 0x000001fffffffffe | ||
283 | #define BM_01_40 BM_40_01 | ||
284 | #define BM_41_01 0x000003fffffffffe | ||
285 | #define BM_01_41 BM_41_01 | ||
286 | #define BM_42_01 0x000007fffffffffe | ||
287 | #define BM_01_42 BM_42_01 | ||
288 | #define BM_43_01 0x00000ffffffffffe | ||
289 | #define BM_01_43 BM_43_01 | ||
290 | #define BM_44_01 0x00001ffffffffffe | ||
291 | #define BM_01_44 BM_44_01 | ||
292 | #define BM_45_01 0x00003ffffffffffe | ||
293 | #define BM_01_45 BM_45_01 | ||
294 | #define BM_46_01 0x00007ffffffffffe | ||
295 | #define BM_01_46 BM_46_01 | ||
296 | #define BM_47_01 0x0000fffffffffffe | ||
297 | #define BM_01_47 BM_47_01 | ||
298 | #define BM_48_01 0x0001fffffffffffe | ||
299 | #define BM_01_48 BM_48_01 | ||
300 | #define BM_49_01 0x0003fffffffffffe | ||
301 | #define BM_01_49 BM_49_01 | ||
302 | #define BM_50_01 0x0007fffffffffffe | ||
303 | #define BM_01_50 BM_50_01 | ||
304 | #define BM_51_01 0x000ffffffffffffe | ||
305 | #define BM_01_51 BM_51_01 | ||
306 | #define BM_52_01 0x001ffffffffffffe | ||
307 | #define BM_01_52 BM_52_01 | ||
308 | #define BM_53_01 0x003ffffffffffffe | ||
309 | #define BM_01_53 BM_53_01 | ||
310 | #define BM_54_01 0x007ffffffffffffe | ||
311 | #define BM_01_54 BM_54_01 | ||
312 | #define BM_55_01 0x00fffffffffffffe | ||
313 | #define BM_01_55 BM_55_01 | ||
314 | #define BM_56_01 0x01fffffffffffffe | ||
315 | #define BM_01_56 BM_56_01 | ||
316 | #define BM_57_01 0x03fffffffffffffe | ||
317 | #define BM_01_57 BM_57_01 | ||
318 | #define BM_58_01 0x07fffffffffffffe | ||
319 | #define BM_01_58 BM_58_01 | ||
320 | #define BM_59_01 0x0ffffffffffffffe | ||
321 | #define BM_01_59 BM_59_01 | ||
322 | #define BM_60_01 0x1ffffffffffffffe | ||
323 | #define BM_01_60 BM_60_01 | ||
324 | #define BM_61_01 0x3ffffffffffffffe | ||
325 | #define BM_01_61 BM_61_01 | ||
326 | #define BM_62_01 0x7ffffffffffffffe | ||
327 | #define BM_01_62 BM_62_01 | ||
328 | #define BM_63_01 0xfffffffffffffffe | ||
329 | #define BM_01_63 BM_63_01 | ||
330 | #define BM_02_02 0x0000000000000004 | ||
331 | #define BM_03_02 0x000000000000000c | ||
332 | #define BM_02_03 BM_03_02 | ||
333 | #define BM_04_02 0x000000000000001c | ||
334 | #define BM_02_04 BM_04_02 | ||
335 | #define BM_05_02 0x000000000000003c | ||
336 | #define BM_02_05 BM_05_02 | ||
337 | #define BM_06_02 0x000000000000007c | ||
338 | #define BM_02_06 BM_06_02 | ||
339 | #define BM_07_02 0x00000000000000fc | ||
340 | #define BM_02_07 BM_07_02 | ||
341 | #define BM_08_02 0x00000000000001fc | ||
342 | #define BM_02_08 BM_08_02 | ||
343 | #define BM_09_02 0x00000000000003fc | ||
344 | #define BM_02_09 BM_09_02 | ||
345 | #define BM_10_02 0x00000000000007fc | ||
346 | #define BM_02_10 BM_10_02 | ||
347 | #define BM_11_02 0x0000000000000ffc | ||
348 | #define BM_02_11 BM_11_02 | ||
349 | #define BM_12_02 0x0000000000001ffc | ||
350 | #define BM_02_12 BM_12_02 | ||
351 | #define BM_13_02 0x0000000000003ffc | ||
352 | #define BM_02_13 BM_13_02 | ||
353 | #define BM_14_02 0x0000000000007ffc | ||
354 | #define BM_02_14 BM_14_02 | ||
355 | #define BM_15_02 0x000000000000fffc | ||
356 | #define BM_02_15 BM_15_02 | ||
357 | #define BM_16_02 0x000000000001fffc | ||
358 | #define BM_02_16 BM_16_02 | ||
359 | #define BM_17_02 0x000000000003fffc | ||
360 | #define BM_02_17 BM_17_02 | ||
361 | #define BM_18_02 0x000000000007fffc | ||
362 | #define BM_02_18 BM_18_02 | ||
363 | #define BM_19_02 0x00000000000ffffc | ||
364 | #define BM_02_19 BM_19_02 | ||
365 | #define BM_20_02 0x00000000001ffffc | ||
366 | #define BM_02_20 BM_20_02 | ||
367 | #define BM_21_02 0x00000000003ffffc | ||
368 | #define BM_02_21 BM_21_02 | ||
369 | #define BM_22_02 0x00000000007ffffc | ||
370 | #define BM_02_22 BM_22_02 | ||
371 | #define BM_23_02 0x0000000000fffffc | ||
372 | #define BM_02_23 BM_23_02 | ||
373 | #define BM_24_02 0x0000000001fffffc | ||
374 | #define BM_02_24 BM_24_02 | ||
375 | #define BM_25_02 0x0000000003fffffc | ||
376 | #define BM_02_25 BM_25_02 | ||
377 | #define BM_26_02 0x0000000007fffffc | ||
378 | #define BM_02_26 BM_26_02 | ||
379 | #define BM_27_02 0x000000000ffffffc | ||
380 | #define BM_02_27 BM_27_02 | ||
381 | #define BM_28_02 0x000000001ffffffc | ||
382 | #define BM_02_28 BM_28_02 | ||
383 | #define BM_29_02 0x000000003ffffffc | ||
384 | #define BM_02_29 BM_29_02 | ||
385 | #define BM_30_02 0x000000007ffffffc | ||
386 | #define BM_02_30 BM_30_02 | ||
387 | #define BM_31_02 0x00000000fffffffc | ||
388 | #define BM_02_31 BM_31_02 | ||
389 | #define BM_32_02 0x00000001fffffffc | ||
390 | #define BM_02_32 BM_32_02 | ||
391 | #define BM_33_02 0x00000003fffffffc | ||
392 | #define BM_02_33 BM_33_02 | ||
393 | #define BM_34_02 0x00000007fffffffc | ||
394 | #define BM_02_34 BM_34_02 | ||
395 | #define BM_35_02 0x0000000ffffffffc | ||
396 | #define BM_02_35 BM_35_02 | ||
397 | #define BM_36_02 0x0000001ffffffffc | ||
398 | #define BM_02_36 BM_36_02 | ||
399 | #define BM_37_02 0x0000003ffffffffc | ||
400 | #define BM_02_37 BM_37_02 | ||
401 | #define BM_38_02 0x0000007ffffffffc | ||
402 | #define BM_02_38 BM_38_02 | ||
403 | #define BM_39_02 0x000000fffffffffc | ||
404 | #define BM_02_39 BM_39_02 | ||
405 | #define BM_40_02 0x000001fffffffffc | ||
406 | #define BM_02_40 BM_40_02 | ||
407 | #define BM_41_02 0x000003fffffffffc | ||
408 | #define BM_02_41 BM_41_02 | ||
409 | #define BM_42_02 0x000007fffffffffc | ||
410 | #define BM_02_42 BM_42_02 | ||
411 | #define BM_43_02 0x00000ffffffffffc | ||
412 | #define BM_02_43 BM_43_02 | ||
413 | #define BM_44_02 0x00001ffffffffffc | ||
414 | #define BM_02_44 BM_44_02 | ||
415 | #define BM_45_02 0x00003ffffffffffc | ||
416 | #define BM_02_45 BM_45_02 | ||
417 | #define BM_46_02 0x00007ffffffffffc | ||
418 | #define BM_02_46 BM_46_02 | ||
419 | #define BM_47_02 0x0000fffffffffffc | ||
420 | #define BM_02_47 BM_47_02 | ||
421 | #define BM_48_02 0x0001fffffffffffc | ||
422 | #define BM_02_48 BM_48_02 | ||
423 | #define BM_49_02 0x0003fffffffffffc | ||
424 | #define BM_02_49 BM_49_02 | ||
425 | #define BM_50_02 0x0007fffffffffffc | ||
426 | #define BM_02_50 BM_50_02 | ||
427 | #define BM_51_02 0x000ffffffffffffc | ||
428 | #define BM_02_51 BM_51_02 | ||
429 | #define BM_52_02 0x001ffffffffffffc | ||
430 | #define BM_02_52 BM_52_02 | ||
431 | #define BM_53_02 0x003ffffffffffffc | ||
432 | #define BM_02_53 BM_53_02 | ||
433 | #define BM_54_02 0x007ffffffffffffc | ||
434 | #define BM_02_54 BM_54_02 | ||
435 | #define BM_55_02 0x00fffffffffffffc | ||
436 | #define BM_02_55 BM_55_02 | ||
437 | #define BM_56_02 0x01fffffffffffffc | ||
438 | #define BM_02_56 BM_56_02 | ||
439 | #define BM_57_02 0x03fffffffffffffc | ||
440 | #define BM_02_57 BM_57_02 | ||
441 | #define BM_58_02 0x07fffffffffffffc | ||
442 | #define BM_02_58 BM_58_02 | ||
443 | #define BM_59_02 0x0ffffffffffffffc | ||
444 | #define BM_02_59 BM_59_02 | ||
445 | #define BM_60_02 0x1ffffffffffffffc | ||
446 | #define BM_02_60 BM_60_02 | ||
447 | #define BM_61_02 0x3ffffffffffffffc | ||
448 | #define BM_02_61 BM_61_02 | ||
449 | #define BM_62_02 0x7ffffffffffffffc | ||
450 | #define BM_02_62 BM_62_02 | ||
451 | #define BM_63_02 0xfffffffffffffffc | ||
452 | #define BM_02_63 BM_63_02 | ||
453 | #define BM_03_03 0x0000000000000008 | ||
454 | #define BM_04_03 0x0000000000000018 | ||
455 | #define BM_03_04 BM_04_03 | ||
456 | #define BM_05_03 0x0000000000000038 | ||
457 | #define BM_03_05 BM_05_03 | ||
458 | #define BM_06_03 0x0000000000000078 | ||
459 | #define BM_03_06 BM_06_03 | ||
460 | #define BM_07_03 0x00000000000000f8 | ||
461 | #define BM_03_07 BM_07_03 | ||
462 | #define BM_08_03 0x00000000000001f8 | ||
463 | #define BM_03_08 BM_08_03 | ||
464 | #define BM_09_03 0x00000000000003f8 | ||
465 | #define BM_03_09 BM_09_03 | ||
466 | #define BM_10_03 0x00000000000007f8 | ||
467 | #define BM_03_10 BM_10_03 | ||
468 | #define BM_11_03 0x0000000000000ff8 | ||
469 | #define BM_03_11 BM_11_03 | ||
470 | #define BM_12_03 0x0000000000001ff8 | ||
471 | #define BM_03_12 BM_12_03 | ||
472 | #define BM_13_03 0x0000000000003ff8 | ||
473 | #define BM_03_13 BM_13_03 | ||
474 | #define BM_14_03 0x0000000000007ff8 | ||
475 | #define BM_03_14 BM_14_03 | ||
476 | #define BM_15_03 0x000000000000fff8 | ||
477 | #define BM_03_15 BM_15_03 | ||
478 | #define BM_16_03 0x000000000001fff8 | ||
479 | #define BM_03_16 BM_16_03 | ||
480 | #define BM_17_03 0x000000000003fff8 | ||
481 | #define BM_03_17 BM_17_03 | ||
482 | #define BM_18_03 0x000000000007fff8 | ||
483 | #define BM_03_18 BM_18_03 | ||
484 | #define BM_19_03 0x00000000000ffff8 | ||
485 | #define BM_03_19 BM_19_03 | ||
486 | #define BM_20_03 0x00000000001ffff8 | ||
487 | #define BM_03_20 BM_20_03 | ||
488 | #define BM_21_03 0x00000000003ffff8 | ||
489 | #define BM_03_21 BM_21_03 | ||
490 | #define BM_22_03 0x00000000007ffff8 | ||
491 | #define BM_03_22 BM_22_03 | ||
492 | #define BM_23_03 0x0000000000fffff8 | ||
493 | #define BM_03_23 BM_23_03 | ||
494 | #define BM_24_03 0x0000000001fffff8 | ||
495 | #define BM_03_24 BM_24_03 | ||
496 | #define BM_25_03 0x0000000003fffff8 | ||
497 | #define BM_03_25 BM_25_03 | ||
498 | #define BM_26_03 0x0000000007fffff8 | ||
499 | #define BM_03_26 BM_26_03 | ||
500 | #define BM_27_03 0x000000000ffffff8 | ||
501 | #define BM_03_27 BM_27_03 | ||
502 | #define BM_28_03 0x000000001ffffff8 | ||
503 | #define BM_03_28 BM_28_03 | ||
504 | #define BM_29_03 0x000000003ffffff8 | ||
505 | #define BM_03_29 BM_29_03 | ||
506 | #define BM_30_03 0x000000007ffffff8 | ||
507 | #define BM_03_30 BM_30_03 | ||
508 | #define BM_31_03 0x00000000fffffff8 | ||
509 | #define BM_03_31 BM_31_03 | ||
510 | #define BM_32_03 0x00000001fffffff8 | ||
511 | #define BM_03_32 BM_32_03 | ||
512 | #define BM_33_03 0x00000003fffffff8 | ||
513 | #define BM_03_33 BM_33_03 | ||
514 | #define BM_34_03 0x00000007fffffff8 | ||
515 | #define BM_03_34 BM_34_03 | ||
516 | #define BM_35_03 0x0000000ffffffff8 | ||
517 | #define BM_03_35 BM_35_03 | ||
518 | #define BM_36_03 0x0000001ffffffff8 | ||
519 | #define BM_03_36 BM_36_03 | ||
520 | #define BM_37_03 0x0000003ffffffff8 | ||
521 | #define BM_03_37 BM_37_03 | ||
522 | #define BM_38_03 0x0000007ffffffff8 | ||
523 | #define BM_03_38 BM_38_03 | ||
524 | #define BM_39_03 0x000000fffffffff8 | ||
525 | #define BM_03_39 BM_39_03 | ||
526 | #define BM_40_03 0x000001fffffffff8 | ||
527 | #define BM_03_40 BM_40_03 | ||
528 | #define BM_41_03 0x000003fffffffff8 | ||
529 | #define BM_03_41 BM_41_03 | ||
530 | #define BM_42_03 0x000007fffffffff8 | ||
531 | #define BM_03_42 BM_42_03 | ||
532 | #define BM_43_03 0x00000ffffffffff8 | ||
533 | #define BM_03_43 BM_43_03 | ||
534 | #define BM_44_03 0x00001ffffffffff8 | ||
535 | #define BM_03_44 BM_44_03 | ||
536 | #define BM_45_03 0x00003ffffffffff8 | ||
537 | #define BM_03_45 BM_45_03 | ||
538 | #define BM_46_03 0x00007ffffffffff8 | ||
539 | #define BM_03_46 BM_46_03 | ||
540 | #define BM_47_03 0x0000fffffffffff8 | ||
541 | #define BM_03_47 BM_47_03 | ||
542 | #define BM_48_03 0x0001fffffffffff8 | ||
543 | #define BM_03_48 BM_48_03 | ||
544 | #define BM_49_03 0x0003fffffffffff8 | ||
545 | #define BM_03_49 BM_49_03 | ||
546 | #define BM_50_03 0x0007fffffffffff8 | ||
547 | #define BM_03_50 BM_50_03 | ||
548 | #define BM_51_03 0x000ffffffffffff8 | ||
549 | #define BM_03_51 BM_51_03 | ||
550 | #define BM_52_03 0x001ffffffffffff8 | ||
551 | #define BM_03_52 BM_52_03 | ||
552 | #define BM_53_03 0x003ffffffffffff8 | ||
553 | #define BM_03_53 BM_53_03 | ||
554 | #define BM_54_03 0x007ffffffffffff8 | ||
555 | #define BM_03_54 BM_54_03 | ||
556 | #define BM_55_03 0x00fffffffffffff8 | ||
557 | #define BM_03_55 BM_55_03 | ||
558 | #define BM_56_03 0x01fffffffffffff8 | ||
559 | #define BM_03_56 BM_56_03 | ||
560 | #define BM_57_03 0x03fffffffffffff8 | ||
561 | #define BM_03_57 BM_57_03 | ||
562 | #define BM_58_03 0x07fffffffffffff8 | ||
563 | #define BM_03_58 BM_58_03 | ||
564 | #define BM_59_03 0x0ffffffffffffff8 | ||
565 | #define BM_03_59 BM_59_03 | ||
566 | #define BM_60_03 0x1ffffffffffffff8 | ||
567 | #define BM_03_60 BM_60_03 | ||
568 | #define BM_61_03 0x3ffffffffffffff8 | ||
569 | #define BM_03_61 BM_61_03 | ||
570 | #define BM_62_03 0x7ffffffffffffff8 | ||
571 | #define BM_03_62 BM_62_03 | ||
572 | #define BM_63_03 0xfffffffffffffff8 | ||
573 | #define BM_03_63 BM_63_03 | ||
574 | #define BM_04_04 0x0000000000000010 | ||
575 | #define BM_05_04 0x0000000000000030 | ||
576 | #define BM_04_05 BM_05_04 | ||
577 | #define BM_06_04 0x0000000000000070 | ||
578 | #define BM_04_06 BM_06_04 | ||
579 | #define BM_07_04 0x00000000000000f0 | ||
580 | #define BM_04_07 BM_07_04 | ||
581 | #define BM_08_04 0x00000000000001f0 | ||
582 | #define BM_04_08 BM_08_04 | ||
583 | #define BM_09_04 0x00000000000003f0 | ||
584 | #define BM_04_09 BM_09_04 | ||
585 | #define BM_10_04 0x00000000000007f0 | ||
586 | #define BM_04_10 BM_10_04 | ||
587 | #define BM_11_04 0x0000000000000ff0 | ||
588 | #define BM_04_11 BM_11_04 | ||
589 | #define BM_12_04 0x0000000000001ff0 | ||
590 | #define BM_04_12 BM_12_04 | ||
591 | #define BM_13_04 0x0000000000003ff0 | ||
592 | #define BM_04_13 BM_13_04 | ||
593 | #define BM_14_04 0x0000000000007ff0 | ||
594 | #define BM_04_14 BM_14_04 | ||
595 | #define BM_15_04 0x000000000000fff0 | ||
596 | #define BM_04_15 BM_15_04 | ||
597 | #define BM_16_04 0x000000000001fff0 | ||
598 | #define BM_04_16 BM_16_04 | ||
599 | #define BM_17_04 0x000000000003fff0 | ||
600 | #define BM_04_17 BM_17_04 | ||
601 | #define BM_18_04 0x000000000007fff0 | ||
602 | #define BM_04_18 BM_18_04 | ||
603 | #define BM_19_04 0x00000000000ffff0 | ||
604 | #define BM_04_19 BM_19_04 | ||
605 | #define BM_20_04 0x00000000001ffff0 | ||
606 | #define BM_04_20 BM_20_04 | ||
607 | #define BM_21_04 0x00000000003ffff0 | ||
608 | #define BM_04_21 BM_21_04 | ||
609 | #define BM_22_04 0x00000000007ffff0 | ||
610 | #define BM_04_22 BM_22_04 | ||
611 | #define BM_23_04 0x0000000000fffff0 | ||
612 | #define BM_04_23 BM_23_04 | ||
613 | #define BM_24_04 0x0000000001fffff0 | ||
614 | #define BM_04_24 BM_24_04 | ||
615 | #define BM_25_04 0x0000000003fffff0 | ||
616 | #define BM_04_25 BM_25_04 | ||
617 | #define BM_26_04 0x0000000007fffff0 | ||
618 | #define BM_04_26 BM_26_04 | ||
619 | #define BM_27_04 0x000000000ffffff0 | ||
620 | #define BM_04_27 BM_27_04 | ||
621 | #define BM_28_04 0x000000001ffffff0 | ||
622 | #define BM_04_28 BM_28_04 | ||
623 | #define BM_29_04 0x000000003ffffff0 | ||
624 | #define BM_04_29 BM_29_04 | ||
625 | #define BM_30_04 0x000000007ffffff0 | ||
626 | #define BM_04_30 BM_30_04 | ||
627 | #define BM_31_04 0x00000000fffffff0 | ||
628 | #define BM_04_31 BM_31_04 | ||
629 | #define BM_32_04 0x00000001fffffff0 | ||
630 | #define BM_04_32 BM_32_04 | ||
631 | #define BM_33_04 0x00000003fffffff0 | ||
632 | #define BM_04_33 BM_33_04 | ||
633 | #define BM_34_04 0x00000007fffffff0 | ||
634 | #define BM_04_34 BM_34_04 | ||
635 | #define BM_35_04 0x0000000ffffffff0 | ||
636 | #define BM_04_35 BM_35_04 | ||
637 | #define BM_36_04 0x0000001ffffffff0 | ||
638 | #define BM_04_36 BM_36_04 | ||
639 | #define BM_37_04 0x0000003ffffffff0 | ||
640 | #define BM_04_37 BM_37_04 | ||
641 | #define BM_38_04 0x0000007ffffffff0 | ||
642 | #define BM_04_38 BM_38_04 | ||
643 | #define BM_39_04 0x000000fffffffff0 | ||
644 | #define BM_04_39 BM_39_04 | ||
645 | #define BM_40_04 0x000001fffffffff0 | ||
646 | #define BM_04_40 BM_40_04 | ||
647 | #define BM_41_04 0x000003fffffffff0 | ||
648 | #define BM_04_41 BM_41_04 | ||
649 | #define BM_42_04 0x000007fffffffff0 | ||
650 | #define BM_04_42 BM_42_04 | ||
651 | #define BM_43_04 0x00000ffffffffff0 | ||
652 | #define BM_04_43 BM_43_04 | ||
653 | #define BM_44_04 0x00001ffffffffff0 | ||
654 | #define BM_04_44 BM_44_04 | ||
655 | #define BM_45_04 0x00003ffffffffff0 | ||
656 | #define BM_04_45 BM_45_04 | ||
657 | #define BM_46_04 0x00007ffffffffff0 | ||
658 | #define BM_04_46 BM_46_04 | ||
659 | #define BM_47_04 0x0000fffffffffff0 | ||
660 | #define BM_04_47 BM_47_04 | ||
661 | #define BM_48_04 0x0001fffffffffff0 | ||
662 | #define BM_04_48 BM_48_04 | ||
663 | #define BM_49_04 0x0003fffffffffff0 | ||
664 | #define BM_04_49 BM_49_04 | ||
665 | #define BM_50_04 0x0007fffffffffff0 | ||
666 | #define BM_04_50 BM_50_04 | ||
667 | #define BM_51_04 0x000ffffffffffff0 | ||
668 | #define BM_04_51 BM_51_04 | ||
669 | #define BM_52_04 0x001ffffffffffff0 | ||
670 | #define BM_04_52 BM_52_04 | ||
671 | #define BM_53_04 0x003ffffffffffff0 | ||
672 | #define BM_04_53 BM_53_04 | ||
673 | #define BM_54_04 0x007ffffffffffff0 | ||
674 | #define BM_04_54 BM_54_04 | ||
675 | #define BM_55_04 0x00fffffffffffff0 | ||
676 | #define BM_04_55 BM_55_04 | ||
677 | #define BM_56_04 0x01fffffffffffff0 | ||
678 | #define BM_04_56 BM_56_04 | ||
679 | #define BM_57_04 0x03fffffffffffff0 | ||
680 | #define BM_04_57 BM_57_04 | ||
681 | #define BM_58_04 0x07fffffffffffff0 | ||
682 | #define BM_04_58 BM_58_04 | ||
683 | #define BM_59_04 0x0ffffffffffffff0 | ||
684 | #define BM_04_59 BM_59_04 | ||
685 | #define BM_60_04 0x1ffffffffffffff0 | ||
686 | #define BM_04_60 BM_60_04 | ||
687 | #define BM_61_04 0x3ffffffffffffff0 | ||
688 | #define BM_04_61 BM_61_04 | ||
689 | #define BM_62_04 0x7ffffffffffffff0 | ||
690 | #define BM_04_62 BM_62_04 | ||
691 | #define BM_63_04 0xfffffffffffffff0 | ||
692 | #define BM_04_63 BM_63_04 | ||
693 | #define BM_05_05 0x0000000000000020 | ||
694 | #define BM_06_05 0x0000000000000060 | ||
695 | #define BM_05_06 BM_06_05 | ||
696 | #define BM_07_05 0x00000000000000e0 | ||
697 | #define BM_05_07 BM_07_05 | ||
698 | #define BM_08_05 0x00000000000001e0 | ||
699 | #define BM_05_08 BM_08_05 | ||
700 | #define BM_09_05 0x00000000000003e0 | ||
701 | #define BM_05_09 BM_09_05 | ||
702 | #define BM_10_05 0x00000000000007e0 | ||
703 | #define BM_05_10 BM_10_05 | ||
704 | #define BM_11_05 0x0000000000000fe0 | ||
705 | #define BM_05_11 BM_11_05 | ||
706 | #define BM_12_05 0x0000000000001fe0 | ||
707 | #define BM_05_12 BM_12_05 | ||
708 | #define BM_13_05 0x0000000000003fe0 | ||
709 | #define BM_05_13 BM_13_05 | ||
710 | #define BM_14_05 0x0000000000007fe0 | ||
711 | #define BM_05_14 BM_14_05 | ||
712 | #define BM_15_05 0x000000000000ffe0 | ||
713 | #define BM_05_15 BM_15_05 | ||
714 | #define BM_16_05 0x000000000001ffe0 | ||
715 | #define BM_05_16 BM_16_05 | ||
716 | #define BM_17_05 0x000000000003ffe0 | ||
717 | #define BM_05_17 BM_17_05 | ||
718 | #define BM_18_05 0x000000000007ffe0 | ||
719 | #define BM_05_18 BM_18_05 | ||
720 | #define BM_19_05 0x00000000000fffe0 | ||
721 | #define BM_05_19 BM_19_05 | ||
722 | #define BM_20_05 0x00000000001fffe0 | ||
723 | #define BM_05_20 BM_20_05 | ||
724 | #define BM_21_05 0x00000000003fffe0 | ||
725 | #define BM_05_21 BM_21_05 | ||
726 | #define BM_22_05 0x00000000007fffe0 | ||
727 | #define BM_05_22 BM_22_05 | ||
728 | #define BM_23_05 0x0000000000ffffe0 | ||
729 | #define BM_05_23 BM_23_05 | ||
730 | #define BM_24_05 0x0000000001ffffe0 | ||
731 | #define BM_05_24 BM_24_05 | ||
732 | #define BM_25_05 0x0000000003ffffe0 | ||
733 | #define BM_05_25 BM_25_05 | ||
734 | #define BM_26_05 0x0000000007ffffe0 | ||
735 | #define BM_05_26 BM_26_05 | ||
736 | #define BM_27_05 0x000000000fffffe0 | ||
737 | #define BM_05_27 BM_27_05 | ||
738 | #define BM_28_05 0x000000001fffffe0 | ||
739 | #define BM_05_28 BM_28_05 | ||
740 | #define BM_29_05 0x000000003fffffe0 | ||
741 | #define BM_05_29 BM_29_05 | ||
742 | #define BM_30_05 0x000000007fffffe0 | ||
743 | #define BM_05_30 BM_30_05 | ||
744 | #define BM_31_05 0x00000000ffffffe0 | ||
745 | #define BM_05_31 BM_31_05 | ||
746 | #define BM_32_05 0x00000001ffffffe0 | ||
747 | #define BM_05_32 BM_32_05 | ||
748 | #define BM_33_05 0x00000003ffffffe0 | ||
749 | #define BM_05_33 BM_33_05 | ||
750 | #define BM_34_05 0x00000007ffffffe0 | ||
751 | #define BM_05_34 BM_34_05 | ||
752 | #define BM_35_05 0x0000000fffffffe0 | ||
753 | #define BM_05_35 BM_35_05 | ||
754 | #define BM_36_05 0x0000001fffffffe0 | ||
755 | #define BM_05_36 BM_36_05 | ||
756 | #define BM_37_05 0x0000003fffffffe0 | ||
757 | #define BM_05_37 BM_37_05 | ||
758 | #define BM_38_05 0x0000007fffffffe0 | ||
759 | #define BM_05_38 BM_38_05 | ||
760 | #define BM_39_05 0x000000ffffffffe0 | ||
761 | #define BM_05_39 BM_39_05 | ||
762 | #define BM_40_05 0x000001ffffffffe0 | ||
763 | #define BM_05_40 BM_40_05 | ||
764 | #define BM_41_05 0x000003ffffffffe0 | ||
765 | #define BM_05_41 BM_41_05 | ||
766 | #define BM_42_05 0x000007ffffffffe0 | ||
767 | #define BM_05_42 BM_42_05 | ||
768 | #define BM_43_05 0x00000fffffffffe0 | ||
769 | #define BM_05_43 BM_43_05 | ||
770 | #define BM_44_05 0x00001fffffffffe0 | ||
771 | #define BM_05_44 BM_44_05 | ||
772 | #define BM_45_05 0x00003fffffffffe0 | ||
773 | #define BM_05_45 BM_45_05 | ||
774 | #define BM_46_05 0x00007fffffffffe0 | ||
775 | #define BM_05_46 BM_46_05 | ||
776 | #define BM_47_05 0x0000ffffffffffe0 | ||
777 | #define BM_05_47 BM_47_05 | ||
778 | #define BM_48_05 0x0001ffffffffffe0 | ||
779 | #define BM_05_48 BM_48_05 | ||
780 | #define BM_49_05 0x0003ffffffffffe0 | ||
781 | #define BM_05_49 BM_49_05 | ||
782 | #define BM_50_05 0x0007ffffffffffe0 | ||
783 | #define BM_05_50 BM_50_05 | ||
784 | #define BM_51_05 0x000fffffffffffe0 | ||
785 | #define BM_05_51 BM_51_05 | ||
786 | #define BM_52_05 0x001fffffffffffe0 | ||
787 | #define BM_05_52 BM_52_05 | ||
788 | #define BM_53_05 0x003fffffffffffe0 | ||
789 | #define BM_05_53 BM_53_05 | ||
790 | #define BM_54_05 0x007fffffffffffe0 | ||
791 | #define BM_05_54 BM_54_05 | ||
792 | #define BM_55_05 0x00ffffffffffffe0 | ||
793 | #define BM_05_55 BM_55_05 | ||
794 | #define BM_56_05 0x01ffffffffffffe0 | ||
795 | #define BM_05_56 BM_56_05 | ||
796 | #define BM_57_05 0x03ffffffffffffe0 | ||
797 | #define BM_05_57 BM_57_05 | ||
798 | #define BM_58_05 0x07ffffffffffffe0 | ||
799 | #define BM_05_58 BM_58_05 | ||
800 | #define BM_59_05 0x0fffffffffffffe0 | ||
801 | #define BM_05_59 BM_59_05 | ||
802 | #define BM_60_05 0x1fffffffffffffe0 | ||
803 | #define BM_05_60 BM_60_05 | ||
804 | #define BM_61_05 0x3fffffffffffffe0 | ||
805 | #define BM_05_61 BM_61_05 | ||
806 | #define BM_62_05 0x7fffffffffffffe0 | ||
807 | #define BM_05_62 BM_62_05 | ||
808 | #define BM_63_05 0xffffffffffffffe0 | ||
809 | #define BM_05_63 BM_63_05 | ||
810 | #define BM_06_06 0x0000000000000040 | ||
811 | #define BM_07_06 0x00000000000000c0 | ||
812 | #define BM_06_07 BM_07_06 | ||
813 | #define BM_08_06 0x00000000000001c0 | ||
814 | #define BM_06_08 BM_08_06 | ||
815 | #define BM_09_06 0x00000000000003c0 | ||
816 | #define BM_06_09 BM_09_06 | ||
817 | #define BM_10_06 0x00000000000007c0 | ||
818 | #define BM_06_10 BM_10_06 | ||
819 | #define BM_11_06 0x0000000000000fc0 | ||
820 | #define BM_06_11 BM_11_06 | ||
821 | #define BM_12_06 0x0000000000001fc0 | ||
822 | #define BM_06_12 BM_12_06 | ||
823 | #define BM_13_06 0x0000000000003fc0 | ||
824 | #define BM_06_13 BM_13_06 | ||
825 | #define BM_14_06 0x0000000000007fc0 | ||
826 | #define BM_06_14 BM_14_06 | ||
827 | #define BM_15_06 0x000000000000ffc0 | ||
828 | #define BM_06_15 BM_15_06 | ||
829 | #define BM_16_06 0x000000000001ffc0 | ||
830 | #define BM_06_16 BM_16_06 | ||
831 | #define BM_17_06 0x000000000003ffc0 | ||
832 | #define BM_06_17 BM_17_06 | ||
833 | #define BM_18_06 0x000000000007ffc0 | ||
834 | #define BM_06_18 BM_18_06 | ||
835 | #define BM_19_06 0x00000000000fffc0 | ||
836 | #define BM_06_19 BM_19_06 | ||
837 | #define BM_20_06 0x00000000001fffc0 | ||
838 | #define BM_06_20 BM_20_06 | ||
839 | #define BM_21_06 0x00000000003fffc0 | ||
840 | #define BM_06_21 BM_21_06 | ||
841 | #define BM_22_06 0x00000000007fffc0 | ||
842 | #define BM_06_22 BM_22_06 | ||
843 | #define BM_23_06 0x0000000000ffffc0 | ||
844 | #define BM_06_23 BM_23_06 | ||
845 | #define BM_24_06 0x0000000001ffffc0 | ||
846 | #define BM_06_24 BM_24_06 | ||
847 | #define BM_25_06 0x0000000003ffffc0 | ||
848 | #define BM_06_25 BM_25_06 | ||
849 | #define BM_26_06 0x0000000007ffffc0 | ||
850 | #define BM_06_26 BM_26_06 | ||
851 | #define BM_27_06 0x000000000fffffc0 | ||
852 | #define BM_06_27 BM_27_06 | ||
853 | #define BM_28_06 0x000000001fffffc0 | ||
854 | #define BM_06_28 BM_28_06 | ||
855 | #define BM_29_06 0x000000003fffffc0 | ||
856 | #define BM_06_29 BM_29_06 | ||
857 | #define BM_30_06 0x000000007fffffc0 | ||
858 | #define BM_06_30 BM_30_06 | ||
859 | #define BM_31_06 0x00000000ffffffc0 | ||
860 | #define BM_06_31 BM_31_06 | ||
861 | #define BM_32_06 0x00000001ffffffc0 | ||
862 | #define BM_06_32 BM_32_06 | ||
863 | #define BM_33_06 0x00000003ffffffc0 | ||
864 | #define BM_06_33 BM_33_06 | ||
865 | #define BM_34_06 0x00000007ffffffc0 | ||
866 | #define BM_06_34 BM_34_06 | ||
867 | #define BM_35_06 0x0000000fffffffc0 | ||
868 | #define BM_06_35 BM_35_06 | ||
869 | #define BM_36_06 0x0000001fffffffc0 | ||
870 | #define BM_06_36 BM_36_06 | ||
871 | #define BM_37_06 0x0000003fffffffc0 | ||
872 | #define BM_06_37 BM_37_06 | ||
873 | #define BM_38_06 0x0000007fffffffc0 | ||
874 | #define BM_06_38 BM_38_06 | ||
875 | #define BM_39_06 0x000000ffffffffc0 | ||
876 | #define BM_06_39 BM_39_06 | ||
877 | #define BM_40_06 0x000001ffffffffc0 | ||
878 | #define BM_06_40 BM_40_06 | ||
879 | #define BM_41_06 0x000003ffffffffc0 | ||
880 | #define BM_06_41 BM_41_06 | ||
881 | #define BM_42_06 0x000007ffffffffc0 | ||
882 | #define BM_06_42 BM_42_06 | ||
883 | #define BM_43_06 0x00000fffffffffc0 | ||
884 | #define BM_06_43 BM_43_06 | ||
885 | #define BM_44_06 0x00001fffffffffc0 | ||
886 | #define BM_06_44 BM_44_06 | ||
887 | #define BM_45_06 0x00003fffffffffc0 | ||
888 | #define BM_06_45 BM_45_06 | ||
889 | #define BM_46_06 0x00007fffffffffc0 | ||
890 | #define BM_06_46 BM_46_06 | ||
891 | #define BM_47_06 0x0000ffffffffffc0 | ||
892 | #define BM_06_47 BM_47_06 | ||
893 | #define BM_48_06 0x0001ffffffffffc0 | ||
894 | #define BM_06_48 BM_48_06 | ||
895 | #define BM_49_06 0x0003ffffffffffc0 | ||
896 | #define BM_06_49 BM_49_06 | ||
897 | #define BM_50_06 0x0007ffffffffffc0 | ||
898 | #define BM_06_50 BM_50_06 | ||
899 | #define BM_51_06 0x000fffffffffffc0 | ||
900 | #define BM_06_51 BM_51_06 | ||
901 | #define BM_52_06 0x001fffffffffffc0 | ||
902 | #define BM_06_52 BM_52_06 | ||
903 | #define BM_53_06 0x003fffffffffffc0 | ||
904 | #define BM_06_53 BM_53_06 | ||
905 | #define BM_54_06 0x007fffffffffffc0 | ||
906 | #define BM_06_54 BM_54_06 | ||
907 | #define BM_55_06 0x00ffffffffffffc0 | ||
908 | #define BM_06_55 BM_55_06 | ||
909 | #define BM_56_06 0x01ffffffffffffc0 | ||
910 | #define BM_06_56 BM_56_06 | ||
911 | #define BM_57_06 0x03ffffffffffffc0 | ||
912 | #define BM_06_57 BM_57_06 | ||
913 | #define BM_58_06 0x07ffffffffffffc0 | ||
914 | #define BM_06_58 BM_58_06 | ||
915 | #define BM_59_06 0x0fffffffffffffc0 | ||
916 | #define BM_06_59 BM_59_06 | ||
917 | #define BM_60_06 0x1fffffffffffffc0 | ||
918 | #define BM_06_60 BM_60_06 | ||
919 | #define BM_61_06 0x3fffffffffffffc0 | ||
920 | #define BM_06_61 BM_61_06 | ||
921 | #define BM_62_06 0x7fffffffffffffc0 | ||
922 | #define BM_06_62 BM_62_06 | ||
923 | #define BM_63_06 0xffffffffffffffc0 | ||
924 | #define BM_06_63 BM_63_06 | ||
925 | #define BM_07_07 0x0000000000000080 | ||
926 | #define BM_08_07 0x0000000000000180 | ||
927 | #define BM_07_08 BM_08_07 | ||
928 | #define BM_09_07 0x0000000000000380 | ||
929 | #define BM_07_09 BM_09_07 | ||
930 | #define BM_10_07 0x0000000000000780 | ||
931 | #define BM_07_10 BM_10_07 | ||
932 | #define BM_11_07 0x0000000000000f80 | ||
933 | #define BM_07_11 BM_11_07 | ||
934 | #define BM_12_07 0x0000000000001f80 | ||
935 | #define BM_07_12 BM_12_07 | ||
936 | #define BM_13_07 0x0000000000003f80 | ||
937 | #define BM_07_13 BM_13_07 | ||
938 | #define BM_14_07 0x0000000000007f80 | ||
939 | #define BM_07_14 BM_14_07 | ||
940 | #define BM_15_07 0x000000000000ff80 | ||
941 | #define BM_07_15 BM_15_07 | ||
942 | #define BM_16_07 0x000000000001ff80 | ||
943 | #define BM_07_16 BM_16_07 | ||
944 | #define BM_17_07 0x000000000003ff80 | ||
945 | #define BM_07_17 BM_17_07 | ||
946 | #define BM_18_07 0x000000000007ff80 | ||
947 | #define BM_07_18 BM_18_07 | ||
948 | #define BM_19_07 0x00000000000fff80 | ||
949 | #define BM_07_19 BM_19_07 | ||
950 | #define BM_20_07 0x00000000001fff80 | ||
951 | #define BM_07_20 BM_20_07 | ||
952 | #define BM_21_07 0x00000000003fff80 | ||
953 | #define BM_07_21 BM_21_07 | ||
954 | #define BM_22_07 0x00000000007fff80 | ||
955 | #define BM_07_22 BM_22_07 | ||
956 | #define BM_23_07 0x0000000000ffff80 | ||
957 | #define BM_07_23 BM_23_07 | ||
958 | #define BM_24_07 0x0000000001ffff80 | ||
959 | #define BM_07_24 BM_24_07 | ||
960 | #define BM_25_07 0x0000000003ffff80 | ||
961 | #define BM_07_25 BM_25_07 | ||
962 | #define BM_26_07 0x0000000007ffff80 | ||
963 | #define BM_07_26 BM_26_07 | ||
964 | #define BM_27_07 0x000000000fffff80 | ||
965 | #define BM_07_27 BM_27_07 | ||
966 | #define BM_28_07 0x000000001fffff80 | ||
967 | #define BM_07_28 BM_28_07 | ||
968 | #define BM_29_07 0x000000003fffff80 | ||
969 | #define BM_07_29 BM_29_07 | ||
970 | #define BM_30_07 0x000000007fffff80 | ||
971 | #define BM_07_30 BM_30_07 | ||
972 | #define BM_31_07 0x00000000ffffff80 | ||
973 | #define BM_07_31 BM_31_07 | ||
974 | #define BM_32_07 0x00000001ffffff80 | ||
975 | #define BM_07_32 BM_32_07 | ||
976 | #define BM_33_07 0x00000003ffffff80 | ||
977 | #define BM_07_33 BM_33_07 | ||
978 | #define BM_34_07 0x00000007ffffff80 | ||
979 | #define BM_07_34 BM_34_07 | ||
980 | #define BM_35_07 0x0000000fffffff80 | ||
981 | #define BM_07_35 BM_35_07 | ||
982 | #define BM_36_07 0x0000001fffffff80 | ||
983 | #define BM_07_36 BM_36_07 | ||
984 | #define BM_37_07 0x0000003fffffff80 | ||
985 | #define BM_07_37 BM_37_07 | ||
986 | #define BM_38_07 0x0000007fffffff80 | ||
987 | #define BM_07_38 BM_38_07 | ||
988 | #define BM_39_07 0x000000ffffffff80 | ||
989 | #define BM_07_39 BM_39_07 | ||
990 | #define BM_40_07 0x000001ffffffff80 | ||
991 | #define BM_07_40 BM_40_07 | ||
992 | #define BM_41_07 0x000003ffffffff80 | ||
993 | #define BM_07_41 BM_41_07 | ||
994 | #define BM_42_07 0x000007ffffffff80 | ||
995 | #define BM_07_42 BM_42_07 | ||
996 | #define BM_43_07 0x00000fffffffff80 | ||
997 | #define BM_07_43 BM_43_07 | ||
998 | #define BM_44_07 0x00001fffffffff80 | ||
999 | #define BM_07_44 BM_44_07 | ||
1000 | #define BM_45_07 0x00003fffffffff80 | ||
1001 | #define BM_07_45 BM_45_07 | ||
1002 | #define BM_46_07 0x00007fffffffff80 | ||
1003 | #define BM_07_46 BM_46_07 | ||
1004 | #define BM_47_07 0x0000ffffffffff80 | ||
1005 | #define BM_07_47 BM_47_07 | ||
1006 | #define BM_48_07 0x0001ffffffffff80 | ||
1007 | #define BM_07_48 BM_48_07 | ||
1008 | #define BM_49_07 0x0003ffffffffff80 | ||
1009 | #define BM_07_49 BM_49_07 | ||
1010 | #define BM_50_07 0x0007ffffffffff80 | ||
1011 | #define BM_07_50 BM_50_07 | ||
1012 | #define BM_51_07 0x000fffffffffff80 | ||
1013 | #define BM_07_51 BM_51_07 | ||
1014 | #define BM_52_07 0x001fffffffffff80 | ||
1015 | #define BM_07_52 BM_52_07 | ||
1016 | #define BM_53_07 0x003fffffffffff80 | ||
1017 | #define BM_07_53 BM_53_07 | ||
1018 | #define BM_54_07 0x007fffffffffff80 | ||
1019 | #define BM_07_54 BM_54_07 | ||
1020 | #define BM_55_07 0x00ffffffffffff80 | ||
1021 | #define BM_07_55 BM_55_07 | ||
1022 | #define BM_56_07 0x01ffffffffffff80 | ||
1023 | #define BM_07_56 BM_56_07 | ||
1024 | #define BM_57_07 0x03ffffffffffff80 | ||
1025 | #define BM_07_57 BM_57_07 | ||
1026 | #define BM_58_07 0x07ffffffffffff80 | ||
1027 | #define BM_07_58 BM_58_07 | ||
1028 | #define BM_59_07 0x0fffffffffffff80 | ||
1029 | #define BM_07_59 BM_59_07 | ||
1030 | #define BM_60_07 0x1fffffffffffff80 | ||
1031 | #define BM_07_60 BM_60_07 | ||
1032 | #define BM_61_07 0x3fffffffffffff80 | ||
1033 | #define BM_07_61 BM_61_07 | ||
1034 | #define BM_62_07 0x7fffffffffffff80 | ||
1035 | #define BM_07_62 BM_62_07 | ||
1036 | #define BM_63_07 0xffffffffffffff80 | ||
1037 | #define BM_07_63 BM_63_07 | ||
1038 | #define BM_08_08 0x0000000000000100 | ||
1039 | #define BM_09_08 0x0000000000000300 | ||
1040 | #define BM_08_09 BM_09_08 | ||
1041 | #define BM_10_08 0x0000000000000700 | ||
1042 | #define BM_08_10 BM_10_08 | ||
1043 | #define BM_11_08 0x0000000000000f00 | ||
1044 | #define BM_08_11 BM_11_08 | ||
1045 | #define BM_12_08 0x0000000000001f00 | ||
1046 | #define BM_08_12 BM_12_08 | ||
1047 | #define BM_13_08 0x0000000000003f00 | ||
1048 | #define BM_08_13 BM_13_08 | ||
1049 | #define BM_14_08 0x0000000000007f00 | ||
1050 | #define BM_08_14 BM_14_08 | ||
1051 | #define BM_15_08 0x000000000000ff00 | ||
1052 | #define BM_08_15 BM_15_08 | ||
1053 | #define BM_16_08 0x000000000001ff00 | ||
1054 | #define BM_08_16 BM_16_08 | ||
1055 | #define BM_17_08 0x000000000003ff00 | ||
1056 | #define BM_08_17 BM_17_08 | ||
1057 | #define BM_18_08 0x000000000007ff00 | ||
1058 | #define BM_08_18 BM_18_08 | ||
1059 | #define BM_19_08 0x00000000000fff00 | ||
1060 | #define BM_08_19 BM_19_08 | ||
1061 | #define BM_20_08 0x00000000001fff00 | ||
1062 | #define BM_08_20 BM_20_08 | ||
1063 | #define BM_21_08 0x00000000003fff00 | ||
1064 | #define BM_08_21 BM_21_08 | ||
1065 | #define BM_22_08 0x00000000007fff00 | ||
1066 | #define BM_08_22 BM_22_08 | ||
1067 | #define BM_23_08 0x0000000000ffff00 | ||
1068 | #define BM_08_23 BM_23_08 | ||
1069 | #define BM_24_08 0x0000000001ffff00 | ||
1070 | #define BM_08_24 BM_24_08 | ||
1071 | #define BM_25_08 0x0000000003ffff00 | ||
1072 | #define BM_08_25 BM_25_08 | ||
1073 | #define BM_26_08 0x0000000007ffff00 | ||
1074 | #define BM_08_26 BM_26_08 | ||
1075 | #define BM_27_08 0x000000000fffff00 | ||
1076 | #define BM_08_27 BM_27_08 | ||
1077 | #define BM_28_08 0x000000001fffff00 | ||
1078 | #define BM_08_28 BM_28_08 | ||
1079 | #define BM_29_08 0x000000003fffff00 | ||
1080 | #define BM_08_29 BM_29_08 | ||
1081 | #define BM_30_08 0x000000007fffff00 | ||
1082 | #define BM_08_30 BM_30_08 | ||
1083 | #define BM_31_08 0x00000000ffffff00 | ||
1084 | #define BM_08_31 BM_31_08 | ||
1085 | #define BM_32_08 0x00000001ffffff00 | ||
1086 | #define BM_08_32 BM_32_08 | ||
1087 | #define BM_33_08 0x00000003ffffff00 | ||
1088 | #define BM_08_33 BM_33_08 | ||
1089 | #define BM_34_08 0x00000007ffffff00 | ||
1090 | #define BM_08_34 BM_34_08 | ||
1091 | #define BM_35_08 0x0000000fffffff00 | ||
1092 | #define BM_08_35 BM_35_08 | ||
1093 | #define BM_36_08 0x0000001fffffff00 | ||
1094 | #define BM_08_36 BM_36_08 | ||
1095 | #define BM_37_08 0x0000003fffffff00 | ||
1096 | #define BM_08_37 BM_37_08 | ||
1097 | #define BM_38_08 0x0000007fffffff00 | ||
1098 | #define BM_08_38 BM_38_08 | ||
1099 | #define BM_39_08 0x000000ffffffff00 | ||
1100 | #define BM_08_39 BM_39_08 | ||
1101 | #define BM_40_08 0x000001ffffffff00 | ||
1102 | #define BM_08_40 BM_40_08 | ||
1103 | #define BM_41_08 0x000003ffffffff00 | ||
1104 | #define BM_08_41 BM_41_08 | ||
1105 | #define BM_42_08 0x000007ffffffff00 | ||
1106 | #define BM_08_42 BM_42_08 | ||
1107 | #define BM_43_08 0x00000fffffffff00 | ||
1108 | #define BM_08_43 BM_43_08 | ||
1109 | #define BM_44_08 0x00001fffffffff00 | ||
1110 | #define BM_08_44 BM_44_08 | ||
1111 | #define BM_45_08 0x00003fffffffff00 | ||
1112 | #define BM_08_45 BM_45_08 | ||
1113 | #define BM_46_08 0x00007fffffffff00 | ||
1114 | #define BM_08_46 BM_46_08 | ||
1115 | #define BM_47_08 0x0000ffffffffff00 | ||
1116 | #define BM_08_47 BM_47_08 | ||
1117 | #define BM_48_08 0x0001ffffffffff00 | ||
1118 | #define BM_08_48 BM_48_08 | ||
1119 | #define BM_49_08 0x0003ffffffffff00 | ||
1120 | #define BM_08_49 BM_49_08 | ||
1121 | #define BM_50_08 0x0007ffffffffff00 | ||
1122 | #define BM_08_50 BM_50_08 | ||
1123 | #define BM_51_08 0x000fffffffffff00 | ||
1124 | #define BM_08_51 BM_51_08 | ||
1125 | #define BM_52_08 0x001fffffffffff00 | ||
1126 | #define BM_08_52 BM_52_08 | ||
1127 | #define BM_53_08 0x003fffffffffff00 | ||
1128 | #define BM_08_53 BM_53_08 | ||
1129 | #define BM_54_08 0x007fffffffffff00 | ||
1130 | #define BM_08_54 BM_54_08 | ||
1131 | #define BM_55_08 0x00ffffffffffff00 | ||
1132 | #define BM_08_55 BM_55_08 | ||
1133 | #define BM_56_08 0x01ffffffffffff00 | ||
1134 | #define BM_08_56 BM_56_08 | ||
1135 | #define BM_57_08 0x03ffffffffffff00 | ||
1136 | #define BM_08_57 BM_57_08 | ||
1137 | #define BM_58_08 0x07ffffffffffff00 | ||
1138 | #define BM_08_58 BM_58_08 | ||
1139 | #define BM_59_08 0x0fffffffffffff00 | ||
1140 | #define BM_08_59 BM_59_08 | ||
1141 | #define BM_60_08 0x1fffffffffffff00 | ||
1142 | #define BM_08_60 BM_60_08 | ||
1143 | #define BM_61_08 0x3fffffffffffff00 | ||
1144 | #define BM_08_61 BM_61_08 | ||
1145 | #define BM_62_08 0x7fffffffffffff00 | ||
1146 | #define BM_08_62 BM_62_08 | ||
1147 | #define BM_63_08 0xffffffffffffff00 | ||
1148 | #define BM_08_63 BM_63_08 | ||
1149 | #define BM_09_09 0x0000000000000200 | ||
1150 | #define BM_10_09 0x0000000000000600 | ||
1151 | #define BM_09_10 BM_10_09 | ||
1152 | #define BM_11_09 0x0000000000000e00 | ||
1153 | #define BM_09_11 BM_11_09 | ||
1154 | #define BM_12_09 0x0000000000001e00 | ||
1155 | #define BM_09_12 BM_12_09 | ||
1156 | #define BM_13_09 0x0000000000003e00 | ||
1157 | #define BM_09_13 BM_13_09 | ||
1158 | #define BM_14_09 0x0000000000007e00 | ||
1159 | #define BM_09_14 BM_14_09 | ||
1160 | #define BM_15_09 0x000000000000fe00 | ||
1161 | #define BM_09_15 BM_15_09 | ||
1162 | #define BM_16_09 0x000000000001fe00 | ||
1163 | #define BM_09_16 BM_16_09 | ||
1164 | #define BM_17_09 0x000000000003fe00 | ||
1165 | #define BM_09_17 BM_17_09 | ||
1166 | #define BM_18_09 0x000000000007fe00 | ||
1167 | #define BM_09_18 BM_18_09 | ||
1168 | #define BM_19_09 0x00000000000ffe00 | ||
1169 | #define BM_09_19 BM_19_09 | ||
1170 | #define BM_20_09 0x00000000001ffe00 | ||
1171 | #define BM_09_20 BM_20_09 | ||
1172 | #define BM_21_09 0x00000000003ffe00 | ||
1173 | #define BM_09_21 BM_21_09 | ||
1174 | #define BM_22_09 0x00000000007ffe00 | ||
1175 | #define BM_09_22 BM_22_09 | ||
1176 | #define BM_23_09 0x0000000000fffe00 | ||
1177 | #define BM_09_23 BM_23_09 | ||
1178 | #define BM_24_09 0x0000000001fffe00 | ||
1179 | #define BM_09_24 BM_24_09 | ||
1180 | #define BM_25_09 0x0000000003fffe00 | ||
1181 | #define BM_09_25 BM_25_09 | ||
1182 | #define BM_26_09 0x0000000007fffe00 | ||
1183 | #define BM_09_26 BM_26_09 | ||
1184 | #define BM_27_09 0x000000000ffffe00 | ||
1185 | #define BM_09_27 BM_27_09 | ||
1186 | #define BM_28_09 0x000000001ffffe00 | ||
1187 | #define BM_09_28 BM_28_09 | ||
1188 | #define BM_29_09 0x000000003ffffe00 | ||
1189 | #define BM_09_29 BM_29_09 | ||
1190 | #define BM_30_09 0x000000007ffffe00 | ||
1191 | #define BM_09_30 BM_30_09 | ||
1192 | #define BM_31_09 0x00000000fffffe00 | ||
1193 | #define BM_09_31 BM_31_09 | ||
1194 | #define BM_32_09 0x00000001fffffe00 | ||
1195 | #define BM_09_32 BM_32_09 | ||
1196 | #define BM_33_09 0x00000003fffffe00 | ||
1197 | #define BM_09_33 BM_33_09 | ||
1198 | #define BM_34_09 0x00000007fffffe00 | ||
1199 | #define BM_09_34 BM_34_09 | ||
1200 | #define BM_35_09 0x0000000ffffffe00 | ||
1201 | #define BM_09_35 BM_35_09 | ||
1202 | #define BM_36_09 0x0000001ffffffe00 | ||
1203 | #define BM_09_36 BM_36_09 | ||
1204 | #define BM_37_09 0x0000003ffffffe00 | ||
1205 | #define BM_09_37 BM_37_09 | ||
1206 | #define BM_38_09 0x0000007ffffffe00 | ||
1207 | #define BM_09_38 BM_38_09 | ||
1208 | #define BM_39_09 0x000000fffffffe00 | ||
1209 | #define BM_09_39 BM_39_09 | ||
1210 | #define BM_40_09 0x000001fffffffe00 | ||
1211 | #define BM_09_40 BM_40_09 | ||
1212 | #define BM_41_09 0x000003fffffffe00 | ||
1213 | #define BM_09_41 BM_41_09 | ||
1214 | #define BM_42_09 0x000007fffffffe00 | ||
1215 | #define BM_09_42 BM_42_09 | ||
1216 | #define BM_43_09 0x00000ffffffffe00 | ||
1217 | #define BM_09_43 BM_43_09 | ||
1218 | #define BM_44_09 0x00001ffffffffe00 | ||
1219 | #define BM_09_44 BM_44_09 | ||
1220 | #define BM_45_09 0x00003ffffffffe00 | ||
1221 | #define BM_09_45 BM_45_09 | ||
1222 | #define BM_46_09 0x00007ffffffffe00 | ||
1223 | #define BM_09_46 BM_46_09 | ||
1224 | #define BM_47_09 0x0000fffffffffe00 | ||
1225 | #define BM_09_47 BM_47_09 | ||
1226 | #define BM_48_09 0x0001fffffffffe00 | ||
1227 | #define BM_09_48 BM_48_09 | ||
1228 | #define BM_49_09 0x0003fffffffffe00 | ||
1229 | #define BM_09_49 BM_49_09 | ||
1230 | #define BM_50_09 0x0007fffffffffe00 | ||
1231 | #define BM_09_50 BM_50_09 | ||
1232 | #define BM_51_09 0x000ffffffffffe00 | ||
1233 | #define BM_09_51 BM_51_09 | ||
1234 | #define BM_52_09 0x001ffffffffffe00 | ||
1235 | #define BM_09_52 BM_52_09 | ||
1236 | #define BM_53_09 0x003ffffffffffe00 | ||
1237 | #define BM_09_53 BM_53_09 | ||
1238 | #define BM_54_09 0x007ffffffffffe00 | ||
1239 | #define BM_09_54 BM_54_09 | ||
1240 | #define BM_55_09 0x00fffffffffffe00 | ||
1241 | #define BM_09_55 BM_55_09 | ||
1242 | #define BM_56_09 0x01fffffffffffe00 | ||
1243 | #define BM_09_56 BM_56_09 | ||
1244 | #define BM_57_09 0x03fffffffffffe00 | ||
1245 | #define BM_09_57 BM_57_09 | ||
1246 | #define BM_58_09 0x07fffffffffffe00 | ||
1247 | #define BM_09_58 BM_58_09 | ||
1248 | #define BM_59_09 0x0ffffffffffffe00 | ||
1249 | #define BM_09_59 BM_59_09 | ||
1250 | #define BM_60_09 0x1ffffffffffffe00 | ||
1251 | #define BM_09_60 BM_60_09 | ||
1252 | #define BM_61_09 0x3ffffffffffffe00 | ||
1253 | #define BM_09_61 BM_61_09 | ||
1254 | #define BM_62_09 0x7ffffffffffffe00 | ||
1255 | #define BM_09_62 BM_62_09 | ||
1256 | #define BM_63_09 0xfffffffffffffe00 | ||
1257 | #define BM_09_63 BM_63_09 | ||
1258 | #define BM_10_10 0x0000000000000400 | ||
1259 | #define BM_11_10 0x0000000000000c00 | ||
1260 | #define BM_10_11 BM_11_10 | ||
1261 | #define BM_12_10 0x0000000000001c00 | ||
1262 | #define BM_10_12 BM_12_10 | ||
1263 | #define BM_13_10 0x0000000000003c00 | ||
1264 | #define BM_10_13 BM_13_10 | ||
1265 | #define BM_14_10 0x0000000000007c00 | ||
1266 | #define BM_10_14 BM_14_10 | ||
1267 | #define BM_15_10 0x000000000000fc00 | ||
1268 | #define BM_10_15 BM_15_10 | ||
1269 | #define BM_16_10 0x000000000001fc00 | ||
1270 | #define BM_10_16 BM_16_10 | ||
1271 | #define BM_17_10 0x000000000003fc00 | ||
1272 | #define BM_10_17 BM_17_10 | ||
1273 | #define BM_18_10 0x000000000007fc00 | ||
1274 | #define BM_10_18 BM_18_10 | ||
1275 | #define BM_19_10 0x00000000000ffc00 | ||
1276 | #define BM_10_19 BM_19_10 | ||
1277 | #define BM_20_10 0x00000000001ffc00 | ||
1278 | #define BM_10_20 BM_20_10 | ||
1279 | #define BM_21_10 0x00000000003ffc00 | ||
1280 | #define BM_10_21 BM_21_10 | ||
1281 | #define BM_22_10 0x00000000007ffc00 | ||
1282 | #define BM_10_22 BM_22_10 | ||
1283 | #define BM_23_10 0x0000000000fffc00 | ||
1284 | #define BM_10_23 BM_23_10 | ||
1285 | #define BM_24_10 0x0000000001fffc00 | ||
1286 | #define BM_10_24 BM_24_10 | ||
1287 | #define BM_25_10 0x0000000003fffc00 | ||
1288 | #define BM_10_25 BM_25_10 | ||
1289 | #define BM_26_10 0x0000000007fffc00 | ||
1290 | #define BM_10_26 BM_26_10 | ||
1291 | #define BM_27_10 0x000000000ffffc00 | ||
1292 | #define BM_10_27 BM_27_10 | ||
1293 | #define BM_28_10 0x000000001ffffc00 | ||
1294 | #define BM_10_28 BM_28_10 | ||
1295 | #define BM_29_10 0x000000003ffffc00 | ||
1296 | #define BM_10_29 BM_29_10 | ||
1297 | #define BM_30_10 0x000000007ffffc00 | ||
1298 | #define BM_10_30 BM_30_10 | ||
1299 | #define BM_31_10 0x00000000fffffc00 | ||
1300 | #define BM_10_31 BM_31_10 | ||
1301 | #define BM_32_10 0x00000001fffffc00 | ||
1302 | #define BM_10_32 BM_32_10 | ||
1303 | #define BM_33_10 0x00000003fffffc00 | ||
1304 | #define BM_10_33 BM_33_10 | ||
1305 | #define BM_34_10 0x00000007fffffc00 | ||
1306 | #define BM_10_34 BM_34_10 | ||
1307 | #define BM_35_10 0x0000000ffffffc00 | ||
1308 | #define BM_10_35 BM_35_10 | ||
1309 | #define BM_36_10 0x0000001ffffffc00 | ||
1310 | #define BM_10_36 BM_36_10 | ||
1311 | #define BM_37_10 0x0000003ffffffc00 | ||
1312 | #define BM_10_37 BM_37_10 | ||
1313 | #define BM_38_10 0x0000007ffffffc00 | ||
1314 | #define BM_10_38 BM_38_10 | ||
1315 | #define BM_39_10 0x000000fffffffc00 | ||
1316 | #define BM_10_39 BM_39_10 | ||
1317 | #define BM_40_10 0x000001fffffffc00 | ||
1318 | #define BM_10_40 BM_40_10 | ||
1319 | #define BM_41_10 0x000003fffffffc00 | ||
1320 | #define BM_10_41 BM_41_10 | ||
1321 | #define BM_42_10 0x000007fffffffc00 | ||
1322 | #define BM_10_42 BM_42_10 | ||
1323 | #define BM_43_10 0x00000ffffffffc00 | ||
1324 | #define BM_10_43 BM_43_10 | ||
1325 | #define BM_44_10 0x00001ffffffffc00 | ||
1326 | #define BM_10_44 BM_44_10 | ||
1327 | #define BM_45_10 0x00003ffffffffc00 | ||
1328 | #define BM_10_45 BM_45_10 | ||
1329 | #define BM_46_10 0x00007ffffffffc00 | ||
1330 | #define BM_10_46 BM_46_10 | ||
1331 | #define BM_47_10 0x0000fffffffffc00 | ||
1332 | #define BM_10_47 BM_47_10 | ||
1333 | #define BM_48_10 0x0001fffffffffc00 | ||
1334 | #define BM_10_48 BM_48_10 | ||
1335 | #define BM_49_10 0x0003fffffffffc00 | ||
1336 | #define BM_10_49 BM_49_10 | ||
1337 | #define BM_50_10 0x0007fffffffffc00 | ||
1338 | #define BM_10_50 BM_50_10 | ||
1339 | #define BM_51_10 0x000ffffffffffc00 | ||
1340 | #define BM_10_51 BM_51_10 | ||
1341 | #define BM_52_10 0x001ffffffffffc00 | ||
1342 | #define BM_10_52 BM_52_10 | ||
1343 | #define BM_53_10 0x003ffffffffffc00 | ||
1344 | #define BM_10_53 BM_53_10 | ||
1345 | #define BM_54_10 0x007ffffffffffc00 | ||
1346 | #define BM_10_54 BM_54_10 | ||
1347 | #define BM_55_10 0x00fffffffffffc00 | ||
1348 | #define BM_10_55 BM_55_10 | ||
1349 | #define BM_56_10 0x01fffffffffffc00 | ||
1350 | #define BM_10_56 BM_56_10 | ||
1351 | #define BM_57_10 0x03fffffffffffc00 | ||
1352 | #define BM_10_57 BM_57_10 | ||
1353 | #define BM_58_10 0x07fffffffffffc00 | ||
1354 | #define BM_10_58 BM_58_10 | ||
1355 | #define BM_59_10 0x0ffffffffffffc00 | ||
1356 | #define BM_10_59 BM_59_10 | ||
1357 | #define BM_60_10 0x1ffffffffffffc00 | ||
1358 | #define BM_10_60 BM_60_10 | ||
1359 | #define BM_61_10 0x3ffffffffffffc00 | ||
1360 | #define BM_10_61 BM_61_10 | ||
1361 | #define BM_62_10 0x7ffffffffffffc00 | ||
1362 | #define BM_10_62 BM_62_10 | ||
1363 | #define BM_63_10 0xfffffffffffffc00 | ||
1364 | #define BM_10_63 BM_63_10 | ||
1365 | #define BM_11_11 0x0000000000000800 | ||
1366 | #define BM_12_11 0x0000000000001800 | ||
1367 | #define BM_11_12 BM_12_11 | ||
1368 | #define BM_13_11 0x0000000000003800 | ||
1369 | #define BM_11_13 BM_13_11 | ||
1370 | #define BM_14_11 0x0000000000007800 | ||
1371 | #define BM_11_14 BM_14_11 | ||
1372 | #define BM_15_11 0x000000000000f800 | ||
1373 | #define BM_11_15 BM_15_11 | ||
1374 | #define BM_16_11 0x000000000001f800 | ||
1375 | #define BM_11_16 BM_16_11 | ||
1376 | #define BM_17_11 0x000000000003f800 | ||
1377 | #define BM_11_17 BM_17_11 | ||
1378 | #define BM_18_11 0x000000000007f800 | ||
1379 | #define BM_11_18 BM_18_11 | ||
1380 | #define BM_19_11 0x00000000000ff800 | ||
1381 | #define BM_11_19 BM_19_11 | ||
1382 | #define BM_20_11 0x00000000001ff800 | ||
1383 | #define BM_11_20 BM_20_11 | ||
1384 | #define BM_21_11 0x00000000003ff800 | ||
1385 | #define BM_11_21 BM_21_11 | ||
1386 | #define BM_22_11 0x00000000007ff800 | ||
1387 | #define BM_11_22 BM_22_11 | ||
1388 | #define BM_23_11 0x0000000000fff800 | ||
1389 | #define BM_11_23 BM_23_11 | ||
1390 | #define BM_24_11 0x0000000001fff800 | ||
1391 | #define BM_11_24 BM_24_11 | ||
1392 | #define BM_25_11 0x0000000003fff800 | ||
1393 | #define BM_11_25 BM_25_11 | ||
1394 | #define BM_26_11 0x0000000007fff800 | ||
1395 | #define BM_11_26 BM_26_11 | ||
1396 | #define BM_27_11 0x000000000ffff800 | ||
1397 | #define BM_11_27 BM_27_11 | ||
1398 | #define BM_28_11 0x000000001ffff800 | ||
1399 | #define BM_11_28 BM_28_11 | ||
1400 | #define BM_29_11 0x000000003ffff800 | ||
1401 | #define BM_11_29 BM_29_11 | ||
1402 | #define BM_30_11 0x000000007ffff800 | ||
1403 | #define BM_11_30 BM_30_11 | ||
1404 | #define BM_31_11 0x00000000fffff800 | ||
1405 | #define BM_11_31 BM_31_11 | ||
1406 | #define BM_32_11 0x00000001fffff800 | ||
1407 | #define BM_11_32 BM_32_11 | ||
1408 | #define BM_33_11 0x00000003fffff800 | ||
1409 | #define BM_11_33 BM_33_11 | ||
1410 | #define BM_34_11 0x00000007fffff800 | ||
1411 | #define BM_11_34 BM_34_11 | ||
1412 | #define BM_35_11 0x0000000ffffff800 | ||
1413 | #define BM_11_35 BM_35_11 | ||
1414 | #define BM_36_11 0x0000001ffffff800 | ||
1415 | #define BM_11_36 BM_36_11 | ||
1416 | #define BM_37_11 0x0000003ffffff800 | ||
1417 | #define BM_11_37 BM_37_11 | ||
1418 | #define BM_38_11 0x0000007ffffff800 | ||
1419 | #define BM_11_38 BM_38_11 | ||
1420 | #define BM_39_11 0x000000fffffff800 | ||
1421 | #define BM_11_39 BM_39_11 | ||
1422 | #define BM_40_11 0x000001fffffff800 | ||
1423 | #define BM_11_40 BM_40_11 | ||
1424 | #define BM_41_11 0x000003fffffff800 | ||
1425 | #define BM_11_41 BM_41_11 | ||
1426 | #define BM_42_11 0x000007fffffff800 | ||
1427 | #define BM_11_42 BM_42_11 | ||
1428 | #define BM_43_11 0x00000ffffffff800 | ||
1429 | #define BM_11_43 BM_43_11 | ||
1430 | #define BM_44_11 0x00001ffffffff800 | ||
1431 | #define BM_11_44 BM_44_11 | ||
1432 | #define BM_45_11 0x00003ffffffff800 | ||
1433 | #define BM_11_45 BM_45_11 | ||
1434 | #define BM_46_11 0x00007ffffffff800 | ||
1435 | #define BM_11_46 BM_46_11 | ||
1436 | #define BM_47_11 0x0000fffffffff800 | ||
1437 | #define BM_11_47 BM_47_11 | ||
1438 | #define BM_48_11 0x0001fffffffff800 | ||
1439 | #define BM_11_48 BM_48_11 | ||
1440 | #define BM_49_11 0x0003fffffffff800 | ||
1441 | #define BM_11_49 BM_49_11 | ||
1442 | #define BM_50_11 0x0007fffffffff800 | ||
1443 | #define BM_11_50 BM_50_11 | ||
1444 | #define BM_51_11 0x000ffffffffff800 | ||
1445 | #define BM_11_51 BM_51_11 | ||
1446 | #define BM_52_11 0x001ffffffffff800 | ||
1447 | #define BM_11_52 BM_52_11 | ||
1448 | #define BM_53_11 0x003ffffffffff800 | ||
1449 | #define BM_11_53 BM_53_11 | ||
1450 | #define BM_54_11 0x007ffffffffff800 | ||
1451 | #define BM_11_54 BM_54_11 | ||
1452 | #define BM_55_11 0x00fffffffffff800 | ||
1453 | #define BM_11_55 BM_55_11 | ||
1454 | #define BM_56_11 0x01fffffffffff800 | ||
1455 | #define BM_11_56 BM_56_11 | ||
1456 | #define BM_57_11 0x03fffffffffff800 | ||
1457 | #define BM_11_57 BM_57_11 | ||
1458 | #define BM_58_11 0x07fffffffffff800 | ||
1459 | #define BM_11_58 BM_58_11 | ||
1460 | #define BM_59_11 0x0ffffffffffff800 | ||
1461 | #define BM_11_59 BM_59_11 | ||
1462 | #define BM_60_11 0x1ffffffffffff800 | ||
1463 | #define BM_11_60 BM_60_11 | ||
1464 | #define BM_61_11 0x3ffffffffffff800 | ||
1465 | #define BM_11_61 BM_61_11 | ||
1466 | #define BM_62_11 0x7ffffffffffff800 | ||
1467 | #define BM_11_62 BM_62_11 | ||
1468 | #define BM_63_11 0xfffffffffffff800 | ||
1469 | #define BM_11_63 BM_63_11 | ||
1470 | #define BM_12_12 0x0000000000001000 | ||
1471 | #define BM_13_12 0x0000000000003000 | ||
1472 | #define BM_12_13 BM_13_12 | ||
1473 | #define BM_14_12 0x0000000000007000 | ||
1474 | #define BM_12_14 BM_14_12 | ||
1475 | #define BM_15_12 0x000000000000f000 | ||
1476 | #define BM_12_15 BM_15_12 | ||
1477 | #define BM_16_12 0x000000000001f000 | ||
1478 | #define BM_12_16 BM_16_12 | ||
1479 | #define BM_17_12 0x000000000003f000 | ||
1480 | #define BM_12_17 BM_17_12 | ||
1481 | #define BM_18_12 0x000000000007f000 | ||
1482 | #define BM_12_18 BM_18_12 | ||
1483 | #define BM_19_12 0x00000000000ff000 | ||
1484 | #define BM_12_19 BM_19_12 | ||
1485 | #define BM_20_12 0x00000000001ff000 | ||
1486 | #define BM_12_20 BM_20_12 | ||
1487 | #define BM_21_12 0x00000000003ff000 | ||
1488 | #define BM_12_21 BM_21_12 | ||
1489 | #define BM_22_12 0x00000000007ff000 | ||
1490 | #define BM_12_22 BM_22_12 | ||
1491 | #define BM_23_12 0x0000000000fff000 | ||
1492 | #define BM_12_23 BM_23_12 | ||
1493 | #define BM_24_12 0x0000000001fff000 | ||
1494 | #define BM_12_24 BM_24_12 | ||
1495 | #define BM_25_12 0x0000000003fff000 | ||
1496 | #define BM_12_25 BM_25_12 | ||
1497 | #define BM_26_12 0x0000000007fff000 | ||
1498 | #define BM_12_26 BM_26_12 | ||
1499 | #define BM_27_12 0x000000000ffff000 | ||
1500 | #define BM_12_27 BM_27_12 | ||
1501 | #define BM_28_12 0x000000001ffff000 | ||
1502 | #define BM_12_28 BM_28_12 | ||
1503 | #define BM_29_12 0x000000003ffff000 | ||
1504 | #define BM_12_29 BM_29_12 | ||
1505 | #define BM_30_12 0x000000007ffff000 | ||
1506 | #define BM_12_30 BM_30_12 | ||
1507 | #define BM_31_12 0x00000000fffff000 | ||
1508 | #define BM_12_31 BM_31_12 | ||
1509 | #define BM_32_12 0x00000001fffff000 | ||
1510 | #define BM_12_32 BM_32_12 | ||
1511 | #define BM_33_12 0x00000003fffff000 | ||
1512 | #define BM_12_33 BM_33_12 | ||
1513 | #define BM_34_12 0x00000007fffff000 | ||
1514 | #define BM_12_34 BM_34_12 | ||
1515 | #define BM_35_12 0x0000000ffffff000 | ||
1516 | #define BM_12_35 BM_35_12 | ||
1517 | #define BM_36_12 0x0000001ffffff000 | ||
1518 | #define BM_12_36 BM_36_12 | ||
1519 | #define BM_37_12 0x0000003ffffff000 | ||
1520 | #define BM_12_37 BM_37_12 | ||
1521 | #define BM_38_12 0x0000007ffffff000 | ||
1522 | #define BM_12_38 BM_38_12 | ||
1523 | #define BM_39_12 0x000000fffffff000 | ||
1524 | #define BM_12_39 BM_39_12 | ||
1525 | #define BM_40_12 0x000001fffffff000 | ||
1526 | #define BM_12_40 BM_40_12 | ||
1527 | #define BM_41_12 0x000003fffffff000 | ||
1528 | #define BM_12_41 BM_41_12 | ||
1529 | #define BM_42_12 0x000007fffffff000 | ||
1530 | #define BM_12_42 BM_42_12 | ||
1531 | #define BM_43_12 0x00000ffffffff000 | ||
1532 | #define BM_12_43 BM_43_12 | ||
1533 | #define BM_44_12 0x00001ffffffff000 | ||
1534 | #define BM_12_44 BM_44_12 | ||
1535 | #define BM_45_12 0x00003ffffffff000 | ||
1536 | #define BM_12_45 BM_45_12 | ||
1537 | #define BM_46_12 0x00007ffffffff000 | ||
1538 | #define BM_12_46 BM_46_12 | ||
1539 | #define BM_47_12 0x0000fffffffff000 | ||
1540 | #define BM_12_47 BM_47_12 | ||
1541 | #define BM_48_12 0x0001fffffffff000 | ||
1542 | #define BM_12_48 BM_48_12 | ||
1543 | #define BM_49_12 0x0003fffffffff000 | ||
1544 | #define BM_12_49 BM_49_12 | ||
1545 | #define BM_50_12 0x0007fffffffff000 | ||
1546 | #define BM_12_50 BM_50_12 | ||
1547 | #define BM_51_12 0x000ffffffffff000 | ||
1548 | #define BM_12_51 BM_51_12 | ||
1549 | #define BM_52_12 0x001ffffffffff000 | ||
1550 | #define BM_12_52 BM_52_12 | ||
1551 | #define BM_53_12 0x003ffffffffff000 | ||
1552 | #define BM_12_53 BM_53_12 | ||
1553 | #define BM_54_12 0x007ffffffffff000 | ||
1554 | #define BM_12_54 BM_54_12 | ||
1555 | #define BM_55_12 0x00fffffffffff000 | ||
1556 | #define BM_12_55 BM_55_12 | ||
1557 | #define BM_56_12 0x01fffffffffff000 | ||
1558 | #define BM_12_56 BM_56_12 | ||
1559 | #define BM_57_12 0x03fffffffffff000 | ||
1560 | #define BM_12_57 BM_57_12 | ||
1561 | #define BM_58_12 0x07fffffffffff000 | ||
1562 | #define BM_12_58 BM_58_12 | ||
1563 | #define BM_59_12 0x0ffffffffffff000 | ||
1564 | #define BM_12_59 BM_59_12 | ||
1565 | #define BM_60_12 0x1ffffffffffff000 | ||
1566 | #define BM_12_60 BM_60_12 | ||
1567 | #define BM_61_12 0x3ffffffffffff000 | ||
1568 | #define BM_12_61 BM_61_12 | ||
1569 | #define BM_62_12 0x7ffffffffffff000 | ||
1570 | #define BM_12_62 BM_62_12 | ||
1571 | #define BM_63_12 0xfffffffffffff000 | ||
1572 | #define BM_12_63 BM_63_12 | ||
1573 | #define BM_13_13 0x0000000000002000 | ||
1574 | #define BM_14_13 0x0000000000006000 | ||
1575 | #define BM_13_14 BM_14_13 | ||
1576 | #define BM_15_13 0x000000000000e000 | ||
1577 | #define BM_13_15 BM_15_13 | ||
1578 | #define BM_16_13 0x000000000001e000 | ||
1579 | #define BM_13_16 BM_16_13 | ||
1580 | #define BM_17_13 0x000000000003e000 | ||
1581 | #define BM_13_17 BM_17_13 | ||
1582 | #define BM_18_13 0x000000000007e000 | ||
1583 | #define BM_13_18 BM_18_13 | ||
1584 | #define BM_19_13 0x00000000000fe000 | ||
1585 | #define BM_13_19 BM_19_13 | ||
1586 | #define BM_20_13 0x00000000001fe000 | ||
1587 | #define BM_13_20 BM_20_13 | ||
1588 | #define BM_21_13 0x00000000003fe000 | ||
1589 | #define BM_13_21 BM_21_13 | ||
1590 | #define BM_22_13 0x00000000007fe000 | ||
1591 | #define BM_13_22 BM_22_13 | ||
1592 | #define BM_23_13 0x0000000000ffe000 | ||
1593 | #define BM_13_23 BM_23_13 | ||
1594 | #define BM_24_13 0x0000000001ffe000 | ||
1595 | #define BM_13_24 BM_24_13 | ||
1596 | #define BM_25_13 0x0000000003ffe000 | ||
1597 | #define BM_13_25 BM_25_13 | ||
1598 | #define BM_26_13 0x0000000007ffe000 | ||
1599 | #define BM_13_26 BM_26_13 | ||
1600 | #define BM_27_13 0x000000000fffe000 | ||
1601 | #define BM_13_27 BM_27_13 | ||
1602 | #define BM_28_13 0x000000001fffe000 | ||
1603 | #define BM_13_28 BM_28_13 | ||
1604 | #define BM_29_13 0x000000003fffe000 | ||
1605 | #define BM_13_29 BM_29_13 | ||
1606 | #define BM_30_13 0x000000007fffe000 | ||
1607 | #define BM_13_30 BM_30_13 | ||
1608 | #define BM_31_13 0x00000000ffffe000 | ||
1609 | #define BM_13_31 BM_31_13 | ||
1610 | #define BM_32_13 0x00000001ffffe000 | ||
1611 | #define BM_13_32 BM_32_13 | ||
1612 | #define BM_33_13 0x00000003ffffe000 | ||
1613 | #define BM_13_33 BM_33_13 | ||
1614 | #define BM_34_13 0x00000007ffffe000 | ||
1615 | #define BM_13_34 BM_34_13 | ||
1616 | #define BM_35_13 0x0000000fffffe000 | ||
1617 | #define BM_13_35 BM_35_13 | ||
1618 | #define BM_36_13 0x0000001fffffe000 | ||
1619 | #define BM_13_36 BM_36_13 | ||
1620 | #define BM_37_13 0x0000003fffffe000 | ||
1621 | #define BM_13_37 BM_37_13 | ||
1622 | #define BM_38_13 0x0000007fffffe000 | ||
1623 | #define BM_13_38 BM_38_13 | ||
1624 | #define BM_39_13 0x000000ffffffe000 | ||
1625 | #define BM_13_39 BM_39_13 | ||
1626 | #define BM_40_13 0x000001ffffffe000 | ||
1627 | #define BM_13_40 BM_40_13 | ||
1628 | #define BM_41_13 0x000003ffffffe000 | ||
1629 | #define BM_13_41 BM_41_13 | ||
1630 | #define BM_42_13 0x000007ffffffe000 | ||
1631 | #define BM_13_42 BM_42_13 | ||
1632 | #define BM_43_13 0x00000fffffffe000 | ||
1633 | #define BM_13_43 BM_43_13 | ||
1634 | #define BM_44_13 0x00001fffffffe000 | ||
1635 | #define BM_13_44 BM_44_13 | ||
1636 | #define BM_45_13 0x00003fffffffe000 | ||
1637 | #define BM_13_45 BM_45_13 | ||
1638 | #define BM_46_13 0x00007fffffffe000 | ||
1639 | #define BM_13_46 BM_46_13 | ||
1640 | #define BM_47_13 0x0000ffffffffe000 | ||
1641 | #define BM_13_47 BM_47_13 | ||
1642 | #define BM_48_13 0x0001ffffffffe000 | ||
1643 | #define BM_13_48 BM_48_13 | ||
1644 | #define BM_49_13 0x0003ffffffffe000 | ||
1645 | #define BM_13_49 BM_49_13 | ||
1646 | #define BM_50_13 0x0007ffffffffe000 | ||
1647 | #define BM_13_50 BM_50_13 | ||
1648 | #define BM_51_13 0x000fffffffffe000 | ||
1649 | #define BM_13_51 BM_51_13 | ||
1650 | #define BM_52_13 0x001fffffffffe000 | ||
1651 | #define BM_13_52 BM_52_13 | ||
1652 | #define BM_53_13 0x003fffffffffe000 | ||
1653 | #define BM_13_53 BM_53_13 | ||
1654 | #define BM_54_13 0x007fffffffffe000 | ||
1655 | #define BM_13_54 BM_54_13 | ||
1656 | #define BM_55_13 0x00ffffffffffe000 | ||
1657 | #define BM_13_55 BM_55_13 | ||
1658 | #define BM_56_13 0x01ffffffffffe000 | ||
1659 | #define BM_13_56 BM_56_13 | ||
1660 | #define BM_57_13 0x03ffffffffffe000 | ||
1661 | #define BM_13_57 BM_57_13 | ||
1662 | #define BM_58_13 0x07ffffffffffe000 | ||
1663 | #define BM_13_58 BM_58_13 | ||
1664 | #define BM_59_13 0x0fffffffffffe000 | ||
1665 | #define BM_13_59 BM_59_13 | ||
1666 | #define BM_60_13 0x1fffffffffffe000 | ||
1667 | #define BM_13_60 BM_60_13 | ||
1668 | #define BM_61_13 0x3fffffffffffe000 | ||
1669 | #define BM_13_61 BM_61_13 | ||
1670 | #define BM_62_13 0x7fffffffffffe000 | ||
1671 | #define BM_13_62 BM_62_13 | ||
1672 | #define BM_63_13 0xffffffffffffe000 | ||
1673 | #define BM_13_63 BM_63_13 | ||
1674 | #define BM_14_14 0x0000000000004000 | ||
1675 | #define BM_15_14 0x000000000000c000 | ||
1676 | #define BM_14_15 BM_15_14 | ||
1677 | #define BM_16_14 0x000000000001c000 | ||
1678 | #define BM_14_16 BM_16_14 | ||
1679 | #define BM_17_14 0x000000000003c000 | ||
1680 | #define BM_14_17 BM_17_14 | ||
1681 | #define BM_18_14 0x000000000007c000 | ||
1682 | #define BM_14_18 BM_18_14 | ||
1683 | #define BM_19_14 0x00000000000fc000 | ||
1684 | #define BM_14_19 BM_19_14 | ||
1685 | #define BM_20_14 0x00000000001fc000 | ||
1686 | #define BM_14_20 BM_20_14 | ||
1687 | #define BM_21_14 0x00000000003fc000 | ||
1688 | #define BM_14_21 BM_21_14 | ||
1689 | #define BM_22_14 0x00000000007fc000 | ||
1690 | #define BM_14_22 BM_22_14 | ||
1691 | #define BM_23_14 0x0000000000ffc000 | ||
1692 | #define BM_14_23 BM_23_14 | ||
1693 | #define BM_24_14 0x0000000001ffc000 | ||
1694 | #define BM_14_24 BM_24_14 | ||
1695 | #define BM_25_14 0x0000000003ffc000 | ||
1696 | #define BM_14_25 BM_25_14 | ||
1697 | #define BM_26_14 0x0000000007ffc000 | ||
1698 | #define BM_14_26 BM_26_14 | ||
1699 | #define BM_27_14 0x000000000fffc000 | ||
1700 | #define BM_14_27 BM_27_14 | ||
1701 | #define BM_28_14 0x000000001fffc000 | ||
1702 | #define BM_14_28 BM_28_14 | ||
1703 | #define BM_29_14 0x000000003fffc000 | ||
1704 | #define BM_14_29 BM_29_14 | ||
1705 | #define BM_30_14 0x000000007fffc000 | ||
1706 | #define BM_14_30 BM_30_14 | ||
1707 | #define BM_31_14 0x00000000ffffc000 | ||
1708 | #define BM_14_31 BM_31_14 | ||
1709 | #define BM_32_14 0x00000001ffffc000 | ||
1710 | #define BM_14_32 BM_32_14 | ||
1711 | #define BM_33_14 0x00000003ffffc000 | ||
1712 | #define BM_14_33 BM_33_14 | ||
1713 | #define BM_34_14 0x00000007ffffc000 | ||
1714 | #define BM_14_34 BM_34_14 | ||
1715 | #define BM_35_14 0x0000000fffffc000 | ||
1716 | #define BM_14_35 BM_35_14 | ||
1717 | #define BM_36_14 0x0000001fffffc000 | ||
1718 | #define BM_14_36 BM_36_14 | ||
1719 | #define BM_37_14 0x0000003fffffc000 | ||
1720 | #define BM_14_37 BM_37_14 | ||
1721 | #define BM_38_14 0x0000007fffffc000 | ||
1722 | #define BM_14_38 BM_38_14 | ||
1723 | #define BM_39_14 0x000000ffffffc000 | ||
1724 | #define BM_14_39 BM_39_14 | ||
1725 | #define BM_40_14 0x000001ffffffc000 | ||
1726 | #define BM_14_40 BM_40_14 | ||
1727 | #define BM_41_14 0x000003ffffffc000 | ||
1728 | #define BM_14_41 BM_41_14 | ||
1729 | #define BM_42_14 0x000007ffffffc000 | ||
1730 | #define BM_14_42 BM_42_14 | ||
1731 | #define BM_43_14 0x00000fffffffc000 | ||
1732 | #define BM_14_43 BM_43_14 | ||
1733 | #define BM_44_14 0x00001fffffffc000 | ||
1734 | #define BM_14_44 BM_44_14 | ||
1735 | #define BM_45_14 0x00003fffffffc000 | ||
1736 | #define BM_14_45 BM_45_14 | ||
1737 | #define BM_46_14 0x00007fffffffc000 | ||
1738 | #define BM_14_46 BM_46_14 | ||
1739 | #define BM_47_14 0x0000ffffffffc000 | ||
1740 | #define BM_14_47 BM_47_14 | ||
1741 | #define BM_48_14 0x0001ffffffffc000 | ||
1742 | #define BM_14_48 BM_48_14 | ||
1743 | #define BM_49_14 0x0003ffffffffc000 | ||
1744 | #define BM_14_49 BM_49_14 | ||
1745 | #define BM_50_14 0x0007ffffffffc000 | ||
1746 | #define BM_14_50 BM_50_14 | ||
1747 | #define BM_51_14 0x000fffffffffc000 | ||
1748 | #define BM_14_51 BM_51_14 | ||
1749 | #define BM_52_14 0x001fffffffffc000 | ||
1750 | #define BM_14_52 BM_52_14 | ||
1751 | #define BM_53_14 0x003fffffffffc000 | ||
1752 | #define BM_14_53 BM_53_14 | ||
1753 | #define BM_54_14 0x007fffffffffc000 | ||
1754 | #define BM_14_54 BM_54_14 | ||
1755 | #define BM_55_14 0x00ffffffffffc000 | ||
1756 | #define BM_14_55 BM_55_14 | ||
1757 | #define BM_56_14 0x01ffffffffffc000 | ||
1758 | #define BM_14_56 BM_56_14 | ||
1759 | #define BM_57_14 0x03ffffffffffc000 | ||
1760 | #define BM_14_57 BM_57_14 | ||
1761 | #define BM_58_14 0x07ffffffffffc000 | ||
1762 | #define BM_14_58 BM_58_14 | ||
1763 | #define BM_59_14 0x0fffffffffffc000 | ||
1764 | #define BM_14_59 BM_59_14 | ||
1765 | #define BM_60_14 0x1fffffffffffc000 | ||
1766 | #define BM_14_60 BM_60_14 | ||
1767 | #define BM_61_14 0x3fffffffffffc000 | ||
1768 | #define BM_14_61 BM_61_14 | ||
1769 | #define BM_62_14 0x7fffffffffffc000 | ||
1770 | #define BM_14_62 BM_62_14 | ||
1771 | #define BM_63_14 0xffffffffffffc000 | ||
1772 | #define BM_14_63 BM_63_14 | ||
1773 | #define BM_15_15 0x0000000000008000 | ||
1774 | #define BM_16_15 0x0000000000018000 | ||
1775 | #define BM_15_16 BM_16_15 | ||
1776 | #define BM_17_15 0x0000000000038000 | ||
1777 | #define BM_15_17 BM_17_15 | ||
1778 | #define BM_18_15 0x0000000000078000 | ||
1779 | #define BM_15_18 BM_18_15 | ||
1780 | #define BM_19_15 0x00000000000f8000 | ||
1781 | #define BM_15_19 BM_19_15 | ||
1782 | #define BM_20_15 0x00000000001f8000 | ||
1783 | #define BM_15_20 BM_20_15 | ||
1784 | #define BM_21_15 0x00000000003f8000 | ||
1785 | #define BM_15_21 BM_21_15 | ||
1786 | #define BM_22_15 0x00000000007f8000 | ||
1787 | #define BM_15_22 BM_22_15 | ||
1788 | #define BM_23_15 0x0000000000ff8000 | ||
1789 | #define BM_15_23 BM_23_15 | ||
1790 | #define BM_24_15 0x0000000001ff8000 | ||
1791 | #define BM_15_24 BM_24_15 | ||
1792 | #define BM_25_15 0x0000000003ff8000 | ||
1793 | #define BM_15_25 BM_25_15 | ||
1794 | #define BM_26_15 0x0000000007ff8000 | ||
1795 | #define BM_15_26 BM_26_15 | ||
1796 | #define BM_27_15 0x000000000fff8000 | ||
1797 | #define BM_15_27 BM_27_15 | ||
1798 | #define BM_28_15 0x000000001fff8000 | ||
1799 | #define BM_15_28 BM_28_15 | ||
1800 | #define BM_29_15 0x000000003fff8000 | ||
1801 | #define BM_15_29 BM_29_15 | ||
1802 | #define BM_30_15 0x000000007fff8000 | ||
1803 | #define BM_15_30 BM_30_15 | ||
1804 | #define BM_31_15 0x00000000ffff8000 | ||
1805 | #define BM_15_31 BM_31_15 | ||
1806 | #define BM_32_15 0x00000001ffff8000 | ||
1807 | #define BM_15_32 BM_32_15 | ||
1808 | #define BM_33_15 0x00000003ffff8000 | ||
1809 | #define BM_15_33 BM_33_15 | ||
1810 | #define BM_34_15 0x00000007ffff8000 | ||
1811 | #define BM_15_34 BM_34_15 | ||
1812 | #define BM_35_15 0x0000000fffff8000 | ||
1813 | #define BM_15_35 BM_35_15 | ||
1814 | #define BM_36_15 0x0000001fffff8000 | ||
1815 | #define BM_15_36 BM_36_15 | ||
1816 | #define BM_37_15 0x0000003fffff8000 | ||
1817 | #define BM_15_37 BM_37_15 | ||
1818 | #define BM_38_15 0x0000007fffff8000 | ||
1819 | #define BM_15_38 BM_38_15 | ||
1820 | #define BM_39_15 0x000000ffffff8000 | ||
1821 | #define BM_15_39 BM_39_15 | ||
1822 | #define BM_40_15 0x000001ffffff8000 | ||
1823 | #define BM_15_40 BM_40_15 | ||
1824 | #define BM_41_15 0x000003ffffff8000 | ||
1825 | #define BM_15_41 BM_41_15 | ||
1826 | #define BM_42_15 0x000007ffffff8000 | ||
1827 | #define BM_15_42 BM_42_15 | ||
1828 | #define BM_43_15 0x00000fffffff8000 | ||
1829 | #define BM_15_43 BM_43_15 | ||
1830 | #define BM_44_15 0x00001fffffff8000 | ||
1831 | #define BM_15_44 BM_44_15 | ||
1832 | #define BM_45_15 0x00003fffffff8000 | ||
1833 | #define BM_15_45 BM_45_15 | ||
1834 | #define BM_46_15 0x00007fffffff8000 | ||
1835 | #define BM_15_46 BM_46_15 | ||
1836 | #define BM_47_15 0x0000ffffffff8000 | ||
1837 | #define BM_15_47 BM_47_15 | ||
1838 | #define BM_48_15 0x0001ffffffff8000 | ||
1839 | #define BM_15_48 BM_48_15 | ||
1840 | #define BM_49_15 0x0003ffffffff8000 | ||
1841 | #define BM_15_49 BM_49_15 | ||
1842 | #define BM_50_15 0x0007ffffffff8000 | ||
1843 | #define BM_15_50 BM_50_15 | ||
1844 | #define BM_51_15 0x000fffffffff8000 | ||
1845 | #define BM_15_51 BM_51_15 | ||
1846 | #define BM_52_15 0x001fffffffff8000 | ||
1847 | #define BM_15_52 BM_52_15 | ||
1848 | #define BM_53_15 0x003fffffffff8000 | ||
1849 | #define BM_15_53 BM_53_15 | ||
1850 | #define BM_54_15 0x007fffffffff8000 | ||
1851 | #define BM_15_54 BM_54_15 | ||
1852 | #define BM_55_15 0x00ffffffffff8000 | ||
1853 | #define BM_15_55 BM_55_15 | ||
1854 | #define BM_56_15 0x01ffffffffff8000 | ||
1855 | #define BM_15_56 BM_56_15 | ||
1856 | #define BM_57_15 0x03ffffffffff8000 | ||
1857 | #define BM_15_57 BM_57_15 | ||
1858 | #define BM_58_15 0x07ffffffffff8000 | ||
1859 | #define BM_15_58 BM_58_15 | ||
1860 | #define BM_59_15 0x0fffffffffff8000 | ||
1861 | #define BM_15_59 BM_59_15 | ||
1862 | #define BM_60_15 0x1fffffffffff8000 | ||
1863 | #define BM_15_60 BM_60_15 | ||
1864 | #define BM_61_15 0x3fffffffffff8000 | ||
1865 | #define BM_15_61 BM_61_15 | ||
1866 | #define BM_62_15 0x7fffffffffff8000 | ||
1867 | #define BM_15_62 BM_62_15 | ||
1868 | #define BM_63_15 0xffffffffffff8000 | ||
1869 | #define BM_15_63 BM_63_15 | ||
1870 | #define BM_16_16 0x0000000000010000 | ||
1871 | #define BM_17_16 0x0000000000030000 | ||
1872 | #define BM_16_17 BM_17_16 | ||
1873 | #define BM_18_16 0x0000000000070000 | ||
1874 | #define BM_16_18 BM_18_16 | ||
1875 | #define BM_19_16 0x00000000000f0000 | ||
1876 | #define BM_16_19 BM_19_16 | ||
1877 | #define BM_20_16 0x00000000001f0000 | ||
1878 | #define BM_16_20 BM_20_16 | ||
1879 | #define BM_21_16 0x00000000003f0000 | ||
1880 | #define BM_16_21 BM_21_16 | ||
1881 | #define BM_22_16 0x00000000007f0000 | ||
1882 | #define BM_16_22 BM_22_16 | ||
1883 | #define BM_23_16 0x0000000000ff0000 | ||
1884 | #define BM_16_23 BM_23_16 | ||
1885 | #define BM_24_16 0x0000000001ff0000 | ||
1886 | #define BM_16_24 BM_24_16 | ||
1887 | #define BM_25_16 0x0000000003ff0000 | ||
1888 | #define BM_16_25 BM_25_16 | ||
1889 | #define BM_26_16 0x0000000007ff0000 | ||
1890 | #define BM_16_26 BM_26_16 | ||
1891 | #define BM_27_16 0x000000000fff0000 | ||
1892 | #define BM_16_27 BM_27_16 | ||
1893 | #define BM_28_16 0x000000001fff0000 | ||
1894 | #define BM_16_28 BM_28_16 | ||
1895 | #define BM_29_16 0x000000003fff0000 | ||
1896 | #define BM_16_29 BM_29_16 | ||
1897 | #define BM_30_16 0x000000007fff0000 | ||
1898 | #define BM_16_30 BM_30_16 | ||
1899 | #define BM_31_16 0x00000000ffff0000 | ||
1900 | #define BM_16_31 BM_31_16 | ||
1901 | #define BM_32_16 0x00000001ffff0000 | ||
1902 | #define BM_16_32 BM_32_16 | ||
1903 | #define BM_33_16 0x00000003ffff0000 | ||
1904 | #define BM_16_33 BM_33_16 | ||
1905 | #define BM_34_16 0x00000007ffff0000 | ||
1906 | #define BM_16_34 BM_34_16 | ||
1907 | #define BM_35_16 0x0000000fffff0000 | ||
1908 | #define BM_16_35 BM_35_16 | ||
1909 | #define BM_36_16 0x0000001fffff0000 | ||
1910 | #define BM_16_36 BM_36_16 | ||
1911 | #define BM_37_16 0x0000003fffff0000 | ||
1912 | #define BM_16_37 BM_37_16 | ||
1913 | #define BM_38_16 0x0000007fffff0000 | ||
1914 | #define BM_16_38 BM_38_16 | ||
1915 | #define BM_39_16 0x000000ffffff0000 | ||
1916 | #define BM_16_39 BM_39_16 | ||
1917 | #define BM_40_16 0x000001ffffff0000 | ||
1918 | #define BM_16_40 BM_40_16 | ||
1919 | #define BM_41_16 0x000003ffffff0000 | ||
1920 | #define BM_16_41 BM_41_16 | ||
1921 | #define BM_42_16 0x000007ffffff0000 | ||
1922 | #define BM_16_42 BM_42_16 | ||
1923 | #define BM_43_16 0x00000fffffff0000 | ||
1924 | #define BM_16_43 BM_43_16 | ||
1925 | #define BM_44_16 0x00001fffffff0000 | ||
1926 | #define BM_16_44 BM_44_16 | ||
1927 | #define BM_45_16 0x00003fffffff0000 | ||
1928 | #define BM_16_45 BM_45_16 | ||
1929 | #define BM_46_16 0x00007fffffff0000 | ||
1930 | #define BM_16_46 BM_46_16 | ||
1931 | #define BM_47_16 0x0000ffffffff0000 | ||
1932 | #define BM_16_47 BM_47_16 | ||
1933 | #define BM_48_16 0x0001ffffffff0000 | ||
1934 | #define BM_16_48 BM_48_16 | ||
1935 | #define BM_49_16 0x0003ffffffff0000 | ||
1936 | #define BM_16_49 BM_49_16 | ||
1937 | #define BM_50_16 0x0007ffffffff0000 | ||
1938 | #define BM_16_50 BM_50_16 | ||
1939 | #define BM_51_16 0x000fffffffff0000 | ||
1940 | #define BM_16_51 BM_51_16 | ||
1941 | #define BM_52_16 0x001fffffffff0000 | ||
1942 | #define BM_16_52 BM_52_16 | ||
1943 | #define BM_53_16 0x003fffffffff0000 | ||
1944 | #define BM_16_53 BM_53_16 | ||
1945 | #define BM_54_16 0x007fffffffff0000 | ||
1946 | #define BM_16_54 BM_54_16 | ||
1947 | #define BM_55_16 0x00ffffffffff0000 | ||
1948 | #define BM_16_55 BM_55_16 | ||
1949 | #define BM_56_16 0x01ffffffffff0000 | ||
1950 | #define BM_16_56 BM_56_16 | ||
1951 | #define BM_57_16 0x03ffffffffff0000 | ||
1952 | #define BM_16_57 BM_57_16 | ||
1953 | #define BM_58_16 0x07ffffffffff0000 | ||
1954 | #define BM_16_58 BM_58_16 | ||
1955 | #define BM_59_16 0x0fffffffffff0000 | ||
1956 | #define BM_16_59 BM_59_16 | ||
1957 | #define BM_60_16 0x1fffffffffff0000 | ||
1958 | #define BM_16_60 BM_60_16 | ||
1959 | #define BM_61_16 0x3fffffffffff0000 | ||
1960 | #define BM_16_61 BM_61_16 | ||
1961 | #define BM_62_16 0x7fffffffffff0000 | ||
1962 | #define BM_16_62 BM_62_16 | ||
1963 | #define BM_63_16 0xffffffffffff0000 | ||
1964 | #define BM_16_63 BM_63_16 | ||
1965 | #define BM_17_17 0x0000000000020000 | ||
1966 | #define BM_18_17 0x0000000000060000 | ||
1967 | #define BM_17_18 BM_18_17 | ||
1968 | #define BM_19_17 0x00000000000e0000 | ||
1969 | #define BM_17_19 BM_19_17 | ||
1970 | #define BM_20_17 0x00000000001e0000 | ||
1971 | #define BM_17_20 BM_20_17 | ||
1972 | #define BM_21_17 0x00000000003e0000 | ||
1973 | #define BM_17_21 BM_21_17 | ||
1974 | #define BM_22_17 0x00000000007e0000 | ||
1975 | #define BM_17_22 BM_22_17 | ||
1976 | #define BM_23_17 0x0000000000fe0000 | ||
1977 | #define BM_17_23 BM_23_17 | ||
1978 | #define BM_24_17 0x0000000001fe0000 | ||
1979 | #define BM_17_24 BM_24_17 | ||
1980 | #define BM_25_17 0x0000000003fe0000 | ||
1981 | #define BM_17_25 BM_25_17 | ||
1982 | #define BM_26_17 0x0000000007fe0000 | ||
1983 | #define BM_17_26 BM_26_17 | ||
1984 | #define BM_27_17 0x000000000ffe0000 | ||
1985 | #define BM_17_27 BM_27_17 | ||
1986 | #define BM_28_17 0x000000001ffe0000 | ||
1987 | #define BM_17_28 BM_28_17 | ||
1988 | #define BM_29_17 0x000000003ffe0000 | ||
1989 | #define BM_17_29 BM_29_17 | ||
1990 | #define BM_30_17 0x000000007ffe0000 | ||
1991 | #define BM_17_30 BM_30_17 | ||
1992 | #define BM_31_17 0x00000000fffe0000 | ||
1993 | #define BM_17_31 BM_31_17 | ||
1994 | #define BM_32_17 0x00000001fffe0000 | ||
1995 | #define BM_17_32 BM_32_17 | ||
1996 | #define BM_33_17 0x00000003fffe0000 | ||
1997 | #define BM_17_33 BM_33_17 | ||
1998 | #define BM_34_17 0x00000007fffe0000 | ||
1999 | #define BM_17_34 BM_34_17 | ||
2000 | #define BM_35_17 0x0000000ffffe0000 | ||
2001 | #define BM_17_35 BM_35_17 | ||
2002 | #define BM_36_17 0x0000001ffffe0000 | ||
2003 | #define BM_17_36 BM_36_17 | ||
2004 | #define BM_37_17 0x0000003ffffe0000 | ||
2005 | #define BM_17_37 BM_37_17 | ||
2006 | #define BM_38_17 0x0000007ffffe0000 | ||
2007 | #define BM_17_38 BM_38_17 | ||
2008 | #define BM_39_17 0x000000fffffe0000 | ||
2009 | #define BM_17_39 BM_39_17 | ||
2010 | #define BM_40_17 0x000001fffffe0000 | ||
2011 | #define BM_17_40 BM_40_17 | ||
2012 | #define BM_41_17 0x000003fffffe0000 | ||
2013 | #define BM_17_41 BM_41_17 | ||
2014 | #define BM_42_17 0x000007fffffe0000 | ||
2015 | #define BM_17_42 BM_42_17 | ||
2016 | #define BM_43_17 0x00000ffffffe0000 | ||
2017 | #define BM_17_43 BM_43_17 | ||
2018 | #define BM_44_17 0x00001ffffffe0000 | ||
2019 | #define BM_17_44 BM_44_17 | ||
2020 | #define BM_45_17 0x00003ffffffe0000 | ||
2021 | #define BM_17_45 BM_45_17 | ||
2022 | #define BM_46_17 0x00007ffffffe0000 | ||
2023 | #define BM_17_46 BM_46_17 | ||
2024 | #define BM_47_17 0x0000fffffffe0000 | ||
2025 | #define BM_17_47 BM_47_17 | ||
2026 | #define BM_48_17 0x0001fffffffe0000 | ||
2027 | #define BM_17_48 BM_48_17 | ||
2028 | #define BM_49_17 0x0003fffffffe0000 | ||
2029 | #define BM_17_49 BM_49_17 | ||
2030 | #define BM_50_17 0x0007fffffffe0000 | ||
2031 | #define BM_17_50 BM_50_17 | ||
2032 | #define BM_51_17 0x000ffffffffe0000 | ||
2033 | #define BM_17_51 BM_51_17 | ||
2034 | #define BM_52_17 0x001ffffffffe0000 | ||
2035 | #define BM_17_52 BM_52_17 | ||
2036 | #define BM_53_17 0x003ffffffffe0000 | ||
2037 | #define BM_17_53 BM_53_17 | ||
2038 | #define BM_54_17 0x007ffffffffe0000 | ||
2039 | #define BM_17_54 BM_54_17 | ||
2040 | #define BM_55_17 0x00fffffffffe0000 | ||
2041 | #define BM_17_55 BM_55_17 | ||
2042 | #define BM_56_17 0x01fffffffffe0000 | ||
2043 | #define BM_17_56 BM_56_17 | ||
2044 | #define BM_57_17 0x03fffffffffe0000 | ||
2045 | #define BM_17_57 BM_57_17 | ||
2046 | #define BM_58_17 0x07fffffffffe0000 | ||
2047 | #define BM_17_58 BM_58_17 | ||
2048 | #define BM_59_17 0x0ffffffffffe0000 | ||
2049 | #define BM_17_59 BM_59_17 | ||
2050 | #define BM_60_17 0x1ffffffffffe0000 | ||
2051 | #define BM_17_60 BM_60_17 | ||
2052 | #define BM_61_17 0x3ffffffffffe0000 | ||
2053 | #define BM_17_61 BM_61_17 | ||
2054 | #define BM_62_17 0x7ffffffffffe0000 | ||
2055 | #define BM_17_62 BM_62_17 | ||
2056 | #define BM_63_17 0xfffffffffffe0000 | ||
2057 | #define BM_17_63 BM_63_17 | ||
2058 | #define BM_18_18 0x0000000000040000 | ||
2059 | #define BM_19_18 0x00000000000c0000 | ||
2060 | #define BM_18_19 BM_19_18 | ||
2061 | #define BM_20_18 0x00000000001c0000 | ||
2062 | #define BM_18_20 BM_20_18 | ||
2063 | #define BM_21_18 0x00000000003c0000 | ||
2064 | #define BM_18_21 BM_21_18 | ||
2065 | #define BM_22_18 0x00000000007c0000 | ||
2066 | #define BM_18_22 BM_22_18 | ||
2067 | #define BM_23_18 0x0000000000fc0000 | ||
2068 | #define BM_18_23 BM_23_18 | ||
2069 | #define BM_24_18 0x0000000001fc0000 | ||
2070 | #define BM_18_24 BM_24_18 | ||
2071 | #define BM_25_18 0x0000000003fc0000 | ||
2072 | #define BM_18_25 BM_25_18 | ||
2073 | #define BM_26_18 0x0000000007fc0000 | ||
2074 | #define BM_18_26 BM_26_18 | ||
2075 | #define BM_27_18 0x000000000ffc0000 | ||
2076 | #define BM_18_27 BM_27_18 | ||
2077 | #define BM_28_18 0x000000001ffc0000 | ||
2078 | #define BM_18_28 BM_28_18 | ||
2079 | #define BM_29_18 0x000000003ffc0000 | ||
2080 | #define BM_18_29 BM_29_18 | ||
2081 | #define BM_30_18 0x000000007ffc0000 | ||
2082 | #define BM_18_30 BM_30_18 | ||
2083 | #define BM_31_18 0x00000000fffc0000 | ||
2084 | #define BM_18_31 BM_31_18 | ||
2085 | #define BM_32_18 0x00000001fffc0000 | ||
2086 | #define BM_18_32 BM_32_18 | ||
2087 | #define BM_33_18 0x00000003fffc0000 | ||
2088 | #define BM_18_33 BM_33_18 | ||
2089 | #define BM_34_18 0x00000007fffc0000 | ||
2090 | #define BM_18_34 BM_34_18 | ||
2091 | #define BM_35_18 0x0000000ffffc0000 | ||
2092 | #define BM_18_35 BM_35_18 | ||
2093 | #define BM_36_18 0x0000001ffffc0000 | ||
2094 | #define BM_18_36 BM_36_18 | ||
2095 | #define BM_37_18 0x0000003ffffc0000 | ||
2096 | #define BM_18_37 BM_37_18 | ||
2097 | #define BM_38_18 0x0000007ffffc0000 | ||
2098 | #define BM_18_38 BM_38_18 | ||
2099 | #define BM_39_18 0x000000fffffc0000 | ||
2100 | #define BM_18_39 BM_39_18 | ||
2101 | #define BM_40_18 0x000001fffffc0000 | ||
2102 | #define BM_18_40 BM_40_18 | ||
2103 | #define BM_41_18 0x000003fffffc0000 | ||
2104 | #define BM_18_41 BM_41_18 | ||
2105 | #define BM_42_18 0x000007fffffc0000 | ||
2106 | #define BM_18_42 BM_42_18 | ||
2107 | #define BM_43_18 0x00000ffffffc0000 | ||
2108 | #define BM_18_43 BM_43_18 | ||
2109 | #define BM_44_18 0x00001ffffffc0000 | ||
2110 | #define BM_18_44 BM_44_18 | ||
2111 | #define BM_45_18 0x00003ffffffc0000 | ||
2112 | #define BM_18_45 BM_45_18 | ||
2113 | #define BM_46_18 0x00007ffffffc0000 | ||
2114 | #define BM_18_46 BM_46_18 | ||
2115 | #define BM_47_18 0x0000fffffffc0000 | ||
2116 | #define BM_18_47 BM_47_18 | ||
2117 | #define BM_48_18 0x0001fffffffc0000 | ||
2118 | #define BM_18_48 BM_48_18 | ||
2119 | #define BM_49_18 0x0003fffffffc0000 | ||
2120 | #define BM_18_49 BM_49_18 | ||
2121 | #define BM_50_18 0x0007fffffffc0000 | ||
2122 | #define BM_18_50 BM_50_18 | ||
2123 | #define BM_51_18 0x000ffffffffc0000 | ||
2124 | #define BM_18_51 BM_51_18 | ||
2125 | #define BM_52_18 0x001ffffffffc0000 | ||
2126 | #define BM_18_52 BM_52_18 | ||
2127 | #define BM_53_18 0x003ffffffffc0000 | ||
2128 | #define BM_18_53 BM_53_18 | ||
2129 | #define BM_54_18 0x007ffffffffc0000 | ||
2130 | #define BM_18_54 BM_54_18 | ||
2131 | #define BM_55_18 0x00fffffffffc0000 | ||
2132 | #define BM_18_55 BM_55_18 | ||
2133 | #define BM_56_18 0x01fffffffffc0000 | ||
2134 | #define BM_18_56 BM_56_18 | ||
2135 | #define BM_57_18 0x03fffffffffc0000 | ||
2136 | #define BM_18_57 BM_57_18 | ||
2137 | #define BM_58_18 0x07fffffffffc0000 | ||
2138 | #define BM_18_58 BM_58_18 | ||
2139 | #define BM_59_18 0x0ffffffffffc0000 | ||
2140 | #define BM_18_59 BM_59_18 | ||
2141 | #define BM_60_18 0x1ffffffffffc0000 | ||
2142 | #define BM_18_60 BM_60_18 | ||
2143 | #define BM_61_18 0x3ffffffffffc0000 | ||
2144 | #define BM_18_61 BM_61_18 | ||
2145 | #define BM_62_18 0x7ffffffffffc0000 | ||
2146 | #define BM_18_62 BM_62_18 | ||
2147 | #define BM_63_18 0xfffffffffffc0000 | ||
2148 | #define BM_18_63 BM_63_18 | ||
2149 | #define BM_19_19 0x0000000000080000 | ||
2150 | #define BM_20_19 0x0000000000180000 | ||
2151 | #define BM_19_20 BM_20_19 | ||
2152 | #define BM_21_19 0x0000000000380000 | ||
2153 | #define BM_19_21 BM_21_19 | ||
2154 | #define BM_22_19 0x0000000000780000 | ||
2155 | #define BM_19_22 BM_22_19 | ||
2156 | #define BM_23_19 0x0000000000f80000 | ||
2157 | #define BM_19_23 BM_23_19 | ||
2158 | #define BM_24_19 0x0000000001f80000 | ||
2159 | #define BM_19_24 BM_24_19 | ||
2160 | #define BM_25_19 0x0000000003f80000 | ||
2161 | #define BM_19_25 BM_25_19 | ||
2162 | #define BM_26_19 0x0000000007f80000 | ||
2163 | #define BM_19_26 BM_26_19 | ||
2164 | #define BM_27_19 0x000000000ff80000 | ||
2165 | #define BM_19_27 BM_27_19 | ||
2166 | #define BM_28_19 0x000000001ff80000 | ||
2167 | #define BM_19_28 BM_28_19 | ||
2168 | #define BM_29_19 0x000000003ff80000 | ||
2169 | #define BM_19_29 BM_29_19 | ||
2170 | #define BM_30_19 0x000000007ff80000 | ||
2171 | #define BM_19_30 BM_30_19 | ||
2172 | #define BM_31_19 0x00000000fff80000 | ||
2173 | #define BM_19_31 BM_31_19 | ||
2174 | #define BM_32_19 0x00000001fff80000 | ||
2175 | #define BM_19_32 BM_32_19 | ||
2176 | #define BM_33_19 0x00000003fff80000 | ||
2177 | #define BM_19_33 BM_33_19 | ||
2178 | #define BM_34_19 0x00000007fff80000 | ||
2179 | #define BM_19_34 BM_34_19 | ||
2180 | #define BM_35_19 0x0000000ffff80000 | ||
2181 | #define BM_19_35 BM_35_19 | ||
2182 | #define BM_36_19 0x0000001ffff80000 | ||
2183 | #define BM_19_36 BM_36_19 | ||
2184 | #define BM_37_19 0x0000003ffff80000 | ||
2185 | #define BM_19_37 BM_37_19 | ||
2186 | #define BM_38_19 0x0000007ffff80000 | ||
2187 | #define BM_19_38 BM_38_19 | ||
2188 | #define BM_39_19 0x000000fffff80000 | ||
2189 | #define BM_19_39 BM_39_19 | ||
2190 | #define BM_40_19 0x000001fffff80000 | ||
2191 | #define BM_19_40 BM_40_19 | ||
2192 | #define BM_41_19 0x000003fffff80000 | ||
2193 | #define BM_19_41 BM_41_19 | ||
2194 | #define BM_42_19 0x000007fffff80000 | ||
2195 | #define BM_19_42 BM_42_19 | ||
2196 | #define BM_43_19 0x00000ffffff80000 | ||
2197 | #define BM_19_43 BM_43_19 | ||
2198 | #define BM_44_19 0x00001ffffff80000 | ||
2199 | #define BM_19_44 BM_44_19 | ||
2200 | #define BM_45_19 0x00003ffffff80000 | ||
2201 | #define BM_19_45 BM_45_19 | ||
2202 | #define BM_46_19 0x00007ffffff80000 | ||
2203 | #define BM_19_46 BM_46_19 | ||
2204 | #define BM_47_19 0x0000fffffff80000 | ||
2205 | #define BM_19_47 BM_47_19 | ||
2206 | #define BM_48_19 0x0001fffffff80000 | ||
2207 | #define BM_19_48 BM_48_19 | ||
2208 | #define BM_49_19 0x0003fffffff80000 | ||
2209 | #define BM_19_49 BM_49_19 | ||
2210 | #define BM_50_19 0x0007fffffff80000 | ||
2211 | #define BM_19_50 BM_50_19 | ||
2212 | #define BM_51_19 0x000ffffffff80000 | ||
2213 | #define BM_19_51 BM_51_19 | ||
2214 | #define BM_52_19 0x001ffffffff80000 | ||
2215 | #define BM_19_52 BM_52_19 | ||
2216 | #define BM_53_19 0x003ffffffff80000 | ||
2217 | #define BM_19_53 BM_53_19 | ||
2218 | #define BM_54_19 0x007ffffffff80000 | ||
2219 | #define BM_19_54 BM_54_19 | ||
2220 | #define BM_55_19 0x00fffffffff80000 | ||
2221 | #define BM_19_55 BM_55_19 | ||
2222 | #define BM_56_19 0x01fffffffff80000 | ||
2223 | #define BM_19_56 BM_56_19 | ||
2224 | #define BM_57_19 0x03fffffffff80000 | ||
2225 | #define BM_19_57 BM_57_19 | ||
2226 | #define BM_58_19 0x07fffffffff80000 | ||
2227 | #define BM_19_58 BM_58_19 | ||
2228 | #define BM_59_19 0x0ffffffffff80000 | ||
2229 | #define BM_19_59 BM_59_19 | ||
2230 | #define BM_60_19 0x1ffffffffff80000 | ||
2231 | #define BM_19_60 BM_60_19 | ||
2232 | #define BM_61_19 0x3ffffffffff80000 | ||
2233 | #define BM_19_61 BM_61_19 | ||
2234 | #define BM_62_19 0x7ffffffffff80000 | ||
2235 | #define BM_19_62 BM_62_19 | ||
2236 | #define BM_63_19 0xfffffffffff80000 | ||
2237 | #define BM_19_63 BM_63_19 | ||
2238 | #define BM_20_20 0x0000000000100000 | ||
2239 | #define BM_21_20 0x0000000000300000 | ||
2240 | #define BM_20_21 BM_21_20 | ||
2241 | #define BM_22_20 0x0000000000700000 | ||
2242 | #define BM_20_22 BM_22_20 | ||
2243 | #define BM_23_20 0x0000000000f00000 | ||
2244 | #define BM_20_23 BM_23_20 | ||
2245 | #define BM_24_20 0x0000000001f00000 | ||
2246 | #define BM_20_24 BM_24_20 | ||
2247 | #define BM_25_20 0x0000000003f00000 | ||
2248 | #define BM_20_25 BM_25_20 | ||
2249 | #define BM_26_20 0x0000000007f00000 | ||
2250 | #define BM_20_26 BM_26_20 | ||
2251 | #define BM_27_20 0x000000000ff00000 | ||
2252 | #define BM_20_27 BM_27_20 | ||
2253 | #define BM_28_20 0x000000001ff00000 | ||
2254 | #define BM_20_28 BM_28_20 | ||
2255 | #define BM_29_20 0x000000003ff00000 | ||
2256 | #define BM_20_29 BM_29_20 | ||
2257 | #define BM_30_20 0x000000007ff00000 | ||
2258 | #define BM_20_30 BM_30_20 | ||
2259 | #define BM_31_20 0x00000000fff00000 | ||
2260 | #define BM_20_31 BM_31_20 | ||
2261 | #define BM_32_20 0x00000001fff00000 | ||
2262 | #define BM_20_32 BM_32_20 | ||
2263 | #define BM_33_20 0x00000003fff00000 | ||
2264 | #define BM_20_33 BM_33_20 | ||
2265 | #define BM_34_20 0x00000007fff00000 | ||
2266 | #define BM_20_34 BM_34_20 | ||
2267 | #define BM_35_20 0x0000000ffff00000 | ||
2268 | #define BM_20_35 BM_35_20 | ||
2269 | #define BM_36_20 0x0000001ffff00000 | ||
2270 | #define BM_20_36 BM_36_20 | ||
2271 | #define BM_37_20 0x0000003ffff00000 | ||
2272 | #define BM_20_37 BM_37_20 | ||
2273 | #define BM_38_20 0x0000007ffff00000 | ||
2274 | #define BM_20_38 BM_38_20 | ||
2275 | #define BM_39_20 0x000000fffff00000 | ||
2276 | #define BM_20_39 BM_39_20 | ||
2277 | #define BM_40_20 0x000001fffff00000 | ||
2278 | #define BM_20_40 BM_40_20 | ||
2279 | #define BM_41_20 0x000003fffff00000 | ||
2280 | #define BM_20_41 BM_41_20 | ||
2281 | #define BM_42_20 0x000007fffff00000 | ||
2282 | #define BM_20_42 BM_42_20 | ||
2283 | #define BM_43_20 0x00000ffffff00000 | ||
2284 | #define BM_20_43 BM_43_20 | ||
2285 | #define BM_44_20 0x00001ffffff00000 | ||
2286 | #define BM_20_44 BM_44_20 | ||
2287 | #define BM_45_20 0x00003ffffff00000 | ||
2288 | #define BM_20_45 BM_45_20 | ||
2289 | #define BM_46_20 0x00007ffffff00000 | ||
2290 | #define BM_20_46 BM_46_20 | ||
2291 | #define BM_47_20 0x0000fffffff00000 | ||
2292 | #define BM_20_47 BM_47_20 | ||
2293 | #define BM_48_20 0x0001fffffff00000 | ||
2294 | #define BM_20_48 BM_48_20 | ||
2295 | #define BM_49_20 0x0003fffffff00000 | ||
2296 | #define BM_20_49 BM_49_20 | ||
2297 | #define BM_50_20 0x0007fffffff00000 | ||
2298 | #define BM_20_50 BM_50_20 | ||
2299 | #define BM_51_20 0x000ffffffff00000 | ||
2300 | #define BM_20_51 BM_51_20 | ||
2301 | #define BM_52_20 0x001ffffffff00000 | ||
2302 | #define BM_20_52 BM_52_20 | ||
2303 | #define BM_53_20 0x003ffffffff00000 | ||
2304 | #define BM_20_53 BM_53_20 | ||
2305 | #define BM_54_20 0x007ffffffff00000 | ||
2306 | #define BM_20_54 BM_54_20 | ||
2307 | #define BM_55_20 0x00fffffffff00000 | ||
2308 | #define BM_20_55 BM_55_20 | ||
2309 | #define BM_56_20 0x01fffffffff00000 | ||
2310 | #define BM_20_56 BM_56_20 | ||
2311 | #define BM_57_20 0x03fffffffff00000 | ||
2312 | #define BM_20_57 BM_57_20 | ||
2313 | #define BM_58_20 0x07fffffffff00000 | ||
2314 | #define BM_20_58 BM_58_20 | ||
2315 | #define BM_59_20 0x0ffffffffff00000 | ||
2316 | #define BM_20_59 BM_59_20 | ||
2317 | #define BM_60_20 0x1ffffffffff00000 | ||
2318 | #define BM_20_60 BM_60_20 | ||
2319 | #define BM_61_20 0x3ffffffffff00000 | ||
2320 | #define BM_20_61 BM_61_20 | ||
2321 | #define BM_62_20 0x7ffffffffff00000 | ||
2322 | #define BM_20_62 BM_62_20 | ||
2323 | #define BM_63_20 0xfffffffffff00000 | ||
2324 | #define BM_20_63 BM_63_20 | ||
2325 | #define BM_21_21 0x0000000000200000 | ||
2326 | #define BM_22_21 0x0000000000600000 | ||
2327 | #define BM_21_22 BM_22_21 | ||
2328 | #define BM_23_21 0x0000000000e00000 | ||
2329 | #define BM_21_23 BM_23_21 | ||
2330 | #define BM_24_21 0x0000000001e00000 | ||
2331 | #define BM_21_24 BM_24_21 | ||
2332 | #define BM_25_21 0x0000000003e00000 | ||
2333 | #define BM_21_25 BM_25_21 | ||
2334 | #define BM_26_21 0x0000000007e00000 | ||
2335 | #define BM_21_26 BM_26_21 | ||
2336 | #define BM_27_21 0x000000000fe00000 | ||
2337 | #define BM_21_27 BM_27_21 | ||
2338 | #define BM_28_21 0x000000001fe00000 | ||
2339 | #define BM_21_28 BM_28_21 | ||
2340 | #define BM_29_21 0x000000003fe00000 | ||
2341 | #define BM_21_29 BM_29_21 | ||
2342 | #define BM_30_21 0x000000007fe00000 | ||
2343 | #define BM_21_30 BM_30_21 | ||
2344 | #define BM_31_21 0x00000000ffe00000 | ||
2345 | #define BM_21_31 BM_31_21 | ||
2346 | #define BM_32_21 0x00000001ffe00000 | ||
2347 | #define BM_21_32 BM_32_21 | ||
2348 | #define BM_33_21 0x00000003ffe00000 | ||
2349 | #define BM_21_33 BM_33_21 | ||
2350 | #define BM_34_21 0x00000007ffe00000 | ||
2351 | #define BM_21_34 BM_34_21 | ||
2352 | #define BM_35_21 0x0000000fffe00000 | ||
2353 | #define BM_21_35 BM_35_21 | ||
2354 | #define BM_36_21 0x0000001fffe00000 | ||
2355 | #define BM_21_36 BM_36_21 | ||
2356 | #define BM_37_21 0x0000003fffe00000 | ||
2357 | #define BM_21_37 BM_37_21 | ||
2358 | #define BM_38_21 0x0000007fffe00000 | ||
2359 | #define BM_21_38 BM_38_21 | ||
2360 | #define BM_39_21 0x000000ffffe00000 | ||
2361 | #define BM_21_39 BM_39_21 | ||
2362 | #define BM_40_21 0x000001ffffe00000 | ||
2363 | #define BM_21_40 BM_40_21 | ||
2364 | #define BM_41_21 0x000003ffffe00000 | ||
2365 | #define BM_21_41 BM_41_21 | ||
2366 | #define BM_42_21 0x000007ffffe00000 | ||
2367 | #define BM_21_42 BM_42_21 | ||
2368 | #define BM_43_21 0x00000fffffe00000 | ||
2369 | #define BM_21_43 BM_43_21 | ||
2370 | #define BM_44_21 0x00001fffffe00000 | ||
2371 | #define BM_21_44 BM_44_21 | ||
2372 | #define BM_45_21 0x00003fffffe00000 | ||
2373 | #define BM_21_45 BM_45_21 | ||
2374 | #define BM_46_21 0x00007fffffe00000 | ||
2375 | #define BM_21_46 BM_46_21 | ||
2376 | #define BM_47_21 0x0000ffffffe00000 | ||
2377 | #define BM_21_47 BM_47_21 | ||
2378 | #define BM_48_21 0x0001ffffffe00000 | ||
2379 | #define BM_21_48 BM_48_21 | ||
2380 | #define BM_49_21 0x0003ffffffe00000 | ||
2381 | #define BM_21_49 BM_49_21 | ||
2382 | #define BM_50_21 0x0007ffffffe00000 | ||
2383 | #define BM_21_50 BM_50_21 | ||
2384 | #define BM_51_21 0x000fffffffe00000 | ||
2385 | #define BM_21_51 BM_51_21 | ||
2386 | #define BM_52_21 0x001fffffffe00000 | ||
2387 | #define BM_21_52 BM_52_21 | ||
2388 | #define BM_53_21 0x003fffffffe00000 | ||
2389 | #define BM_21_53 BM_53_21 | ||
2390 | #define BM_54_21 0x007fffffffe00000 | ||
2391 | #define BM_21_54 BM_54_21 | ||
2392 | #define BM_55_21 0x00ffffffffe00000 | ||
2393 | #define BM_21_55 BM_55_21 | ||
2394 | #define BM_56_21 0x01ffffffffe00000 | ||
2395 | #define BM_21_56 BM_56_21 | ||
2396 | #define BM_57_21 0x03ffffffffe00000 | ||
2397 | #define BM_21_57 BM_57_21 | ||
2398 | #define BM_58_21 0x07ffffffffe00000 | ||
2399 | #define BM_21_58 BM_58_21 | ||
2400 | #define BM_59_21 0x0fffffffffe00000 | ||
2401 | #define BM_21_59 BM_59_21 | ||
2402 | #define BM_60_21 0x1fffffffffe00000 | ||
2403 | #define BM_21_60 BM_60_21 | ||
2404 | #define BM_61_21 0x3fffffffffe00000 | ||
2405 | #define BM_21_61 BM_61_21 | ||
2406 | #define BM_62_21 0x7fffffffffe00000 | ||
2407 | #define BM_21_62 BM_62_21 | ||
2408 | #define BM_63_21 0xffffffffffe00000 | ||
2409 | #define BM_21_63 BM_63_21 | ||
2410 | #define BM_22_22 0x0000000000400000 | ||
2411 | #define BM_23_22 0x0000000000c00000 | ||
2412 | #define BM_22_23 BM_23_22 | ||
2413 | #define BM_24_22 0x0000000001c00000 | ||
2414 | #define BM_22_24 BM_24_22 | ||
2415 | #define BM_25_22 0x0000000003c00000 | ||
2416 | #define BM_22_25 BM_25_22 | ||
2417 | #define BM_26_22 0x0000000007c00000 | ||
2418 | #define BM_22_26 BM_26_22 | ||
2419 | #define BM_27_22 0x000000000fc00000 | ||
2420 | #define BM_22_27 BM_27_22 | ||
2421 | #define BM_28_22 0x000000001fc00000 | ||
2422 | #define BM_22_28 BM_28_22 | ||
2423 | #define BM_29_22 0x000000003fc00000 | ||
2424 | #define BM_22_29 BM_29_22 | ||
2425 | #define BM_30_22 0x000000007fc00000 | ||
2426 | #define BM_22_30 BM_30_22 | ||
2427 | #define BM_31_22 0x00000000ffc00000 | ||
2428 | #define BM_22_31 BM_31_22 | ||
2429 | #define BM_32_22 0x00000001ffc00000 | ||
2430 | #define BM_22_32 BM_32_22 | ||
2431 | #define BM_33_22 0x00000003ffc00000 | ||
2432 | #define BM_22_33 BM_33_22 | ||
2433 | #define BM_34_22 0x00000007ffc00000 | ||
2434 | #define BM_22_34 BM_34_22 | ||
2435 | #define BM_35_22 0x0000000fffc00000 | ||
2436 | #define BM_22_35 BM_35_22 | ||
2437 | #define BM_36_22 0x0000001fffc00000 | ||
2438 | #define BM_22_36 BM_36_22 | ||
2439 | #define BM_37_22 0x0000003fffc00000 | ||
2440 | #define BM_22_37 BM_37_22 | ||
2441 | #define BM_38_22 0x0000007fffc00000 | ||
2442 | #define BM_22_38 BM_38_22 | ||
2443 | #define BM_39_22 0x000000ffffc00000 | ||
2444 | #define BM_22_39 BM_39_22 | ||
2445 | #define BM_40_22 0x000001ffffc00000 | ||
2446 | #define BM_22_40 BM_40_22 | ||
2447 | #define BM_41_22 0x000003ffffc00000 | ||
2448 | #define BM_22_41 BM_41_22 | ||
2449 | #define BM_42_22 0x000007ffffc00000 | ||
2450 | #define BM_22_42 BM_42_22 | ||
2451 | #define BM_43_22 0x00000fffffc00000 | ||
2452 | #define BM_22_43 BM_43_22 | ||
2453 | #define BM_44_22 0x00001fffffc00000 | ||
2454 | #define BM_22_44 BM_44_22 | ||
2455 | #define BM_45_22 0x00003fffffc00000 | ||
2456 | #define BM_22_45 BM_45_22 | ||
2457 | #define BM_46_22 0x00007fffffc00000 | ||
2458 | #define BM_22_46 BM_46_22 | ||
2459 | #define BM_47_22 0x0000ffffffc00000 | ||
2460 | #define BM_22_47 BM_47_22 | ||
2461 | #define BM_48_22 0x0001ffffffc00000 | ||
2462 | #define BM_22_48 BM_48_22 | ||
2463 | #define BM_49_22 0x0003ffffffc00000 | ||
2464 | #define BM_22_49 BM_49_22 | ||
2465 | #define BM_50_22 0x0007ffffffc00000 | ||
2466 | #define BM_22_50 BM_50_22 | ||
2467 | #define BM_51_22 0x000fffffffc00000 | ||
2468 | #define BM_22_51 BM_51_22 | ||
2469 | #define BM_52_22 0x001fffffffc00000 | ||
2470 | #define BM_22_52 BM_52_22 | ||
2471 | #define BM_53_22 0x003fffffffc00000 | ||
2472 | #define BM_22_53 BM_53_22 | ||
2473 | #define BM_54_22 0x007fffffffc00000 | ||
2474 | #define BM_22_54 BM_54_22 | ||
2475 | #define BM_55_22 0x00ffffffffc00000 | ||
2476 | #define BM_22_55 BM_55_22 | ||
2477 | #define BM_56_22 0x01ffffffffc00000 | ||
2478 | #define BM_22_56 BM_56_22 | ||
2479 | #define BM_57_22 0x03ffffffffc00000 | ||
2480 | #define BM_22_57 BM_57_22 | ||
2481 | #define BM_58_22 0x07ffffffffc00000 | ||
2482 | #define BM_22_58 BM_58_22 | ||
2483 | #define BM_59_22 0x0fffffffffc00000 | ||
2484 | #define BM_22_59 BM_59_22 | ||
2485 | #define BM_60_22 0x1fffffffffc00000 | ||
2486 | #define BM_22_60 BM_60_22 | ||
2487 | #define BM_61_22 0x3fffffffffc00000 | ||
2488 | #define BM_22_61 BM_61_22 | ||
2489 | #define BM_62_22 0x7fffffffffc00000 | ||
2490 | #define BM_22_62 BM_62_22 | ||
2491 | #define BM_63_22 0xffffffffffc00000 | ||
2492 | #define BM_22_63 BM_63_22 | ||
2493 | #define BM_23_23 0x0000000000800000 | ||
2494 | #define BM_24_23 0x0000000001800000 | ||
2495 | #define BM_23_24 BM_24_23 | ||
2496 | #define BM_25_23 0x0000000003800000 | ||
2497 | #define BM_23_25 BM_25_23 | ||
2498 | #define BM_26_23 0x0000000007800000 | ||
2499 | #define BM_23_26 BM_26_23 | ||
2500 | #define BM_27_23 0x000000000f800000 | ||
2501 | #define BM_23_27 BM_27_23 | ||
2502 | #define BM_28_23 0x000000001f800000 | ||
2503 | #define BM_23_28 BM_28_23 | ||
2504 | #define BM_29_23 0x000000003f800000 | ||
2505 | #define BM_23_29 BM_29_23 | ||
2506 | #define BM_30_23 0x000000007f800000 | ||
2507 | #define BM_23_30 BM_30_23 | ||
2508 | #define BM_31_23 0x00000000ff800000 | ||
2509 | #define BM_23_31 BM_31_23 | ||
2510 | #define BM_32_23 0x00000001ff800000 | ||
2511 | #define BM_23_32 BM_32_23 | ||
2512 | #define BM_33_23 0x00000003ff800000 | ||
2513 | #define BM_23_33 BM_33_23 | ||
2514 | #define BM_34_23 0x00000007ff800000 | ||
2515 | #define BM_23_34 BM_34_23 | ||
2516 | #define BM_35_23 0x0000000fff800000 | ||
2517 | #define BM_23_35 BM_35_23 | ||
2518 | #define BM_36_23 0x0000001fff800000 | ||
2519 | #define BM_23_36 BM_36_23 | ||
2520 | #define BM_37_23 0x0000003fff800000 | ||
2521 | #define BM_23_37 BM_37_23 | ||
2522 | #define BM_38_23 0x0000007fff800000 | ||
2523 | #define BM_23_38 BM_38_23 | ||
2524 | #define BM_39_23 0x000000ffff800000 | ||
2525 | #define BM_23_39 BM_39_23 | ||
2526 | #define BM_40_23 0x000001ffff800000 | ||
2527 | #define BM_23_40 BM_40_23 | ||
2528 | #define BM_41_23 0x000003ffff800000 | ||
2529 | #define BM_23_41 BM_41_23 | ||
2530 | #define BM_42_23 0x000007ffff800000 | ||
2531 | #define BM_23_42 BM_42_23 | ||
2532 | #define BM_43_23 0x00000fffff800000 | ||
2533 | #define BM_23_43 BM_43_23 | ||
2534 | #define BM_44_23 0x00001fffff800000 | ||
2535 | #define BM_23_44 BM_44_23 | ||
2536 | #define BM_45_23 0x00003fffff800000 | ||
2537 | #define BM_23_45 BM_45_23 | ||
2538 | #define BM_46_23 0x00007fffff800000 | ||
2539 | #define BM_23_46 BM_46_23 | ||
2540 | #define BM_47_23 0x0000ffffff800000 | ||
2541 | #define BM_23_47 BM_47_23 | ||
2542 | #define BM_48_23 0x0001ffffff800000 | ||
2543 | #define BM_23_48 BM_48_23 | ||
2544 | #define BM_49_23 0x0003ffffff800000 | ||
2545 | #define BM_23_49 BM_49_23 | ||
2546 | #define BM_50_23 0x0007ffffff800000 | ||
2547 | #define BM_23_50 BM_50_23 | ||
2548 | #define BM_51_23 0x000fffffff800000 | ||
2549 | #define BM_23_51 BM_51_23 | ||
2550 | #define BM_52_23 0x001fffffff800000 | ||
2551 | #define BM_23_52 BM_52_23 | ||
2552 | #define BM_53_23 0x003fffffff800000 | ||
2553 | #define BM_23_53 BM_53_23 | ||
2554 | #define BM_54_23 0x007fffffff800000 | ||
2555 | #define BM_23_54 BM_54_23 | ||
2556 | #define BM_55_23 0x00ffffffff800000 | ||
2557 | #define BM_23_55 BM_55_23 | ||
2558 | #define BM_56_23 0x01ffffffff800000 | ||
2559 | #define BM_23_56 BM_56_23 | ||
2560 | #define BM_57_23 0x03ffffffff800000 | ||
2561 | #define BM_23_57 BM_57_23 | ||
2562 | #define BM_58_23 0x07ffffffff800000 | ||
2563 | #define BM_23_58 BM_58_23 | ||
2564 | #define BM_59_23 0x0fffffffff800000 | ||
2565 | #define BM_23_59 BM_59_23 | ||
2566 | #define BM_60_23 0x1fffffffff800000 | ||
2567 | #define BM_23_60 BM_60_23 | ||
2568 | #define BM_61_23 0x3fffffffff800000 | ||
2569 | #define BM_23_61 BM_61_23 | ||
2570 | #define BM_62_23 0x7fffffffff800000 | ||
2571 | #define BM_23_62 BM_62_23 | ||
2572 | #define BM_63_23 0xffffffffff800000 | ||
2573 | #define BM_23_63 BM_63_23 | ||
2574 | #define BM_24_24 0x0000000001000000 | ||
2575 | #define BM_25_24 0x0000000003000000 | ||
2576 | #define BM_24_25 BM_25_24 | ||
2577 | #define BM_26_24 0x0000000007000000 | ||
2578 | #define BM_24_26 BM_26_24 | ||
2579 | #define BM_27_24 0x000000000f000000 | ||
2580 | #define BM_24_27 BM_27_24 | ||
2581 | #define BM_28_24 0x000000001f000000 | ||
2582 | #define BM_24_28 BM_28_24 | ||
2583 | #define BM_29_24 0x000000003f000000 | ||
2584 | #define BM_24_29 BM_29_24 | ||
2585 | #define BM_30_24 0x000000007f000000 | ||
2586 | #define BM_24_30 BM_30_24 | ||
2587 | #define BM_31_24 0x00000000ff000000 | ||
2588 | #define BM_24_31 BM_31_24 | ||
2589 | #define BM_32_24 0x00000001ff000000 | ||
2590 | #define BM_24_32 BM_32_24 | ||
2591 | #define BM_33_24 0x00000003ff000000 | ||
2592 | #define BM_24_33 BM_33_24 | ||
2593 | #define BM_34_24 0x00000007ff000000 | ||
2594 | #define BM_24_34 BM_34_24 | ||
2595 | #define BM_35_24 0x0000000fff000000 | ||
2596 | #define BM_24_35 BM_35_24 | ||
2597 | #define BM_36_24 0x0000001fff000000 | ||
2598 | #define BM_24_36 BM_36_24 | ||
2599 | #define BM_37_24 0x0000003fff000000 | ||
2600 | #define BM_24_37 BM_37_24 | ||
2601 | #define BM_38_24 0x0000007fff000000 | ||
2602 | #define BM_24_38 BM_38_24 | ||
2603 | #define BM_39_24 0x000000ffff000000 | ||
2604 | #define BM_24_39 BM_39_24 | ||
2605 | #define BM_40_24 0x000001ffff000000 | ||
2606 | #define BM_24_40 BM_40_24 | ||
2607 | #define BM_41_24 0x000003ffff000000 | ||
2608 | #define BM_24_41 BM_41_24 | ||
2609 | #define BM_42_24 0x000007ffff000000 | ||
2610 | #define BM_24_42 BM_42_24 | ||
2611 | #define BM_43_24 0x00000fffff000000 | ||
2612 | #define BM_24_43 BM_43_24 | ||
2613 | #define BM_44_24 0x00001fffff000000 | ||
2614 | #define BM_24_44 BM_44_24 | ||
2615 | #define BM_45_24 0x00003fffff000000 | ||
2616 | #define BM_24_45 BM_45_24 | ||
2617 | #define BM_46_24 0x00007fffff000000 | ||
2618 | #define BM_24_46 BM_46_24 | ||
2619 | #define BM_47_24 0x0000ffffff000000 | ||
2620 | #define BM_24_47 BM_47_24 | ||
2621 | #define BM_48_24 0x0001ffffff000000 | ||
2622 | #define BM_24_48 BM_48_24 | ||
2623 | #define BM_49_24 0x0003ffffff000000 | ||
2624 | #define BM_24_49 BM_49_24 | ||
2625 | #define BM_50_24 0x0007ffffff000000 | ||
2626 | #define BM_24_50 BM_50_24 | ||
2627 | #define BM_51_24 0x000fffffff000000 | ||
2628 | #define BM_24_51 BM_51_24 | ||
2629 | #define BM_52_24 0x001fffffff000000 | ||
2630 | #define BM_24_52 BM_52_24 | ||
2631 | #define BM_53_24 0x003fffffff000000 | ||
2632 | #define BM_24_53 BM_53_24 | ||
2633 | #define BM_54_24 0x007fffffff000000 | ||
2634 | #define BM_24_54 BM_54_24 | ||
2635 | #define BM_55_24 0x00ffffffff000000 | ||
2636 | #define BM_24_55 BM_55_24 | ||
2637 | #define BM_56_24 0x01ffffffff000000 | ||
2638 | #define BM_24_56 BM_56_24 | ||
2639 | #define BM_57_24 0x03ffffffff000000 | ||
2640 | #define BM_24_57 BM_57_24 | ||
2641 | #define BM_58_24 0x07ffffffff000000 | ||
2642 | #define BM_24_58 BM_58_24 | ||
2643 | #define BM_59_24 0x0fffffffff000000 | ||
2644 | #define BM_24_59 BM_59_24 | ||
2645 | #define BM_60_24 0x1fffffffff000000 | ||
2646 | #define BM_24_60 BM_60_24 | ||
2647 | #define BM_61_24 0x3fffffffff000000 | ||
2648 | #define BM_24_61 BM_61_24 | ||
2649 | #define BM_62_24 0x7fffffffff000000 | ||
2650 | #define BM_24_62 BM_62_24 | ||
2651 | #define BM_63_24 0xffffffffff000000 | ||
2652 | #define BM_24_63 BM_63_24 | ||
2653 | #define BM_25_25 0x0000000002000000 | ||
2654 | #define BM_26_25 0x0000000006000000 | ||
2655 | #define BM_25_26 BM_26_25 | ||
2656 | #define BM_27_25 0x000000000e000000 | ||
2657 | #define BM_25_27 BM_27_25 | ||
2658 | #define BM_28_25 0x000000001e000000 | ||
2659 | #define BM_25_28 BM_28_25 | ||
2660 | #define BM_29_25 0x000000003e000000 | ||
2661 | #define BM_25_29 BM_29_25 | ||
2662 | #define BM_30_25 0x000000007e000000 | ||
2663 | #define BM_25_30 BM_30_25 | ||
2664 | #define BM_31_25 0x00000000fe000000 | ||
2665 | #define BM_25_31 BM_31_25 | ||
2666 | #define BM_32_25 0x00000001fe000000 | ||
2667 | #define BM_25_32 BM_32_25 | ||
2668 | #define BM_33_25 0x00000003fe000000 | ||
2669 | #define BM_25_33 BM_33_25 | ||
2670 | #define BM_34_25 0x00000007fe000000 | ||
2671 | #define BM_25_34 BM_34_25 | ||
2672 | #define BM_35_25 0x0000000ffe000000 | ||
2673 | #define BM_25_35 BM_35_25 | ||
2674 | #define BM_36_25 0x0000001ffe000000 | ||
2675 | #define BM_25_36 BM_36_25 | ||
2676 | #define BM_37_25 0x0000003ffe000000 | ||
2677 | #define BM_25_37 BM_37_25 | ||
2678 | #define BM_38_25 0x0000007ffe000000 | ||
2679 | #define BM_25_38 BM_38_25 | ||
2680 | #define BM_39_25 0x000000fffe000000 | ||
2681 | #define BM_25_39 BM_39_25 | ||
2682 | #define BM_40_25 0x000001fffe000000 | ||
2683 | #define BM_25_40 BM_40_25 | ||
2684 | #define BM_41_25 0x000003fffe000000 | ||
2685 | #define BM_25_41 BM_41_25 | ||
2686 | #define BM_42_25 0x000007fffe000000 | ||
2687 | #define BM_25_42 BM_42_25 | ||
2688 | #define BM_43_25 0x00000ffffe000000 | ||
2689 | #define BM_25_43 BM_43_25 | ||
2690 | #define BM_44_25 0x00001ffffe000000 | ||
2691 | #define BM_25_44 BM_44_25 | ||
2692 | #define BM_45_25 0x00003ffffe000000 | ||
2693 | #define BM_25_45 BM_45_25 | ||
2694 | #define BM_46_25 0x00007ffffe000000 | ||
2695 | #define BM_25_46 BM_46_25 | ||
2696 | #define BM_47_25 0x0000fffffe000000 | ||
2697 | #define BM_25_47 BM_47_25 | ||
2698 | #define BM_48_25 0x0001fffffe000000 | ||
2699 | #define BM_25_48 BM_48_25 | ||
2700 | #define BM_49_25 0x0003fffffe000000 | ||
2701 | #define BM_25_49 BM_49_25 | ||
2702 | #define BM_50_25 0x0007fffffe000000 | ||
2703 | #define BM_25_50 BM_50_25 | ||
2704 | #define BM_51_25 0x000ffffffe000000 | ||
2705 | #define BM_25_51 BM_51_25 | ||
2706 | #define BM_52_25 0x001ffffffe000000 | ||
2707 | #define BM_25_52 BM_52_25 | ||
2708 | #define BM_53_25 0x003ffffffe000000 | ||
2709 | #define BM_25_53 BM_53_25 | ||
2710 | #define BM_54_25 0x007ffffffe000000 | ||
2711 | #define BM_25_54 BM_54_25 | ||
2712 | #define BM_55_25 0x00fffffffe000000 | ||
2713 | #define BM_25_55 BM_55_25 | ||
2714 | #define BM_56_25 0x01fffffffe000000 | ||
2715 | #define BM_25_56 BM_56_25 | ||
2716 | #define BM_57_25 0x03fffffffe000000 | ||
2717 | #define BM_25_57 BM_57_25 | ||
2718 | #define BM_58_25 0x07fffffffe000000 | ||
2719 | #define BM_25_58 BM_58_25 | ||
2720 | #define BM_59_25 0x0ffffffffe000000 | ||
2721 | #define BM_25_59 BM_59_25 | ||
2722 | #define BM_60_25 0x1ffffffffe000000 | ||
2723 | #define BM_25_60 BM_60_25 | ||
2724 | #define BM_61_25 0x3ffffffffe000000 | ||
2725 | #define BM_25_61 BM_61_25 | ||
2726 | #define BM_62_25 0x7ffffffffe000000 | ||
2727 | #define BM_25_62 BM_62_25 | ||
2728 | #define BM_63_25 0xfffffffffe000000 | ||
2729 | #define BM_25_63 BM_63_25 | ||
2730 | #define BM_26_26 0x0000000004000000 | ||
2731 | #define BM_27_26 0x000000000c000000 | ||
2732 | #define BM_26_27 BM_27_26 | ||
2733 | #define BM_28_26 0x000000001c000000 | ||
2734 | #define BM_26_28 BM_28_26 | ||
2735 | #define BM_29_26 0x000000003c000000 | ||
2736 | #define BM_26_29 BM_29_26 | ||
2737 | #define BM_30_26 0x000000007c000000 | ||
2738 | #define BM_26_30 BM_30_26 | ||
2739 | #define BM_31_26 0x00000000fc000000 | ||
2740 | #define BM_26_31 BM_31_26 | ||
2741 | #define BM_32_26 0x00000001fc000000 | ||
2742 | #define BM_26_32 BM_32_26 | ||
2743 | #define BM_33_26 0x00000003fc000000 | ||
2744 | #define BM_26_33 BM_33_26 | ||
2745 | #define BM_34_26 0x00000007fc000000 | ||
2746 | #define BM_26_34 BM_34_26 | ||
2747 | #define BM_35_26 0x0000000ffc000000 | ||
2748 | #define BM_26_35 BM_35_26 | ||
2749 | #define BM_36_26 0x0000001ffc000000 | ||
2750 | #define BM_26_36 BM_36_26 | ||
2751 | #define BM_37_26 0x0000003ffc000000 | ||
2752 | #define BM_26_37 BM_37_26 | ||
2753 | #define BM_38_26 0x0000007ffc000000 | ||
2754 | #define BM_26_38 BM_38_26 | ||
2755 | #define BM_39_26 0x000000fffc000000 | ||
2756 | #define BM_26_39 BM_39_26 | ||
2757 | #define BM_40_26 0x000001fffc000000 | ||
2758 | #define BM_26_40 BM_40_26 | ||
2759 | #define BM_41_26 0x000003fffc000000 | ||
2760 | #define BM_26_41 BM_41_26 | ||
2761 | #define BM_42_26 0x000007fffc000000 | ||
2762 | #define BM_26_42 BM_42_26 | ||
2763 | #define BM_43_26 0x00000ffffc000000 | ||
2764 | #define BM_26_43 BM_43_26 | ||
2765 | #define BM_44_26 0x00001ffffc000000 | ||
2766 | #define BM_26_44 BM_44_26 | ||
2767 | #define BM_45_26 0x00003ffffc000000 | ||
2768 | #define BM_26_45 BM_45_26 | ||
2769 | #define BM_46_26 0x00007ffffc000000 | ||
2770 | #define BM_26_46 BM_46_26 | ||
2771 | #define BM_47_26 0x0000fffffc000000 | ||
2772 | #define BM_26_47 BM_47_26 | ||
2773 | #define BM_48_26 0x0001fffffc000000 | ||
2774 | #define BM_26_48 BM_48_26 | ||
2775 | #define BM_49_26 0x0003fffffc000000 | ||
2776 | #define BM_26_49 BM_49_26 | ||
2777 | #define BM_50_26 0x0007fffffc000000 | ||
2778 | #define BM_26_50 BM_50_26 | ||
2779 | #define BM_51_26 0x000ffffffc000000 | ||
2780 | #define BM_26_51 BM_51_26 | ||
2781 | #define BM_52_26 0x001ffffffc000000 | ||
2782 | #define BM_26_52 BM_52_26 | ||
2783 | #define BM_53_26 0x003ffffffc000000 | ||
2784 | #define BM_26_53 BM_53_26 | ||
2785 | #define BM_54_26 0x007ffffffc000000 | ||
2786 | #define BM_26_54 BM_54_26 | ||
2787 | #define BM_55_26 0x00fffffffc000000 | ||
2788 | #define BM_26_55 BM_55_26 | ||
2789 | #define BM_56_26 0x01fffffffc000000 | ||
2790 | #define BM_26_56 BM_56_26 | ||
2791 | #define BM_57_26 0x03fffffffc000000 | ||
2792 | #define BM_26_57 BM_57_26 | ||
2793 | #define BM_58_26 0x07fffffffc000000 | ||
2794 | #define BM_26_58 BM_58_26 | ||
2795 | #define BM_59_26 0x0ffffffffc000000 | ||
2796 | #define BM_26_59 BM_59_26 | ||
2797 | #define BM_60_26 0x1ffffffffc000000 | ||
2798 | #define BM_26_60 BM_60_26 | ||
2799 | #define BM_61_26 0x3ffffffffc000000 | ||
2800 | #define BM_26_61 BM_61_26 | ||
2801 | #define BM_62_26 0x7ffffffffc000000 | ||
2802 | #define BM_26_62 BM_62_26 | ||
2803 | #define BM_63_26 0xfffffffffc000000 | ||
2804 | #define BM_26_63 BM_63_26 | ||
2805 | #define BM_27_27 0x0000000008000000 | ||
2806 | #define BM_28_27 0x0000000018000000 | ||
2807 | #define BM_27_28 BM_28_27 | ||
2808 | #define BM_29_27 0x0000000038000000 | ||
2809 | #define BM_27_29 BM_29_27 | ||
2810 | #define BM_30_27 0x0000000078000000 | ||
2811 | #define BM_27_30 BM_30_27 | ||
2812 | #define BM_31_27 0x00000000f8000000 | ||
2813 | #define BM_27_31 BM_31_27 | ||
2814 | #define BM_32_27 0x00000001f8000000 | ||
2815 | #define BM_27_32 BM_32_27 | ||
2816 | #define BM_33_27 0x00000003f8000000 | ||
2817 | #define BM_27_33 BM_33_27 | ||
2818 | #define BM_34_27 0x00000007f8000000 | ||
2819 | #define BM_27_34 BM_34_27 | ||
2820 | #define BM_35_27 0x0000000ff8000000 | ||
2821 | #define BM_27_35 BM_35_27 | ||
2822 | #define BM_36_27 0x0000001ff8000000 | ||
2823 | #define BM_27_36 BM_36_27 | ||
2824 | #define BM_37_27 0x0000003ff8000000 | ||
2825 | #define BM_27_37 BM_37_27 | ||
2826 | #define BM_38_27 0x0000007ff8000000 | ||
2827 | #define BM_27_38 BM_38_27 | ||
2828 | #define BM_39_27 0x000000fff8000000 | ||
2829 | #define BM_27_39 BM_39_27 | ||
2830 | #define BM_40_27 0x000001fff8000000 | ||
2831 | #define BM_27_40 BM_40_27 | ||
2832 | #define BM_41_27 0x000003fff8000000 | ||
2833 | #define BM_27_41 BM_41_27 | ||
2834 | #define BM_42_27 0x000007fff8000000 | ||
2835 | #define BM_27_42 BM_42_27 | ||
2836 | #define BM_43_27 0x00000ffff8000000 | ||
2837 | #define BM_27_43 BM_43_27 | ||
2838 | #define BM_44_27 0x00001ffff8000000 | ||
2839 | #define BM_27_44 BM_44_27 | ||
2840 | #define BM_45_27 0x00003ffff8000000 | ||
2841 | #define BM_27_45 BM_45_27 | ||
2842 | #define BM_46_27 0x00007ffff8000000 | ||
2843 | #define BM_27_46 BM_46_27 | ||
2844 | #define BM_47_27 0x0000fffff8000000 | ||
2845 | #define BM_27_47 BM_47_27 | ||
2846 | #define BM_48_27 0x0001fffff8000000 | ||
2847 | #define BM_27_48 BM_48_27 | ||
2848 | #define BM_49_27 0x0003fffff8000000 | ||
2849 | #define BM_27_49 BM_49_27 | ||
2850 | #define BM_50_27 0x0007fffff8000000 | ||
2851 | #define BM_27_50 BM_50_27 | ||
2852 | #define BM_51_27 0x000ffffff8000000 | ||
2853 | #define BM_27_51 BM_51_27 | ||
2854 | #define BM_52_27 0x001ffffff8000000 | ||
2855 | #define BM_27_52 BM_52_27 | ||
2856 | #define BM_53_27 0x003ffffff8000000 | ||
2857 | #define BM_27_53 BM_53_27 | ||
2858 | #define BM_54_27 0x007ffffff8000000 | ||
2859 | #define BM_27_54 BM_54_27 | ||
2860 | #define BM_55_27 0x00fffffff8000000 | ||
2861 | #define BM_27_55 BM_55_27 | ||
2862 | #define BM_56_27 0x01fffffff8000000 | ||
2863 | #define BM_27_56 BM_56_27 | ||
2864 | #define BM_57_27 0x03fffffff8000000 | ||
2865 | #define BM_27_57 BM_57_27 | ||
2866 | #define BM_58_27 0x07fffffff8000000 | ||
2867 | #define BM_27_58 BM_58_27 | ||
2868 | #define BM_59_27 0x0ffffffff8000000 | ||
2869 | #define BM_27_59 BM_59_27 | ||
2870 | #define BM_60_27 0x1ffffffff8000000 | ||
2871 | #define BM_27_60 BM_60_27 | ||
2872 | #define BM_61_27 0x3ffffffff8000000 | ||
2873 | #define BM_27_61 BM_61_27 | ||
2874 | #define BM_62_27 0x7ffffffff8000000 | ||
2875 | #define BM_27_62 BM_62_27 | ||
2876 | #define BM_63_27 0xfffffffff8000000 | ||
2877 | #define BM_27_63 BM_63_27 | ||
2878 | #define BM_28_28 0x0000000010000000 | ||
2879 | #define BM_29_28 0x0000000030000000 | ||
2880 | #define BM_28_29 BM_29_28 | ||
2881 | #define BM_30_28 0x0000000070000000 | ||
2882 | #define BM_28_30 BM_30_28 | ||
2883 | #define BM_31_28 0x00000000f0000000 | ||
2884 | #define BM_28_31 BM_31_28 | ||
2885 | #define BM_32_28 0x00000001f0000000 | ||
2886 | #define BM_28_32 BM_32_28 | ||
2887 | #define BM_33_28 0x00000003f0000000 | ||
2888 | #define BM_28_33 BM_33_28 | ||
2889 | #define BM_34_28 0x00000007f0000000 | ||
2890 | #define BM_28_34 BM_34_28 | ||
2891 | #define BM_35_28 0x0000000ff0000000 | ||
2892 | #define BM_28_35 BM_35_28 | ||
2893 | #define BM_36_28 0x0000001ff0000000 | ||
2894 | #define BM_28_36 BM_36_28 | ||
2895 | #define BM_37_28 0x0000003ff0000000 | ||
2896 | #define BM_28_37 BM_37_28 | ||
2897 | #define BM_38_28 0x0000007ff0000000 | ||
2898 | #define BM_28_38 BM_38_28 | ||
2899 | #define BM_39_28 0x000000fff0000000 | ||
2900 | #define BM_28_39 BM_39_28 | ||
2901 | #define BM_40_28 0x000001fff0000000 | ||
2902 | #define BM_28_40 BM_40_28 | ||
2903 | #define BM_41_28 0x000003fff0000000 | ||
2904 | #define BM_28_41 BM_41_28 | ||
2905 | #define BM_42_28 0x000007fff0000000 | ||
2906 | #define BM_28_42 BM_42_28 | ||
2907 | #define BM_43_28 0x00000ffff0000000 | ||
2908 | #define BM_28_43 BM_43_28 | ||
2909 | #define BM_44_28 0x00001ffff0000000 | ||
2910 | #define BM_28_44 BM_44_28 | ||
2911 | #define BM_45_28 0x00003ffff0000000 | ||
2912 | #define BM_28_45 BM_45_28 | ||
2913 | #define BM_46_28 0x00007ffff0000000 | ||
2914 | #define BM_28_46 BM_46_28 | ||
2915 | #define BM_47_28 0x0000fffff0000000 | ||
2916 | #define BM_28_47 BM_47_28 | ||
2917 | #define BM_48_28 0x0001fffff0000000 | ||
2918 | #define BM_28_48 BM_48_28 | ||
2919 | #define BM_49_28 0x0003fffff0000000 | ||
2920 | #define BM_28_49 BM_49_28 | ||
2921 | #define BM_50_28 0x0007fffff0000000 | ||
2922 | #define BM_28_50 BM_50_28 | ||
2923 | #define BM_51_28 0x000ffffff0000000 | ||
2924 | #define BM_28_51 BM_51_28 | ||
2925 | #define BM_52_28 0x001ffffff0000000 | ||
2926 | #define BM_28_52 BM_52_28 | ||
2927 | #define BM_53_28 0x003ffffff0000000 | ||
2928 | #define BM_28_53 BM_53_28 | ||
2929 | #define BM_54_28 0x007ffffff0000000 | ||
2930 | #define BM_28_54 BM_54_28 | ||
2931 | #define BM_55_28 0x00fffffff0000000 | ||
2932 | #define BM_28_55 BM_55_28 | ||
2933 | #define BM_56_28 0x01fffffff0000000 | ||
2934 | #define BM_28_56 BM_56_28 | ||
2935 | #define BM_57_28 0x03fffffff0000000 | ||
2936 | #define BM_28_57 BM_57_28 | ||
2937 | #define BM_58_28 0x07fffffff0000000 | ||
2938 | #define BM_28_58 BM_58_28 | ||
2939 | #define BM_59_28 0x0ffffffff0000000 | ||
2940 | #define BM_28_59 BM_59_28 | ||
2941 | #define BM_60_28 0x1ffffffff0000000 | ||
2942 | #define BM_28_60 BM_60_28 | ||
2943 | #define BM_61_28 0x3ffffffff0000000 | ||
2944 | #define BM_28_61 BM_61_28 | ||
2945 | #define BM_62_28 0x7ffffffff0000000 | ||
2946 | #define BM_28_62 BM_62_28 | ||
2947 | #define BM_63_28 0xfffffffff0000000 | ||
2948 | #define BM_28_63 BM_63_28 | ||
2949 | #define BM_29_29 0x0000000020000000 | ||
2950 | #define BM_30_29 0x0000000060000000 | ||
2951 | #define BM_29_30 BM_30_29 | ||
2952 | #define BM_31_29 0x00000000e0000000 | ||
2953 | #define BM_29_31 BM_31_29 | ||
2954 | #define BM_32_29 0x00000001e0000000 | ||
2955 | #define BM_29_32 BM_32_29 | ||
2956 | #define BM_33_29 0x00000003e0000000 | ||
2957 | #define BM_29_33 BM_33_29 | ||
2958 | #define BM_34_29 0x00000007e0000000 | ||
2959 | #define BM_29_34 BM_34_29 | ||
2960 | #define BM_35_29 0x0000000fe0000000 | ||
2961 | #define BM_29_35 BM_35_29 | ||
2962 | #define BM_36_29 0x0000001fe0000000 | ||
2963 | #define BM_29_36 BM_36_29 | ||
2964 | #define BM_37_29 0x0000003fe0000000 | ||
2965 | #define BM_29_37 BM_37_29 | ||
2966 | #define BM_38_29 0x0000007fe0000000 | ||
2967 | #define BM_29_38 BM_38_29 | ||
2968 | #define BM_39_29 0x000000ffe0000000 | ||
2969 | #define BM_29_39 BM_39_29 | ||
2970 | #define BM_40_29 0x000001ffe0000000 | ||
2971 | #define BM_29_40 BM_40_29 | ||
2972 | #define BM_41_29 0x000003ffe0000000 | ||
2973 | #define BM_29_41 BM_41_29 | ||
2974 | #define BM_42_29 0x000007ffe0000000 | ||
2975 | #define BM_29_42 BM_42_29 | ||
2976 | #define BM_43_29 0x00000fffe0000000 | ||
2977 | #define BM_29_43 BM_43_29 | ||
2978 | #define BM_44_29 0x00001fffe0000000 | ||
2979 | #define BM_29_44 BM_44_29 | ||
2980 | #define BM_45_29 0x00003fffe0000000 | ||
2981 | #define BM_29_45 BM_45_29 | ||
2982 | #define BM_46_29 0x00007fffe0000000 | ||
2983 | #define BM_29_46 BM_46_29 | ||
2984 | #define BM_47_29 0x0000ffffe0000000 | ||
2985 | #define BM_29_47 BM_47_29 | ||
2986 | #define BM_48_29 0x0001ffffe0000000 | ||
2987 | #define BM_29_48 BM_48_29 | ||
2988 | #define BM_49_29 0x0003ffffe0000000 | ||
2989 | #define BM_29_49 BM_49_29 | ||
2990 | #define BM_50_29 0x0007ffffe0000000 | ||
2991 | #define BM_29_50 BM_50_29 | ||
2992 | #define BM_51_29 0x000fffffe0000000 | ||
2993 | #define BM_29_51 BM_51_29 | ||
2994 | #define BM_52_29 0x001fffffe0000000 | ||
2995 | #define BM_29_52 BM_52_29 | ||
2996 | #define BM_53_29 0x003fffffe0000000 | ||
2997 | #define BM_29_53 BM_53_29 | ||
2998 | #define BM_54_29 0x007fffffe0000000 | ||
2999 | #define BM_29_54 BM_54_29 | ||
3000 | #define BM_55_29 0x00ffffffe0000000 | ||
3001 | #define BM_29_55 BM_55_29 | ||
3002 | #define BM_56_29 0x01ffffffe0000000 | ||
3003 | #define BM_29_56 BM_56_29 | ||
3004 | #define BM_57_29 0x03ffffffe0000000 | ||
3005 | #define BM_29_57 BM_57_29 | ||
3006 | #define BM_58_29 0x07ffffffe0000000 | ||
3007 | #define BM_29_58 BM_58_29 | ||
3008 | #define BM_59_29 0x0fffffffe0000000 | ||
3009 | #define BM_29_59 BM_59_29 | ||
3010 | #define BM_60_29 0x1fffffffe0000000 | ||
3011 | #define BM_29_60 BM_60_29 | ||
3012 | #define BM_61_29 0x3fffffffe0000000 | ||
3013 | #define BM_29_61 BM_61_29 | ||
3014 | #define BM_62_29 0x7fffffffe0000000 | ||
3015 | #define BM_29_62 BM_62_29 | ||
3016 | #define BM_63_29 0xffffffffe0000000 | ||
3017 | #define BM_29_63 BM_63_29 | ||
3018 | #define BM_30_30 0x0000000040000000 | ||
3019 | #define BM_31_30 0x00000000c0000000 | ||
3020 | #define BM_30_31 BM_31_30 | ||
3021 | #define BM_32_30 0x00000001c0000000 | ||
3022 | #define BM_30_32 BM_32_30 | ||
3023 | #define BM_33_30 0x00000003c0000000 | ||
3024 | #define BM_30_33 BM_33_30 | ||
3025 | #define BM_34_30 0x00000007c0000000 | ||
3026 | #define BM_30_34 BM_34_30 | ||
3027 | #define BM_35_30 0x0000000fc0000000 | ||
3028 | #define BM_30_35 BM_35_30 | ||
3029 | #define BM_36_30 0x0000001fc0000000 | ||
3030 | #define BM_30_36 BM_36_30 | ||
3031 | #define BM_37_30 0x0000003fc0000000 | ||
3032 | #define BM_30_37 BM_37_30 | ||
3033 | #define BM_38_30 0x0000007fc0000000 | ||
3034 | #define BM_30_38 BM_38_30 | ||
3035 | #define BM_39_30 0x000000ffc0000000 | ||
3036 | #define BM_30_39 BM_39_30 | ||
3037 | #define BM_40_30 0x000001ffc0000000 | ||
3038 | #define BM_30_40 BM_40_30 | ||
3039 | #define BM_41_30 0x000003ffc0000000 | ||
3040 | #define BM_30_41 BM_41_30 | ||
3041 | #define BM_42_30 0x000007ffc0000000 | ||
3042 | #define BM_30_42 BM_42_30 | ||
3043 | #define BM_43_30 0x00000fffc0000000 | ||
3044 | #define BM_30_43 BM_43_30 | ||
3045 | #define BM_44_30 0x00001fffc0000000 | ||
3046 | #define BM_30_44 BM_44_30 | ||
3047 | #define BM_45_30 0x00003fffc0000000 | ||
3048 | #define BM_30_45 BM_45_30 | ||
3049 | #define BM_46_30 0x00007fffc0000000 | ||
3050 | #define BM_30_46 BM_46_30 | ||
3051 | #define BM_47_30 0x0000ffffc0000000 | ||
3052 | #define BM_30_47 BM_47_30 | ||
3053 | #define BM_48_30 0x0001ffffc0000000 | ||
3054 | #define BM_30_48 BM_48_30 | ||
3055 | #define BM_49_30 0x0003ffffc0000000 | ||
3056 | #define BM_30_49 BM_49_30 | ||
3057 | #define BM_50_30 0x0007ffffc0000000 | ||
3058 | #define BM_30_50 BM_50_30 | ||
3059 | #define BM_51_30 0x000fffffc0000000 | ||
3060 | #define BM_30_51 BM_51_30 | ||
3061 | #define BM_52_30 0x001fffffc0000000 | ||
3062 | #define BM_30_52 BM_52_30 | ||
3063 | #define BM_53_30 0x003fffffc0000000 | ||
3064 | #define BM_30_53 BM_53_30 | ||
3065 | #define BM_54_30 0x007fffffc0000000 | ||
3066 | #define BM_30_54 BM_54_30 | ||
3067 | #define BM_55_30 0x00ffffffc0000000 | ||
3068 | #define BM_30_55 BM_55_30 | ||
3069 | #define BM_56_30 0x01ffffffc0000000 | ||
3070 | #define BM_30_56 BM_56_30 | ||
3071 | #define BM_57_30 0x03ffffffc0000000 | ||
3072 | #define BM_30_57 BM_57_30 | ||
3073 | #define BM_58_30 0x07ffffffc0000000 | ||
3074 | #define BM_30_58 BM_58_30 | ||
3075 | #define BM_59_30 0x0fffffffc0000000 | ||
3076 | #define BM_30_59 BM_59_30 | ||
3077 | #define BM_60_30 0x1fffffffc0000000 | ||
3078 | #define BM_30_60 BM_60_30 | ||
3079 | #define BM_61_30 0x3fffffffc0000000 | ||
3080 | #define BM_30_61 BM_61_30 | ||
3081 | #define BM_62_30 0x7fffffffc0000000 | ||
3082 | #define BM_30_62 BM_62_30 | ||
3083 | #define BM_63_30 0xffffffffc0000000 | ||
3084 | #define BM_30_63 BM_63_30 | ||
3085 | #define BM_31_31 0x0000000080000000 | ||
3086 | #define BM_32_31 0x0000000180000000 | ||
3087 | #define BM_31_32 BM_32_31 | ||
3088 | #define BM_33_31 0x0000000380000000 | ||
3089 | #define BM_31_33 BM_33_31 | ||
3090 | #define BM_34_31 0x0000000780000000 | ||
3091 | #define BM_31_34 BM_34_31 | ||
3092 | #define BM_35_31 0x0000000f80000000 | ||
3093 | #define BM_31_35 BM_35_31 | ||
3094 | #define BM_36_31 0x0000001f80000000 | ||
3095 | #define BM_31_36 BM_36_31 | ||
3096 | #define BM_37_31 0x0000003f80000000 | ||
3097 | #define BM_31_37 BM_37_31 | ||
3098 | #define BM_38_31 0x0000007f80000000 | ||
3099 | #define BM_31_38 BM_38_31 | ||
3100 | #define BM_39_31 0x000000ff80000000 | ||
3101 | #define BM_31_39 BM_39_31 | ||
3102 | #define BM_40_31 0x000001ff80000000 | ||
3103 | #define BM_31_40 BM_40_31 | ||
3104 | #define BM_41_31 0x000003ff80000000 | ||
3105 | #define BM_31_41 BM_41_31 | ||
3106 | #define BM_42_31 0x000007ff80000000 | ||
3107 | #define BM_31_42 BM_42_31 | ||
3108 | #define BM_43_31 0x00000fff80000000 | ||
3109 | #define BM_31_43 BM_43_31 | ||
3110 | #define BM_44_31 0x00001fff80000000 | ||
3111 | #define BM_31_44 BM_44_31 | ||
3112 | #define BM_45_31 0x00003fff80000000 | ||
3113 | #define BM_31_45 BM_45_31 | ||
3114 | #define BM_46_31 0x00007fff80000000 | ||
3115 | #define BM_31_46 BM_46_31 | ||
3116 | #define BM_47_31 0x0000ffff80000000 | ||
3117 | #define BM_31_47 BM_47_31 | ||
3118 | #define BM_48_31 0x0001ffff80000000 | ||
3119 | #define BM_31_48 BM_48_31 | ||
3120 | #define BM_49_31 0x0003ffff80000000 | ||
3121 | #define BM_31_49 BM_49_31 | ||
3122 | #define BM_50_31 0x0007ffff80000000 | ||
3123 | #define BM_31_50 BM_50_31 | ||
3124 | #define BM_51_31 0x000fffff80000000 | ||
3125 | #define BM_31_51 BM_51_31 | ||
3126 | #define BM_52_31 0x001fffff80000000 | ||
3127 | #define BM_31_52 BM_52_31 | ||
3128 | #define BM_53_31 0x003fffff80000000 | ||
3129 | #define BM_31_53 BM_53_31 | ||
3130 | #define BM_54_31 0x007fffff80000000 | ||
3131 | #define BM_31_54 BM_54_31 | ||
3132 | #define BM_55_31 0x00ffffff80000000 | ||
3133 | #define BM_31_55 BM_55_31 | ||
3134 | #define BM_56_31 0x01ffffff80000000 | ||
3135 | #define BM_31_56 BM_56_31 | ||
3136 | #define BM_57_31 0x03ffffff80000000 | ||
3137 | #define BM_31_57 BM_57_31 | ||
3138 | #define BM_58_31 0x07ffffff80000000 | ||
3139 | #define BM_31_58 BM_58_31 | ||
3140 | #define BM_59_31 0x0fffffff80000000 | ||
3141 | #define BM_31_59 BM_59_31 | ||
3142 | #define BM_60_31 0x1fffffff80000000 | ||
3143 | #define BM_31_60 BM_60_31 | ||
3144 | #define BM_61_31 0x3fffffff80000000 | ||
3145 | #define BM_31_61 BM_61_31 | ||
3146 | #define BM_62_31 0x7fffffff80000000 | ||
3147 | #define BM_31_62 BM_62_31 | ||
3148 | #define BM_63_31 0xffffffff80000000 | ||
3149 | #define BM_31_63 BM_63_31 | ||
3150 | #define BM_32_32 0x0000000100000000 | ||
3151 | #define BM_33_32 0x0000000300000000 | ||
3152 | #define BM_32_33 BM_33_32 | ||
3153 | #define BM_34_32 0x0000000700000000 | ||
3154 | #define BM_32_34 BM_34_32 | ||
3155 | #define BM_35_32 0x0000000f00000000 | ||
3156 | #define BM_32_35 BM_35_32 | ||
3157 | #define BM_36_32 0x0000001f00000000 | ||
3158 | #define BM_32_36 BM_36_32 | ||
3159 | #define BM_37_32 0x0000003f00000000 | ||
3160 | #define BM_32_37 BM_37_32 | ||
3161 | #define BM_38_32 0x0000007f00000000 | ||
3162 | #define BM_32_38 BM_38_32 | ||
3163 | #define BM_39_32 0x000000ff00000000 | ||
3164 | #define BM_32_39 BM_39_32 | ||
3165 | #define BM_40_32 0x000001ff00000000 | ||
3166 | #define BM_32_40 BM_40_32 | ||
3167 | #define BM_41_32 0x000003ff00000000 | ||
3168 | #define BM_32_41 BM_41_32 | ||
3169 | #define BM_42_32 0x000007ff00000000 | ||
3170 | #define BM_32_42 BM_42_32 | ||
3171 | #define BM_43_32 0x00000fff00000000 | ||
3172 | #define BM_32_43 BM_43_32 | ||
3173 | #define BM_44_32 0x00001fff00000000 | ||
3174 | #define BM_32_44 BM_44_32 | ||
3175 | #define BM_45_32 0x00003fff00000000 | ||
3176 | #define BM_32_45 BM_45_32 | ||
3177 | #define BM_46_32 0x00007fff00000000 | ||
3178 | #define BM_32_46 BM_46_32 | ||
3179 | #define BM_47_32 0x0000ffff00000000 | ||
3180 | #define BM_32_47 BM_47_32 | ||
3181 | #define BM_48_32 0x0001ffff00000000 | ||
3182 | #define BM_32_48 BM_48_32 | ||
3183 | #define BM_49_32 0x0003ffff00000000 | ||
3184 | #define BM_32_49 BM_49_32 | ||
3185 | #define BM_50_32 0x0007ffff00000000 | ||
3186 | #define BM_32_50 BM_50_32 | ||
3187 | #define BM_51_32 0x000fffff00000000 | ||
3188 | #define BM_32_51 BM_51_32 | ||
3189 | #define BM_52_32 0x001fffff00000000 | ||
3190 | #define BM_32_52 BM_52_32 | ||
3191 | #define BM_53_32 0x003fffff00000000 | ||
3192 | #define BM_32_53 BM_53_32 | ||
3193 | #define BM_54_32 0x007fffff00000000 | ||
3194 | #define BM_32_54 BM_54_32 | ||
3195 | #define BM_55_32 0x00ffffff00000000 | ||
3196 | #define BM_32_55 BM_55_32 | ||
3197 | #define BM_56_32 0x01ffffff00000000 | ||
3198 | #define BM_32_56 BM_56_32 | ||
3199 | #define BM_57_32 0x03ffffff00000000 | ||
3200 | #define BM_32_57 BM_57_32 | ||
3201 | #define BM_58_32 0x07ffffff00000000 | ||
3202 | #define BM_32_58 BM_58_32 | ||
3203 | #define BM_59_32 0x0fffffff00000000 | ||
3204 | #define BM_32_59 BM_59_32 | ||
3205 | #define BM_60_32 0x1fffffff00000000 | ||
3206 | #define BM_32_60 BM_60_32 | ||
3207 | #define BM_61_32 0x3fffffff00000000 | ||
3208 | #define BM_32_61 BM_61_32 | ||
3209 | #define BM_62_32 0x7fffffff00000000 | ||
3210 | #define BM_32_62 BM_62_32 | ||
3211 | #define BM_63_32 0xffffffff00000000 | ||
3212 | #define BM_32_63 BM_63_32 | ||
3213 | #define BM_33_33 0x0000000200000000 | ||
3214 | #define BM_34_33 0x0000000600000000 | ||
3215 | #define BM_33_34 BM_34_33 | ||
3216 | #define BM_35_33 0x0000000e00000000 | ||
3217 | #define BM_33_35 BM_35_33 | ||
3218 | #define BM_36_33 0x0000001e00000000 | ||
3219 | #define BM_33_36 BM_36_33 | ||
3220 | #define BM_37_33 0x0000003e00000000 | ||
3221 | #define BM_33_37 BM_37_33 | ||
3222 | #define BM_38_33 0x0000007e00000000 | ||
3223 | #define BM_33_38 BM_38_33 | ||
3224 | #define BM_39_33 0x000000fe00000000 | ||
3225 | #define BM_33_39 BM_39_33 | ||
3226 | #define BM_40_33 0x000001fe00000000 | ||
3227 | #define BM_33_40 BM_40_33 | ||
3228 | #define BM_41_33 0x000003fe00000000 | ||
3229 | #define BM_33_41 BM_41_33 | ||
3230 | #define BM_42_33 0x000007fe00000000 | ||
3231 | #define BM_33_42 BM_42_33 | ||
3232 | #define BM_43_33 0x00000ffe00000000 | ||
3233 | #define BM_33_43 BM_43_33 | ||
3234 | #define BM_44_33 0x00001ffe00000000 | ||
3235 | #define BM_33_44 BM_44_33 | ||
3236 | #define BM_45_33 0x00003ffe00000000 | ||
3237 | #define BM_33_45 BM_45_33 | ||
3238 | #define BM_46_33 0x00007ffe00000000 | ||
3239 | #define BM_33_46 BM_46_33 | ||
3240 | #define BM_47_33 0x0000fffe00000000 | ||
3241 | #define BM_33_47 BM_47_33 | ||
3242 | #define BM_48_33 0x0001fffe00000000 | ||
3243 | #define BM_33_48 BM_48_33 | ||
3244 | #define BM_49_33 0x0003fffe00000000 | ||
3245 | #define BM_33_49 BM_49_33 | ||
3246 | #define BM_50_33 0x0007fffe00000000 | ||
3247 | #define BM_33_50 BM_50_33 | ||
3248 | #define BM_51_33 0x000ffffe00000000 | ||
3249 | #define BM_33_51 BM_51_33 | ||
3250 | #define BM_52_33 0x001ffffe00000000 | ||
3251 | #define BM_33_52 BM_52_33 | ||
3252 | #define BM_53_33 0x003ffffe00000000 | ||
3253 | #define BM_33_53 BM_53_33 | ||
3254 | #define BM_54_33 0x007ffffe00000000 | ||
3255 | #define BM_33_54 BM_54_33 | ||
3256 | #define BM_55_33 0x00fffffe00000000 | ||
3257 | #define BM_33_55 BM_55_33 | ||
3258 | #define BM_56_33 0x01fffffe00000000 | ||
3259 | #define BM_33_56 BM_56_33 | ||
3260 | #define BM_57_33 0x03fffffe00000000 | ||
3261 | #define BM_33_57 BM_57_33 | ||
3262 | #define BM_58_33 0x07fffffe00000000 | ||
3263 | #define BM_33_58 BM_58_33 | ||
3264 | #define BM_59_33 0x0ffffffe00000000 | ||
3265 | #define BM_33_59 BM_59_33 | ||
3266 | #define BM_60_33 0x1ffffffe00000000 | ||
3267 | #define BM_33_60 BM_60_33 | ||
3268 | #define BM_61_33 0x3ffffffe00000000 | ||
3269 | #define BM_33_61 BM_61_33 | ||
3270 | #define BM_62_33 0x7ffffffe00000000 | ||
3271 | #define BM_33_62 BM_62_33 | ||
3272 | #define BM_63_33 0xfffffffe00000000 | ||
3273 | #define BM_33_63 BM_63_33 | ||
3274 | #define BM_34_34 0x0000000400000000 | ||
3275 | #define BM_35_34 0x0000000c00000000 | ||
3276 | #define BM_34_35 BM_35_34 | ||
3277 | #define BM_36_34 0x0000001c00000000 | ||
3278 | #define BM_34_36 BM_36_34 | ||
3279 | #define BM_37_34 0x0000003c00000000 | ||
3280 | #define BM_34_37 BM_37_34 | ||
3281 | #define BM_38_34 0x0000007c00000000 | ||
3282 | #define BM_34_38 BM_38_34 | ||
3283 | #define BM_39_34 0x000000fc00000000 | ||
3284 | #define BM_34_39 BM_39_34 | ||
3285 | #define BM_40_34 0x000001fc00000000 | ||
3286 | #define BM_34_40 BM_40_34 | ||
3287 | #define BM_41_34 0x000003fc00000000 | ||
3288 | #define BM_34_41 BM_41_34 | ||
3289 | #define BM_42_34 0x000007fc00000000 | ||
3290 | #define BM_34_42 BM_42_34 | ||
3291 | #define BM_43_34 0x00000ffc00000000 | ||
3292 | #define BM_34_43 BM_43_34 | ||
3293 | #define BM_44_34 0x00001ffc00000000 | ||
3294 | #define BM_34_44 BM_44_34 | ||
3295 | #define BM_45_34 0x00003ffc00000000 | ||
3296 | #define BM_34_45 BM_45_34 | ||
3297 | #define BM_46_34 0x00007ffc00000000 | ||
3298 | #define BM_34_46 BM_46_34 | ||
3299 | #define BM_47_34 0x0000fffc00000000 | ||
3300 | #define BM_34_47 BM_47_34 | ||
3301 | #define BM_48_34 0x0001fffc00000000 | ||
3302 | #define BM_34_48 BM_48_34 | ||
3303 | #define BM_49_34 0x0003fffc00000000 | ||
3304 | #define BM_34_49 BM_49_34 | ||
3305 | #define BM_50_34 0x0007fffc00000000 | ||
3306 | #define BM_34_50 BM_50_34 | ||
3307 | #define BM_51_34 0x000ffffc00000000 | ||
3308 | #define BM_34_51 BM_51_34 | ||
3309 | #define BM_52_34 0x001ffffc00000000 | ||
3310 | #define BM_34_52 BM_52_34 | ||
3311 | #define BM_53_34 0x003ffffc00000000 | ||
3312 | #define BM_34_53 BM_53_34 | ||
3313 | #define BM_54_34 0x007ffffc00000000 | ||
3314 | #define BM_34_54 BM_54_34 | ||
3315 | #define BM_55_34 0x00fffffc00000000 | ||
3316 | #define BM_34_55 BM_55_34 | ||
3317 | #define BM_56_34 0x01fffffc00000000 | ||
3318 | #define BM_34_56 BM_56_34 | ||
3319 | #define BM_57_34 0x03fffffc00000000 | ||
3320 | #define BM_34_57 BM_57_34 | ||
3321 | #define BM_58_34 0x07fffffc00000000 | ||
3322 | #define BM_34_58 BM_58_34 | ||
3323 | #define BM_59_34 0x0ffffffc00000000 | ||
3324 | #define BM_34_59 BM_59_34 | ||
3325 | #define BM_60_34 0x1ffffffc00000000 | ||
3326 | #define BM_34_60 BM_60_34 | ||
3327 | #define BM_61_34 0x3ffffffc00000000 | ||
3328 | #define BM_34_61 BM_61_34 | ||
3329 | #define BM_62_34 0x7ffffffc00000000 | ||
3330 | #define BM_34_62 BM_62_34 | ||
3331 | #define BM_63_34 0xfffffffc00000000 | ||
3332 | #define BM_34_63 BM_63_34 | ||
3333 | #define BM_35_35 0x0000000800000000 | ||
3334 | #define BM_36_35 0x0000001800000000 | ||
3335 | #define BM_35_36 BM_36_35 | ||
3336 | #define BM_37_35 0x0000003800000000 | ||
3337 | #define BM_35_37 BM_37_35 | ||
3338 | #define BM_38_35 0x0000007800000000 | ||
3339 | #define BM_35_38 BM_38_35 | ||
3340 | #define BM_39_35 0x000000f800000000 | ||
3341 | #define BM_35_39 BM_39_35 | ||
3342 | #define BM_40_35 0x000001f800000000 | ||
3343 | #define BM_35_40 BM_40_35 | ||
3344 | #define BM_41_35 0x000003f800000000 | ||
3345 | #define BM_35_41 BM_41_35 | ||
3346 | #define BM_42_35 0x000007f800000000 | ||
3347 | #define BM_35_42 BM_42_35 | ||
3348 | #define BM_43_35 0x00000ff800000000 | ||
3349 | #define BM_35_43 BM_43_35 | ||
3350 | #define BM_44_35 0x00001ff800000000 | ||
3351 | #define BM_35_44 BM_44_35 | ||
3352 | #define BM_45_35 0x00003ff800000000 | ||
3353 | #define BM_35_45 BM_45_35 | ||
3354 | #define BM_46_35 0x00007ff800000000 | ||
3355 | #define BM_35_46 BM_46_35 | ||
3356 | #define BM_47_35 0x0000fff800000000 | ||
3357 | #define BM_35_47 BM_47_35 | ||
3358 | #define BM_48_35 0x0001fff800000000 | ||
3359 | #define BM_35_48 BM_48_35 | ||
3360 | #define BM_49_35 0x0003fff800000000 | ||
3361 | #define BM_35_49 BM_49_35 | ||
3362 | #define BM_50_35 0x0007fff800000000 | ||
3363 | #define BM_35_50 BM_50_35 | ||
3364 | #define BM_51_35 0x000ffff800000000 | ||
3365 | #define BM_35_51 BM_51_35 | ||
3366 | #define BM_52_35 0x001ffff800000000 | ||
3367 | #define BM_35_52 BM_52_35 | ||
3368 | #define BM_53_35 0x003ffff800000000 | ||
3369 | #define BM_35_53 BM_53_35 | ||
3370 | #define BM_54_35 0x007ffff800000000 | ||
3371 | #define BM_35_54 BM_54_35 | ||
3372 | #define BM_55_35 0x00fffff800000000 | ||
3373 | #define BM_35_55 BM_55_35 | ||
3374 | #define BM_56_35 0x01fffff800000000 | ||
3375 | #define BM_35_56 BM_56_35 | ||
3376 | #define BM_57_35 0x03fffff800000000 | ||
3377 | #define BM_35_57 BM_57_35 | ||
3378 | #define BM_58_35 0x07fffff800000000 | ||
3379 | #define BM_35_58 BM_58_35 | ||
3380 | #define BM_59_35 0x0ffffff800000000 | ||
3381 | #define BM_35_59 BM_59_35 | ||
3382 | #define BM_60_35 0x1ffffff800000000 | ||
3383 | #define BM_35_60 BM_60_35 | ||
3384 | #define BM_61_35 0x3ffffff800000000 | ||
3385 | #define BM_35_61 BM_61_35 | ||
3386 | #define BM_62_35 0x7ffffff800000000 | ||
3387 | #define BM_35_62 BM_62_35 | ||
3388 | #define BM_63_35 0xfffffff800000000 | ||
3389 | #define BM_35_63 BM_63_35 | ||
3390 | #define BM_36_36 0x0000001000000000 | ||
3391 | #define BM_37_36 0x0000003000000000 | ||
3392 | #define BM_36_37 BM_37_36 | ||
3393 | #define BM_38_36 0x0000007000000000 | ||
3394 | #define BM_36_38 BM_38_36 | ||
3395 | #define BM_39_36 0x000000f000000000 | ||
3396 | #define BM_36_39 BM_39_36 | ||
3397 | #define BM_40_36 0x000001f000000000 | ||
3398 | #define BM_36_40 BM_40_36 | ||
3399 | #define BM_41_36 0x000003f000000000 | ||
3400 | #define BM_36_41 BM_41_36 | ||
3401 | #define BM_42_36 0x000007f000000000 | ||
3402 | #define BM_36_42 BM_42_36 | ||
3403 | #define BM_43_36 0x00000ff000000000 | ||
3404 | #define BM_36_43 BM_43_36 | ||
3405 | #define BM_44_36 0x00001ff000000000 | ||
3406 | #define BM_36_44 BM_44_36 | ||
3407 | #define BM_45_36 0x00003ff000000000 | ||
3408 | #define BM_36_45 BM_45_36 | ||
3409 | #define BM_46_36 0x00007ff000000000 | ||
3410 | #define BM_36_46 BM_46_36 | ||
3411 | #define BM_47_36 0x0000fff000000000 | ||
3412 | #define BM_36_47 BM_47_36 | ||
3413 | #define BM_48_36 0x0001fff000000000 | ||
3414 | #define BM_36_48 BM_48_36 | ||
3415 | #define BM_49_36 0x0003fff000000000 | ||
3416 | #define BM_36_49 BM_49_36 | ||
3417 | #define BM_50_36 0x0007fff000000000 | ||
3418 | #define BM_36_50 BM_50_36 | ||
3419 | #define BM_51_36 0x000ffff000000000 | ||
3420 | #define BM_36_51 BM_51_36 | ||
3421 | #define BM_52_36 0x001ffff000000000 | ||
3422 | #define BM_36_52 BM_52_36 | ||
3423 | #define BM_53_36 0x003ffff000000000 | ||
3424 | #define BM_36_53 BM_53_36 | ||
3425 | #define BM_54_36 0x007ffff000000000 | ||
3426 | #define BM_36_54 BM_54_36 | ||
3427 | #define BM_55_36 0x00fffff000000000 | ||
3428 | #define BM_36_55 BM_55_36 | ||
3429 | #define BM_56_36 0x01fffff000000000 | ||
3430 | #define BM_36_56 BM_56_36 | ||
3431 | #define BM_57_36 0x03fffff000000000 | ||
3432 | #define BM_36_57 BM_57_36 | ||
3433 | #define BM_58_36 0x07fffff000000000 | ||
3434 | #define BM_36_58 BM_58_36 | ||
3435 | #define BM_59_36 0x0ffffff000000000 | ||
3436 | #define BM_36_59 BM_59_36 | ||
3437 | #define BM_60_36 0x1ffffff000000000 | ||
3438 | #define BM_36_60 BM_60_36 | ||
3439 | #define BM_61_36 0x3ffffff000000000 | ||
3440 | #define BM_36_61 BM_61_36 | ||
3441 | #define BM_62_36 0x7ffffff000000000 | ||
3442 | #define BM_36_62 BM_62_36 | ||
3443 | #define BM_63_36 0xfffffff000000000 | ||
3444 | #define BM_36_63 BM_63_36 | ||
3445 | #define BM_37_37 0x0000002000000000 | ||
3446 | #define BM_38_37 0x0000006000000000 | ||
3447 | #define BM_37_38 BM_38_37 | ||
3448 | #define BM_39_37 0x000000e000000000 | ||
3449 | #define BM_37_39 BM_39_37 | ||
3450 | #define BM_40_37 0x000001e000000000 | ||
3451 | #define BM_37_40 BM_40_37 | ||
3452 | #define BM_41_37 0x000003e000000000 | ||
3453 | #define BM_37_41 BM_41_37 | ||
3454 | #define BM_42_37 0x000007e000000000 | ||
3455 | #define BM_37_42 BM_42_37 | ||
3456 | #define BM_43_37 0x00000fe000000000 | ||
3457 | #define BM_37_43 BM_43_37 | ||
3458 | #define BM_44_37 0x00001fe000000000 | ||
3459 | #define BM_37_44 BM_44_37 | ||
3460 | #define BM_45_37 0x00003fe000000000 | ||
3461 | #define BM_37_45 BM_45_37 | ||
3462 | #define BM_46_37 0x00007fe000000000 | ||
3463 | #define BM_37_46 BM_46_37 | ||
3464 | #define BM_47_37 0x0000ffe000000000 | ||
3465 | #define BM_37_47 BM_47_37 | ||
3466 | #define BM_48_37 0x0001ffe000000000 | ||
3467 | #define BM_37_48 BM_48_37 | ||
3468 | #define BM_49_37 0x0003ffe000000000 | ||
3469 | #define BM_37_49 BM_49_37 | ||
3470 | #define BM_50_37 0x0007ffe000000000 | ||
3471 | #define BM_37_50 BM_50_37 | ||
3472 | #define BM_51_37 0x000fffe000000000 | ||
3473 | #define BM_37_51 BM_51_37 | ||
3474 | #define BM_52_37 0x001fffe000000000 | ||
3475 | #define BM_37_52 BM_52_37 | ||
3476 | #define BM_53_37 0x003fffe000000000 | ||
3477 | #define BM_37_53 BM_53_37 | ||
3478 | #define BM_54_37 0x007fffe000000000 | ||
3479 | #define BM_37_54 BM_54_37 | ||
3480 | #define BM_55_37 0x00ffffe000000000 | ||
3481 | #define BM_37_55 BM_55_37 | ||
3482 | #define BM_56_37 0x01ffffe000000000 | ||
3483 | #define BM_37_56 BM_56_37 | ||
3484 | #define BM_57_37 0x03ffffe000000000 | ||
3485 | #define BM_37_57 BM_57_37 | ||
3486 | #define BM_58_37 0x07ffffe000000000 | ||
3487 | #define BM_37_58 BM_58_37 | ||
3488 | #define BM_59_37 0x0fffffe000000000 | ||
3489 | #define BM_37_59 BM_59_37 | ||
3490 | #define BM_60_37 0x1fffffe000000000 | ||
3491 | #define BM_37_60 BM_60_37 | ||
3492 | #define BM_61_37 0x3fffffe000000000 | ||
3493 | #define BM_37_61 BM_61_37 | ||
3494 | #define BM_62_37 0x7fffffe000000000 | ||
3495 | #define BM_37_62 BM_62_37 | ||
3496 | #define BM_63_37 0xffffffe000000000 | ||
3497 | #define BM_37_63 BM_63_37 | ||
3498 | #define BM_38_38 0x0000004000000000 | ||
3499 | #define BM_39_38 0x000000c000000000 | ||
3500 | #define BM_38_39 BM_39_38 | ||
3501 | #define BM_40_38 0x000001c000000000 | ||
3502 | #define BM_38_40 BM_40_38 | ||
3503 | #define BM_41_38 0x000003c000000000 | ||
3504 | #define BM_38_41 BM_41_38 | ||
3505 | #define BM_42_38 0x000007c000000000 | ||
3506 | #define BM_38_42 BM_42_38 | ||
3507 | #define BM_43_38 0x00000fc000000000 | ||
3508 | #define BM_38_43 BM_43_38 | ||
3509 | #define BM_44_38 0x00001fc000000000 | ||
3510 | #define BM_38_44 BM_44_38 | ||
3511 | #define BM_45_38 0x00003fc000000000 | ||
3512 | #define BM_38_45 BM_45_38 | ||
3513 | #define BM_46_38 0x00007fc000000000 | ||
3514 | #define BM_38_46 BM_46_38 | ||
3515 | #define BM_47_38 0x0000ffc000000000 | ||
3516 | #define BM_38_47 BM_47_38 | ||
3517 | #define BM_48_38 0x0001ffc000000000 | ||
3518 | #define BM_38_48 BM_48_38 | ||
3519 | #define BM_49_38 0x0003ffc000000000 | ||
3520 | #define BM_38_49 BM_49_38 | ||
3521 | #define BM_50_38 0x0007ffc000000000 | ||
3522 | #define BM_38_50 BM_50_38 | ||
3523 | #define BM_51_38 0x000fffc000000000 | ||
3524 | #define BM_38_51 BM_51_38 | ||
3525 | #define BM_52_38 0x001fffc000000000 | ||
3526 | #define BM_38_52 BM_52_38 | ||
3527 | #define BM_53_38 0x003fffc000000000 | ||
3528 | #define BM_38_53 BM_53_38 | ||
3529 | #define BM_54_38 0x007fffc000000000 | ||
3530 | #define BM_38_54 BM_54_38 | ||
3531 | #define BM_55_38 0x00ffffc000000000 | ||
3532 | #define BM_38_55 BM_55_38 | ||
3533 | #define BM_56_38 0x01ffffc000000000 | ||
3534 | #define BM_38_56 BM_56_38 | ||
3535 | #define BM_57_38 0x03ffffc000000000 | ||
3536 | #define BM_38_57 BM_57_38 | ||
3537 | #define BM_58_38 0x07ffffc000000000 | ||
3538 | #define BM_38_58 BM_58_38 | ||
3539 | #define BM_59_38 0x0fffffc000000000 | ||
3540 | #define BM_38_59 BM_59_38 | ||
3541 | #define BM_60_38 0x1fffffc000000000 | ||
3542 | #define BM_38_60 BM_60_38 | ||
3543 | #define BM_61_38 0x3fffffc000000000 | ||
3544 | #define BM_38_61 BM_61_38 | ||
3545 | #define BM_62_38 0x7fffffc000000000 | ||
3546 | #define BM_38_62 BM_62_38 | ||
3547 | #define BM_63_38 0xffffffc000000000 | ||
3548 | #define BM_38_63 BM_63_38 | ||
3549 | #define BM_39_39 0x0000008000000000 | ||
3550 | #define BM_40_39 0x0000018000000000 | ||
3551 | #define BM_39_40 BM_40_39 | ||
3552 | #define BM_41_39 0x0000038000000000 | ||
3553 | #define BM_39_41 BM_41_39 | ||
3554 | #define BM_42_39 0x0000078000000000 | ||
3555 | #define BM_39_42 BM_42_39 | ||
3556 | #define BM_43_39 0x00000f8000000000 | ||
3557 | #define BM_39_43 BM_43_39 | ||
3558 | #define BM_44_39 0x00001f8000000000 | ||
3559 | #define BM_39_44 BM_44_39 | ||
3560 | #define BM_45_39 0x00003f8000000000 | ||
3561 | #define BM_39_45 BM_45_39 | ||
3562 | #define BM_46_39 0x00007f8000000000 | ||
3563 | #define BM_39_46 BM_46_39 | ||
3564 | #define BM_47_39 0x0000ff8000000000 | ||
3565 | #define BM_39_47 BM_47_39 | ||
3566 | #define BM_48_39 0x0001ff8000000000 | ||
3567 | #define BM_39_48 BM_48_39 | ||
3568 | #define BM_49_39 0x0003ff8000000000 | ||
3569 | #define BM_39_49 BM_49_39 | ||
3570 | #define BM_50_39 0x0007ff8000000000 | ||
3571 | #define BM_39_50 BM_50_39 | ||
3572 | #define BM_51_39 0x000fff8000000000 | ||
3573 | #define BM_39_51 BM_51_39 | ||
3574 | #define BM_52_39 0x001fff8000000000 | ||
3575 | #define BM_39_52 BM_52_39 | ||
3576 | #define BM_53_39 0x003fff8000000000 | ||
3577 | #define BM_39_53 BM_53_39 | ||
3578 | #define BM_54_39 0x007fff8000000000 | ||
3579 | #define BM_39_54 BM_54_39 | ||
3580 | #define BM_55_39 0x00ffff8000000000 | ||
3581 | #define BM_39_55 BM_55_39 | ||
3582 | #define BM_56_39 0x01ffff8000000000 | ||
3583 | #define BM_39_56 BM_56_39 | ||
3584 | #define BM_57_39 0x03ffff8000000000 | ||
3585 | #define BM_39_57 BM_57_39 | ||
3586 | #define BM_58_39 0x07ffff8000000000 | ||
3587 | #define BM_39_58 BM_58_39 | ||
3588 | #define BM_59_39 0x0fffff8000000000 | ||
3589 | #define BM_39_59 BM_59_39 | ||
3590 | #define BM_60_39 0x1fffff8000000000 | ||
3591 | #define BM_39_60 BM_60_39 | ||
3592 | #define BM_61_39 0x3fffff8000000000 | ||
3593 | #define BM_39_61 BM_61_39 | ||
3594 | #define BM_62_39 0x7fffff8000000000 | ||
3595 | #define BM_39_62 BM_62_39 | ||
3596 | #define BM_63_39 0xffffff8000000000 | ||
3597 | #define BM_39_63 BM_63_39 | ||
3598 | #define BM_40_40 0x0000010000000000 | ||
3599 | #define BM_41_40 0x0000030000000000 | ||
3600 | #define BM_40_41 BM_41_40 | ||
3601 | #define BM_42_40 0x0000070000000000 | ||
3602 | #define BM_40_42 BM_42_40 | ||
3603 | #define BM_43_40 0x00000f0000000000 | ||
3604 | #define BM_40_43 BM_43_40 | ||
3605 | #define BM_44_40 0x00001f0000000000 | ||
3606 | #define BM_40_44 BM_44_40 | ||
3607 | #define BM_45_40 0x00003f0000000000 | ||
3608 | #define BM_40_45 BM_45_40 | ||
3609 | #define BM_46_40 0x00007f0000000000 | ||
3610 | #define BM_40_46 BM_46_40 | ||
3611 | #define BM_47_40 0x0000ff0000000000 | ||
3612 | #define BM_40_47 BM_47_40 | ||
3613 | #define BM_48_40 0x0001ff0000000000 | ||
3614 | #define BM_40_48 BM_48_40 | ||
3615 | #define BM_49_40 0x0003ff0000000000 | ||
3616 | #define BM_40_49 BM_49_40 | ||
3617 | #define BM_50_40 0x0007ff0000000000 | ||
3618 | #define BM_40_50 BM_50_40 | ||
3619 | #define BM_51_40 0x000fff0000000000 | ||
3620 | #define BM_40_51 BM_51_40 | ||
3621 | #define BM_52_40 0x001fff0000000000 | ||
3622 | #define BM_40_52 BM_52_40 | ||
3623 | #define BM_53_40 0x003fff0000000000 | ||
3624 | #define BM_40_53 BM_53_40 | ||
3625 | #define BM_54_40 0x007fff0000000000 | ||
3626 | #define BM_40_54 BM_54_40 | ||
3627 | #define BM_55_40 0x00ffff0000000000 | ||
3628 | #define BM_40_55 BM_55_40 | ||
3629 | #define BM_56_40 0x01ffff0000000000 | ||
3630 | #define BM_40_56 BM_56_40 | ||
3631 | #define BM_57_40 0x03ffff0000000000 | ||
3632 | #define BM_40_57 BM_57_40 | ||
3633 | #define BM_58_40 0x07ffff0000000000 | ||
3634 | #define BM_40_58 BM_58_40 | ||
3635 | #define BM_59_40 0x0fffff0000000000 | ||
3636 | #define BM_40_59 BM_59_40 | ||
3637 | #define BM_60_40 0x1fffff0000000000 | ||
3638 | #define BM_40_60 BM_60_40 | ||
3639 | #define BM_61_40 0x3fffff0000000000 | ||
3640 | #define BM_40_61 BM_61_40 | ||
3641 | #define BM_62_40 0x7fffff0000000000 | ||
3642 | #define BM_40_62 BM_62_40 | ||
3643 | #define BM_63_40 0xffffff0000000000 | ||
3644 | #define BM_40_63 BM_63_40 | ||
3645 | #define BM_41_41 0x0000020000000000 | ||
3646 | #define BM_42_41 0x0000060000000000 | ||
3647 | #define BM_41_42 BM_42_41 | ||
3648 | #define BM_43_41 0x00000e0000000000 | ||
3649 | #define BM_41_43 BM_43_41 | ||
3650 | #define BM_44_41 0x00001e0000000000 | ||
3651 | #define BM_41_44 BM_44_41 | ||
3652 | #define BM_45_41 0x00003e0000000000 | ||
3653 | #define BM_41_45 BM_45_41 | ||
3654 | #define BM_46_41 0x00007e0000000000 | ||
3655 | #define BM_41_46 BM_46_41 | ||
3656 | #define BM_47_41 0x0000fe0000000000 | ||
3657 | #define BM_41_47 BM_47_41 | ||
3658 | #define BM_48_41 0x0001fe0000000000 | ||
3659 | #define BM_41_48 BM_48_41 | ||
3660 | #define BM_49_41 0x0003fe0000000000 | ||
3661 | #define BM_41_49 BM_49_41 | ||
3662 | #define BM_50_41 0x0007fe0000000000 | ||
3663 | #define BM_41_50 BM_50_41 | ||
3664 | #define BM_51_41 0x000ffe0000000000 | ||
3665 | #define BM_41_51 BM_51_41 | ||
3666 | #define BM_52_41 0x001ffe0000000000 | ||
3667 | #define BM_41_52 BM_52_41 | ||
3668 | #define BM_53_41 0x003ffe0000000000 | ||
3669 | #define BM_41_53 BM_53_41 | ||
3670 | #define BM_54_41 0x007ffe0000000000 | ||
3671 | #define BM_41_54 BM_54_41 | ||
3672 | #define BM_55_41 0x00fffe0000000000 | ||
3673 | #define BM_41_55 BM_55_41 | ||
3674 | #define BM_56_41 0x01fffe0000000000 | ||
3675 | #define BM_41_56 BM_56_41 | ||
3676 | #define BM_57_41 0x03fffe0000000000 | ||
3677 | #define BM_41_57 BM_57_41 | ||
3678 | #define BM_58_41 0x07fffe0000000000 | ||
3679 | #define BM_41_58 BM_58_41 | ||
3680 | #define BM_59_41 0x0ffffe0000000000 | ||
3681 | #define BM_41_59 BM_59_41 | ||
3682 | #define BM_60_41 0x1ffffe0000000000 | ||
3683 | #define BM_41_60 BM_60_41 | ||
3684 | #define BM_61_41 0x3ffffe0000000000 | ||
3685 | #define BM_41_61 BM_61_41 | ||
3686 | #define BM_62_41 0x7ffffe0000000000 | ||
3687 | #define BM_41_62 BM_62_41 | ||
3688 | #define BM_63_41 0xfffffe0000000000 | ||
3689 | #define BM_41_63 BM_63_41 | ||
3690 | #define BM_42_42 0x0000040000000000 | ||
3691 | #define BM_43_42 0x00000c0000000000 | ||
3692 | #define BM_42_43 BM_43_42 | ||
3693 | #define BM_44_42 0x00001c0000000000 | ||
3694 | #define BM_42_44 BM_44_42 | ||
3695 | #define BM_45_42 0x00003c0000000000 | ||
3696 | #define BM_42_45 BM_45_42 | ||
3697 | #define BM_46_42 0x00007c0000000000 | ||
3698 | #define BM_42_46 BM_46_42 | ||
3699 | #define BM_47_42 0x0000fc0000000000 | ||
3700 | #define BM_42_47 BM_47_42 | ||
3701 | #define BM_48_42 0x0001fc0000000000 | ||
3702 | #define BM_42_48 BM_48_42 | ||
3703 | #define BM_49_42 0x0003fc0000000000 | ||
3704 | #define BM_42_49 BM_49_42 | ||
3705 | #define BM_50_42 0x0007fc0000000000 | ||
3706 | #define BM_42_50 BM_50_42 | ||
3707 | #define BM_51_42 0x000ffc0000000000 | ||
3708 | #define BM_42_51 BM_51_42 | ||
3709 | #define BM_52_42 0x001ffc0000000000 | ||
3710 | #define BM_42_52 BM_52_42 | ||
3711 | #define BM_53_42 0x003ffc0000000000 | ||
3712 | #define BM_42_53 BM_53_42 | ||
3713 | #define BM_54_42 0x007ffc0000000000 | ||
3714 | #define BM_42_54 BM_54_42 | ||
3715 | #define BM_55_42 0x00fffc0000000000 | ||
3716 | #define BM_42_55 BM_55_42 | ||
3717 | #define BM_56_42 0x01fffc0000000000 | ||
3718 | #define BM_42_56 BM_56_42 | ||
3719 | #define BM_57_42 0x03fffc0000000000 | ||
3720 | #define BM_42_57 BM_57_42 | ||
3721 | #define BM_58_42 0x07fffc0000000000 | ||
3722 | #define BM_42_58 BM_58_42 | ||
3723 | #define BM_59_42 0x0ffffc0000000000 | ||
3724 | #define BM_42_59 BM_59_42 | ||
3725 | #define BM_60_42 0x1ffffc0000000000 | ||
3726 | #define BM_42_60 BM_60_42 | ||
3727 | #define BM_61_42 0x3ffffc0000000000 | ||
3728 | #define BM_42_61 BM_61_42 | ||
3729 | #define BM_62_42 0x7ffffc0000000000 | ||
3730 | #define BM_42_62 BM_62_42 | ||
3731 | #define BM_63_42 0xfffffc0000000000 | ||
3732 | #define BM_42_63 BM_63_42 | ||
3733 | #define BM_43_43 0x0000080000000000 | ||
3734 | #define BM_44_43 0x0000180000000000 | ||
3735 | #define BM_43_44 BM_44_43 | ||
3736 | #define BM_45_43 0x0000380000000000 | ||
3737 | #define BM_43_45 BM_45_43 | ||
3738 | #define BM_46_43 0x0000780000000000 | ||
3739 | #define BM_43_46 BM_46_43 | ||
3740 | #define BM_47_43 0x0000f80000000000 | ||
3741 | #define BM_43_47 BM_47_43 | ||
3742 | #define BM_48_43 0x0001f80000000000 | ||
3743 | #define BM_43_48 BM_48_43 | ||
3744 | #define BM_49_43 0x0003f80000000000 | ||
3745 | #define BM_43_49 BM_49_43 | ||
3746 | #define BM_50_43 0x0007f80000000000 | ||
3747 | #define BM_43_50 BM_50_43 | ||
3748 | #define BM_51_43 0x000ff80000000000 | ||
3749 | #define BM_43_51 BM_51_43 | ||
3750 | #define BM_52_43 0x001ff80000000000 | ||
3751 | #define BM_43_52 BM_52_43 | ||
3752 | #define BM_53_43 0x003ff80000000000 | ||
3753 | #define BM_43_53 BM_53_43 | ||
3754 | #define BM_54_43 0x007ff80000000000 | ||
3755 | #define BM_43_54 BM_54_43 | ||
3756 | #define BM_55_43 0x00fff80000000000 | ||
3757 | #define BM_43_55 BM_55_43 | ||
3758 | #define BM_56_43 0x01fff80000000000 | ||
3759 | #define BM_43_56 BM_56_43 | ||
3760 | #define BM_57_43 0x03fff80000000000 | ||
3761 | #define BM_43_57 BM_57_43 | ||
3762 | #define BM_58_43 0x07fff80000000000 | ||
3763 | #define BM_43_58 BM_58_43 | ||
3764 | #define BM_59_43 0x0ffff80000000000 | ||
3765 | #define BM_43_59 BM_59_43 | ||
3766 | #define BM_60_43 0x1ffff80000000000 | ||
3767 | #define BM_43_60 BM_60_43 | ||
3768 | #define BM_61_43 0x3ffff80000000000 | ||
3769 | #define BM_43_61 BM_61_43 | ||
3770 | #define BM_62_43 0x7ffff80000000000 | ||
3771 | #define BM_43_62 BM_62_43 | ||
3772 | #define BM_63_43 0xfffff80000000000 | ||
3773 | #define BM_43_63 BM_63_43 | ||
3774 | #define BM_44_44 0x0000100000000000 | ||
3775 | #define BM_45_44 0x0000300000000000 | ||
3776 | #define BM_44_45 BM_45_44 | ||
3777 | #define BM_46_44 0x0000700000000000 | ||
3778 | #define BM_44_46 BM_46_44 | ||
3779 | #define BM_47_44 0x0000f00000000000 | ||
3780 | #define BM_44_47 BM_47_44 | ||
3781 | #define BM_48_44 0x0001f00000000000 | ||
3782 | #define BM_44_48 BM_48_44 | ||
3783 | #define BM_49_44 0x0003f00000000000 | ||
3784 | #define BM_44_49 BM_49_44 | ||
3785 | #define BM_50_44 0x0007f00000000000 | ||
3786 | #define BM_44_50 BM_50_44 | ||
3787 | #define BM_51_44 0x000ff00000000000 | ||
3788 | #define BM_44_51 BM_51_44 | ||
3789 | #define BM_52_44 0x001ff00000000000 | ||
3790 | #define BM_44_52 BM_52_44 | ||
3791 | #define BM_53_44 0x003ff00000000000 | ||
3792 | #define BM_44_53 BM_53_44 | ||
3793 | #define BM_54_44 0x007ff00000000000 | ||
3794 | #define BM_44_54 BM_54_44 | ||
3795 | #define BM_55_44 0x00fff00000000000 | ||
3796 | #define BM_44_55 BM_55_44 | ||
3797 | #define BM_56_44 0x01fff00000000000 | ||
3798 | #define BM_44_56 BM_56_44 | ||
3799 | #define BM_57_44 0x03fff00000000000 | ||
3800 | #define BM_44_57 BM_57_44 | ||
3801 | #define BM_58_44 0x07fff00000000000 | ||
3802 | #define BM_44_58 BM_58_44 | ||
3803 | #define BM_59_44 0x0ffff00000000000 | ||
3804 | #define BM_44_59 BM_59_44 | ||
3805 | #define BM_60_44 0x1ffff00000000000 | ||
3806 | #define BM_44_60 BM_60_44 | ||
3807 | #define BM_61_44 0x3ffff00000000000 | ||
3808 | #define BM_44_61 BM_61_44 | ||
3809 | #define BM_62_44 0x7ffff00000000000 | ||
3810 | #define BM_44_62 BM_62_44 | ||
3811 | #define BM_63_44 0xfffff00000000000 | ||
3812 | #define BM_44_63 BM_63_44 | ||
3813 | #define BM_45_45 0x0000200000000000 | ||
3814 | #define BM_46_45 0x0000600000000000 | ||
3815 | #define BM_45_46 BM_46_45 | ||
3816 | #define BM_47_45 0x0000e00000000000 | ||
3817 | #define BM_45_47 BM_47_45 | ||
3818 | #define BM_48_45 0x0001e00000000000 | ||
3819 | #define BM_45_48 BM_48_45 | ||
3820 | #define BM_49_45 0x0003e00000000000 | ||
3821 | #define BM_45_49 BM_49_45 | ||
3822 | #define BM_50_45 0x0007e00000000000 | ||
3823 | #define BM_45_50 BM_50_45 | ||
3824 | #define BM_51_45 0x000fe00000000000 | ||
3825 | #define BM_45_51 BM_51_45 | ||
3826 | #define BM_52_45 0x001fe00000000000 | ||
3827 | #define BM_45_52 BM_52_45 | ||
3828 | #define BM_53_45 0x003fe00000000000 | ||
3829 | #define BM_45_53 BM_53_45 | ||
3830 | #define BM_54_45 0x007fe00000000000 | ||
3831 | #define BM_45_54 BM_54_45 | ||
3832 | #define BM_55_45 0x00ffe00000000000 | ||
3833 | #define BM_45_55 BM_55_45 | ||
3834 | #define BM_56_45 0x01ffe00000000000 | ||
3835 | #define BM_45_56 BM_56_45 | ||
3836 | #define BM_57_45 0x03ffe00000000000 | ||
3837 | #define BM_45_57 BM_57_45 | ||
3838 | #define BM_58_45 0x07ffe00000000000 | ||
3839 | #define BM_45_58 BM_58_45 | ||
3840 | #define BM_59_45 0x0fffe00000000000 | ||
3841 | #define BM_45_59 BM_59_45 | ||
3842 | #define BM_60_45 0x1fffe00000000000 | ||
3843 | #define BM_45_60 BM_60_45 | ||
3844 | #define BM_61_45 0x3fffe00000000000 | ||
3845 | #define BM_45_61 BM_61_45 | ||
3846 | #define BM_62_45 0x7fffe00000000000 | ||
3847 | #define BM_45_62 BM_62_45 | ||
3848 | #define BM_63_45 0xffffe00000000000 | ||
3849 | #define BM_45_63 BM_63_45 | ||
3850 | #define BM_46_46 0x0000400000000000 | ||
3851 | #define BM_47_46 0x0000c00000000000 | ||
3852 | #define BM_46_47 BM_47_46 | ||
3853 | #define BM_48_46 0x0001c00000000000 | ||
3854 | #define BM_46_48 BM_48_46 | ||
3855 | #define BM_49_46 0x0003c00000000000 | ||
3856 | #define BM_46_49 BM_49_46 | ||
3857 | #define BM_50_46 0x0007c00000000000 | ||
3858 | #define BM_46_50 BM_50_46 | ||
3859 | #define BM_51_46 0x000fc00000000000 | ||
3860 | #define BM_46_51 BM_51_46 | ||
3861 | #define BM_52_46 0x001fc00000000000 | ||
3862 | #define BM_46_52 BM_52_46 | ||
3863 | #define BM_53_46 0x003fc00000000000 | ||
3864 | #define BM_46_53 BM_53_46 | ||
3865 | #define BM_54_46 0x007fc00000000000 | ||
3866 | #define BM_46_54 BM_54_46 | ||
3867 | #define BM_55_46 0x00ffc00000000000 | ||
3868 | #define BM_46_55 BM_55_46 | ||
3869 | #define BM_56_46 0x01ffc00000000000 | ||
3870 | #define BM_46_56 BM_56_46 | ||
3871 | #define BM_57_46 0x03ffc00000000000 | ||
3872 | #define BM_46_57 BM_57_46 | ||
3873 | #define BM_58_46 0x07ffc00000000000 | ||
3874 | #define BM_46_58 BM_58_46 | ||
3875 | #define BM_59_46 0x0fffc00000000000 | ||
3876 | #define BM_46_59 BM_59_46 | ||
3877 | #define BM_60_46 0x1fffc00000000000 | ||
3878 | #define BM_46_60 BM_60_46 | ||
3879 | #define BM_61_46 0x3fffc00000000000 | ||
3880 | #define BM_46_61 BM_61_46 | ||
3881 | #define BM_62_46 0x7fffc00000000000 | ||
3882 | #define BM_46_62 BM_62_46 | ||
3883 | #define BM_63_46 0xffffc00000000000 | ||
3884 | #define BM_46_63 BM_63_46 | ||
3885 | #define BM_47_47 0x0000800000000000 | ||
3886 | #define BM_48_47 0x0001800000000000 | ||
3887 | #define BM_47_48 BM_48_47 | ||
3888 | #define BM_49_47 0x0003800000000000 | ||
3889 | #define BM_47_49 BM_49_47 | ||
3890 | #define BM_50_47 0x0007800000000000 | ||
3891 | #define BM_47_50 BM_50_47 | ||
3892 | #define BM_51_47 0x000f800000000000 | ||
3893 | #define BM_47_51 BM_51_47 | ||
3894 | #define BM_52_47 0x001f800000000000 | ||
3895 | #define BM_47_52 BM_52_47 | ||
3896 | #define BM_53_47 0x003f800000000000 | ||
3897 | #define BM_47_53 BM_53_47 | ||
3898 | #define BM_54_47 0x007f800000000000 | ||
3899 | #define BM_47_54 BM_54_47 | ||
3900 | #define BM_55_47 0x00ff800000000000 | ||
3901 | #define BM_47_55 BM_55_47 | ||
3902 | #define BM_56_47 0x01ff800000000000 | ||
3903 | #define BM_47_56 BM_56_47 | ||
3904 | #define BM_57_47 0x03ff800000000000 | ||
3905 | #define BM_47_57 BM_57_47 | ||
3906 | #define BM_58_47 0x07ff800000000000 | ||
3907 | #define BM_47_58 BM_58_47 | ||
3908 | #define BM_59_47 0x0fff800000000000 | ||
3909 | #define BM_47_59 BM_59_47 | ||
3910 | #define BM_60_47 0x1fff800000000000 | ||
3911 | #define BM_47_60 BM_60_47 | ||
3912 | #define BM_61_47 0x3fff800000000000 | ||
3913 | #define BM_47_61 BM_61_47 | ||
3914 | #define BM_62_47 0x7fff800000000000 | ||
3915 | #define BM_47_62 BM_62_47 | ||
3916 | #define BM_63_47 0xffff800000000000 | ||
3917 | #define BM_47_63 BM_63_47 | ||
3918 | #define BM_48_48 0x0001000000000000 | ||
3919 | #define BM_49_48 0x0003000000000000 | ||
3920 | #define BM_48_49 BM_49_48 | ||
3921 | #define BM_50_48 0x0007000000000000 | ||
3922 | #define BM_48_50 BM_50_48 | ||
3923 | #define BM_51_48 0x000f000000000000 | ||
3924 | #define BM_48_51 BM_51_48 | ||
3925 | #define BM_52_48 0x001f000000000000 | ||
3926 | #define BM_48_52 BM_52_48 | ||
3927 | #define BM_53_48 0x003f000000000000 | ||
3928 | #define BM_48_53 BM_53_48 | ||
3929 | #define BM_54_48 0x007f000000000000 | ||
3930 | #define BM_48_54 BM_54_48 | ||
3931 | #define BM_55_48 0x00ff000000000000 | ||
3932 | #define BM_48_55 BM_55_48 | ||
3933 | #define BM_56_48 0x01ff000000000000 | ||
3934 | #define BM_48_56 BM_56_48 | ||
3935 | #define BM_57_48 0x03ff000000000000 | ||
3936 | #define BM_48_57 BM_57_48 | ||
3937 | #define BM_58_48 0x07ff000000000000 | ||
3938 | #define BM_48_58 BM_58_48 | ||
3939 | #define BM_59_48 0x0fff000000000000 | ||
3940 | #define BM_48_59 BM_59_48 | ||
3941 | #define BM_60_48 0x1fff000000000000 | ||
3942 | #define BM_48_60 BM_60_48 | ||
3943 | #define BM_61_48 0x3fff000000000000 | ||
3944 | #define BM_48_61 BM_61_48 | ||
3945 | #define BM_62_48 0x7fff000000000000 | ||
3946 | #define BM_48_62 BM_62_48 | ||
3947 | #define BM_63_48 0xffff000000000000 | ||
3948 | #define BM_48_63 BM_63_48 | ||
3949 | #define BM_49_49 0x0002000000000000 | ||
3950 | #define BM_50_49 0x0006000000000000 | ||
3951 | #define BM_49_50 BM_50_49 | ||
3952 | #define BM_51_49 0x000e000000000000 | ||
3953 | #define BM_49_51 BM_51_49 | ||
3954 | #define BM_52_49 0x001e000000000000 | ||
3955 | #define BM_49_52 BM_52_49 | ||
3956 | #define BM_53_49 0x003e000000000000 | ||
3957 | #define BM_49_53 BM_53_49 | ||
3958 | #define BM_54_49 0x007e000000000000 | ||
3959 | #define BM_49_54 BM_54_49 | ||
3960 | #define BM_55_49 0x00fe000000000000 | ||
3961 | #define BM_49_55 BM_55_49 | ||
3962 | #define BM_56_49 0x01fe000000000000 | ||
3963 | #define BM_49_56 BM_56_49 | ||
3964 | #define BM_57_49 0x03fe000000000000 | ||
3965 | #define BM_49_57 BM_57_49 | ||
3966 | #define BM_58_49 0x07fe000000000000 | ||
3967 | #define BM_49_58 BM_58_49 | ||
3968 | #define BM_59_49 0x0ffe000000000000 | ||
3969 | #define BM_49_59 BM_59_49 | ||
3970 | #define BM_60_49 0x1ffe000000000000 | ||
3971 | #define BM_49_60 BM_60_49 | ||
3972 | #define BM_61_49 0x3ffe000000000000 | ||
3973 | #define BM_49_61 BM_61_49 | ||
3974 | #define BM_62_49 0x7ffe000000000000 | ||
3975 | #define BM_49_62 BM_62_49 | ||
3976 | #define BM_63_49 0xfffe000000000000 | ||
3977 | #define BM_49_63 BM_63_49 | ||
3978 | #define BM_50_50 0x0004000000000000 | ||
3979 | #define BM_51_50 0x000c000000000000 | ||
3980 | #define BM_50_51 BM_51_50 | ||
3981 | #define BM_52_50 0x001c000000000000 | ||
3982 | #define BM_50_52 BM_52_50 | ||
3983 | #define BM_53_50 0x003c000000000000 | ||
3984 | #define BM_50_53 BM_53_50 | ||
3985 | #define BM_54_50 0x007c000000000000 | ||
3986 | #define BM_50_54 BM_54_50 | ||
3987 | #define BM_55_50 0x00fc000000000000 | ||
3988 | #define BM_50_55 BM_55_50 | ||
3989 | #define BM_56_50 0x01fc000000000000 | ||
3990 | #define BM_50_56 BM_56_50 | ||
3991 | #define BM_57_50 0x03fc000000000000 | ||
3992 | #define BM_50_57 BM_57_50 | ||
3993 | #define BM_58_50 0x07fc000000000000 | ||
3994 | #define BM_50_58 BM_58_50 | ||
3995 | #define BM_59_50 0x0ffc000000000000 | ||
3996 | #define BM_50_59 BM_59_50 | ||
3997 | #define BM_60_50 0x1ffc000000000000 | ||
3998 | #define BM_50_60 BM_60_50 | ||
3999 | #define BM_61_50 0x3ffc000000000000 | ||
4000 | #define BM_50_61 BM_61_50 | ||
4001 | #define BM_62_50 0x7ffc000000000000 | ||
4002 | #define BM_50_62 BM_62_50 | ||
4003 | #define BM_63_50 0xfffc000000000000 | ||
4004 | #define BM_50_63 BM_63_50 | ||
4005 | #define BM_51_51 0x0008000000000000 | ||
4006 | #define BM_52_51 0x0018000000000000 | ||
4007 | #define BM_51_52 BM_52_51 | ||
4008 | #define BM_53_51 0x0038000000000000 | ||
4009 | #define BM_51_53 BM_53_51 | ||
4010 | #define BM_54_51 0x0078000000000000 | ||
4011 | #define BM_51_54 BM_54_51 | ||
4012 | #define BM_55_51 0x00f8000000000000 | ||
4013 | #define BM_51_55 BM_55_51 | ||
4014 | #define BM_56_51 0x01f8000000000000 | ||
4015 | #define BM_51_56 BM_56_51 | ||
4016 | #define BM_57_51 0x03f8000000000000 | ||
4017 | #define BM_51_57 BM_57_51 | ||
4018 | #define BM_58_51 0x07f8000000000000 | ||
4019 | #define BM_51_58 BM_58_51 | ||
4020 | #define BM_59_51 0x0ff8000000000000 | ||
4021 | #define BM_51_59 BM_59_51 | ||
4022 | #define BM_60_51 0x1ff8000000000000 | ||
4023 | #define BM_51_60 BM_60_51 | ||
4024 | #define BM_61_51 0x3ff8000000000000 | ||
4025 | #define BM_51_61 BM_61_51 | ||
4026 | #define BM_62_51 0x7ff8000000000000 | ||
4027 | #define BM_51_62 BM_62_51 | ||
4028 | #define BM_63_51 0xfff8000000000000 | ||
4029 | #define BM_51_63 BM_63_51 | ||
4030 | #define BM_52_52 0x0010000000000000 | ||
4031 | #define BM_53_52 0x0030000000000000 | ||
4032 | #define BM_52_53 BM_53_52 | ||
4033 | #define BM_54_52 0x0070000000000000 | ||
4034 | #define BM_52_54 BM_54_52 | ||
4035 | #define BM_55_52 0x00f0000000000000 | ||
4036 | #define BM_52_55 BM_55_52 | ||
4037 | #define BM_56_52 0x01f0000000000000 | ||
4038 | #define BM_52_56 BM_56_52 | ||
4039 | #define BM_57_52 0x03f0000000000000 | ||
4040 | #define BM_52_57 BM_57_52 | ||
4041 | #define BM_58_52 0x07f0000000000000 | ||
4042 | #define BM_52_58 BM_58_52 | ||
4043 | #define BM_59_52 0x0ff0000000000000 | ||
4044 | #define BM_52_59 BM_59_52 | ||
4045 | #define BM_60_52 0x1ff0000000000000 | ||
4046 | #define BM_52_60 BM_60_52 | ||
4047 | #define BM_61_52 0x3ff0000000000000 | ||
4048 | #define BM_52_61 BM_61_52 | ||
4049 | #define BM_62_52 0x7ff0000000000000 | ||
4050 | #define BM_52_62 BM_62_52 | ||
4051 | #define BM_63_52 0xfff0000000000000 | ||
4052 | #define BM_52_63 BM_63_52 | ||
4053 | #define BM_53_53 0x0020000000000000 | ||
4054 | #define BM_54_53 0x0060000000000000 | ||
4055 | #define BM_53_54 BM_54_53 | ||
4056 | #define BM_55_53 0x00e0000000000000 | ||
4057 | #define BM_53_55 BM_55_53 | ||
4058 | #define BM_56_53 0x01e0000000000000 | ||
4059 | #define BM_53_56 BM_56_53 | ||
4060 | #define BM_57_53 0x03e0000000000000 | ||
4061 | #define BM_53_57 BM_57_53 | ||
4062 | #define BM_58_53 0x07e0000000000000 | ||
4063 | #define BM_53_58 BM_58_53 | ||
4064 | #define BM_59_53 0x0fe0000000000000 | ||
4065 | #define BM_53_59 BM_59_53 | ||
4066 | #define BM_60_53 0x1fe0000000000000 | ||
4067 | #define BM_53_60 BM_60_53 | ||
4068 | #define BM_61_53 0x3fe0000000000000 | ||
4069 | #define BM_53_61 BM_61_53 | ||
4070 | #define BM_62_53 0x7fe0000000000000 | ||
4071 | #define BM_53_62 BM_62_53 | ||
4072 | #define BM_63_53 0xffe0000000000000 | ||
4073 | #define BM_53_63 BM_63_53 | ||
4074 | #define BM_54_54 0x0040000000000000 | ||
4075 | #define BM_55_54 0x00c0000000000000 | ||
4076 | #define BM_54_55 BM_55_54 | ||
4077 | #define BM_56_54 0x01c0000000000000 | ||
4078 | #define BM_54_56 BM_56_54 | ||
4079 | #define BM_57_54 0x03c0000000000000 | ||
4080 | #define BM_54_57 BM_57_54 | ||
4081 | #define BM_58_54 0x07c0000000000000 | ||
4082 | #define BM_54_58 BM_58_54 | ||
4083 | #define BM_59_54 0x0fc0000000000000 | ||
4084 | #define BM_54_59 BM_59_54 | ||
4085 | #define BM_60_54 0x1fc0000000000000 | ||
4086 | #define BM_54_60 BM_60_54 | ||
4087 | #define BM_61_54 0x3fc0000000000000 | ||
4088 | #define BM_54_61 BM_61_54 | ||
4089 | #define BM_62_54 0x7fc0000000000000 | ||
4090 | #define BM_54_62 BM_62_54 | ||
4091 | #define BM_63_54 0xffc0000000000000 | ||
4092 | #define BM_54_63 BM_63_54 | ||
4093 | #define BM_55_55 0x0080000000000000 | ||
4094 | #define BM_56_55 0x0180000000000000 | ||
4095 | #define BM_55_56 BM_56_55 | ||
4096 | #define BM_57_55 0x0380000000000000 | ||
4097 | #define BM_55_57 BM_57_55 | ||
4098 | #define BM_58_55 0x0780000000000000 | ||
4099 | #define BM_55_58 BM_58_55 | ||
4100 | #define BM_59_55 0x0f80000000000000 | ||
4101 | #define BM_55_59 BM_59_55 | ||
4102 | #define BM_60_55 0x1f80000000000000 | ||
4103 | #define BM_55_60 BM_60_55 | ||
4104 | #define BM_61_55 0x3f80000000000000 | ||
4105 | #define BM_55_61 BM_61_55 | ||
4106 | #define BM_62_55 0x7f80000000000000 | ||
4107 | #define BM_55_62 BM_62_55 | ||
4108 | #define BM_63_55 0xff80000000000000 | ||
4109 | #define BM_55_63 BM_63_55 | ||
4110 | #define BM_56_56 0x0100000000000000 | ||
4111 | #define BM_57_56 0x0300000000000000 | ||
4112 | #define BM_56_57 BM_57_56 | ||
4113 | #define BM_58_56 0x0700000000000000 | ||
4114 | #define BM_56_58 BM_58_56 | ||
4115 | #define BM_59_56 0x0f00000000000000 | ||
4116 | #define BM_56_59 BM_59_56 | ||
4117 | #define BM_60_56 0x1f00000000000000 | ||
4118 | #define BM_56_60 BM_60_56 | ||
4119 | #define BM_61_56 0x3f00000000000000 | ||
4120 | #define BM_56_61 BM_61_56 | ||
4121 | #define BM_62_56 0x7f00000000000000 | ||
4122 | #define BM_56_62 BM_62_56 | ||
4123 | #define BM_63_56 0xff00000000000000 | ||
4124 | #define BM_56_63 BM_63_56 | ||
4125 | #define BM_57_57 0x0200000000000000 | ||
4126 | #define BM_58_57 0x0600000000000000 | ||
4127 | #define BM_57_58 BM_58_57 | ||
4128 | #define BM_59_57 0x0e00000000000000 | ||
4129 | #define BM_57_59 BM_59_57 | ||
4130 | #define BM_60_57 0x1e00000000000000 | ||
4131 | #define BM_57_60 BM_60_57 | ||
4132 | #define BM_61_57 0x3e00000000000000 | ||
4133 | #define BM_57_61 BM_61_57 | ||
4134 | #define BM_62_57 0x7e00000000000000 | ||
4135 | #define BM_57_62 BM_62_57 | ||
4136 | #define BM_63_57 0xfe00000000000000 | ||
4137 | #define BM_57_63 BM_63_57 | ||
4138 | #define BM_58_58 0x0400000000000000 | ||
4139 | #define BM_59_58 0x0c00000000000000 | ||
4140 | #define BM_58_59 BM_59_58 | ||
4141 | #define BM_60_58 0x1c00000000000000 | ||
4142 | #define BM_58_60 BM_60_58 | ||
4143 | #define BM_61_58 0x3c00000000000000 | ||
4144 | #define BM_58_61 BM_61_58 | ||
4145 | #define BM_62_58 0x7c00000000000000 | ||
4146 | #define BM_58_62 BM_62_58 | ||
4147 | #define BM_63_58 0xfc00000000000000 | ||
4148 | #define BM_58_63 BM_63_58 | ||
4149 | #define BM_59_59 0x0800000000000000 | ||
4150 | #define BM_60_59 0x1800000000000000 | ||
4151 | #define BM_59_60 BM_60_59 | ||
4152 | #define BM_61_59 0x3800000000000000 | ||
4153 | #define BM_59_61 BM_61_59 | ||
4154 | #define BM_62_59 0x7800000000000000 | ||
4155 | #define BM_59_62 BM_62_59 | ||
4156 | #define BM_63_59 0xf800000000000000 | ||
4157 | #define BM_59_63 BM_63_59 | ||
4158 | #define BM_60_60 0x1000000000000000 | ||
4159 | #define BM_61_60 0x3000000000000000 | ||
4160 | #define BM_60_61 BM_61_60 | ||
4161 | #define BM_62_60 0x7000000000000000 | ||
4162 | #define BM_60_62 BM_62_60 | ||
4163 | #define BM_63_60 0xf000000000000000 | ||
4164 | #define BM_60_63 BM_63_60 | ||
4165 | #define BM_61_61 0x2000000000000000 | ||
4166 | #define BM_62_61 0x6000000000000000 | ||
4167 | #define BM_61_62 BM_62_61 | ||
4168 | #define BM_63_61 0xe000000000000000 | ||
4169 | #define BM_61_63 BM_63_61 | ||
4170 | #define BM_62_62 0x4000000000000000 | ||
4171 | #define BM_63_62 0xc000000000000000 | ||
4172 | #define BM_62_63 BM_63_62 | ||
4173 | #define BM_63_63 0x8000000000000000 | ||
4174 | |||
4175 | #endif | ||
4176 | |||
4177 | #endif /* __ASM_TX4927_TX4927_MIPS_H */ | ||
diff --git a/include/asm-mips/tx4938/rbtx4938.h b/include/asm-mips/tx4938/rbtx4938.h index b14acb575b..b180488dcd 100644 --- a/include/asm-mips/tx4938/rbtx4938.h +++ b/include/asm-mips/tx4938/rbtx4938.h | |||
@@ -153,7 +153,7 @@ | |||
153 | #define RBTX4938_IRQ_IRC_WTOERR (RBTX4938_IRQ_IRC + TX4938_IR_WTOERR) | 153 | #define RBTX4938_IRQ_IRC_WTOERR (RBTX4938_IRQ_IRC + TX4938_IR_WTOERR) |
154 | #define RBTX4938_IRQ_IRC_INT(n) (RBTX4938_IRQ_IRC + TX4938_IR_INT(n)) | 154 | #define RBTX4938_IRQ_IRC_INT(n) (RBTX4938_IRQ_IRC + TX4938_IR_INT(n)) |
155 | #define RBTX4938_IRQ_IRC_SIO(n) (RBTX4938_IRQ_IRC + TX4938_IR_SIO(n)) | 155 | #define RBTX4938_IRQ_IRC_SIO(n) (RBTX4938_IRQ_IRC + TX4938_IR_SIO(n)) |
156 | #define RBTX4938_IRQ_IRC_DMA(ch,n) (RBTX4938_IRQ_IRC + TX4938_IR_DMA(ch,n)) | 156 | #define RBTX4938_IRQ_IRC_DMA(ch, n) (RBTX4938_IRQ_IRC + TX4938_IR_DMA(ch, n)) |
157 | #define RBTX4938_IRQ_IRC_PIO (RBTX4938_IRQ_IRC + TX4938_IR_PIO) | 157 | #define RBTX4938_IRQ_IRC_PIO (RBTX4938_IRQ_IRC + TX4938_IR_PIO) |
158 | #define RBTX4938_IRQ_IRC_PDMAC (RBTX4938_IRQ_IRC + TX4938_IR_PDMAC) | 158 | #define RBTX4938_IRQ_IRC_PDMAC (RBTX4938_IRQ_IRC + TX4938_IR_PDMAC) |
159 | #define RBTX4938_IRQ_IRC_PCIC (RBTX4938_IRQ_IRC + TX4938_IR_PCIC) | 159 | #define RBTX4938_IRQ_IRC_PCIC (RBTX4938_IRQ_IRC + TX4938_IR_PCIC) |
diff --git a/include/asm-mips/tx4938/tx4938.h b/include/asm-mips/tx4938/tx4938.h index afdb19813c..650b010761 100644 --- a/include/asm-mips/tx4938/tx4938.h +++ b/include/asm-mips/tx4938/tx4938.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <asm/tx4938/tx4938_mips.h> | 16 | #include <asm/tx4938/tx4938_mips.h> |
17 | 17 | ||
18 | #define tx4938_read_nfmc(addr) (*(volatile unsigned int *)(addr)) | 18 | #define tx4938_read_nfmc(addr) (*(volatile unsigned int *)(addr)) |
19 | #define tx4938_write_nfmc(b,addr) (*(volatile unsigned int *)(addr)) = (b) | 19 | #define tx4938_write_nfmc(b, addr) (*(volatile unsigned int *)(addr)) = (b) |
20 | 20 | ||
21 | #define TX4938_NR_IRQ_LOCAL TX4938_IRQ_PIC_BEG | 21 | #define TX4938_NR_IRQ_LOCAL TX4938_IRQ_PIC_BEG |
22 | 22 | ||
@@ -84,27 +84,27 @@ | |||
84 | #include <asm/byteorder.h> | 84 | #include <asm/byteorder.h> |
85 | 85 | ||
86 | #ifdef __BIG_ENDIAN | 86 | #ifdef __BIG_ENDIAN |
87 | #define endian_def_l2(e1,e2) \ | 87 | #define endian_def_l2(e1, e2) \ |
88 | volatile unsigned long e1,e2 | 88 | volatile unsigned long e1, e2 |
89 | #define endian_def_s2(e1,e2) \ | 89 | #define endian_def_s2(e1, e2) \ |
90 | volatile unsigned short e1,e2 | 90 | volatile unsigned short e1, e2 |
91 | #define endian_def_sb2(e1,e2,e3) \ | 91 | #define endian_def_sb2(e1, e2, e3) \ |
92 | volatile unsigned short e1;volatile unsigned char e2,e3 | 92 | volatile unsigned short e1;volatile unsigned char e2, e3 |
93 | #define endian_def_b2s(e1,e2,e3) \ | 93 | #define endian_def_b2s(e1, e2, e3) \ |
94 | volatile unsigned char e1,e2;volatile unsigned short e3 | 94 | volatile unsigned char e1, e2;volatile unsigned short e3 |
95 | #define endian_def_b4(e1,e2,e3,e4) \ | 95 | #define endian_def_b4(e1, e2, e3, e4) \ |
96 | volatile unsigned char e1,e2,e3,e4 | 96 | volatile unsigned char e1, e2, e3, e4 |
97 | #else | 97 | #else |
98 | #define endian_def_l2(e1,e2) \ | 98 | #define endian_def_l2(e1, e2) \ |
99 | volatile unsigned long e2,e1 | 99 | volatile unsigned long e2, e1 |
100 | #define endian_def_s2(e1,e2) \ | 100 | #define endian_def_s2(e1, e2) \ |
101 | volatile unsigned short e2,e1 | 101 | volatile unsigned short e2, e1 |
102 | #define endian_def_sb2(e1,e2,e3) \ | 102 | #define endian_def_sb2(e1, e2, e3) \ |
103 | volatile unsigned char e3,e2;volatile unsigned short e1 | 103 | volatile unsigned char e3, e2;volatile unsigned short e1 |
104 | #define endian_def_b2s(e1,e2,e3) \ | 104 | #define endian_def_b2s(e1, e2, e3) \ |
105 | volatile unsigned short e3;volatile unsigned char e2,e1 | 105 | volatile unsigned short e3;volatile unsigned char e2, e1 |
106 | #define endian_def_b4(e1,e2,e3,e4) \ | 106 | #define endian_def_b4(e1, e2, e3, e4) \ |
107 | volatile unsigned char e4,e3,e2,e1 | 107 | volatile unsigned char e4, e3, e2, e1 |
108 | #endif | 108 | #endif |
109 | 109 | ||
110 | 110 | ||
@@ -354,7 +354,7 @@ struct tx4938_ccfg_reg { | |||
354 | #define TX4938_NUM_IR_SIO 2 | 354 | #define TX4938_NUM_IR_SIO 2 |
355 | #define TX4938_IR_SIO(n) (8 + (n)) | 355 | #define TX4938_IR_SIO(n) (8 + (n)) |
356 | #define TX4938_NUM_IR_DMA 4 | 356 | #define TX4938_NUM_IR_DMA 4 |
357 | #define TX4938_IR_DMA(ch,n) ((ch ? 27 : 10) + (n)) /* 10-13,27-30 */ | 357 | #define TX4938_IR_DMA(ch, n) ((ch ? 27 : 10) + (n)) /* 10-13, 27-30 */ |
358 | #define TX4938_IR_PIO 14 | 358 | #define TX4938_IR_PIO 14 |
359 | #define TX4938_IR_PDMAC 15 | 359 | #define TX4938_IR_PDMAC 15 |
360 | #define TX4938_IR_PCIC 16 | 360 | #define TX4938_IR_PCIC 16 |
diff --git a/include/asm-mips/tx4938/tx4938_mips.h b/include/asm-mips/tx4938/tx4938_mips.h index 5f8498fef0..f346ff58b9 100644 --- a/include/asm-mips/tx4938/tx4938_mips.h +++ b/include/asm-mips/tx4938/tx4938_mips.h | |||
@@ -19,10 +19,10 @@ | |||
19 | #define reg_rd32(r) ((u32)(*((vu32*)(r)))) | 19 | #define reg_rd32(r) ((u32)(*((vu32*)(r)))) |
20 | #define reg_rd64(r) ((u64)(*((vu64*)(r)))) | 20 | #define reg_rd64(r) ((u64)(*((vu64*)(r)))) |
21 | 21 | ||
22 | #define reg_wr08(r,v) ((*((vu8 *)(r)))=((u8 )(v))) | 22 | #define reg_wr08(r, v) ((*((vu8 *)(r)))=((u8 )(v))) |
23 | #define reg_wr16(r,v) ((*((vu16*)(r)))=((u16)(v))) | 23 | #define reg_wr16(r, v) ((*((vu16*)(r)))=((u16)(v))) |
24 | #define reg_wr32(r,v) ((*((vu32*)(r)))=((u32)(v))) | 24 | #define reg_wr32(r, v) ((*((vu32*)(r)))=((u32)(v))) |
25 | #define reg_wr64(r,v) ((*((vu64*)(r)))=((u64)(v))) | 25 | #define reg_wr64(r, v) ((*((vu64*)(r)))=((u64)(v))) |
26 | 26 | ||
27 | typedef volatile __signed char vs8; | 27 | typedef volatile __signed char vs8; |
28 | typedef volatile unsigned char vu8; | 28 | typedef volatile unsigned char vu8; |
diff --git a/include/asm-mips/uaccess.h b/include/asm-mips/uaccess.h index b25511787e..c30c718994 100644 --- a/include/asm-mips/uaccess.h +++ b/include/asm-mips/uaccess.h | |||
@@ -63,7 +63,7 @@ | |||
63 | #define get_fs() (current_thread_info()->addr_limit) | 63 | #define get_fs() (current_thread_info()->addr_limit) |
64 | #define set_fs(x) (current_thread_info()->addr_limit = (x)) | 64 | #define set_fs(x) (current_thread_info()->addr_limit = (x)) |
65 | 65 | ||
66 | #define segment_eq(a,b) ((a).seg == (b).seg) | 66 | #define segment_eq(a, b) ((a).seg == (b).seg) |
67 | 67 | ||
68 | 68 | ||
69 | /* | 69 | /* |
@@ -108,7 +108,7 @@ | |||
108 | (((signed long)((mask) & ((addr) | ((addr) + (size)) | __ua_size(size)))) == 0) | 108 | (((signed long)((mask) & ((addr) | ((addr) + (size)) | __ua_size(size)))) == 0) |
109 | 109 | ||
110 | #define access_ok(type, addr, size) \ | 110 | #define access_ok(type, addr, size) \ |
111 | likely(__access_ok((unsigned long)(addr), (size),__access_mask)) | 111 | likely(__access_ok((unsigned long)(addr), (size), __access_mask)) |
112 | 112 | ||
113 | /* | 113 | /* |
114 | * put_user: - Write a simple value into user space. | 114 | * put_user: - Write a simple value into user space. |
@@ -127,7 +127,7 @@ | |||
127 | * Returns zero on success, or -EFAULT on error. | 127 | * Returns zero on success, or -EFAULT on error. |
128 | */ | 128 | */ |
129 | #define put_user(x,ptr) \ | 129 | #define put_user(x,ptr) \ |
130 | __put_user_check((x),(ptr),sizeof(*(ptr))) | 130 | __put_user_check((x), (ptr), sizeof(*(ptr))) |
131 | 131 | ||
132 | /* | 132 | /* |
133 | * get_user: - Get a simple variable from user space. | 133 | * get_user: - Get a simple variable from user space. |
@@ -147,7 +147,7 @@ | |||
147 | * On error, the variable @x is set to zero. | 147 | * On error, the variable @x is set to zero. |
148 | */ | 148 | */ |
149 | #define get_user(x,ptr) \ | 149 | #define get_user(x,ptr) \ |
150 | __get_user_check((x),(ptr),sizeof(*(ptr))) | 150 | __get_user_check((x), (ptr), sizeof(*(ptr))) |
151 | 151 | ||
152 | /* | 152 | /* |
153 | * __put_user: - Write a simple value into user space, with less checking. | 153 | * __put_user: - Write a simple value into user space, with less checking. |
@@ -169,7 +169,7 @@ | |||
169 | * Returns zero on success, or -EFAULT on error. | 169 | * Returns zero on success, or -EFAULT on error. |
170 | */ | 170 | */ |
171 | #define __put_user(x,ptr) \ | 171 | #define __put_user(x,ptr) \ |
172 | __put_user_nocheck((x),(ptr),sizeof(*(ptr))) | 172 | __put_user_nocheck((x), (ptr), sizeof(*(ptr))) |
173 | 173 | ||
174 | /* | 174 | /* |
175 | * __get_user: - Get a simple variable from user space, with less checking. | 175 | * __get_user: - Get a simple variable from user space, with less checking. |
@@ -192,7 +192,7 @@ | |||
192 | * On error, the variable @x is set to zero. | 192 | * On error, the variable @x is set to zero. |
193 | */ | 193 | */ |
194 | #define __get_user(x,ptr) \ | 194 | #define __get_user(x,ptr) \ |
195 | __get_user_nocheck((x),(ptr),sizeof(*(ptr))) | 195 | __get_user_nocheck((x), (ptr), sizeof(*(ptr))) |
196 | 196 | ||
197 | struct __large_struct { unsigned long buf[100]; }; | 197 | struct __large_struct { unsigned long buf[100]; }; |
198 | #define __m(x) (*(struct __large_struct __user *)(x)) | 198 | #define __m(x) (*(struct __large_struct __user *)(x)) |
@@ -221,7 +221,7 @@ do { \ | |||
221 | } \ | 221 | } \ |
222 | } while (0) | 222 | } while (0) |
223 | 223 | ||
224 | #define __get_user_nocheck(x,ptr,size) \ | 224 | #define __get_user_nocheck(x, ptr, size) \ |
225 | ({ \ | 225 | ({ \ |
226 | long __gu_err; \ | 226 | long __gu_err; \ |
227 | \ | 227 | \ |
@@ -229,7 +229,7 @@ do { \ | |||
229 | __gu_err; \ | 229 | __gu_err; \ |
230 | }) | 230 | }) |
231 | 231 | ||
232 | #define __get_user_check(x,ptr,size) \ | 232 | #define __get_user_check(x, ptr, size) \ |
233 | ({ \ | 233 | ({ \ |
234 | long __gu_err = -EFAULT; \ | 234 | long __gu_err = -EFAULT; \ |
235 | const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); \ | 235 | const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); \ |
@@ -300,7 +300,7 @@ do { \ | |||
300 | #define __PUT_USER_DW(ptr) __put_user_asm("sd", ptr) | 300 | #define __PUT_USER_DW(ptr) __put_user_asm("sd", ptr) |
301 | #endif | 301 | #endif |
302 | 302 | ||
303 | #define __put_user_nocheck(x,ptr,size) \ | 303 | #define __put_user_nocheck(x, ptr, size) \ |
304 | ({ \ | 304 | ({ \ |
305 | __typeof__(*(ptr)) __pu_val; \ | 305 | __typeof__(*(ptr)) __pu_val; \ |
306 | long __pu_err = 0; \ | 306 | long __pu_err = 0; \ |
@@ -316,7 +316,7 @@ do { \ | |||
316 | __pu_err; \ | 316 | __pu_err; \ |
317 | }) | 317 | }) |
318 | 318 | ||
319 | #define __put_user_check(x,ptr,size) \ | 319 | #define __put_user_check(x, ptr, size) \ |
320 | ({ \ | 320 | ({ \ |
321 | __typeof__(*(ptr)) __user *__pu_addr = (ptr); \ | 321 | __typeof__(*(ptr)) __user *__pu_addr = (ptr); \ |
322 | __typeof__(*(ptr)) __pu_val = (x); \ | 322 | __typeof__(*(ptr)) __pu_val = (x); \ |
@@ -389,11 +389,11 @@ extern void __put_user_unknown(void); | |||
389 | 389 | ||
390 | extern size_t __copy_user(void *__to, const void *__from, size_t __n); | 390 | extern size_t __copy_user(void *__to, const void *__from, size_t __n); |
391 | 391 | ||
392 | #define __invoke_copy_to_user(to,from,n) \ | 392 | #define __invoke_copy_to_user(to, from, n) \ |
393 | ({ \ | 393 | ({ \ |
394 | register void __user *__cu_to_r __asm__ ("$4"); \ | 394 | register void __user *__cu_to_r __asm__("$4"); \ |
395 | register const void *__cu_from_r __asm__ ("$5"); \ | 395 | register const void *__cu_from_r __asm__("$5"); \ |
396 | register long __cu_len_r __asm__ ("$6"); \ | 396 | register long __cu_len_r __asm__("$6"); \ |
397 | \ | 397 | \ |
398 | __cu_to_r = (to); \ | 398 | __cu_to_r = (to); \ |
399 | __cu_from_r = (from); \ | 399 | __cu_from_r = (from); \ |
@@ -421,7 +421,7 @@ extern size_t __copy_user(void *__to, const void *__from, size_t __n); | |||
421 | * Returns number of bytes that could not be copied. | 421 | * Returns number of bytes that could not be copied. |
422 | * On success, this will be zero. | 422 | * On success, this will be zero. |
423 | */ | 423 | */ |
424 | #define __copy_to_user(to,from,n) \ | 424 | #define __copy_to_user(to, from, n) \ |
425 | ({ \ | 425 | ({ \ |
426 | void __user *__cu_to; \ | 426 | void __user *__cu_to; \ |
427 | const void *__cu_from; \ | 427 | const void *__cu_from; \ |
@@ -437,7 +437,7 @@ extern size_t __copy_user(void *__to, const void *__from, size_t __n); | |||
437 | 437 | ||
438 | extern size_t __copy_user_inatomic(void *__to, const void *__from, size_t __n); | 438 | extern size_t __copy_user_inatomic(void *__to, const void *__from, size_t __n); |
439 | 439 | ||
440 | #define __copy_to_user_inatomic(to,from,n) \ | 440 | #define __copy_to_user_inatomic(to, from, n) \ |
441 | ({ \ | 441 | ({ \ |
442 | void __user *__cu_to; \ | 442 | void __user *__cu_to; \ |
443 | const void *__cu_from; \ | 443 | const void *__cu_from; \ |
@@ -450,7 +450,7 @@ extern size_t __copy_user_inatomic(void *__to, const void *__from, size_t __n); | |||
450 | __cu_len; \ | 450 | __cu_len; \ |
451 | }) | 451 | }) |
452 | 452 | ||
453 | #define __copy_from_user_inatomic(to,from,n) \ | 453 | #define __copy_from_user_inatomic(to, from, n) \ |
454 | ({ \ | 454 | ({ \ |
455 | void *__cu_to; \ | 455 | void *__cu_to; \ |
456 | const void __user *__cu_from; \ | 456 | const void __user *__cu_from; \ |
@@ -477,7 +477,7 @@ extern size_t __copy_user_inatomic(void *__to, const void *__from, size_t __n); | |||
477 | * Returns number of bytes that could not be copied. | 477 | * Returns number of bytes that could not be copied. |
478 | * On success, this will be zero. | 478 | * On success, this will be zero. |
479 | */ | 479 | */ |
480 | #define copy_to_user(to,from,n) \ | 480 | #define copy_to_user(to, from, n) \ |
481 | ({ \ | 481 | ({ \ |
482 | void __user *__cu_to; \ | 482 | void __user *__cu_to; \ |
483 | const void *__cu_from; \ | 483 | const void *__cu_from; \ |
@@ -493,11 +493,11 @@ extern size_t __copy_user_inatomic(void *__to, const void *__from, size_t __n); | |||
493 | __cu_len; \ | 493 | __cu_len; \ |
494 | }) | 494 | }) |
495 | 495 | ||
496 | #define __invoke_copy_from_user(to,from,n) \ | 496 | #define __invoke_copy_from_user(to, from, n) \ |
497 | ({ \ | 497 | ({ \ |
498 | register void *__cu_to_r __asm__ ("$4"); \ | 498 | register void *__cu_to_r __asm__("$4"); \ |
499 | register const void __user *__cu_from_r __asm__ ("$5"); \ | 499 | register const void __user *__cu_from_r __asm__("$5"); \ |
500 | register long __cu_len_r __asm__ ("$6"); \ | 500 | register long __cu_len_r __asm__("$6"); \ |
501 | \ | 501 | \ |
502 | __cu_to_r = (to); \ | 502 | __cu_to_r = (to); \ |
503 | __cu_from_r = (from); \ | 503 | __cu_from_r = (from); \ |
@@ -516,11 +516,11 @@ extern size_t __copy_user_inatomic(void *__to, const void *__from, size_t __n); | |||
516 | __cu_len_r; \ | 516 | __cu_len_r; \ |
517 | }) | 517 | }) |
518 | 518 | ||
519 | #define __invoke_copy_from_user_inatomic(to,from,n) \ | 519 | #define __invoke_copy_from_user_inatomic(to, from, n) \ |
520 | ({ \ | 520 | ({ \ |
521 | register void *__cu_to_r __asm__ ("$4"); \ | 521 | register void *__cu_to_r __asm__("$4"); \ |
522 | register const void __user *__cu_from_r __asm__ ("$5"); \ | 522 | register const void __user *__cu_from_r __asm__("$5"); \ |
523 | register long __cu_len_r __asm__ ("$6"); \ | 523 | register long __cu_len_r __asm__("$6"); \ |
524 | \ | 524 | \ |
525 | __cu_to_r = (to); \ | 525 | __cu_to_r = (to); \ |
526 | __cu_from_r = (from); \ | 526 | __cu_from_r = (from); \ |
@@ -556,7 +556,7 @@ extern size_t __copy_user_inatomic(void *__to, const void *__from, size_t __n); | |||
556 | * If some data could not be copied, this function will pad the copied | 556 | * If some data could not be copied, this function will pad the copied |
557 | * data to the requested size using zero bytes. | 557 | * data to the requested size using zero bytes. |
558 | */ | 558 | */ |
559 | #define __copy_from_user(to,from,n) \ | 559 | #define __copy_from_user(to, from, n) \ |
560 | ({ \ | 560 | ({ \ |
561 | void *__cu_to; \ | 561 | void *__cu_to; \ |
562 | const void __user *__cu_from; \ | 562 | const void __user *__cu_from; \ |
@@ -587,7 +587,7 @@ extern size_t __copy_user_inatomic(void *__to, const void *__from, size_t __n); | |||
587 | * If some data could not be copied, this function will pad the copied | 587 | * If some data could not be copied, this function will pad the copied |
588 | * data to the requested size using zero bytes. | 588 | * data to the requested size using zero bytes. |
589 | */ | 589 | */ |
590 | #define copy_from_user(to,from,n) \ | 590 | #define copy_from_user(to, from, n) \ |
591 | ({ \ | 591 | ({ \ |
592 | void *__cu_to; \ | 592 | void *__cu_to; \ |
593 | const void __user *__cu_from; \ | 593 | const void __user *__cu_from; \ |
@@ -605,7 +605,7 @@ extern size_t __copy_user_inatomic(void *__to, const void *__from, size_t __n); | |||
605 | 605 | ||
606 | #define __copy_in_user(to, from, n) __copy_from_user(to, from, n) | 606 | #define __copy_in_user(to, from, n) __copy_from_user(to, from, n) |
607 | 607 | ||
608 | #define copy_in_user(to,from,n) \ | 608 | #define copy_in_user(to, from, n) \ |
609 | ({ \ | 609 | ({ \ |
610 | void __user *__cu_to; \ | 610 | void __user *__cu_to; \ |
611 | const void __user *__cu_from; \ | 611 | const void __user *__cu_from; \ |
diff --git a/include/asm-mips/unaligned.h b/include/asm-mips/unaligned.h index a004256383..3249049e93 100644 --- a/include/asm-mips/unaligned.h +++ b/include/asm-mips/unaligned.h | |||
@@ -3,12 +3,27 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (C) 1996, 1999, 2000, 2001, 2003 by Ralf Baechle | 6 | * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org) |
7 | * Copyright (C) 1999, 2000, 2001 Silicon Graphics, Inc. | ||
8 | */ | 7 | */ |
9 | #ifndef _ASM_UNALIGNED_H | 8 | #ifndef __ASM_GENERIC_UNALIGNED_H |
10 | #define _ASM_UNALIGNED_H | 9 | #define __ASM_GENERIC_UNALIGNED_H |
11 | 10 | ||
12 | #include <asm-generic/unaligned.h> | 11 | #include <linux/compiler.h> |
13 | 12 | ||
14 | #endif /* _ASM_UNALIGNED_H */ | 13 | #define get_unaligned(ptr) \ |
14 | ({ \ | ||
15 | struct __packed { \ | ||
16 | typeof(*(ptr)) __v; \ | ||
17 | } *__p = (void *) (ptr); \ | ||
18 | __p->__v; \ | ||
19 | }) | ||
20 | |||
21 | #define put_unaligned(val, ptr) \ | ||
22 | do { \ | ||
23 | struct __packed { \ | ||
24 | typeof(*(ptr)) __v; \ | ||
25 | } *__p = (void *) (ptr); \ | ||
26 | __p->__v = (val); \ | ||
27 | } while(0) | ||
28 | |||
29 | #endif /* __ASM_GENERIC_UNALIGNED_H */ | ||
diff --git a/include/asm-mips/vga.h b/include/asm-mips/vga.h index c1dd0b10bc..f4cff7e4fa 100644 --- a/include/asm-mips/vga.h +++ b/include/asm-mips/vga.h | |||
@@ -13,10 +13,10 @@ | |||
13 | * access the videoram directly without any black magic. | 13 | * access the videoram directly without any black magic. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #define VGA_MAP_MEM(x,s) (0xb0000000L + (unsigned long)(x)) | 16 | #define VGA_MAP_MEM(x, s) (0xb0000000L + (unsigned long)(x)) |
17 | 17 | ||
18 | #define vga_readb(x) (*(x)) | 18 | #define vga_readb(x) (*(x)) |
19 | #define vga_writeb(x,y) (*(y) = (x)) | 19 | #define vga_writeb(x, y) (*(y) = (x)) |
20 | 20 | ||
21 | #define VT_BUF_HAVE_RW | 21 | #define VT_BUF_HAVE_RW |
22 | /* | 22 | /* |
diff --git a/include/asm-mips/war.h b/include/asm-mips/war.h index c0715d0a6b..d2808edfd4 100644 --- a/include/asm-mips/war.h +++ b/include/asm-mips/war.h | |||
@@ -3,20 +3,22 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (C) 2002, 2004 by Ralf Baechle | 6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle |
7 | */ | 7 | */ |
8 | #ifndef _ASM_WAR_H | 8 | #ifndef _ASM_WAR_H |
9 | #define _ASM_WAR_H | 9 | #define _ASM_WAR_H |
10 | 10 | ||
11 | #include <war.h> | ||
11 | 12 | ||
12 | /* | 13 | /* |
13 | * Another R4600 erratum. Due to the lack of errata information the exact | 14 | * Another R4600 erratum. Due to the lack of errata information the exact |
14 | * technical details aren't known. I've experimentally found that disabling | 15 | * technical details aren't known. I've experimentally found that disabling |
15 | * interrupts during indexed I-cache flushes seems to be sufficient to deal | 16 | * interrupts during indexed I-cache flushes seems to be sufficient to deal |
16 | * with the issue. | 17 | * with the issue. |
17 | * | ||
18 | * #define R4600_V1_INDEX_ICACHEOP_WAR 1 | ||
19 | */ | 18 | */ |
19 | #ifndef R4600_V1_INDEX_ICACHEOP_WAR | ||
20 | #error Check setting of R4600_V1_INDEX_ICACHEOP_WAR for your platform | ||
21 | #endif | ||
20 | 22 | ||
21 | /* | 23 | /* |
22 | * Pleasures of the R4600 V1.x. Cite from the IDT R4600 V1.7 errata: | 24 | * Pleasures of the R4600 V1.x. Cite from the IDT R4600 V1.7 errata: |
@@ -43,9 +45,10 @@ | |||
43 | * nop | 45 | * nop |
44 | * nop | 46 | * nop |
45 | * cache Hit_Writeback_Invalidate_D | 47 | * cache Hit_Writeback_Invalidate_D |
46 | * | ||
47 | * #define R4600_V1_HIT_CACHEOP_WAR 1 | ||
48 | */ | 48 | */ |
49 | #ifndef R4600_V1_HIT_CACHEOP_WAR | ||
50 | #error Check setting of R4600_V1_HIT_CACHEOP_WAR for your platform | ||
51 | #endif | ||
49 | 52 | ||
50 | 53 | ||
51 | /* | 54 | /* |
@@ -58,32 +61,11 @@ | |||
58 | * by a load instruction to an uncached address to empty the response buffer." | 61 | * by a load instruction to an uncached address to empty the response buffer." |
59 | * (Revision 2.0 device errata from IDT available on http://www.idt.com/ | 62 | * (Revision 2.0 device errata from IDT available on http://www.idt.com/ |
60 | * in .pdf format.) | 63 | * in .pdf format.) |
61 | * | ||
62 | * #define R4600_V2_HIT_CACHEOP_WAR 1 | ||
63 | */ | ||
64 | |||
65 | /* | ||
66 | * R4600 CPU modules for the Indy come with both V1.7 and V2.0 processors. | ||
67 | */ | ||
68 | #ifdef CONFIG_SGI_IP22 | ||
69 | |||
70 | #define R4600_V1_INDEX_ICACHEOP_WAR 1 | ||
71 | #define R4600_V1_HIT_CACHEOP_WAR 1 | ||
72 | #define R4600_V2_HIT_CACHEOP_WAR 1 | ||
73 | |||
74 | #endif | ||
75 | |||
76 | /* | ||
77 | * But the RM200C seems to have been shipped only with V2.0 R4600s | ||
78 | */ | 64 | */ |
79 | #ifdef CONFIG_SNI_RM | 65 | #ifndef R4600_V2_HIT_CACHEOP_WAR |
80 | 66 | #error Check setting of R4600_V2_HIT_CACHEOP_WAR for your platform | |
81 | #define R4600_V2_HIT_CACHEOP_WAR 1 | ||
82 | |||
83 | #endif | 67 | #endif |
84 | 68 | ||
85 | #ifdef CONFIG_CPU_R5432 | ||
86 | |||
87 | /* | 69 | /* |
88 | * When an interrupt happens on a CP0 register read instruction, CPU may | 70 | * When an interrupt happens on a CP0 register read instruction, CPU may |
89 | * lock up or read corrupted values of CP0 registers after it enters | 71 | * lock up or read corrupted values of CP0 registers after it enters |
@@ -93,13 +75,10 @@ | |||
93 | * first thing in the exception handler, which breaks one of the | 75 | * first thing in the exception handler, which breaks one of the |
94 | * pre-conditions for this problem. | 76 | * pre-conditions for this problem. |
95 | */ | 77 | */ |
96 | #define R5432_CP0_INTERRUPT_WAR 1 | 78 | #ifndef R5432_CP0_INTERRUPT_WAR |
97 | 79 | #error Check setting of R5432_CP0_INTERRUPT_WAR for your platform | |
98 | #endif | 80 | #endif |
99 | 81 | ||
100 | #if defined(CONFIG_SB1_PASS_1_WORKAROUNDS) || \ | ||
101 | defined(CONFIG_SB1_PASS_2_WORKAROUNDS) | ||
102 | |||
103 | /* | 82 | /* |
104 | * Workaround for the Sibyte M3 errata the text of which can be found at | 83 | * Workaround for the Sibyte M3 errata the text of which can be found at |
105 | * | 84 | * |
@@ -110,13 +89,15 @@ | |||
110 | * will just return and take the exception again if the information was | 89 | * will just return and take the exception again if the information was |
111 | * found to be inconsistent. | 90 | * found to be inconsistent. |
112 | */ | 91 | */ |
113 | #define BCM1250_M3_WAR 1 | 92 | #ifndef BCM1250_M3_WAR |
93 | #error Check setting of BCM1250_M3_WAR for your platform | ||
94 | #endif | ||
114 | 95 | ||
115 | /* | 96 | /* |
116 | * This is a DUART workaround related to glitches around register accesses | 97 | * This is a DUART workaround related to glitches around register accesses |
117 | */ | 98 | */ |
118 | #define SIBYTE_1956_WAR 1 | 99 | #ifndef SIBYTE_1956_WAR |
119 | 100 | #error Check setting of SIBYTE_1956_WAR for your platform | |
120 | #endif | 101 | #endif |
121 | 102 | ||
122 | /* | 103 | /* |
@@ -131,9 +112,8 @@ | |||
131 | * Affects: | 112 | * Affects: |
132 | * MIPS 4K RTL revision <3.0, PRID revision <4 | 113 | * MIPS 4K RTL revision <3.0, PRID revision <4 |
133 | */ | 114 | */ |
134 | #if defined(CONFIG_MIPS_MALTA) || defined(CONFIG_MIPS_ATLAS) || \ | 115 | #ifndef MIPS4K_ICACHE_REFILL_WAR |
135 | defined(CONFIG_MIPS_SEAD) | 116 | #error Check setting of MIPS4K_ICACHE_REFILL_WAR for your platform |
136 | #define MIPS4K_ICACHE_REFILL_WAR 1 | ||
137 | #endif | 117 | #endif |
138 | 118 | ||
139 | /* | 119 | /* |
@@ -151,9 +131,8 @@ | |||
151 | * MIPS 5Kc,5Kf RTL revision <2.3, PRID revision <8 | 131 | * MIPS 5Kc,5Kf RTL revision <2.3, PRID revision <8 |
152 | * MIPS 20Kc RTL revision <4.0, PRID revision <? | 132 | * MIPS 20Kc RTL revision <4.0, PRID revision <? |
153 | */ | 133 | */ |
154 | #if defined(CONFIG_MIPS_MALTA) || defined(CONFIG_MIPS_ATLAS) || \ | 134 | #ifndef MIPS_CACHE_SYNC_WAR |
155 | defined(CONFIG_MIPS_SEAD) | 135 | #error Check setting of MIPS_CACHE_SYNC_WAR for your platform |
156 | #define MIPS_CACHE_SYNC_WAR 1 | ||
157 | #endif | 136 | #endif |
158 | 137 | ||
159 | /* | 138 | /* |
@@ -163,16 +142,16 @@ | |||
163 | * | 142 | * |
164 | * Workaround: do two phase flushing for Index_Invalidate_I | 143 | * Workaround: do two phase flushing for Index_Invalidate_I |
165 | */ | 144 | */ |
166 | #ifdef CONFIG_CPU_TX49XX | 145 | #ifndef TX49XX_ICACHE_INDEX_INV_WAR |
167 | #define TX49XX_ICACHE_INDEX_INV_WAR 1 | 146 | #error Check setting of TX49XX_ICACHE_INDEX_INV_WAR for your platform |
168 | #endif | 147 | #endif |
169 | 148 | ||
170 | /* | 149 | /* |
171 | * On the RM9000 there is a problem which makes the CreateDirtyExclusive | 150 | * On the RM9000 there is a problem which makes the CreateDirtyExclusive |
172 | * eache operation unusable on SMP systems. | 151 | * eache operation unusable on SMP systems. |
173 | */ | 152 | */ |
174 | #if defined(CONFIG_PMC_YOSEMITE) || defined(CONFIG_BASLER_EXCITE) | 153 | #ifndef RM9000_CDEX_SMP_WAR |
175 | #define RM9000_CDEX_SMP_WAR 1 | 154 | #error Check setting of RM9000_CDEX_SMP_WAR for your platform |
176 | #endif | 155 | #endif |
177 | 156 | ||
178 | /* | 157 | /* |
@@ -181,69 +160,23 @@ | |||
181 | * I-cache line worth of instructions being fetched may case spurious | 160 | * I-cache line worth of instructions being fetched may case spurious |
182 | * exceptions. | 161 | * exceptions. |
183 | */ | 162 | */ |
184 | #if defined(CONFIG_BASLER_EXCITE) || defined(CONFIG_MIPS_ATLAS) || \ | 163 | #ifndef ICACHE_REFILLS_WORKAROUND_WAR |
185 | defined(CONFIG_MIPS_MALTA) || defined(CONFIG_PMC_YOSEMITE) || \ | 164 | #error Check setting of ICACHE_REFILLS_WORKAROUND_WAR for your platform |
186 | defined(CONFIG_SGI_IP32) || defined(CONFIG_WR_PPMC) | ||
187 | #define ICACHE_REFILLS_WORKAROUND_WAR 1 | ||
188 | #endif | 165 | #endif |
189 | 166 | ||
190 | /* | 167 | /* |
191 | * On the R10000 upto version 2.6 (not sure about 2.7) there is a bug that | 168 | * On the R10000 upto version 2.6 (not sure about 2.7) there is a bug that |
192 | * may cause ll / sc and lld / scd sequences to execute non-atomically. | 169 | * may cause ll / sc and lld / scd sequences to execute non-atomically. |
193 | */ | 170 | */ |
194 | #ifdef CONFIG_SGI_IP27 | 171 | #ifndef R10000_LLSC_WAR |
195 | #define R10000_LLSC_WAR 1 | 172 | #error Check setting of R10000_LLSC_WAR for your platform |
196 | #endif | 173 | #endif |
197 | 174 | ||
198 | /* | 175 | /* |
199 | * 34K core erratum: "Problems Executing the TLBR Instruction" | 176 | * 34K core erratum: "Problems Executing the TLBR Instruction" |
200 | */ | 177 | */ |
201 | #if defined(CONFIG_PMC_MSP7120_EVAL) || defined(CONFIG_PMC_MSP7120_GW) || \ | ||
202 | defined(CONFIG_PMC_MSP7120_FPGA) | ||
203 | #define MIPS34K_MISSED_ITLB_WAR 1 | ||
204 | #endif | ||
205 | |||
206 | /* | ||
207 | * Workarounds default to off | ||
208 | */ | ||
209 | #ifndef ICACHE_REFILLS_WORKAROUND_WAR | ||
210 | #define ICACHE_REFILLS_WORKAROUND_WAR 0 | ||
211 | #endif | ||
212 | #ifndef R4600_V1_INDEX_ICACHEOP_WAR | ||
213 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | ||
214 | #endif | ||
215 | #ifndef R4600_V1_HIT_CACHEOP_WAR | ||
216 | #define R4600_V1_HIT_CACHEOP_WAR 0 | ||
217 | #endif | ||
218 | #ifndef R4600_V2_HIT_CACHEOP_WAR | ||
219 | #define R4600_V2_HIT_CACHEOP_WAR 0 | ||
220 | #endif | ||
221 | #ifndef R5432_CP0_INTERRUPT_WAR | ||
222 | #define R5432_CP0_INTERRUPT_WAR 0 | ||
223 | #endif | ||
224 | #ifndef BCM1250_M3_WAR | ||
225 | #define BCM1250_M3_WAR 0 | ||
226 | #endif | ||
227 | #ifndef SIBYTE_1956_WAR | ||
228 | #define SIBYTE_1956_WAR 0 | ||
229 | #endif | ||
230 | #ifndef MIPS4K_ICACHE_REFILL_WAR | ||
231 | #define MIPS4K_ICACHE_REFILL_WAR 0 | ||
232 | #endif | ||
233 | #ifndef MIPS_CACHE_SYNC_WAR | ||
234 | #define MIPS_CACHE_SYNC_WAR 0 | ||
235 | #endif | ||
236 | #ifndef TX49XX_ICACHE_INDEX_INV_WAR | ||
237 | #define TX49XX_ICACHE_INDEX_INV_WAR 0 | ||
238 | #endif | ||
239 | #ifndef RM9000_CDEX_SMP_WAR | ||
240 | #define RM9000_CDEX_SMP_WAR 0 | ||
241 | #endif | ||
242 | #ifndef R10000_LLSC_WAR | ||
243 | #define R10000_LLSC_WAR 0 | ||
244 | #endif | ||
245 | #ifndef MIPS34K_MISSED_ITLB_WAR | 178 | #ifndef MIPS34K_MISSED_ITLB_WAR |
246 | #define MIPS34K_MISSED_ITLB_WAR 0 | 179 | #error Check setting of MIPS34K_MISSED_ITLB_WAR for your platform |
247 | #endif | 180 | #endif |
248 | 181 | ||
249 | #endif /* _ASM_WAR_H */ | 182 | #endif /* _ASM_WAR_H */ |
diff --git a/include/asm-mips/xtalk/xtalk.h b/include/asm-mips/xtalk/xtalk.h index 4a60f27c88..79bac882a7 100644 --- a/include/asm-mips/xtalk/xtalk.h +++ b/include/asm-mips/xtalk/xtalk.h | |||
@@ -45,7 +45,7 @@ typedef struct xtalk_piomap_s *xtalk_piomap_t; | |||
45 | #define XIO_PACKED(x) (((x)&XIO_PORT_BITS) != 0) | 45 | #define XIO_PACKED(x) (((x)&XIO_PORT_BITS) != 0) |
46 | #define XIO_ADDR(x) ((x)&XIO_ADDR_BITS) | 46 | #define XIO_ADDR(x) ((x)&XIO_ADDR_BITS) |
47 | #define XIO_PORT(x) ((xwidgetnum_t)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT)) | 47 | #define XIO_PORT(x) ((xwidgetnum_t)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT)) |
48 | #define XIO_PACK(p,o) ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS)) | 48 | #define XIO_PACK(p, o) ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS)) |
49 | 49 | ||
50 | #endif /* !__ASSEMBLY__ */ | 50 | #endif /* !__ASSEMBLY__ */ |
51 | 51 | ||