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

4.11
Last change on this file since f4bf22c was f4bf22c, checked in by Daniel Hellstrom <daniel@…>, on Apr 8, 2015 at 8:51:45 AM

LIBPCI: new implementation private header file

  • new implementation private header file
  • moved double implementation of pci_dev_create used by read & auto cfg libraries to common pci_dev_create.c
  • moved declaration of pci_bus_cnt to private header file so avoid extern in .c files
  • 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.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#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.