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