From 5dfbc067d095b2bbaefad6d77469f4d701bdd539 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 19 May 2025 23:56:22 -0400 Subject: kernel/amd64: Deprecate intr_alloc_vector() Replace intr_alloc_vector() with a cleaner and more machine independent intr_register() Signed-off-by: Ian Moffett --- sys/dev/usb/xhci.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/xhci.c') diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index d68f98e..1355485 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -43,6 +43,8 @@ #include #include +#include + #define pr_trace(fmt, ...) kprintf("xhci: " fmt, ##__VA_ARGS__) #define pr_error(...) pr_trace(__VA_ARGS__) @@ -56,10 +58,11 @@ static struct pci_device *hci_dev; static struct timer tmr; -__attribute__((__interrupt__)) static void -xhci_common_isr(void *sf) +static int +xhci_intr(void *sf) { pr_trace("received xHCI interrupt (via PCI MSI-X)\n"); + return 1; /* handled */ } /* @@ -232,7 +235,7 @@ xhci_init_msix(struct xhci_hc *hc) struct msi_intr intr; intr.name = "xHCI MSI-X"; - intr.handler = xhci_common_isr; + intr.handler = xhci_intr; return pci_enable_msix(hci_dev, &intr); } -- cgit v1.2.3