函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\irq\irqdomain.c Create Date:2022-07-27 11:14:24
首页 Copyright©Brick

938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
/**
 * irq_domain_xlate_twocell() - Generic xlate for direct two cell bindings
 *
 * Device Tree IRQ specifier translation function which works with two cell
 * bindings where the cell values map directly to the hwirq number
 * and linux irq flags.
 */
int irq_domain_xlate_twocell(struct irq_domain *d, struct device_node *ctrlr,
            const u32 *intspec, unsigned int intsize,
            irq_hw_number_t *out_hwirq, unsigned int *out_type)
{
    struct irq_fwspec fwspec;
 
    of_phandle_args_to_fwspec(ctrlr, intspec, intsize, &fwspec);
    return irq_domain_translate_twocell(d, &fwspec, out_hwirq, out_type);
}