hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/acpi/platform/aclinux.h
....@@ -3,7 +3,7 @@
33 *
44 * Name: aclinux.h - OS specific defines, etc. for Linux
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -33,6 +33,10 @@
3333
3434 /* Kernel specific ACPICA configuration */
3535
36
+#ifdef CONFIG_PCI
37
+#define ACPI_PCI_CONFIGURED
38
+#endif
39
+
3640 #ifdef CONFIG_ACPI_REDUCED_HARDWARE_ONLY
3741 #define ACPI_REDUCED_HARDWARE 1
3842 #endif
....@@ -61,6 +65,11 @@
6165 #endif
6266
6367 #define ACPI_INIT_FUNCTION __init
68
+
69
+/* Use a specific bugging default separate from ACPICA */
70
+
71
+#undef ACPI_DEBUG_DEFAULT
72
+#define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR)
6473
6574 #ifndef CONFIG_ACPI
6675
....@@ -108,6 +117,10 @@
108117 /* Use native linux version of acpi_os_allocate_zeroed */
109118
110119 #define USE_NATIVE_ALLOCATE_ZEROED
120
+
121
+/* Use logical addresses for accessing GPE registers in system memory */
122
+
123
+#define ACPI_GPE_USE_LOGICAL_ADDRESSES
111124
112125 /*
113126 * Overrides for in-kernel ACPICA
....@@ -181,7 +194,8 @@
181194
182195 #if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\
183196 defined(__aarch64__) || defined(__PPC64__) ||\
184
- defined(__s390x__)
197
+ defined(__s390x__) ||\
198
+ (defined(__riscv) && (defined(__LP64__) || defined(_LP64)))
185199 #define ACPI_MACHINE_WIDTH 64
186200 #define COMPILER_DEPENDENT_INT64 long
187201 #define COMPILER_DEPENDENT_UINT64 unsigned long