1/*  *********************************************************************
2    *  Broadcom Common Firmware Environment (CFE)
3    *
4    *  PCI device selection and initialization		File: pci_devs.c
5    *
6    *  These are the routines to include the PCI device drivers
7    *  for which CPCI cards are available.
8    *
9    *********************************************************************
10    *
11    *  Copyright 2003
12    *  Broadcom Corporation. All rights reserved.
13    *
14    *  This software is furnished under license and may be used and
15    *  copied only in accordance with the following terms and
16    *  conditions.  Subject to these conditions, you may download,
17    *  copy, install, use, modify and distribute modified or unmodified
18    *  copies of this software in source and/or binary form.  No title
19    *  or ownership is transferred hereby.
20    *
21    *  1) Any source code used, modified or distributed must reproduce
22    *     and retain this copyright notice and list of conditions
23    *     as they appear in the source file.
24    *
25    *  2) No right is granted to use any trade name, trademark, or
26    *     logo of Broadcom Corporation.  The "Broadcom Corporation"
27    *     name may not be used to endorse or promote products derived
28    *     from this software without the prior written permission of
29    *     Broadcom Corporation.
30    *
31    *  3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR
32    *     IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED
33    *     WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
34    *     PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT
35    *     SHALL BROADCOM BE LIABLE FOR ANY DAMAGES WHATSOEVER, AND IN
36    *     PARTICULAR, BROADCOM SHALL NOT BE LIABLE FOR DIRECT, INDIRECT,
37    *     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38    *     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
39    *     GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
40    *     BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
41    *     OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
42    *     TORT (INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF
43    *     THE POSSIBILITY OF SUCH DAMAGE.
44    ********************************************************************* */
45
46
47#if CFG_PCI
48#include "cfe.h"
49#include "env_subr.h"
50
51extern cfe_driver_t tulipdrv;                   /* Tulip Ethernet */
52
53#if CFG_DOWNLOAD
54extern cfe_driver_t bcm1250drv;                 /* BCM1250 as a device */
55#endif
56
57void cpci_add_devices(int init_pci);
58void cpci_add_devices(int init_pci)
59{
60    if (init_pci) {
61	cfe_add_device(&tulipdrv,0,0,env_getenv("TULIP0_HWADDR"));
62	 /* ... more as we get suitable cards. */
63
64#if CFG_DOWNLOAD
65	/* Access to bcm1250 in PCI device mode */
66	cfe_add_device(&bcm1250drv,0,0,NULL);
67#endif
68	 }
69}
70#endif /* CFG_PCI */
71