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

4.11
Last change on this file since a31845f7 was a31845f7, checked in by Daniel Hellstrom <daniel@…>, on Nov 28, 2011 at 9:11:10 AM

LIBPCI: added PCI layer to cpukit/libpci

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