<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>PowerQUICC Processors中的主题 Re: Could some one elaborate irq_create_mapping, irq_find_mapping, to use request_irq</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/Could-some-one-elaborate-irq-create-mapping-irq-find-mapping-to/m-p/376356#M955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linux IRQ numbers, as used by request_irq() and similar functions, are arbitrary software tokens rather than hardware IRQ numbers.&amp;nbsp; To obtain such a token (called a virtual IRQ number, or virq) you need to create a mapping.&amp;nbsp; The most common way to do that is to either use irq_of_parse_and_map(), or get the virq from a bus-specific structure (e.g. struct pci_dev or struct platform_device).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;irq_create_mapping() is the low-level function used by the above methods of translation.&amp;nbsp; It's possible to use it directly, but you normally shouldn't have to.&amp;nbsp; If you find yourself wanting to use it, it probably means that you have hardware that should be described in the device tree but isn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;irq_find_mapping() is one method used by interrupt controller drivers to turn a hardware interrupt number into a virq using an existing mapping.&amp;nbsp; If you're not writing an interrupt controller driver or something similar, you don't need this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 16:46:55 GMT</pubDate>
    <dc:creator>scottwood</dc:creator>
    <dc:date>2014-10-08T16:46:55Z</dc:date>
    <item>
      <title>Could some one elaborate irq_create_mapping, irq_find_mapping, to use request_irq</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Could-some-one-elaborate-irq-create-mapping-irq-find-mapping-to/m-p/376355#M954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could some one elaborate irq_create_mapping, irq_find_mapping, to use request_irq &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 13:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Could-some-one-elaborate-irq-create-mapping-irq-find-mapping-to/m-p/376355#M954</guid>
      <dc:creator>ramakrishnakatt</dc:creator>
      <dc:date>2014-10-08T13:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Could some one elaborate irq_create_mapping, irq_find_mapping, to use request_irq</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/Could-some-one-elaborate-irq-create-mapping-irq-find-mapping-to/m-p/376356#M955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linux IRQ numbers, as used by request_irq() and similar functions, are arbitrary software tokens rather than hardware IRQ numbers.&amp;nbsp; To obtain such a token (called a virtual IRQ number, or virq) you need to create a mapping.&amp;nbsp; The most common way to do that is to either use irq_of_parse_and_map(), or get the virq from a bus-specific structure (e.g. struct pci_dev or struct platform_device).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;irq_create_mapping() is the low-level function used by the above methods of translation.&amp;nbsp; It's possible to use it directly, but you normally shouldn't have to.&amp;nbsp; If you find yourself wanting to use it, it probably means that you have hardware that should be described in the device tree but isn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;irq_find_mapping() is one method used by interrupt controller drivers to turn a hardware interrupt number into a virq using an existing mapping.&amp;nbsp; If you're not writing an interrupt controller driver or something similar, you don't need this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 16:46:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/Could-some-one-elaborate-irq-create-mapping-irq-find-mapping-to/m-p/376356#M955</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2014-10-08T16:46:55Z</dc:date>
    </item>
  </channel>
</rss>

