summaryrefslogtreecommitdiff
path: root/sys/arch/i386/pci/pci_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/pci/pci_machdep.c')
-rw-r--r--sys/arch/i386/pci/pci_machdep.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.c b/sys/arch/i386/pci/pci_machdep.c
index 0e4416af08e..d301dab8eac 100644
--- a/sys/arch/i386/pci/pci_machdep.c
+++ b/sys/arch/i386/pci/pci_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.c,v 1.85 2019/01/07 23:44:11 bluhm Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.86 2020/06/17 06:17:19 dlg Exp $ */
/* $NetBSD: pci_machdep.c,v 1.28 1997/06/06 23:29:17 thorpej Exp $ */
/*-
@@ -788,6 +788,17 @@ extern struct intrhand *apic_intrhand[256];
extern int apic_maxlevel[256];
void *
+pci_intr_establish_cpu(pci_chipset_tag_t pc, pci_intr_handle_t ih,
+ int level, struct cpu_info *ci,
+ int (*func)(void *), void *arg, const char *what)
+{
+ if (ci != NULL && ci != &cpu_info_primary)
+ return (NULL);
+
+ return pci_intr_establish(pc, ih, level, func, arg, what);
+}
+
+void *
pci_intr_establish(pci_chipset_tag_t pc, pci_intr_handle_t ih, int level,
int (*func)(void *), void *arg, const char *what)
{