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

Function nexus_ofw_map_intr

freebsd/arm/arm/nexus.c:417–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415
416#ifdef FDT
417static int
418nexus_ofw_map_intr(device_t dev, device_t child, phandle_t iparent, int icells,
419 pcell_t *intr)
420{
421 u_int irq;
422 struct intr_map_data_fdt *fdt_data;
423 size_t len;
424
425 len = sizeof(*fdt_data) + icells * sizeof(pcell_t);
426 fdt_data = (struct intr_map_data_fdt *)intr_alloc_map_data(
427 INTR_MAP_DATA_FDT, len, M_WAITOK | M_ZERO);
428 fdt_data->iparent = iparent;
429 fdt_data->ncells = icells;
430 memcpy(fdt_data->cells, intr, icells * sizeof(pcell_t));
431 irq = intr_map_irq(NULL, iparent, (struct intr_map_data *)fdt_data);
432 return (irq);
433}
434#endif /* FDT */

Callers

nothing calls this directly

Calls 3

intr_alloc_map_dataFunction · 0.85
intr_map_irqFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected