/* Author: Till Straumann , 2001 */ /* find a particular PCI device * (we assume, the firmware configured the PCI bus[es] for us) * * $Id$ */ #define PCI_INVALID_VENDORDEVICEID 0xffffffff #define PCI_MULTI_FUNCTION 0x80 #include #include int BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid, int instance, int *pbus, int *pdev, int *pfun ) { unsigned int d; unsigned short s; unsigned char bus,dev,fun,hd; for (bus=0; bus