source: rtems/cpukit/libpci/pci_cfg_peripheral.c @ a31845f7

4.11
Last change on this file since a31845f7 was a31845f7, checked in by Daniel Hellstrom <daniel@…>, on Nov 28, 2011 at 9:11:10 AM

LIBPCI: added PCI layer to cpukit/libpci

  • Property mode set to 100644
File size: 709 bytes
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 */
23extern int pci_bus_cnt;
24
25/* Assume that user has defined static setup array in pci_hb */
26int 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.