| .. | .. |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Name: aclinux.h - OS specific defines, etc. for Linux |
|---|
| 5 | 5 | * |
|---|
| 6 | | - * Copyright (C) 2000 - 2018, Intel Corp. |
|---|
| 6 | + * Copyright (C) 2000 - 2020, Intel Corp. |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | *****************************************************************************/ |
|---|
| 9 | 9 | |
|---|
| .. | .. |
|---|
| 33 | 33 | |
|---|
| 34 | 34 | /* Kernel specific ACPICA configuration */ |
|---|
| 35 | 35 | |
|---|
| 36 | +#ifdef CONFIG_PCI |
|---|
| 37 | +#define ACPI_PCI_CONFIGURED |
|---|
| 38 | +#endif |
|---|
| 39 | + |
|---|
| 36 | 40 | #ifdef CONFIG_ACPI_REDUCED_HARDWARE_ONLY |
|---|
| 37 | 41 | #define ACPI_REDUCED_HARDWARE 1 |
|---|
| 38 | 42 | #endif |
|---|
| .. | .. |
|---|
| 61 | 65 | #endif |
|---|
| 62 | 66 | |
|---|
| 63 | 67 | #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) |
|---|
| 64 | 73 | |
|---|
| 65 | 74 | #ifndef CONFIG_ACPI |
|---|
| 66 | 75 | |
|---|
| .. | .. |
|---|
| 108 | 117 | /* Use native linux version of acpi_os_allocate_zeroed */ |
|---|
| 109 | 118 | |
|---|
| 110 | 119 | #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 |
|---|
| 111 | 124 | |
|---|
| 112 | 125 | /* |
|---|
| 113 | 126 | * Overrides for in-kernel ACPICA |
|---|
| .. | .. |
|---|
| 181 | 194 | |
|---|
| 182 | 195 | #if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\ |
|---|
| 183 | 196 | defined(__aarch64__) || defined(__PPC64__) ||\ |
|---|
| 184 | | - defined(__s390x__) |
|---|
| 197 | + defined(__s390x__) ||\ |
|---|
| 198 | + (defined(__riscv) && (defined(__LP64__) || defined(_LP64))) |
|---|
| 185 | 199 | #define ACPI_MACHINE_WIDTH 64 |
|---|
| 186 | 200 | #define COMPILER_DEPENDENT_INT64 long |
|---|
| 187 | 201 | #define COMPILER_DEPENDENT_UINT64 unsigned long |
|---|