hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/powerpc/platforms/pseries/pseries.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright 2006 IBM Corporation.
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106 #ifndef _PSERIES_PSERIES_H
....@@ -24,6 +20,7 @@
2420
2521 extern int pSeries_system_reset_exception(struct pt_regs *regs);
2622 extern int pSeries_machine_check_exception(struct pt_regs *regs);
23
+extern long pseries_machine_check_realmode(struct pt_regs *regs);
2724
2825 #ifdef CONFIG_SMP
2926 extern void smp_init_pseries(void);
....@@ -59,12 +56,18 @@
5956 extern int dlpar_acquire_drc(u32 drc_index);
6057 extern int dlpar_release_drc(u32 drc_index);
6158
62
-void queue_hotplug_event(struct pseries_hp_errorlog *hp_errlog,
63
- struct completion *hotplug_done, int *rc);
59
+void queue_hotplug_event(struct pseries_hp_errorlog *hp_errlog);
60
+int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_errlog);
61
+
6462 #ifdef CONFIG_MEMORY_HOTPLUG
6563 int dlpar_memory(struct pseries_hp_errorlog *hp_elog);
64
+int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog);
6665 #else
6766 static inline int dlpar_memory(struct pseries_hp_errorlog *hp_elog)
67
+{
68
+ return -EOPNOTSUPP;
69
+}
70
+static inline int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog)
6871 {
6972 return -EOPNOTSUPP;
7073 }
....@@ -108,6 +111,9 @@
108111
109112 int dlpar_workqueue_init(void);
110113
111
-void pseries_setup_rfi_flush(void);
114
+void pseries_setup_security_mitigations(void);
115
+void pseries_lpar_read_hblkrm_characteristics(void);
116
+
117
+void pseries_rng_init(void);
112118
113119 #endif /* _PSERIES_PSERIES_H */