Messages in this thread Patch in this message | | | Date | Fri, 6 Aug 1999 09:52:21 +1200 | From | Chris Wedgwood <> | Subject | PATCH: Small compile fix for 2.3.16-3 |
| |
Required to compile on my system (untested).
--- ./drivers/block/ide-dma.c.orig Fri Aug 6 09:05:29 1999 +++ ./drivers/block/ide-dma.c Fri Aug 6 09:14:19 1999 @@ -518,7 +518,7 @@ if (hwif->mate && hwif->mate->dma_base) { dma_base = hwif->mate->dma_base - (hwif->channel ? 0 : 8); } else { - dma_base = dev->base_address[4] & PCI_BASE_ADDRESS_IO_MASK; + dma_base = dev->resource[4].start & PCI_BASE_ADDRESS_IO_MASK; if (!dma_base || dma_base == PCI_BASE_ADDRESS_IO_MASK) { printk("%s: dma_base is invalid (0x%04lx)\n", name, dma_base); dma_base = 0; --- ./drivers/net/3c59x.c.orig Sat Jul 24 19:12:24 1999 +++ ./drivers/net/3c59x.c Fri Aug 6 09:27:28 1999 @@ -650,7 +650,11 @@ pcibios_read_config_word(pci_bus, pci_device_fn, PCI_COMMAND, &pci_command); { -#if LINUX_VERSION_CODE >= 0x20155 +#if LINUX_VERSION_CODE >= 0x2030d + struct pci_dev *pdev = pci_find_slot(pci_bus, pci_device_fn); + ioaddr = pdev->resource[0].start; + irq = pdev->irq; +#elif LINUX_VERSION_CODE >= 0x20155 struct pci_dev *pdev = pci_find_slot(pci_bus, pci_device_fn); ioaddr = pdev->base_address[0]; irq = pdev->irq;
NB. My 3c59x isn't stock (because it doesn't work) but I think it will aply anyhow...
-cw
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |