prom.h 706 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * arch/mips/include/asm/prom.h
  4. *
  5. * Copyright (C) 2010 Cisco Systems Inc. <[email protected]>
  6. */
  7. #ifndef __ASM_PROM_H
  8. #define __ASM_PROM_H
  9. #ifdef CONFIG_USE_OF
  10. #include <linux/bug.h>
  11. #include <linux/io.h>
  12. #include <linux/types.h>
  13. #include <asm/bootinfo.h>
  14. extern void device_tree_init(void);
  15. struct boot_param_header;
  16. extern void __dt_setup_arch(void *bph);
  17. extern int __dt_register_buses(const char *bus0, const char *bus1);
  18. #else /* !CONFIG_USE_OF */
  19. static inline void device_tree_init(void) { }
  20. #endif /* !CONFIG_USE_OF */
  21. extern char *mips_get_machine_name(void);
  22. extern void mips_set_machine_name(const char *name);
  23. #endif /* __ASM_PROM_H */