Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *  arch/mips/include/asm/prom.h
0004  *
0005  *  Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com>
0006  */
0007 #ifndef __ASM_PROM_H
0008 #define __ASM_PROM_H
0009 
0010 #ifdef CONFIG_USE_OF
0011 #include <linux/bug.h>
0012 #include <linux/io.h>
0013 #include <linux/types.h>
0014 #include <asm/bootinfo.h>
0015 
0016 extern void device_tree_init(void);
0017 
0018 struct boot_param_header;
0019 
0020 extern void __dt_setup_arch(void *bph);
0021 extern int __dt_register_buses(const char *bus0, const char *bus1);
0022 
0023 #else /* !CONFIG_USE_OF */
0024 static inline void device_tree_init(void) { }
0025 #endif /* !CONFIG_USE_OF */
0026 
0027 extern char *mips_get_machine_name(void);
0028 extern void mips_set_machine_name(const char *name);
0029 
0030 #endif /* __ASM_PROM_H */