prom.h 819 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * arch/arm/include/asm/prom.h
  3. *
  4. * Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com>
  5. *
  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.
  9. *
  10. */
  11. #ifndef __ASMARM_PROM_H
  12. #define __ASMARM_PROM_H
  13. #ifdef CONFIG_OF
  14. #include <asm/setup.h>
  15. #include <asm/irq.h>
  16. static inline void irq_dispose_mapping(unsigned int virq)
  17. {
  18. return;
  19. }
  20. extern struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
  21. extern void arm_dt_memblock_reserve(void);
  22. #else /* CONFIG_OF */
  23. static inline struct machine_desc *setup_machine_fdt(unsigned int dt_phys)
  24. {
  25. return NULL;
  26. }
  27. static inline void arm_dt_memblock_reserve(void) { }
  28. #endif /* CONFIG_OF */
  29. #endif /* ASMARM_PROM_H */