setup.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _ASM_POWERPC_SETUP_H
  2. #define _ASM_POWERPC_SETUP_H
  3. #include <uapi/asm/setup.h>
  4. #ifndef __ASSEMBLY__
  5. extern void ppc_printk_progress(char *s, unsigned short hex);
  6. extern unsigned int rtas_data;
  7. extern unsigned long long memory_limit;
  8. extern unsigned long klimit;
  9. extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
  10. struct device_node;
  11. extern void note_scsi_host(struct device_node *, void *);
  12. /* Used in very early kernel initialization. */
  13. extern unsigned long reloc_offset(void);
  14. extern unsigned long add_reloc_offset(unsigned long);
  15. extern void reloc_got2(unsigned long);
  16. #define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x)))
  17. void check_for_initrd(void);
  18. void initmem_init(void);
  19. void setup_panic(void);
  20. #define ARCH_PANIC_TIMEOUT 180
  21. #ifdef CONFIG_PPC_PSERIES
  22. extern void pseries_enable_reloc_on_exc(void);
  23. extern void pseries_disable_reloc_on_exc(void);
  24. extern void pseries_big_endian_exceptions(void);
  25. extern void pseries_little_endian_exceptions(void);
  26. #else
  27. static inline void pseries_enable_reloc_on_exc(void) {}
  28. static inline void pseries_disable_reloc_on_exc(void) {}
  29. static inline void pseries_big_endian_exceptions(void) {}
  30. static inline void pseries_little_endian_exceptions(void) {}
  31. #endif /* CONFIG_PPC_PSERIES */
  32. #endif /* !__ASSEMBLY__ */
  33. #endif /* _ASM_POWERPC_SETUP_H */