Linux 3.15-rc1
[linux/fpc-iii.git] / arch / mips / include / asm / prom.h
blobccd2b75f152cce2b1715d60df51af7b83020c1d1
1 /*
2 * arch/mips/include/asm/prom.h
4 * Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #ifndef __ASM_PROM_H
12 #define __ASM_PROM_H
14 #ifdef CONFIG_OF
15 #include <linux/bug.h>
16 #include <linux/io.h>
17 #include <linux/types.h>
18 #include <asm/bootinfo.h>
20 extern void device_tree_init(void);
22 struct boot_param_header;
24 extern void __dt_setup_arch(struct boot_param_header *bph);
26 #define dt_setup_arch(sym) \
27 ({ \
28 extern struct boot_param_header __dtb_##sym##_begin; \
30 __dt_setup_arch(&__dtb_##sym##_begin); \
33 #else /* CONFIG_OF */
34 static inline void device_tree_init(void) { }
35 #endif /* CONFIG_OF */
37 extern char *mips_get_machine_name(void);
38 extern void mips_set_machine_name(const char *name);
40 #endif /* __ASM_PROM_H */