source: rtems/cpukit/libpci/pci_irq.c @ e53daed

4.11
Last change on this file since e53daed was e53daed, checked in by Daniel Hellstrom <daniel@…>, on Apr 9, 2015 at 2:09:42 PM

LIBPCI: updated license to rtems.org

  • Property mode set to 100644
File size: 410 bytes
Line 
1/*  PCI IRQ Library
2 *
3 *  COPYRIGHT (c) 2010 Cobham Gaisler AB.
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#include <pci.h>
11#include <pci/access.h>
12#include <pci/irq.h>
13
14int pci_dev_irq(pci_dev_t dev)
15{
16        uint8_t irq_line;
17        pci_cfg_r8(dev, PCIR_INTLINE, &irq_line);
18        return irq_line;
19}
Note: See TracBrowser for help on using the repository browser.