hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/powerpc/include/asm/machdep.h
....@@ -1,13 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 #ifndef _ASM_POWERPC_MACHDEP_H
23 #define _ASM_POWERPC_MACHDEP_H
34 #ifdef __KERNEL__
4
-
5
-/*
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
10
- */
115
126 #include <linux/seq_file.h>
137 #include <linux/init.h>
....@@ -34,10 +28,6 @@
3428 struct machdep_calls {
3529 char *name;
3630 #ifdef CONFIG_PPC64
37
- void __iomem * (*ioremap)(phys_addr_t addr, unsigned long size,
38
- unsigned long flags, void *caller);
39
- void (*iounmap)(volatile void __iomem *token);
40
-
4131 #ifdef CONFIG_PM
4232 void (*iommu_save)(void);
4333 void (*iommu_restore)(void);
....@@ -47,9 +37,7 @@
4737 #endif
4838 #endif /* CONFIG_PPC64 */
4939
50
- /* Platform set_dma_mask and dma_get_required_mask overrides */
51
- int (*dma_set_mask)(struct device *dev, u64 dma_mask);
52
- u64 (*dma_get_required_mask)(struct device *dev);
40
+ void (*dma_set_mask)(struct device *dev, u64 dma_mask);
5341
5442 int (*probe)(void);
5543 void (*setup_arch)(void); /* Optional, may be NULL */
....@@ -80,7 +68,6 @@
8068 void __noreturn (*restart)(char *cmd);
8169 void __noreturn (*halt)(void);
8270 void (*panic)(char *str);
83
- void (*cpu_die)(void);
8471
8572 long (*time_init)(void); /* Optional, may be NULL */
8673
....@@ -111,6 +98,7 @@
11198
11299 /* Early exception handlers called in realmode */
113100 int (*hmi_exception_early)(struct pt_regs *regs);
101
+ long (*machine_check_early)(struct pt_regs *regs);
114102
115103 /* Called during machine check exception to retrive fixup address. */
116104 bool (*mce_check_early_recovery)(struct pt_regs *regs);
....@@ -145,7 +133,7 @@
145133 unsigned long dabrx);
146134
147135 /* Set DAWR for this platform, leave empty for default implementation */
148
- int (*set_dawr)(unsigned long dawr,
136
+ int (*set_dawr)(int nr, unsigned long dawr,
149137 unsigned long dawrx);
150138
151139 #ifdef CONFIG_PPC32 /* XXX for now */
....@@ -236,8 +224,6 @@
236224
237225 extern void e500_idle(void);
238226 extern void power4_idle(void);
239
-extern void power7_idle(void);
240
-extern void power9_idle(void);
241227 extern void ppc6xx_idle(void);
242228 extern void book3e_idle(void);
243229
....@@ -249,7 +235,7 @@
249235 extern struct machdep_calls ppc_md;
250236 extern struct machdep_calls *machine_id;
251237
252
-#define __machine_desc __attribute__ ((__section__ (".machine.desc")))
238
+#define __machine_desc __section(".machine.desc")
253239
254240 #define define_machine(name) \
255241 extern struct machdep_calls mach_##name; \