| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 1999 VA Linux Systems |
|---|
| 3 | 4 | * Copyright (C) 1999 Walt Drummond <drummond@valinux.com> |
|---|
| 4 | 5 | * Copyright (C) 2000,2001 J.I. Lee <jung-ik.lee@intel.com> |
|---|
| 5 | 6 | * Copyright (C) 2001,2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 11 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 | | - * (at your option) any later version. |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | | - * GNU General Public License for more details. |
|---|
| 18 | | - * |
|---|
| 19 | | - * You should have received a copy of the GNU General Public License |
|---|
| 20 | | - * along with this program; if not, write to the Free Software |
|---|
| 21 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 22 | | - * |
|---|
| 23 | | - * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 24 | 7 | */ |
|---|
| 25 | 8 | |
|---|
| 26 | 9 | #ifndef _ASM_ACPI_H |
|---|
| .. | .. |
|---|
| 34 | 17 | #include <linux/numa.h> |
|---|
| 35 | 18 | #include <asm/numa.h> |
|---|
| 36 | 19 | |
|---|
| 37 | | -#ifdef CONFIG_ACPI |
|---|
| 20 | + |
|---|
| 38 | 21 | extern int acpi_lapic; |
|---|
| 39 | 22 | #define acpi_disabled 0 /* ACPI always enabled on IA64 */ |
|---|
| 40 | 23 | #define acpi_noirq 0 /* ACPI always enabled on IA64 */ |
|---|
| .. | .. |
|---|
| 45 | 28 | { |
|---|
| 46 | 29 | return !!acpi_lapic; |
|---|
| 47 | 30 | } |
|---|
| 48 | | -#endif |
|---|
| 31 | + |
|---|
| 49 | 32 | #define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */ |
|---|
| 50 | 33 | static inline void disable_acpi(void) { } |
|---|
| 51 | 34 | |
|---|
| 52 | | -#ifdef CONFIG_IA64_GENERIC |
|---|
| 53 | | -const char *acpi_get_sysname (void); |
|---|
| 54 | | -#else |
|---|
| 55 | | -static inline const char *acpi_get_sysname (void) |
|---|
| 56 | | -{ |
|---|
| 57 | | -# if defined (CONFIG_IA64_HP_SIM) |
|---|
| 58 | | - return "hpsim"; |
|---|
| 59 | | -# elif defined (CONFIG_IA64_HP_ZX1) |
|---|
| 60 | | - return "hpzx1"; |
|---|
| 61 | | -# elif defined (CONFIG_IA64_HP_ZX1_SWIOTLB) |
|---|
| 62 | | - return "hpzx1_swiotlb"; |
|---|
| 63 | | -# elif defined (CONFIG_IA64_SGI_SN2) |
|---|
| 64 | | - return "sn2"; |
|---|
| 65 | | -# elif defined (CONFIG_IA64_SGI_UV) |
|---|
| 66 | | - return "uv"; |
|---|
| 67 | | -# elif defined (CONFIG_IA64_DIG) |
|---|
| 68 | | - return "dig"; |
|---|
| 69 | | -# elif defined(CONFIG_IA64_DIG_VTD) |
|---|
| 70 | | - return "dig_vtd"; |
|---|
| 71 | | -# else |
|---|
| 72 | | -# error Unknown platform. Fix acpi.c. |
|---|
| 73 | | -# endif |
|---|
| 74 | | -} |
|---|
| 75 | | -#endif |
|---|
| 76 | 35 | int acpi_request_vector (u32 int_type); |
|---|
| 77 | 36 | int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); |
|---|
| 78 | 37 | |
|---|
| 79 | 38 | /* Low-level suspend routine. */ |
|---|
| 80 | 39 | extern int acpi_suspend_lowlevel(void); |
|---|
| 81 | 40 | |
|---|
| 82 | | -extern unsigned long acpi_wakeup_address; |
|---|
| 41 | +static inline unsigned long acpi_get_wakeup_address(void) |
|---|
| 42 | +{ |
|---|
| 43 | + return 0; |
|---|
| 44 | +} |
|---|
| 83 | 45 | |
|---|
| 84 | 46 | /* |
|---|
| 85 | 47 | * Record the cpei override flag and current logical cpu. This is |
|---|
| .. | .. |
|---|
| 111 | 73 | { |
|---|
| 112 | 74 | buf[2] |= ACPI_PDC_EST_CAPABILITY_SMP; |
|---|
| 113 | 75 | } |
|---|
| 114 | | - |
|---|
| 115 | | -#define acpi_unlazy_tlb(x) |
|---|
| 116 | 76 | |
|---|
| 117 | 77 | #ifdef CONFIG_ACPI_NUMA |
|---|
| 118 | 78 | extern cpumask_t early_cpu_possible_map; |
|---|