equal
deleted
inserted
replaced
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * NTT Docomo, Inc : BUG 1296 |
13 * NTT DOCOMO, INC : BUG 1296 |
|
14 * NTT DOCOMO, INC : BUG 3598 |
14 * NTT DOCOMO, INC - Fix for bug 1291 "E32test t_tock.exe failed to load Logical Device" |
15 * NTT DOCOMO, INC - Fix for bug 1291 "E32test t_tock.exe failed to load Logical Device" |
15 * |
16 * |
16 * Description: |
17 * Description: |
17 * |
18 * |
18 */ |
19 */ |
131 // Debug Port Specific |
132 // Debug Port Specific |
132 IMPORT_C static TUint32 DebugPortAddr(); |
133 IMPORT_C static TUint32 DebugPortAddr(); |
133 IMPORT_C static void MarkDebugPortOff(); |
134 IMPORT_C static void MarkDebugPortOff(); |
134 }; |
135 }; |
135 |
136 |
136 static inline TUint32 ReadReg(TUint32 base, TUint8 aReg) |
137 static inline TUint32 ReadReg(TUint32 base, TUint32 aReg) |
137 { |
138 { |
138 return *(volatile TUint32 *)(base + (aReg << 2)); |
139 return *(volatile TUint32 *)(base + (aReg << 2)); |
139 } |
140 } |
140 |
141 |
141 static inline void WriteReg(TUint32 base, TUint8 aReg, TUint32 aVal) |
142 static inline void WriteReg(TUint32 base, TUint32 aReg, TUint32 aVal) |
142 { |
143 { |
143 *(volatile TUint32*)(base + (aReg<<2)) = aVal; |
144 *(volatile TUint32*)(base + (aReg<<2)) = aVal; |
144 } |
145 } |
145 |
146 |
146 #endif // __SYBORG_H__ |
147 #endif // __SYBORG_H__ |