source: rtems/cpukit/libpci/pci_irq.c @ 71e8a5c

4.11
Last change on this file since 71e8a5c was 71e8a5c, checked in by Daniel Hellstrom <daniel@…>, on Feb 27, 2015 at 3:45:59 PM

LIBPCI: moved copyright into a single line

  • Property mode set to 100644
File size: 416 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.com/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, PCI_INTERRUPT_LINE, &irq_line);
18        return irq_line;
19}
Note: See TracBrowser for help on using the repository browser.