mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
68e0aa8ec5
The ultravisor (UV) provides an in-memory console which follows the OPAL in-memory console structure. This patch extends the OPAL msglog code to initialize the UV memory console and provide the "/sys/firmware/ultravisor/msglog" interface for userspace to view the UV message log. Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Tested-by: Claudio Carvalho <cclaudio@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190828130521.26764-2-mpe@ellerman.id.au
39 lines
966 B
C
39 lines
966 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _POWERNV_H
|
|
#define _POWERNV_H
|
|
|
|
#ifdef CONFIG_SMP
|
|
extern void pnv_smp_init(void);
|
|
#else
|
|
static inline void pnv_smp_init(void) { }
|
|
#endif
|
|
|
|
extern void pnv_platform_error_reboot(struct pt_regs *regs, const char *msg) __noreturn;
|
|
|
|
struct pci_dev;
|
|
|
|
#ifdef CONFIG_PCI
|
|
extern void pnv_pci_init(void);
|
|
extern void pnv_pci_shutdown(void);
|
|
#else
|
|
static inline void pnv_pci_init(void) { }
|
|
static inline void pnv_pci_shutdown(void) { }
|
|
#endif
|
|
|
|
extern u32 pnv_get_supported_cpuidle_states(void);
|
|
|
|
extern void pnv_lpc_init(void);
|
|
|
|
extern void opal_handle_events(void);
|
|
extern bool opal_have_pending_events(void);
|
|
extern void opal_event_shutdown(void);
|
|
|
|
bool cpu_core_split_required(void);
|
|
|
|
struct memcons;
|
|
ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count);
|
|
u32 memcons_get_size(struct memcons *mc);
|
|
struct memcons *memcons_init(struct device_node *node, const char *mc_prop_name);
|
|
|
|
#endif /* _POWERNV_H */
|