aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/include/asm/prom.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/microblaze/include/asm/prom.h b/arch/microblaze/include/asm/prom.h
index 180d84481306..d4f57ffdae3f 100644
--- a/arch/microblaze/include/asm/prom.h
+++ b/arch/microblaze/include/asm/prom.h
@@ -82,18 +82,6 @@ extern int release_OF_resource(struct device_node *node, int index);
82 * OF address retreival & translation 82 * OF address retreival & translation
83 */ 83 */
84 84
85/* Helper to read a big number; size is in cells (not bytes) */
86static inline u64 of_read_number(const u32 *cell, int size)
87{
88 u64 r = 0;
89 while (size--)
90 r = (r << 32) | *(cell++);
91 return r;
92}
93
94/* Like of_read_number, but we want an unsigned long result */
95#define of_read_ulong(cell, size) of_read_number(cell, size)
96
97/* Translate an OF address block into a CPU physical address 85/* Translate an OF address block into a CPU physical address
98 */ 86 */
99extern u64 of_translate_address(struct device_node *np, const u32 *addr); 87extern u64 of_translate_address(struct device_node *np, const u32 *addr);