summaryrefslogtreecommitdiffstats
path: root/sys/xen/xen_intr.h
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2014-10-05 01:28:21 +0000
committerneel <neel@FreeBSD.org>2014-10-05 01:28:21 +0000
commit16cbb8793a45363cd459773925c4c4862981337f (patch)
tree1e6608f8ef66c867da6e5230b193da69248605c9 /sys/xen/xen_intr.h
parent09ab9e29373f2b48f72ff71789f6afc0e01c2c91 (diff)
parent61bd408732db9323eacb07c5e0c0a11f957b76d0 (diff)
downloadFreeBSD-src-16cbb8793a45363cd459773925c4c4862981337f.zip
FreeBSD-src-16cbb8793a45363cd459773925c4c4862981337f.tar.gz
IFC @r272481
Diffstat (limited to 'sys/xen/xen_intr.h')
-rw-r--r--sys/xen/xen_intr.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/xen/xen_intr.h b/sys/xen/xen_intr.h
index a1ff666..a29414d 100644
--- a/sys/xen/xen_intr.h
+++ b/sys/xen/xen_intr.h
@@ -224,4 +224,26 @@ 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);
+
#endif /* _XEN_INTR_H_ */
OpenPOWER on IntegriCloud