forked from Imagelibrary/rtems
2005-03-04 Joel Sherrill <joel@OARcorp.com>
* pci/pci.c, pci/pcifinddevice.c, startup/bspstart.c: Make PCI initialize function part of the unified PCI API as pci_initialize().
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2005-03-04 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* pci/pci.c, pci/pcifinddevice.c, startup/bspstart.c: Make PCI
|
||||
initialize function part of the unified PCI API as pci_initialize().
|
||||
|
||||
2005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* startup/bspstart.c: Eliminate rtems_unsigned32.
|
||||
|
||||
@@ -521,7 +521,7 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) )
|
||||
/*
|
||||
* This routine determines the maximum bus number in the system
|
||||
*/
|
||||
void InitializePCI()
|
||||
void pci_initialize()
|
||||
{
|
||||
extern void detect_host_bridge();
|
||||
unsigned char ucSlotNumber, ucFnNumber, ucNumFuncs;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
int
|
||||
BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid,
|
||||
pci_find_by_devid( unsigned short vendorid, unsigned short deviceid,
|
||||
int instance, int *pbus, int *pdev, int *pfun )
|
||||
{
|
||||
unsigned int d;
|
||||
@@ -37,7 +37,7 @@ BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid,
|
||||
if (PCI_INVALID_VENDORDEVICEID == d)
|
||||
continue;
|
||||
#ifdef PCI_DEBUG
|
||||
printk("BSP_pciFindDevice: found 0x%08x at %d/%d/%d\n",d,bus,dev,fun);
|
||||
printk("pci_find_by_devid: found 0x%08x at %d/%d/%d\n",d,bus,dev,fun);
|
||||
#endif
|
||||
(void) pci_read_config_word(bus,dev,fun,PCI_VENDOR_ID,&s);
|
||||
if (vendorid != s)
|
||||
|
||||
@@ -399,7 +399,7 @@ void bsp_start( void )
|
||||
#ifdef SHOW_MORE_INIT_SETTINGS
|
||||
printk("Going to start PCI buses scanning and initialization\n");
|
||||
#endif
|
||||
InitializePCI();
|
||||
pci_initialize();
|
||||
|
||||
{
|
||||
const struct _int_map *bspmap = motorolaIntMap(currentBoard);
|
||||
|
||||
Reference in New Issue
Block a user