| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | + |
|---|
| 1 | 3 | /****************************************************************************** |
|---|
| 2 | 4 | * platform-pci-unplug.c |
|---|
| 3 | 5 | * |
|---|
| 4 | 6 | * Xen platform PCI device driver |
|---|
| 5 | 7 | * Copyright (c) 2010, Citrix |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 8 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 9 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 12 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 13 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 14 | | - * more details. |
|---|
| 15 | | - * |
|---|
| 16 | | - * You should have received a copy of the GNU General Public License along with |
|---|
| 17 | | - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
|---|
| 18 | | - * Place - Suite 330, Boston, MA 02111-1307 USA. |
|---|
| 19 | | - * |
|---|
| 20 | 8 | */ |
|---|
| 21 | 9 | |
|---|
| 22 | 10 | #include <linux/init.h> |
|---|
| 23 | 11 | #include <linux/io.h> |
|---|
| 24 | 12 | #include <linux/export.h> |
|---|
| 25 | 13 | |
|---|
| 14 | +#include <xen/xen.h> |
|---|
| 26 | 15 | #include <xen/platform_pci.h> |
|---|
| 27 | 16 | #include "xen-ops.h" |
|---|
| 28 | 17 | |
|---|
| .. | .. |
|---|
| 30 | 19 | #define XEN_PLATFORM_ERR_PROTOCOL -2 |
|---|
| 31 | 20 | #define XEN_PLATFORM_ERR_BLACKLIST -3 |
|---|
| 32 | 21 | |
|---|
| 33 | | -#ifdef CONFIG_XEN_PVHVM |
|---|
| 34 | 22 | /* store the value of xen_emul_unplug after the unplug is done */ |
|---|
| 35 | 23 | static int xen_platform_pci_unplug; |
|---|
| 36 | 24 | static int xen_emul_unplug; |
|---|
| .. | .. |
|---|
| 218 | 206 | return 0; |
|---|
| 219 | 207 | } |
|---|
| 220 | 208 | early_param("xen_emul_unplug", parse_xen_emul_unplug); |
|---|
| 221 | | -#endif |
|---|