source: rtems/cpukit/libpci/pci_cfg_peripheral.c @ 71e8a5c

4.11
Last change on this file since 71e8a5c was 71e8a5c, checked in by Daniel Hellstrom <daniel@…>, on Feb 27, 2015 at 3:45:59 PM

LIBPCI: moved copyright into a single line

  • Property mode set to 100644
File size: 704 bytes
Line 
1/*  PCI (Peripheral) Configuration Library
2 *
3 *  COPYRIGHT (c) 2011 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.com/license/LICENSE.
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
21/* Number of buses */
22extern int pci_bus_cnt;
23
24/* Assume that user has defined static setup array in pci_hb */
25int pci_config_peripheral(void)
26{
27        pci_bus_cnt = pci_hb.sord + 1;
28        pci_system_type = PCI_SYSTEM_PERIPHERAL;
29
30        return 0;
31}
Note: See TracBrowser for help on using the repository browser.