/* * IRQ domain support for SH INTC subsystem * * Copyright (C) 2012 Paul Mundt * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details.
*/ #define pr_fmt(fmt) "intc: " fmt
/** * intc_irq_domain_evt_xlate() - Generic xlate for vectored IRQs. * * This takes care of exception vector to hwirq translation through * by way of evt2irq() translation. * * Note: For platforms that use a flat vector space without INTEVT this * basically just mimics irq_domain_xlate_onecell() by way of a nopped * out evt2irq() implementation.
*/ staticint intc_evt_xlate(struct irq_domain *d, struct device_node *ctrlr, const u32 *intspec, unsignedint intsize, unsignedlong *out_hwirq, unsignedint *out_type)
{ if (WARN_ON(intsize < 1)) return -EINVAL;
/* * Linear domains have a hard-wired assertion that IRQs start at * 0 in order to make some performance optimizations. Lamely * restrict the linear case to these conditions here, taking the * tree penalty for linear cases with non-zero hwirq bases.
*/ if (irq_base == 0 && irq_end == (irq_base + hw->nr_vectors - 1))
d->domain = irq_domain_create_linear(NULL, hw->nr_vectors, &intc_evt_ops, NULL); else
d->domain = irq_domain_create_tree(NULL, &intc_evt_ops, NULL);
BUG_ON(!d->domain);
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.