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

Function gic_v3_map_msi

freebsd/arm64/arm64/gic_v3.c:1458–1470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1456}
1457
1458static int
1459gic_v3_map_msi(device_t dev, device_t child, struct intr_irqsrc *isrc,
1460 uint64_t *addr, uint32_t *data)
1461{
1462 struct gic_v3_softc *sc = device_get_softc(dev);
1463 struct gic_v3_irqsrc *gi = (struct gic_v3_irqsrc *)isrc;
1464
1465#define GICD_SETSPI_NSR 0x40
1466 *addr = vtophys(rman_get_virtual(sc->gic_dist)) + GICD_SETSPI_NSR;
1467 *data = gi->gi_irq;
1468
1469 return (0);
1470}

Callers

nothing calls this directly

Calls 2

device_get_softcFunction · 0.85
rman_get_virtualFunction · 0.85

Tested by

no test coverage detected