forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/powerpc/platforms/powernv/powernv.h
....@@ -2,6 +2,13 @@
22 #ifndef _POWERNV_H
33 #define _POWERNV_H
44
5
+/*
6
+ * There's various hacks scattered throughout the generic powerpc arch code
7
+ * that needs to call into powernv platform stuff. The prototypes for those
8
+ * functions are in asm/powernv.h
9
+ */
10
+#include <asm/powernv.h>
11
+
512 #ifdef CONFIG_SMP
613 extern void pnv_smp_init(void);
714 #else
....@@ -30,4 +37,11 @@
3037
3138 bool cpu_core_split_required(void);
3239
40
+struct memcons;
41
+ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count);
42
+u32 memcons_get_size(struct memcons *mc);
43
+struct memcons *memcons_init(struct device_node *node, const char *mc_prop_name);
44
+
45
+void pnv_rng_init(void);
46
+
3347 #endif /* _POWERNV_H */