Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v4.14-rc2 43 lines 1.3 kB view raw
1#ifndef _ASM_POWERPC_SETUP_H 2#define _ASM_POWERPC_SETUP_H 3 4#include <uapi/asm/setup.h> 5 6#ifndef __ASSEMBLY__ 7extern void ppc_printk_progress(char *s, unsigned short hex); 8 9extern unsigned int rtas_data; 10extern unsigned long long memory_limit; 11extern unsigned long klimit; 12extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask); 13 14struct device_node; 15extern void note_scsi_host(struct device_node *, void *); 16 17/* Used in very early kernel initialization. */ 18extern unsigned long reloc_offset(void); 19extern unsigned long add_reloc_offset(unsigned long); 20extern void reloc_got2(unsigned long); 21 22#define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x))) 23 24void check_for_initrd(void); 25void initmem_init(void); 26#define ARCH_PANIC_TIMEOUT 180 27 28#ifdef CONFIG_PPC_PSERIES 29extern void pseries_enable_reloc_on_exc(void); 30extern void pseries_disable_reloc_on_exc(void); 31extern void pseries_big_endian_exceptions(void); 32extern void pseries_little_endian_exceptions(void); 33#else 34static inline void pseries_enable_reloc_on_exc(void) {} 35static inline void pseries_disable_reloc_on_exc(void) {} 36static inline void pseries_big_endian_exceptions(void) {} 37static inline void pseries_little_endian_exceptions(void) {} 38#endif /* CONFIG_PPC_PSERIES */ 39 40#endif /* !__ASSEMBLY__ */ 41 42#endif /* _ASM_POWERPC_SETUP_H */ 43