/* Author: Till Straumann , 2001 */ /* find a particular PCI device * (we assume, the firmware configured the PCI bus[es] for us) * * pcifinddevice.c,v 1.1.4.2 2003/07/18 15:48:54 joel Exp */ #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