aboutsummaryrefslogtreecommitdiff
path: root/sys/xen/xen_intr.h
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2018-09-13 07:14:11 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2018-09-13 07:14:11 +0000
commita74cdf4e747667a8d7db4dcdc57cf97db822444d (patch)
tree3ec7ed612e3418f4cd03c186af1828911adea52d /sys/xen/xen_intr.h
parentd7627401ecaa772ca6034eb64c8810369448e579 (diff)
downloadsrc-a74cdf4e747667a8d7db4dcdc57cf97db822444d.tar.gz
src-a74cdf4e747667a8d7db4dcdc57cf97db822444d.zip
xen: legacy PVH fixes for the new interrupt count
Register interrupts using the PIC pic_register_sources method instead of doing it in apic_setup_io. This is now required, since the internal interrupt structures are not yet setup when calling apic_setup_io. Approved by: re (gjb) Sponsored by: Citrix Systems R&D
Notes
Notes: svn path=/head/; revision=338631
Diffstat (limited to 'sys/xen/xen_intr.h')
-rw-r--r--sys/xen/xen_intr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/xen/xen_intr.h b/sys/xen/xen_intr.h
index eb3436d601b8..4aa4a9a8b8ea 100644
--- a/sys/xen/xen_intr.h
+++ b/sys/xen/xen_intr.h
@@ -274,4 +274,14 @@ 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_ */