Subject: port-i386/22453: add some support for VIA KT600 chipset
To: None <gnats-bugs@gnats.netbsd.org>
From: None <stephen@degler.net>
List: netbsd-bugs
Date: 08/12/2003 10:30:21
>Number:         22453
>Category:       port-i386
>Synopsis:       Add some support for VIA KT600 chipset.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 12 14:31:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Degler
>Release:        NetBSD 1.6W
>Organization:
	
>Environment:
	
	
System: NetBSD kashmir.degler.net 1.6W NetBSD 1.6W (KASHMIR) #18: Sun Aug 10 18:40:48 EDT 2003 sdegler@kashmir.degler.net:/vol1/NetBSD/kernels/KASHMIR i386
Architecture: i386
Machine: i386
>Description:
	Added pci id's and a small patch to support Via's KT600 chipset.
	The serial ATA controller is probably still no supported, but
	the PATA ide is running fine.
	
>How-To-Repeat:
	Boot NetBSD -current on an ASUS A7V600 motherboard.  Several
	resources were not identified, and ide disk speeds were not optimal.
	
>Fix:
	These patches identify the components and allow ATA133 on the
	ide controller.  I'm not sure what needs to be done to add support for
	the south bridge's serial ata controller.  The sk driver will need to
	be imported from FreeBSD or OpenBSD to support this motherboard's
	gige, but that is a seperate issue.

Index: sys/dev/pci/pcidevs
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/pcidevs,v
retrieving revision 1.562
diff -u -r1.562 pcidevs
--- sys/dev/pci/pcidevs	2003/08/07 05:35:04	1.562
+++ sys/dev/pci/pcidevs	2003/08/12 14:23:49
@@ -608,6 +608,7 @@
 product 3COM 3C985	0x0001	3c985 Gigabit Ethernet
 product 3COM 3C996	0x0003	3c996 10/100/1000 Ethernet
 product 3COM 3C556MODEM	0x1007	3c556 V.90 MiniPCI Modem
+product 3COM 3C940	0x1700	3c940 Gigabit Ethernet
 product 3COM 3C450TX	0x4500	3c450-TX 10/100 Ethernet
 product 3COM 3C590	0x5900	3c590 Ethernet
 product 3COM 3C595TX	0x5950	3c595-TX 10/100 Ethernet
@@ -2483,9 +2484,12 @@
 product VIATECH VT8233		0x3074	VT8233 PCI-ISA Bridge
 product VIATECH VT8366		0x3099	VT8366 (Apollo KT266) CPU-PCI Bridge
 product VIATECH VT8653		0x3101	VT8653 (Apollo Pro 266T) CPU-PCI Bridge
+product VIATECH VT8237_EHCI	0x3104	VT8237 EHCI USB Controller
 product VIATECH VT8233A		0x3147	VT8233A PCI-ISA Bridge
+product VIATECH VT8237_RAID	0x3149	VT8237 Integrated RAID Controller
 product VIATECH VT8235		0x3177	VT8235 (Apollo KT400) PCI-ISA Bridge
 product VIATECH VT8377		0x3189	VT8377 Apollo KT400 CPU to PCI Bridge
+product VIATECH VT8237		0x3227  VT8237 (Apollo KT600) PCI-ISA Bridge
 product VIATECH VT86C100A	0x6100	VT86C100A (Rhine-II) 10/100 Ethernet
 product VIATECH VT8231		0x8231	VT8231 IDE Controller
 product VIATECH VT8363_PPB	0x8305	VT8363 KT133 PCI to AGP Bridge
@@ -2497,6 +2501,7 @@
 product VIATECH VT8633AGP	0xb091	VT8633 (Apollo Pro 266) CPU-AGP Bridge
 product VIATECH VT8366AGP	0xb099	VT8366 CPU-AGP Bridge
 product VIATECH VT8377AGP	0xb168	VT8377 CPU-AGP Bridge
+product VIATECH VT8377CEAGP	0xb198	VT8377CE CPU-AGP Bridge (KT600)
 
 /* Vortex Computer Systems products */
 product VORTEX GDT_60x0		0x0000	GDT6000/6020/6050
Index: sys/dev/pci/pciide.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/pciide.c,v
retrieving revision 1.195
diff -u -r1.195 pciide.c
--- sys/dev/pci/pciide.c	2003/08/10 14:51:55	1.195
+++ sys/dev/pci/pciide.c	2003/08/12 14:23:52
@@ -2381,6 +2381,10 @@
 		aprint_normal("VT8235 ATA133 controller\n");
 		sc->sc_wdcdev.UDMA_cap = 6;
 		break;
+	case PCI_PRODUCT_VIATECH_VT8237_RAID:
+		aprint_normal("VT8237 ATA133 controller\n");
+		sc->sc_wdcdev.UDMA_cap = 6;
+		break;
 	default:
 		aprint_normal("unknown ATA controller\n");
 		sc->sc_wdcdev.UDMA_cap = 0;
>Release-Note:
>Audit-Trail:
>Unformatted: