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

4.115
Last change on this file since e53daed 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: 684 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.org/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#include "pci_internal.h"
22
23/* Assume that user has defined static setup array in pci_hb */
24int 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.