Path: blob/master/arch/powerpc/platforms/powernv/powernv.h
26481 views
/* SPDX-License-Identifier: GPL-2.0 */1#ifndef _POWERNV_H2#define _POWERNV_H34/*5* There's various hacks scattered throughout the generic powerpc arch code6* that needs to call into powernv platform stuff. The prototypes for those7* functions are in asm/powernv.h8*/9#include <asm/powernv.h>1011#ifdef CONFIG_SMP12extern void pnv_smp_init(void);13#else14static inline void pnv_smp_init(void) { }15#endif1617extern void pnv_platform_error_reboot(struct pt_regs *regs, const char *msg) __noreturn;1819struct pci_dev;2021#ifdef CONFIG_PCI22extern void pnv_pci_init(void);23extern void pnv_pci_shutdown(void);24#else25static inline void pnv_pci_init(void) { }26static inline void pnv_pci_shutdown(void) { }27#endif2829extern u32 pnv_get_supported_cpuidle_states(void);3031extern void pnv_lpc_init(void);3233extern void opal_handle_events(void);34extern bool opal_have_pending_events(void);35extern void opal_event_shutdown(void);3637bool cpu_core_split_required(void);3839struct memcons;40ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count);41u32 __init memcons_get_size(struct memcons *mc);42struct memcons *__init memcons_init(struct device_node *node, const char *mc_prop_name);4344void pnv_rng_init(void);4546#endif /* _POWERNV_H */474849