4.115
Rev | Line | |
---|
[a31845f7] | 1 | /* PCI (Peripheral) Configuration Library |
---|
| 2 | * |
---|
[71e8a5c] | 3 | * COPYRIGHT (c) 2011 Cobham Gaisler AB. |
---|
[a31845f7] | 4 | * |
---|
| 5 | * The license and distribution terms for this file may be |
---|
| 6 | * found in the file LICENSE in this distribution or at |
---|
[e53daed] | 7 | * http://www.rtems.org/license/LICENSE. |
---|
[a31845f7] | 8 | */ |
---|
| 9 | |
---|
| 10 | /* |
---|
| 11 | * |
---|
| 12 | * The Host Bridge bus must be declared by user. It contain the static |
---|
| 13 | * configuration used to setup the devices/functions. |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | /* Configure headers */ |
---|
| 17 | #define PCI_CFG_PERIPHERAL_LIB |
---|
| 18 | |
---|
| 19 | #include <pci/cfg.h> |
---|
| 20 | |
---|
[f4bf22c] | 21 | #include "pci_internal.h" |
---|
[a31845f7] | 22 | |
---|
| 23 | /* Assume that user has defined static setup array in pci_hb */ |
---|
| 24 | int pci_config_peripheral(void) |
---|
| 25 | { |
---|
| 26 | pci_bus_cnt = pci_hb.sord + 1; |
---|
| 27 | pci_system_type = PCI_SYSTEM_PERIPHERAL; |
---|
| 28 | |
---|
| 29 | return 0; |
---|
| 30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.