Add support for the AMD768. Tested by Murray Armfield <murray@river-styx.org>.

This commit is contained in:
bouyer 2002-03-24 16:58:12 +00:00
parent e971d6b60f
commit 21ac4c9d76

View File

@ -1,4 +1,4 @@
/* $NetBSD: pciide.c,v 1.144 2002/01/29 21:13:17 bouyer Exp $ */
/* $NetBSD: pciide.c,v 1.145 2002/03/24 16:58:12 bouyer Exp $ */
/*
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.144 2002/01/29 21:13:17 bouyer Exp $");
__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.145 2002/03/24 16:58:12 bouyer Exp $");
#ifndef WDCDEBUG
#define WDCDEBUG
@ -313,6 +313,11 @@ const struct pciide_product_desc pciide_amd_products[] = {
"Advanced Micro Devices AMD766 IDE Controller",
amd7x6_chip_map
},
{ PCI_PRODUCT_AMD_PBC768_IDE,
0,
"Advanced Micro Devices AMD768 IDE Controller",
amd7x6_chip_map
},
{ 0,
0,
NULL,
@ -1945,10 +1950,14 @@ amd7x6_chip_map(sc, pa)
sc->sc_wdcdev.PIO_cap = 4;
sc->sc_wdcdev.DMA_cap = 2;
if (sc->sc_pp->ide_product == PCI_PRODUCT_AMD_PBC766_IDE)
switch (sc->sc_pp->ide_product) {
case PCI_PRODUCT_AMD_PBC766_IDE:
case PCI_PRODUCT_AMD_PBC768_IDE:
sc->sc_wdcdev.UDMA_cap = 5;
else
break;
default:
sc->sc_wdcdev.UDMA_cap = 4;
}
sc->sc_wdcdev.set_modes = amd7x6_setup_channel;
sc->sc_wdcdev.channels = sc->wdc_chanarray;
sc->sc_wdcdev.nchannels = PCIIDE_NUM_CHANNELS;