All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] SuckyIO support
@ 2000-12-19  9:42 Matthew Wilcox
  2000-12-19 15:46 ` Alex deVries
  2000-12-23  9:15 ` Matthew Wilcox
  0 siblings, 2 replies; 17+ messages in thread
From: Matthew Wilcox @ 2000-12-19  9:42 UTC (permalink / raw)
  To: parisc-linux


Wow, this is a really sucky chip :-)

OK, here's a first stab at some support for it.  Could someone with a
B/C/J `thousand' class machine please give it a try, and let me see the
relevant portions of their bootlog?

Obviously, this code only tries to set up the IRQ for the IDE driver
and doesn't attempt to address any of the other broken things this chip
requires, but it's architecturally in the right place.

It'd be really handy if I could get access to one of that class of machine
with remote console & remote rebooting facilities, but i should be near
a machine of that type in a couple of months anyway...

diff -u linux-cvs/drivers/pci/quirks.c linux-mine/drivers/pci/quirks.c
--- linux-cvs/drivers/pci/quirks.c	Fri Nov 10 21:43:18 2000
+++ linux-mine/drivers/pci/quirks.c	Tue Dec 19 09:27:28 2000
@@ -234,6 +234,25 @@
 	pci_read_config_word(dev, PCI_DEVICE_ID, &dev->device);
 }
 
+static void __init quirk_ns_87560(struct pci_dev *dev)
+{
+	switch (dev->device)
+	{
+		case PCI_DEVICE_ID_NS_87415:
+			break;
+		case PCI_DEVICE_ID_NS_87560_LIO:
+			{
+				struct pci_dev *ide_dev;
+				char irq;
+				ide_dev = pci_dev_b(dev->bus_list.prev);
+				pci_read_config_byte(dev, 0x6B, &irq);
+				ide_dev->irq = irq & 0xf;
+				printk("Assigned IRQ %d to IDE\n", ide_dev->irq);
+			}
+			break;
+	}
+}
+
 /*
  *  The main table of quirks.
  */
@@ -269,6 +288,7 @@
 	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_AL,	PCI_DEVICE_ID_AL_M7101,		quirk_ali7101_acpi },
  	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_INTEL,	PCI_DEVICE_ID_INTEL_82371SB_2,	quirk_piix3_usb },
 	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_INTEL,	PCI_DEVICE_ID_INTEL_82371AB_2,	quirk_piix3_usb },
+	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_NS,	PCI_ANY_ID,	quirk_ns_87560 },
 	{ 0 }
 };
 

-- 
Revolutions do not require corporate support.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2000-12-27 20:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-19  9:42 [parisc-linux] SuckyIO support Matthew Wilcox
2000-12-19 15:46 ` Alex deVries
2000-12-20  2:56   ` Grant Grundler
2000-12-20  6:37     ` Alex deVries
2000-12-20 13:05       ` Alan Cox
2000-12-20 17:30         ` Grant Grundler
2000-12-20 20:47           ` Alan Cox
2000-12-20 21:12             ` Grant Grundler
2000-12-20 15:50     ` Matthew Wilcox
2000-12-20 16:54       ` Alex deVries
2000-12-20 18:24       ` Grant Grundler
2000-12-24  9:05         ` Matthew Wilcox
2000-12-26  7:16           ` Grant Grundler
2000-12-26 10:53             ` Matthew Wilcox
2000-12-26 20:18               ` Grant Grundler
2000-12-23  9:15 ` Matthew Wilcox
2000-12-27 20:27   ` Alex deVries

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.