4.115
Last change
on this file since 4a7d1026 was
e53daed,
checked in by Daniel Hellstrom <daniel@…>, on 04/09/15 at 14:09:42
|
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 | |
---|
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.