MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ofw_interrupt_cells

Function ofw_interrupt_cells

components/drivers/ofw/irq.c:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "ofw_internal.h"
23
24static int ofw_interrupt_cells(struct rt_ofw_node *np)
25{
26 int interrupt_cells = -RT_EEMPTY;
27
28 rt_ofw_prop_read_u32(np, "#interrupt-cells", (rt_uint32_t *)&interrupt_cells);
29
30 return interrupt_cells;
31}
32
33int rt_ofw_irq_cells(struct rt_ofw_node *np)
34{

Callers 3

rt_ofw_irq_cellsFunction · 0.85
ofw_parse_irq_mapFunction · 0.85
rt_ofw_find_irq_parentFunction · 0.85

Calls 1

rt_ofw_prop_read_u32Function · 0.85

Tested by

no test coverage detected