fdomain.c: Fix for PCI detection

Brian Beaudoin (baddog@darkknight.net)
Sun, 19 Apr 1998 18:16:33 -0400


Martin,

I did a little bit of hacking on the Future Domain driver and I finally
got it to work without completely trashing your work.

Basically, I read the notes that James McKinley wrote that blamed the
Future Domain hardware for the failure of "pcibios_find_device" (now
"pci_find_device") and merged the original loop detection for IRQ and
I/O base address with your updated driver.

After I do a little bit more testing, I will submit a unified diff
(patch) against the version of the driver released with 2.1.96.

----
dmesg output with fix in place (DEBUG_DETECT is on):

fdomain_16x0_detect(), c8000(0),
INFO: use lspci -v to see list of PCI devices

TMC-3260 detect: Using PCI Vendor ID: 0x1036, PCI Device ID: 0x0
Future Domain 36C70 : at PCI bus 0, device 10, function 0
TMC-3260 PCI: IRQ = 11, I/O base = 0x6101
TMC-3260 fix: Masking I/O base address with 0xff00.
TMC-3260: IRQ = 11, I/O base = 0x6100 (60e9),scsi0
<fdomain>: BIOS version 3.?. at 0xc8000 using scsi id 7
scsi0 <fdomain>: TMC-36C70 (PCI bus) chip at 0x6100 irq 11
[...]
scsi : detected 2 SCSI disks total.

Brian Beaudoin
baddog@darkknight.net

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu