aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/prom.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include/asm/prom.h')
-rw-r--r--arch/mips/include/asm/prom.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/arch/mips/include/asm/prom.h b/arch/mips/include/asm/prom.h
index 7a6e82ef449..a9494c0141f 100644
--- a/arch/mips/include/asm/prom.h
+++ b/arch/mips/include/asm/prom.h
@@ -12,17 +12,29 @@
#define __ASM_PROM_H
#ifdef CONFIG_OF
+#include <linux/bug.h>
+#include <linux/io.h>
+#include <linux/types.h>
#include <asm/bootinfo.h>
-extern int early_init_dt_scan_memory_arch(unsigned long node,
- const char *uname, int depth, void *data);
+extern void device_tree_init(void);
-extern int reserve_mem_mach(unsigned long addr, unsigned long size);
-extern void free_mem_mach(unsigned long addr, unsigned long size);
+struct boot_param_header;
+
+extern void __dt_setup_arch(void *bph);
+
+#define dt_setup_arch(sym) \
+({ \
+ extern char __dtb_##sym##_begin[]; \
+ \
+ __dt_setup_arch(__dtb_##sym##_begin); \
+})
-extern void device_tree_init(void);
#else /* CONFIG_OF */
static inline void device_tree_init(void) { }
#endif /* CONFIG_OF */
+extern char *mips_get_machine_name(void);
+extern void mips_set_machine_name(const char *name);
+
#endif /* __ASM_PROM_H */