arm_intr_* prefix with fdt_intr_*.
ok kettenis@
-/* $OpenBSD: fdt.h,v 1.7 2018/05/07 14:13:54 kettenis Exp $ */
+/* $OpenBSD: fdt.h,v 1.8 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
void *fdt_find_cons(const char *);
+#define fdt_intr_establish arm_intr_establish_fdt
+#define fdt_intr_establish_idx arm_intr_establish_fdt_idx
+#define fdt_intr_establish_imap arm_intr_establish_fdt_imap
+#define fdt_intr_establish_msi arm_intr_establish_fdt_msi
+#define fdt_intr_disestablish arm_intr_disestablish_fdt
+#define fdt_intr_get_parent arm_intr_get_parent
+#define fdt_intr_parent_establish arm_intr_parent_establish_fdt
+#define fdt_intr_parent_disestablish arm_intr_parent_disestablish_fdt
+#define fdt_intr_register arm_intr_register_fdt
+
#endif /* __ARM_FDT_H__ */
-/* $OpenBSD: fdt.h,v 1.4 2018/05/06 17:16:48 kettenis Exp $ */
+/* $OpenBSD: fdt.h,v 1.5 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
void *fdt_find_cons(const char *);
+#define fdt_intr_establish arm_intr_establish_fdt
+#define fdt_intr_establish_idx arm_intr_establish_fdt_idx
+#define fdt_intr_establish_imap arm_intr_establish_fdt_imap
+#define fdt_intr_establish_msi arm_intr_establish_fdt_msi
+#define fdt_intr_disestablish arm_intr_disestablish_fdt
+#define fdt_intr_get_parent arm_intr_get_parent
+#define fdt_intr_parent_establish arm_intr_parent_establish_fdt
+#define fdt_intr_parent_disestablish arm_intr_parent_disestablish_fdt
+#define fdt_intr_register arm_intr_register_fdt
+
#endif /* __ARM_FDT_H__ */
-/* $OpenBSD: fdt.h,v 1.1 2016/12/08 16:24:51 visa Exp $ */
+/* $OpenBSD: fdt.h,v 1.2 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
int fa_scells;
};
+#define fdt_intr_establish octeon_intr_establish_fdt
+#define fdt_intr_disestablish octeon_intr_disestablish_fdt
+
#endif /* __OCTEON_FDT_H__ */
-/* $OpenBSD: intr.h,v 1.16 2018/01/22 09:40:45 mpi Exp $ */
+/* $OpenBSD: intr.h,v 1.17 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
void *, const char *);
void octeon_intr_disestablish_fdt(void *);
-/* XXX Needed by 'MI' code in sys/dev/fdt. */
-#define arm_intr_establish_fdt octeon_intr_establish_fdt
-#define arm_intr_disestablish_fdt octeon_intr_disestablish_fdt
-
#endif /* _LOCORE */
#endif /* _MACHINE_INTR_H_ */
-/* $OpenBSD: ahci_fdt.c,v 1.3 2017/07/28 14:54:13 visa Exp $ */
+/* $OpenBSD: ahci_fdt.c,v 1.4 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2013,2017 Patrick Wildt <patrick@blueri.se>
*
faa->fa_reg[0].size, 0, &sc->sc_ioh))
panic("ahci_fdt_attach: bus_space_map failed!");
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_BIO,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_BIO,
ahci_intr, sc, sc->sc_dev.dv_xname);
if (sc->sc_ih == NULL) {
printf(": unable to establish interrupt\n");
return;
irq:
- arm_intr_disestablish_fdt(sc->sc_ih);
+ fdt_intr_disestablish(sc->sc_ih);
unmap:
bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_ios);
}
-/* $OpenBSD: bcm2835_aux.c,v 1.2 2018/02/25 01:45:01 guenther Exp $ */
+/* $OpenBSD: bcm2835_aux.c,v 1.3 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2017 Mark kettenis <kettenis@openbsd.org>
*
sc->sc_ic.ic_node = faa->fa_node;
sc->sc_ic.ic_cookie = &sc->sc_ic;
sc->sc_ic.ic_establish = bcm_aux_intr_establish_fdt;
- sc->sc_ic.ic_disestablish = arm_intr_disestablish_fdt;
- arm_intr_register_fdt(&sc->sc_ic);
+ sc->sc_ic.ic_disestablish = fdt_intr_disestablish;
+ fdt_intr_register(&sc->sc_ic);
}
uint32_t
if (idx != BCMAUX_UART)
return NULL;
- return arm_intr_establish_fdt(ic->ic_node, level, func, arg, name);
+ return fdt_intr_establish(ic->ic_node, level, func, arg, name);
}
-/* $OpenBSD: com_fdt.c,v 1.2 2018/07/20 05:37:06 jsg Exp $ */
+/* $OpenBSD: com_fdt.c,v 1.3 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
com_attach_subr(sc);
- arm_intr_establish_fdt(faa->fa_node, IPL_TTY, intr,
+ fdt_intr_establish(faa->fa_node, IPL_TTY, intr,
sc, sc->sc_dev.dv_xname);
}
-/* $OpenBSD: dwmmc.c,v 1.15 2018/06/03 17:26:31 kettenis Exp $ */
+/* $OpenBSD: dwmmc.c,v 1.16 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis
*
div = OF_getpropint(faa->fa_node, "samsung,dw-mshc-ciu-div", div);
sc->sc_clkbase /= (div + 1);
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_BIO,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_BIO,
dwmmc_intr, sc, sc->sc_dev.dv_xname);
if (sc->sc_ih == NULL) {
printf(": can't establish interrupt\n");
-/* $OpenBSD: dwpcie.c,v 1.8 2018/08/03 22:40:05 kettenis Exp $ */
+/* $OpenBSD: dwpcie.c,v 1.9 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
*
delay(1000);
}
- sc->sc_ih = arm_intr_establish_fdt(sc->sc_node, IPL_AUDIO | IPL_MPSAFE,
+ sc->sc_ih = fdt_intr_establish(sc->sc_node, IPL_AUDIO | IPL_MPSAFE,
dwpcie_armada8k_intr, sc, sc->sc_dev.dv_xname);
/* Unmask INTx interrupts. */
/* Assume hardware passes Requester ID as sideband data. */
data = pci_requester_id(ih->ih_pc, ih->ih_tag);
- cookie = arm_intr_establish_fdt_msi(sc->sc_node, &addr,
+ cookie = fdt_intr_establish_msi(sc->sc_node, &addr,
&data, level, func, arg, (void *)name);
if (cookie == NULL)
return NULL;
reg[1] = reg[2] = 0;
reg[3] = ih->ih_intrpin;
- cookie = arm_intr_establish_fdt_imap(sc->sc_node, reg,
+ cookie = fdt_intr_establish_imap(sc->sc_node, reg,
sizeof(reg), level, func, arg, name);
}
-/* $OpenBSD: ehci_fdt.c,v 1.3 2017/12/30 16:32:52 kettenis Exp $ */
+/* $OpenBSD: ehci_fdt.c,v 1.4 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH);
EOWRITE2(&sc->sc, EHCI_USBINTR, 0);
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_USB,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_USB,
ehci_intr, &sc->sc, devname);
if (sc->sc_ih == NULL) {
printf(": can't establish interrupt\n");
return;
disestablish_intr:
- arm_intr_disestablish_fdt(sc->sc_ih);
+ fdt_intr_disestablish(sc->sc_ih);
sc->sc_ih = NULL;
unmap:
bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size);
return rv;
if (sc->sc_ih != NULL) {
- arm_intr_disestablish_fdt(sc->sc_ih);
+ fdt_intr_disestablish(sc->sc_ih);
sc->sc_ih = NULL;
}
-/* $OpenBSD: if_dwge_fdt.c,v 1.7 2018/02/26 13:11:48 kettenis Exp $ */
+/* $OpenBSD: if_dwge_fdt.c,v 1.8 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2016 Mark Kettenis <kettenis@openbsd.org>
/* Reset PHY */
dwge_fdt_reset_phy(fsc);
- fsc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_NET,
+ fsc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_NET,
dwge_fdt_intr, sc, sc->sc_dev.dv_xname);
if (fsc->sc_ih == NULL) {
printf(": unable to establish interrupt\n");
-/* $OpenBSD: if_dwxe.c,v 1.9 2018/05/28 08:22:41 kettenis Exp $ */
+/* $OpenBSD: if_dwxe.c,v 1.10 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
* Copyright (c) 2017 Patrick Wildt <patrick@blueri.se>
if_attach(ifp);
ether_ifattach(ifp);
- arm_intr_establish_fdt(faa->fa_node, IPL_NET, dwxe_intr, sc,
+ fdt_intr_establish(faa->fa_node, IPL_NET, dwxe_intr, sc,
sc->sc_dev.dv_xname);
}
-/* $OpenBSD: if_fec.c,v 1.5 2018/06/17 17:20:23 patrick Exp $ */
+/* $OpenBSD: if_fec.c,v 1.6 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
*
HWRITE4(sc, ENET_EIMR, 0);
HWRITE4(sc, ENET_EIR, 0xffffffff);
- sc->sc_ih[0] = arm_intr_establish_fdt_idx(faa->fa_node, 0, IPL_NET,
+ sc->sc_ih[0] = fdt_intr_establish_idx(faa->fa_node, 0, IPL_NET,
fec_intr, sc, sc->sc_dev.dv_xname);
- sc->sc_ih[1] = arm_intr_establish_fdt_idx(faa->fa_node, 1, IPL_NET,
+ sc->sc_ih[1] = fdt_intr_establish_idx(faa->fa_node, 1, IPL_NET,
fec_intr, sc, sc->sc_dev.dv_xname);
- sc->sc_ih[2] = arm_intr_establish_fdt_idx(faa->fa_node, 2, IPL_NET,
+ sc->sc_ih[2] = fdt_intr_establish_idx(faa->fa_node, 2, IPL_NET,
fec_intr, sc, sc->sc_dev.dv_xname);
tsize = ENET_MAX_TXD * sizeof(struct fec_buf_desc);
-/* $OpenBSD: if_mvneta.c,v 1.5 2018/07/09 16:30:13 patrick Exp $ */
+/* $OpenBSD: if_mvneta.c,v 1.6 2018/08/06 10:52:30 patrick Exp $ */
/* $NetBSD: if_mvneta.c,v 1.41 2015/04/15 10:15:40 hsuenaga Exp $ */
/*
* Copyright (c) 2007, 2008, 2013 KIYOHARA Takashi
while (MVNETA_READ(sc, MVNETA_PMACC2) & MVNETA_PMACC2_PORTMACRESET)
;
- arm_intr_establish_fdt(faa->fa_node, IPL_NET, mvneta_intr, sc,
+ fdt_intr_establish(faa->fa_node, IPL_NET, mvneta_intr, sc,
sc->sc_dev.dv_xname);
ifp = &sc->sc_ac.ac_if;
-/* $OpenBSD: imxesdhc.c,v 1.8 2018/06/10 14:14:55 kettenis Exp $ */
+/* $OpenBSD: imxesdhc.c,v 1.9 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
clock_set_assigned(faa->fa_node);
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_SDMMC,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_SDMMC,
imxesdhc_intr, sc, sc->sc_dev.dv_xname);
OF_getpropintarray(sc->sc_node, "cd-gpios", sc->sc_gpio,
-/* $OpenBSD: imxgpc.c,v 1.3 2018/06/10 14:16:00 kettenis Exp $ */
+/* $OpenBSD: imxgpc.c,v 1.4 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2016 Mark Kettenis
*
sc->sc_ic.ic_node = faa->fa_node;
sc->sc_ic.ic_cookie = &sc->sc_ic;
- sc->sc_ic.ic_establish = arm_intr_parent_establish_fdt;
- sc->sc_ic.ic_disestablish = arm_intr_parent_disestablish_fdt;
- arm_intr_register_fdt(&sc->sc_ic);
+ sc->sc_ic.ic_establish = fdt_intr_parent_establish;
+ sc->sc_ic.ic_disestablish = fdt_intr_parent_disestablish;
+ fdt_intr_register(&sc->sc_ic);
printf("\n");
}
-/* $OpenBSD: imxgpio.c,v 1.1 2018/03/30 19:38:00 patrick Exp $ */
+/* $OpenBSD: imxgpio.c,v 1.2 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
sc->sc_ic.ic_cookie = sc;
sc->sc_ic.ic_establish = imxgpio_intr_establish;
sc->sc_ic.ic_disestablish = imxgpio_intr_disestablish;
- arm_intr_register_fdt(&sc->sc_ic);
+ fdt_intr_register(&sc->sc_ic);
printf("\n");
sc->sc_ipl = max;
if (sc->sc_ih_l != NULL)
- arm_intr_disestablish_fdt(sc->sc_ih_l);
+ fdt_intr_disestablish(sc->sc_ih_l);
if (sc->sc_ih_h != NULL)
- arm_intr_disestablish_fdt(sc->sc_ih_h);
+ fdt_intr_disestablish(sc->sc_ih_h);
if (sc->sc_ipl != IPL_NONE) {
- sc->sc_ih_l = arm_intr_establish_fdt_idx(sc->sc_node, 0,
+ sc->sc_ih_l = fdt_intr_establish_idx(sc->sc_node, 0,
sc->sc_ipl, imxgpio_intr, sc, sc->sc_dev.dv_xname);
- sc->sc_ih_h = arm_intr_establish_fdt_idx(sc->sc_node, 1,
+ sc->sc_ih_h = fdt_intr_establish_idx(sc->sc_node, 1,
sc->sc_ipl, imxgpio_intr, sc, sc->sc_dev.dv_xname);
}
}
-/* $OpenBSD: imxiic.c,v 1.4 2018/06/10 09:25:50 patrick Exp $ */
+/* $OpenBSD: imxiic.c,v 1.5 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2013 Patrick Wildt <patrick@blueri.se>
*
panic("imxiic_attach: bus_space_map failed!");
#if 0
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_BIO,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_BIO,
imxiic_intr, sc, sc->sc_dev.dv_xname);
#endif
-/* $OpenBSD: imxuart.c,v 1.3 2018/06/11 09:15:22 kettenis Exp $ */
+/* $OpenBSD: imxuart.c,v 1.4 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@motorola.com>
*
pinctrl_byname(faa->fa_node, "default");
- sc->sc_irq = arm_intr_establish_fdt(faa->fa_node, IPL_TTY,
+ sc->sc_irq = fdt_intr_establish(faa->fa_node, IPL_TTY,
imxuart_intr, sc, sc->sc_dev.dv_xname);
sc->sc_node = faa->fa_node;
-/* $OpenBSD: mvicu.c,v 1.2 2018/03/29 18:11:55 kettenis Exp $ */
+/* $OpenBSD: mvicu.c,v 1.3 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
*
printf("\n");
- extern uint32_t arm_intr_get_parent(int);
- phandle = arm_intr_get_parent(node);
+ extern uint32_t fdt_intr_get_parent(int);
+ phandle = fdt_intr_get_parent(node);
extern LIST_HEAD(, interrupt_controller) interrupt_controllers;
LIST_FOREACH(ic, &interrupt_controllers, ic_list) {
if (ic->ic_phandle == phandle)
sc->sc_ic.ic_cookie = sc;
sc->sc_ic.ic_establish = mvicu_intr_establish;
sc->sc_ic.ic_disestablish = mvicu_intr_disestablish;
- arm_intr_register_fdt(&sc->sc_ic);
+ fdt_intr_register(&sc->sc_ic);
}
void *
-/* $OpenBSD: pluart_fdt.c,v 1.1 2018/07/02 12:46:20 kettenis Exp $ */
+/* $OpenBSD: pluart_fdt.c,v 1.2 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2005 Dale Rahn <drahn@dalerahn.com>
return;
}
- sc->sc_irq = arm_intr_establish_fdt(faa->fa_node, IPL_TTY, pluart_intr,
+ sc->sc_irq = fdt_intr_establish(faa->fa_node, IPL_TTY, pluart_intr,
sc, sc->sc_dev.dv_xname);
sc->sc_iot = faa->fa_iot;
-/* $OpenBSD: rkpcie.c,v 1.4 2018/07/30 10:56:00 kettenis Exp $ */
+/* $OpenBSD: rkpcie.c,v 1.5 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
*
/* Assume hardware passes Requester ID as sideband data. */
data = pci_requester_id(ih->ih_pc, ih->ih_tag);
- cookie = arm_intr_establish_fdt_msi(sc->sc_node, &addr,
+ cookie = fdt_intr_establish_msi(sc->sc_node, &addr,
&data, level, func, arg, name);
if (cookie == NULL)
return NULL;
PCIE_CLIENT_INTA_UNMASK | PCIE_CLIENT_INTB_UNMASK |
PCIE_CLIENT_INTC_UNMASK | PCIE_CLIENT_INTD_UNMASK);
- cookie = arm_intr_establish_fdt_idx(sc->sc_node, 1, level,
+ cookie = fdt_intr_establish_idx(sc->sc_node, 1, level,
func, arg, name);
}
-/* $OpenBSD: sdhc_fdt.c,v 1.2 2017/05/06 16:25:48 kettenis Exp $ */
+/* $OpenBSD: sdhc_fdt.c,v 1.3 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis
*
clock_enable_all(faa->fa_node);
reset_deassert_all(faa->fa_node);
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_BIO,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_BIO,
sdhc_intr, sc, sc->sc.sc_dev.dv_xname);
if (sc->sc_ih == NULL) {
printf(": can't establish interrupt\n");
-/* $OpenBSD: sximmc.c,v 1.4 2018/05/27 18:03:22 kettenis Exp $ */
+/* $OpenBSD: sximmc.c,v 1.5 2018/08/06 10:52:30 patrick Exp $ */
/* $NetBSD: awin_mmc.c,v 1.23 2015/11/14 10:32:40 bouyer Exp $ */
/*-
sc->sc_vqmmc = OF_getpropint(sc->sc_node, "vqmmc-supply", 0);
sc->sc_pwrseq = OF_getpropint(sc->sc_node, "mmc-pwrseq", 0);
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_BIO,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_BIO,
sximmc_intr, sc, sc->sc_dev.dv_xname);
if (sc->sc_ih == NULL) {
printf(": can't to establish interrupt\n");
-/* $OpenBSD: sxitwi.c,v 1.9 2018/07/24 21:53:46 kettenis Exp $ */
+/* $OpenBSD: sxitwi.c,v 1.10 2018/08/06 10:52:30 patrick Exp $ */
/* $NetBSD: gttwsi_core.c,v 1.2 2014/11/23 13:37:27 jmcneill Exp $ */
/*
* Copyright (c) 2008 Eiji Kawauchi.
sxitwi_write_4(sc, TWSI_SOFTRESET, SOFTRESET_VAL);
/* Establish interrupt */
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_BIO,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_BIO,
sxitwi_intr, sc, sc->sc_dev.dv_xname);
if (sc->sc_ih == NULL) {
printf(": can't to establish interrupt\n");
-/* $OpenBSD: virtio_mmio.c,v 1.2 2017/02/24 17:12:31 patrick Exp $ */
+/* $OpenBSD: virtio_mmio.c,v 1.3 2018/08/06 10:52:30 patrick Exp $ */
/* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */
/*
goto fail_1;
}
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, vsc->sc_ipl,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, vsc->sc_ipl,
virtio_mmio_intr, sc, vsc->sc_dev.dv_xname);
if (sc->sc_ih == NULL) {
printf("%s: couldn't establish interrupt\n",
}
KASSERT(vsc->sc_child == 0 || vsc->sc_child == VIRTIO_CHILD_ERROR);
KASSERT(vsc->sc_vqs == 0);
- arm_intr_disestablish_fdt(sc->sc_ih);
+ fdt_intr_disestablish(sc->sc_ih);
sc->sc_ih = 0;
if (sc->sc_iosize)
bus_space_unmap(sc->sc_iot, sc->sc_ioh, sc->sc_iosize);
-/* $OpenBSD: xhci_fdt.c,v 1.11 2018/05/08 13:41:52 mpi Exp $ */
+/* $OpenBSD: xhci_fdt.c,v 1.12 2018/08/06 10:52:30 patrick Exp $ */
/*
* Copyright (c) 2017 Mark kettenis <kettenis@openbsd.org>
*
return;
}
- sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_USB,
+ sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_USB,
xhci_intr, sc, sc->sc.sc_bus.bdev.dv_xname);
if (sc->sc_ih == NULL) {
printf(": can't establish interrupt\n");
return;
disestablish_ret:
- arm_intr_disestablish_fdt(sc->sc_ih);
+ fdt_intr_disestablish(sc->sc_ih);
unmap:
bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size);
}