source:
rtems/cpukit/libpci/pci_irq.c
@
e189f241
Last change on this file since e189f241 was c1c37a1, checked in by Daniel Hellstrom <daniel@…>, on 04/07/15 at 12:25:49 | |
---|---|
|
|
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.com/license/LICENSE. |
8 | */ |
9 | |
10 | #include <pci.h> |
11 | #include <pci/access.h> |
12 | #include <pci/irq.h> |
13 | |
14 | int 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.