linux/arch/x86/xen/platform-pci-unplug.c

// SPDX-License-Identifier: GPL-2.0

/******************************************************************************
 * platform-pci-unplug.c
 *
 * Xen platform PCI device driver
 * Copyright (c) 2010, Citrix
 */

#define pr_fmt(fmt)

#include <linux/init.h>
#include <linux/io.h>
#include <linux/export.h>

#include <xen/xen.h>
#include <xen/platform_pci.h>
#include "xen-ops.h"

#define XEN_PLATFORM_ERR_MAGIC
#define XEN_PLATFORM_ERR_PROTOCOL
#define XEN_PLATFORM_ERR_BLACKLIST

/* store the value of xen_emul_unplug after the unplug is done */
static int xen_platform_pci_unplug;
static int xen_emul_unplug;

static int check_platform_magic(void)
{}

bool xen_has_pv_devices(void)
{}
EXPORT_SYMBOL_GPL();

static bool __xen_has_pv_device(int state)
{}

bool xen_has_pv_nic_devices(void)
{}
EXPORT_SYMBOL_GPL();

bool xen_has_pv_disk_devices(void)
{}
EXPORT_SYMBOL_GPL();

/*
 * This one is odd - it determines whether you want to run PV _and_
 * legacy (IDE) drivers together. This combination is only possible
 * under HVM.
 */
bool xen_has_pv_and_legacy_disk_devices(void)
{}
EXPORT_SYMBOL_GPL();

void xen_unplug_emulated_devices(void)
{}

static int __init parse_xen_emul_unplug(char *arg)
{}
early_param();