4.115
Line | |
---|
1 | /* PCI (Peripheral) Configuration Library |
---|
2 | * |
---|
3 | * COPYRIGHT (c) 2011. |
---|
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 | /* |
---|
12 | * |
---|
13 | * The Host Bridge bus must be declared by user. It contain the static |
---|
14 | * configuration used to setup the devices/functions. |
---|
15 | */ |
---|
16 | |
---|
17 | /* Configure headers */ |
---|
18 | #define PCI_CFG_PERIPHERAL_LIB |
---|
19 | |
---|
20 | #include <pci/cfg.h> |
---|
21 | |
---|
22 | /* Number of buses */ |
---|
23 | extern int pci_bus_cnt; |
---|
24 | |
---|
25 | /* Assume that user has defined static setup array in pci_hb */ |
---|
26 | int pci_config_peripheral(void) |
---|
27 | { |
---|
28 | pci_bus_cnt = pci_hb.sord + 1; |
---|
29 | pci_system_type = PCI_SYSTEM_PERIPHERAL; |
---|
30 | |
---|
31 | return 0; |
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.