xref: /openbmc/linux/arch/mips/include/asm/prom.h (revision 8e774e02)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  *  arch/mips/include/asm/prom.h
4  *
5  *  Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com>
6  */
7 #ifndef __ASM_PROM_H
8 #define __ASM_PROM_H
9 
10 #ifdef CONFIG_USE_OF
11 #include <linux/bug.h>
12 #include <linux/io.h>
13 #include <linux/types.h>
14 #include <asm/bootinfo.h>
15 
16 extern void device_tree_init(void);
17 
18 struct boot_param_header;
19 
20 extern void __dt_setup_arch(void *bph);
21 extern int __dt_register_buses(const char *bus0, const char *bus1);
22 
23 #else /* CONFIG_OF */
24 static inline void device_tree_init(void) { }
25 #endif /* CONFIG_OF */
26 
27 extern char *mips_get_machine_name(void);
28 extern void mips_set_machine_name(const char *name);
29 
30 #endif /* __ASM_PROM_H */
31