Subject: Re: VT82C586A IDE Controller mode 5 problem
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Jay Nelson <jnelson@newsstand.com>
List: port-i386
Date: 07/22/2002 16:50:45
On Mon, Jul 22, 2002 at 11:03:51PM +0200, Manuel Bouyer wrote:
> On Mon, Jul 22, 2002 at 06:07:19PM +0200, Manuel Bouyer wrote:
> > OK. Can you please send the whole dmesg ? I need pci ID of other
> > VIA parts to fix it.
> 
> In fact this may already be supported in current. Please try
> the attached patch for 1.6 (you need to run make -f Makefile.pcidevs
> in sys/dev/pci after applying the patch).

Thanks. I'll apply the patch this evening and let you know. Unless you
want the dmesg output anyway, I'll wait until I try the patches. 

-- jay
 
> -- 
> Manuel Bouyer <bouyer@antioche.eu.org>
> --
> 

> Index: pciide.c
> ===================================================================
> RCS file: /cvsroot/syssrc/sys/dev/pci/pciide.c,v
> retrieving revision 1.157
> retrieving revision 1.160
> diff -u -r1.157 -r1.160
> --- pciide.c	2002/06/09 16:52:26	1.157
> +++ pciide.c	2002/07/22 20:56:57	1.160
> @@ -2177,6 +2177,11 @@
>  		break;
>  	case PCI_PRODUCT_VIATECH_VT8233:
>  		printf("VT8233 ATA100 controller\n");
> +		sc->sc_wdcdev.UDMA_cap = 5;
> +		break;
> +	case PCI_PRODUCT_VIATECH_VT8233A:
> +		printf("VT8233A ATA133 controller\n");
> +		/* XXX use ATA100 untill ATA133 is supported */
>  		sc->sc_wdcdev.UDMA_cap = 5;
>  		break;
>  	default:
> Index: pcidevs
> ===================================================================
> RCS file: /cvsroot/syssrc/sys/dev/pci/pcidevs,v
> retrieving revision 1.437
> retrieving revision 1.438
> diff -u -r1.437 -r1.438
> --- pcidevs	2002/06/09 16:50:51	1.437
> +++ pcidevs	2002/06/10 08:30:29	1.438
> @@ -1,4 +1,4 @@
> -$NetBSD: pcidevs,v 1.437 2002/06/09 16:50:51 taca Exp $
> +$NetBSD: pcidevs,v 1.438 2002/06/10 08:30:29 cjs Exp $
>  
>  /*
>   * Copyright (c) 1995, 1996 Christopher G. Demetriou
> @@ -2090,6 +2090,7 @@
>  product VIATECH VT8233		0x3074	VT8233 PCI-ISA Bridge
>  product VIATECH VT8366		0x3099	VT8366 (Apollo KT266) CPU-PCI Bridge
>  product VIATECH VT82C686A_MC97	0x3068	VT82C686A MC-97 Modem Controller
> +product VIATECH VT8233A		0x3147	VT8233A 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