.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2012 Advanced Micro Devices, Inc. |
---|
3 | 4 | * Author: Joerg Roedel <joerg.roedel@amd.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms of the GNU General Public License version 2 as published |
---|
7 | | - * by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | | - * |
---|
14 | | - * You should have received a copy of the GNU General Public License |
---|
15 | | - * along with this program; if not, write to the Free Software |
---|
16 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
17 | 5 | * |
---|
18 | 6 | * This header file contains the interface of the interrupt remapping code to |
---|
19 | 7 | * the x86 interrupt management code. |
---|
.. | .. |
---|
45 | 33 | |
---|
46 | 34 | #ifdef CONFIG_IRQ_REMAP |
---|
47 | 35 | |
---|
| 36 | +extern raw_spinlock_t irq_2_ir_lock; |
---|
| 37 | + |
---|
48 | 38 | extern bool irq_remapping_cap(enum irq_remap_cap cap); |
---|
49 | 39 | extern void set_irq_remapping_broken(void); |
---|
50 | 40 | extern int irq_remapping_prepare(void); |
---|
.. | .. |
---|
54 | 44 | extern int irq_remap_enable_fault_handling(void); |
---|
55 | 45 | extern void panic_if_irq_remap(const char *msg); |
---|
56 | 46 | |
---|
57 | | -extern struct irq_domain * |
---|
58 | | -irq_remapping_get_ir_irq_domain(struct irq_alloc_info *info); |
---|
59 | 47 | extern struct irq_domain * |
---|
60 | 48 | irq_remapping_get_irq_domain(struct irq_alloc_info *info); |
---|
61 | 49 | |
---|
.. | .. |
---|
81 | 69 | |
---|
82 | 70 | static inline void panic_if_irq_remap(const char *msg) |
---|
83 | 71 | { |
---|
84 | | -} |
---|
85 | | - |
---|
86 | | -static inline struct irq_domain * |
---|
87 | | -irq_remapping_get_ir_irq_domain(struct irq_alloc_info *info) |
---|
88 | | -{ |
---|
89 | | - return NULL; |
---|
90 | 72 | } |
---|
91 | 73 | |
---|
92 | 74 | static inline struct irq_domain * |
---|