1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct irq_data</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux generic IRQ handling"><link rel="up" href="structs.html" title="Chapter&#160;8.&#160;Structures"><link rel="prev" href="structs.html" title="Chapter&#160;8.&#160;Structures"><link rel="next" href="API-struct-irq-chip.html" title="struct irq_chip"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct irq_data</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="structs.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;8.&#160;Structures</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-irq-chip.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-irq-data"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct irq_data &#8212; 
2  per irq and irq chip data passed down to chip functions
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct irq_data {
5  u32 mask;
6  unsigned int irq;
7  unsigned long hwirq;
8  unsigned int node;
9  unsigned int state_use_accessors;
10  struct irq_chip * chip;
11  struct irq_domain * domain;
12#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
13  struct irq_data * parent_data;
14#endif
15  void * handler_data;
16  void * chip_data;
17  struct msi_desc * msi_desc;
18  cpumask_var_t affinity;
19};  </pre></div><div class="refsect1"><a name="idp1102963636"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">mask</span></dt><dd><p>
20precomputed bitmask for accessing the chip registers
21      </p></dd><dt><span class="term">irq</span></dt><dd><p>
22interrupt number
23      </p></dd><dt><span class="term">hwirq</span></dt><dd><p>
24hardware interrupt number, local to the interrupt domain
25      </p></dd><dt><span class="term">node</span></dt><dd><p>
26node index useful for balancing
27      </p></dd><dt><span class="term">state_use_accessors</span></dt><dd><p>
28status information for irq chip functions.
29Use accessor functions to deal with it
30      </p></dd><dt><span class="term">chip</span></dt><dd><p>
31low level interrupt hardware access
32      </p></dd><dt><span class="term">domain</span></dt><dd><p>
33Interrupt translation domain; responsible for mapping
34between hwirq number and linux irq number.
35      </p></dd><dt><span class="term">parent_data</span></dt><dd><p>
36pointer to parent struct irq_data to support hierarchy
37irq_domain
38      </p></dd><dt><span class="term">handler_data</span></dt><dd><p>
39per-IRQ data for the irq_chip methods
40      </p></dd><dt><span class="term">chip_data</span></dt><dd><p>
41platform-specific per-chip private data for the chip
42methods, to allow shared chip implementations
43      </p></dd><dt><span class="term">msi_desc</span></dt><dd><p>
44MSI descriptor
45      </p></dd><dt><span class="term">affinity</span></dt><dd><p>
46IRQ affinity on SMP
47      </p></dd></dl></div></div><div class="refsect1"><a name="idp1102972588"></a><h2>Description</h2><p>
48   The fields here need to overlay the ones in irq_desc until we
49   cleaned up the direct references and switched everything over to
50   irq_data.
51</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="structs.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="structs.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-irq-chip.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&#160;8.&#160;Structures&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">struct irq_chip</span></td></tr></table></div></body></html>
52