setup.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. void rfi_flush_enable(bool enable);
  33. /* These are bit flags */
  34. enum l1d_flush_type {
  35. L1D_FLUSH_NONE = 0x1,
  36. L1D_FLUSH_FALLBACK = 0x2,
  37. L1D_FLUSH_ORI = 0x4,
  38. L1D_FLUSH_MTTRIG = 0x8,
  39. };
  40. void setup_rfi_flush(enum l1d_flush_type, bool enable);
  41. void do_rfi_flush_fixups(enum l1d_flush_type types);
  42. #endif /* !__ASSEMBLY__ */
  43. #endif /* _ASM_POWERPC_SETUP_H */