4.115
Last change
on this file since a31845f7 was
a31845f7,
checked in by Daniel Hellstrom <daniel@…>, on 11/28/11 at 09:11:10
|
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 | |
---|
15 | int 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.