Re: VIA VT6410 ATA support

From: Søren Schmidt <sos_at_DeepCore.dk>
Date: Thu, 11 Mar 2004 12:15:55 +0100
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
_at__at_ -2138,7 +2138,8 _at__at_
       { 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
_at__at_ -224,11 +224,12 _at__at_
  #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
Received on Thu Mar 11 2004 - 02:16:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:47 UTC