MCPcopy Create free account
hub / github.com/F-Stack/f-stack / intr_pic_register

Function intr_pic_register

freebsd/kern/subr_intr.c:811–825  ·  view source on GitHub ↗

* Register interrupt controller. */

Source from the content-addressed store, hash-verified

809 * Register interrupt controller.
810 */
811struct intr_pic *
812intr_pic_register(device_t dev, intptr_t xref)
813{
814 struct intr_pic *pic;
815
816 if (dev == NULL)
817 return (NULL);
818 pic = pic_create(dev, xref, FLAG_PIC);
819 if (pic == NULL)
820 return (NULL);
821
822 debugf("PIC %p registered for %s <dev %p, xref %jx>\n", pic,
823 device_get_nameunit(dev), dev, (uintmax_t)xref);
824 return (pic);
825}
826
827/*
828 * Unregister interrupt controller.

Callers 15

jz4780_pic_attachFunction · 0.85
jz4780_gpio_attachFunction · 0.85
apb_attachFunction · 0.85
mips_pic_attachFunction · 0.85
mtk_pic_attachFunction · 0.85
mtk_gpio_attachFunction · 0.85
mtk_pic_attachFunction · 0.85
mtk_gpio_attachFunction · 0.85
mtk_pci_attachFunction · 0.85
mtk_gic_attachFunction · 0.85
beripic_attachFunction · 0.85
bcm_mips_attachFunction · 0.85

Calls 2

pic_createFunction · 0.85
device_get_nameunitFunction · 0.85

Tested by

no test coverage detected