Commit | Line | Data |
---|---|---|
d2912cb1 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
f2ffa5ab DD |
2 | /* |
3 | * arch/mips/include/asm/prom.h | |
4 | * | |
5 | * Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com> | |
f2ffa5ab | 6 | */ |
dd5d1380 RB |
7 | #ifndef __ASM_PROM_H |
8 | #define __ASM_PROM_H | |
f2ffa5ab | 9 | |
01306aea | 10 | #ifdef CONFIG_USE_OF |
0a4c531c RB |
11 | #include <linux/bug.h> |
12 | #include <linux/io.h> | |
13 | #include <linux/types.h> | |
f2ffa5ab DD |
14 | #include <asm/bootinfo.h> |
15 | ||
4c60071c | 16 | extern void device_tree_init(void); |
0a4c531c | 17 | |
7d6168e5 RB |
18 | struct boot_param_header; |
19 | ||
0cdde839 | 20 | extern void __dt_setup_arch(void *bph); |
84988c06 | 21 | extern int __dt_register_buses(const char *bus0, const char *bus1); |
7d6168e5 | 22 | |
f2ffa5ab | 23 | #else /* CONFIG_OF */ |
4c60071c | 24 | static inline void device_tree_init(void) { } |
f2ffa5ab DD |
25 | #endif /* CONFIG_OF */ |
26 | ||
9169a5d0 JC |
27 | extern char *mips_get_machine_name(void); |
28 | extern void mips_set_machine_name(const char *name); | |
29 | ||
dd5d1380 | 30 | #endif /* __ASM_PROM_H */ |