Name

of_irq_init — Scan and initialize matching interrupt controllers in DT

Synopsis

void of_irq_init (const struct of_device_id * matches);
 

Arguments

matches

0 terminated array of match criteria and init functions to call

Description

This function scans the device tree for matching interrupt controller nodes, and calls their initialization functions in order with parents first.

matches[]->name, matches[]->type, and/or matches[]->compatible determine whether an interrupt controller node matches.

matches[]->data contains the initialization function. The functions are of the form

int (struct device_node *device, struct device_node *interrupt_parent);

A node is an interrupt controller node if it contains the property interrupt-controller.

See also

of_find_matching_node_and_match, of_irq_find_parent