From: David Schleef Date: Thu, 30 Nov 2000 01:14:48 +0000 (+0000) Subject: compile fixes X-Git-Tag: r0_7_51~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1f7b81885bd675935c56f0d46bf3142c32c4c686;p=comedi.git compile fixes --- diff --git a/comedi/drivers/amcc_s5933.h b/comedi/drivers/amcc_s5933.h index d28faeb8..e9bdcb4d 100644 --- a/comedi/drivers/amcc_s5933.h +++ b/comedi/drivers/amcc_s5933.h @@ -18,7 +18,7 @@ #include #ifdef PCI_SUPPORT_VER1 - Sorry, no support for 2.1.55 and older! :-(((( +#error Sorry, no support for 2.1.55 and older! :-(((( #endif @@ -218,14 +218,17 @@ void amcc_init(void) amcc->daq_io_addr=pcidev->base_address[2] & ~3UL; amcc->irq=pcidev->irq; #else - amcc->device=???; - amcc->master=???; - amcc->pci_bus=???; - amcc->pci_slot=???; - amcc->pci_func=???; + amcc->device=pcidev->device; +#if 0 + amcc->master=pcidev->master; + amcc->pci_bus=pcidev->bus->number; + amcc->pci_slot=PCI_SLOT(pcidev->devfn); + amcc->pci_func=PCI_FUNC(pcidev->devfn); +#endif amcc->amcc_io_addr=pcidev->resource[0].start & ~3UL; amcc->daq_io_addr=pcidev->resource[2].start & ~3UL; - amcc->irq=???; + amcc->irq=pcidev->irq; +#endif #endif }