[PATCH 2.6.13] drivers/ide: Enable basic VIA VT6410 IDE functionality

From: Robert Kesterson
Date: Wed Sep 21 2005 - 16:38:46 EST


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@xxxxxxxxxxx>

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/