#include "amcc_s5933.h"
-#ifdef PCI_SUPPORT_VER1
-#error Sorry, no support for 2.1.55 and older! :-((((
-#endif
-
/****************************************************************************/
#include <linux/pci.h>
#include <linux/comedidev.h>
-#ifdef PCI_SUPPORT_VER1
-#error Sorry, no support for 2.1.55 and older! :-((((
-#endif
/****************************************************************************/
#include <linux/pci.h>
#include <linux/comedidev.h>
-#ifdef PCI_SUPPORT_VER1
-#error Sorry, no support for 2.1.55 and older! :-((((
-#endif
/****************************************************************************/
// if bus/slot are specified then make sure we have the right bus/slot
if(bus || slot)
{
-#ifdef PCI_SUPPORT_VER1
- if(bus != mite->pci_bus || slot! = PCI_SLOT(mite->pci_device_fn)) continue;
-#else
if(bus != mite->pcidev->bus->number || slot != PCI_SLOT(mite->pcidev->devfn)) continue;
-#endif
}
for(i = 0; i < driver_labpc.num_names; i++)
{
for(mite=mite_devices;mite;mite=mite->next){
if(mite->used)continue;
if(bus || slot){
-#ifdef PCI_SUPPORT_VER1
- if(bus!=(mite->pci_bus<<8) ||
- slot!=PCI_SLOT(mite->pci_device_fn))
- continue;
-#else
if(bus!=(mite->pcidev->bus->number<<8) ||
slot!=PCI_SLOT(mite->pcidev->devfn))
continue;
-#endif
}
for(i=0;i<n_nidio_boards;i++){
if(mite_device_id(mite)==nidio_boards[i].dev_id){
for(mite=mite_devices;mite;mite=mite->next){
if(mite->used)continue;
if(bus || slot){
-#ifdef PCI_SUPPORT_VER1
- if(bus!=mite->pci_bus ||
- slot!=PCI_SLOT(mite->pci_device_fn))
- continue;
-#else
if(bus!=mite->pcidev->bus->number ||
slot!=PCI_SLOT(mite->pcidev->devfn))
continue;
-#endif
}
for(i=0;i<n_pcimio_boards;i++){