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

Function intr_msi_register

freebsd/kern/subr_intr.c:1306–1320  ·  view source on GitHub ↗

* Register a MSI/MSI-X interrupt controller */

Source from the content-addressed store, hash-verified

1304 * Register a MSI/MSI-X interrupt controller
1305 */
1306int
1307intr_msi_register(device_t dev, intptr_t xref)
1308{
1309 struct intr_pic *pic;
1310
1311 if (dev == NULL)
1312 return (EINVAL);
1313 pic = pic_create(dev, xref, FLAG_MSI);
1314 if (pic == NULL)
1315 return (ENOMEM);
1316
1317 debugf("PIC %p registered for %s <dev %p, xref %jx>\n", pic,
1318 device_get_nameunit(dev), dev, (uintmax_t)xref);
1319 return (0);
1320}
1321
1322int
1323intr_alloc_msi(device_t pci, device_t child, intptr_t xref, int count,

Callers 7

gic_v3_fdt_attachFunction · 0.85
gicv3_its_fdt_attachFunction · 0.85
gicv3_its_acpi_attachFunction · 0.85
arm_gicv2m_attachFunction · 0.85
tegra_pcib_msi_attachFunction · 0.85
al_msix_attachFunction · 0.85
bcm_pcib_msi_attachFunction · 0.85

Calls 2

pic_createFunction · 0.85
device_get_nameunitFunction · 0.85

Tested by

no test coverage detected