linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.13] drivers/ide: Enable basic VIA VT6410 IDE functionality
@ 2005-09-21 21:38 Robert Kesterson
  2005-09-22 14:28 ` Alan Cox
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Robert Kesterson @ 2005-09-21 21:38 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-kernel, linux-ide

This patch enables plain IDE functionality on the VIA VT6410 IDE controller
(such as used on the Asus P4P800 Deluxe motherboard).  This is not a RAID
driver, but you can use Linux's software RAID once the drives are visible.
I did not write the original version of this patch, which I found on the
internet back in the days of kernel 2.6.2.  I have been unable to identify
the original author to give him/her proper credit.  I have been maintaining
and updating this patch since then and have released several updates which
have been successfully used by others who have downloaded it from my
website.

It seems appropriate that this minimal functionality should be in the
mainstream kernel.

Signed-off-by: Robert Kesterson <robertk@robertk.com>

diff -rup linux-2.6.13.2.orig/drivers/ide/pci/generic.c linux-2.6.13.2/drivers/ide/pci/generic.c
--- linux-2.6.13.2.orig/drivers/ide/pci/generic.c	2005-09-16 20:02:12.000000000 -0500
+++ linux-2.6.13.2/drivers/ide/pci/generic.c	2005-09-21 16:27:38.000000000 -0500
@@ -179,6 +179,12 @@ static ide_pci_device_t generic_chipsets
  		.channels	= 2,
  		.autodma	= AUTODMA,
  		.bootable	= OFF_BOARD,
+	},{	/* 15 */
+		.name		= "VIA_610",
+		.init_hwif	= init_hwif_generic,
+		.channels	= 2,
+		.autodma	= AUTODMA,
+		.bootable	= ON_BOARD,
  	}
  };

@@ -238,6 +244,7 @@ static struct pci_device_id generic_pci_
  	{ PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_1,   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 12},
  	{ PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_2,   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 13},
  	{ PCI_VENDOR_ID_NETCELL,PCI_DEVICE_ID_REVOLUTION,          PCI_ANY_ID, PCI_ANY_ID, 0, 0, 14},
+	{ PCI_VENDOR_ID_VIA,    PCI_DEVICE_ID_VIA_610,             PCI_ANY_ID, PCI_ANY_ID, 0, 0, 15},
  	/* Must come last. If you add entries adjust this table appropriately and the init_one code */
  	{ PCI_ANY_ID,		PCI_ANY_ID,			   PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 0xFFFFFF00UL, 0},
  	{ 0, },
diff -rup linux-2.6.13.2.orig/include/linux/pci_ids.h linux-2.6.13.2/include/linux/pci_ids.h
--- linux-2.6.13.2.orig/include/linux/pci_ids.h	2005-09-16 20:02:12.000000000 -0500
+++ linux-2.6.13.2/include/linux/pci_ids.h	2005-09-21 16:27:38.000000000 -0500
@@ -1413,6 +1413,7 @@
  #define PCI_DEVICE_ID_VIA_8703_51_0	0x3148
  #define PCI_DEVICE_ID_VIA_8237_SATA	0x3149
  #define PCI_DEVICE_ID_VIA_XN266		0x3156
+#define PCI_DEVICE_ID_VIA_610		0x3164
  #define PCI_DEVICE_ID_VIA_8754C_0	0x3168
  #define PCI_DEVICE_ID_VIA_8235		0x3177
  #define PCI_DEVICE_ID_VIA_P4N333	0x3178

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

end of thread, other threads:[~2005-10-03 18:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-21 21:38 [PATCH 2.6.13] drivers/ide: Enable basic VIA VT6410 IDE functionality Robert Kesterson
2005-09-22 14:28 ` Alan Cox
2005-09-23 15:40   ` Bartlomiej Zolnierkiewicz
2005-09-22 18:41 ` Bill Davidsen
2005-10-03 18:41 ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).