aboutsummaryrefslogtreecommitdiff
path: root/sys/xen
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2021-05-12 10:17:53 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2021-05-17 09:41:21 +0000
commitac3ede5371af34b0a89fa72b7a5bb706457b99ad (patch)
treeff150d8f1eec14de5601cc17fdb4ea3b487b9519 /sys/xen
parent2117a66af54f63cc474b4358bbb6967267e452cb (diff)
Diffstat (limited to 'sys/xen')
-rw-r--r--sys/xen/evtchn/evtchnvar.h1
-rw-r--r--sys/xen/xen_intr.h44
-rw-r--r--sys/xen/xen_msi.h39
-rw-r--r--sys/xen/xen_pci.h37
4 files changed, 0 insertions, 121 deletions
diff --git a/sys/xen/evtchn/evtchnvar.h b/sys/xen/evtchn/evtchnvar.h
index 8008d23297d3..c7c38df34a00 100644
--- a/sys/xen/evtchn/evtchnvar.h
+++ b/sys/xen/evtchn/evtchnvar.h
@@ -39,7 +39,6 @@
enum evtchn_type {
EVTCHN_TYPE_UNBOUND,
- EVTCHN_TYPE_PIRQ,
EVTCHN_TYPE_VIRQ,
EVTCHN_TYPE_IPI,
EVTCHN_TYPE_PORT,
diff --git a/sys/xen/xen_intr.h b/sys/xen/xen_intr.h
index 74570267364d..6725fa9e0399 100644
--- a/sys/xen/xen_intr.h
+++ b/sys/xen/xen_intr.h
@@ -153,18 +153,6 @@ int xen_intr_alloc_and_bind_ipi(u_int cpu,
xen_intr_handle_t *handlep);
/**
- * Register a physical interrupt vector and setup the interrupt source.
- *
- * \param vector The global vector to use.
- * \param trig Default trigger method.
- * \param pol Default polarity of the interrupt.
- *
- * \returns 0 on success, otherwise an errno.
- */
-int xen_register_pirq(int vector, enum intr_trigger trig,
- enum intr_polarity pol);
-
-/**
* Unbind an interrupt handler from its interrupt source.
*
* \param handlep A pointer to the opaque handle that was initialized
@@ -219,28 +207,6 @@ void xen_intr_signal(xen_intr_handle_t handle);
evtchn_port_t xen_intr_port(xen_intr_handle_t handle);
/**
- * Setup MSI vector interrupt(s).
- *
- * \param dev The device that requests the binding.
- *
- * \param vector Requested initial vector to bind the MSI interrupt(s) to.
- *
- * \param count Number of vectors to allocate.
- *
- * \returns 0 on success, otherwise an errno.
- */
-int xen_register_msi(device_t dev, int vector, int count);
-
-/**
- * Teardown a MSI vector interrupt.
- *
- * \param vector Requested vector to release.
- *
- * \returns 0 on success, otherwise an errno.
- */
-int xen_release_msi(int vector);
-
-/**
* Bind an event channel port with a handler
*
* \param dev The device making this bind request.
@@ -271,14 +237,4 @@ int xen_intr_add_handler(const char *name, driver_filter_t filter,
int xen_intr_get_evtchn_from_port(evtchn_port_t port,
xen_intr_handle_t *handlep);
-/**
- * Register the IO-APIC PIRQs when running in legacy PVH Dom0 mode.
- *
- * \param pic PIC instance.
- *
- * NB: this should be removed together with the support for legacy PVH mode.
- */
-struct pic;
-void xenpv_register_pirqs(struct pic *pic);
-
#endif /* _XEN_INTR_H_ */
diff --git a/sys/xen/xen_msi.h b/sys/xen/xen_msi.h
deleted file mode 100644
index 2817878fc71b..000000000000
--- a/sys/xen/xen_msi.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) 2014 Roger Pau Monné <roger.pau@citrix.com>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#ifndef __XEN_MSI_H__
-#define __XEN_MSI_H__
-
-void xen_msi_init(void);
-int xen_msi_map(int irq, uint64_t *addr, uint32_t *data);
-int xen_msi_alloc(device_t dev, int count, int maxcount, int *irqs);
-int xen_msi_release(int *irqs, int count);
-int xen_msix_alloc(device_t dev, int *irq);
-int xen_msix_release(int irq);
-
-#endif /* !__XEN_MSI_H__ */
diff --git a/sys/xen/xen_pci.h b/sys/xen/xen_pci.h
deleted file mode 100644
index f19168e0598d..000000000000
--- a/sys/xen/xen_pci.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2014 Roger Pau Monné <roger.pau@citrix.com>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#ifndef __XEN_PCI_H__
-#define __XEN_PCI_H__
-
-void xen_pci_enable_msi_method(device_t dev, device_t child, uint64_t address,
- uint16_t data);
-void xen_pci_disable_msi_method(device_t dev, device_t child);
-void xen_pci_child_added_method(device_t dev, device_t child);
-
-#endif /* !__XEN_PCI_H__ */