VIA VT6410 ATA support

Søren Schmidt sos at DeepCore.dk
Thu Mar 11 03:16:20 PST 2004


Putinas Piliponis wrote:
> Hi,
> Is there any planning to make vt6410 working ? ( at least like simple ide, not raid )
> Right now on booting it's not detected.

You could try this patch (untested and for -current)

Index: ata-chipset.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-chipset.c,v
retrieving revision 1.63
diff -u -r1.63 ata-chipset.c
--- ata-chipset.c       4 Mar 2004 16:39:59 -0000       1.63
+++ ata-chipset.c       11 Mar 2004 11:14:30 -0000
@@ -2138,7 +2138,8 @@
       { ATA_VIA8237,   0x00, VIA133, 0x00,   ATA_UDMA6, "VIA 8237" },
       { 0, 0, 0, 0, 0, 0 }};
      static struct ata_chip_id new_ids[] =
-    {{ ATA_VIA8237_1, 0x00, 0x00,   0x00,   ATA_SA150, "VIA 8237" },
+    {{ ATA_VIA6410, 0x00, 0x00,   0x00,   ATA_UDMA6, "VIA 6410" },
+    {{ ATA_VIA6420, 0x00, 0x00,   0x00,   ATA_SA150, "VIA 6420" },
       { 0, 0, 0, 0, 0, 0 }};
      char buffer[64];

Index: ata-pci.h
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-pci.h,v
retrieving revision 1.25
diff -u -r1.25 ata-pci.h
--- ata-pci.h   25 Feb 2004 09:55:49 -0000      1.25
+++ ata-pci.h   11 Mar 2004 11:13:27 -0000
@@ -224,11 +224,12 @@
  #define ATA_VIA8233C           0x31091106
  #define ATA_VIA8235            0x31771106
  #define ATA_VIA8237            0x32271106
-#define ATA_VIA8237_1          0x31491106
  #define ATA_VIA8361            0x31121106
  #define ATA_VIA8363            0x03051106
  #define ATA_VIA8371            0x03911106
  #define ATA_VIA8662            0x31021106
+#define ATA_VIA6410            0x31641106
+#define ATA_VIA6420            0x31491106

  /* chipset setup related defines */
  #define ATPOLD         1


-- 
-Søren



More information about the freebsd-current mailing list