Support Ultra/100 on CMD 0649.

This commit is contained in:
bouyer 2001-11-15 20:48:17 +00:00
parent 9b3e60238e
commit 1952efa437
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pciide.c,v 1.134 2001/11/13 07:48:48 lukem Exp $ */
/* $NetBSD: pciide.c,v 1.135 2001/11/15 20:48:17 bouyer Exp $ */
/*
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.134 2001/11/13 07:48:48 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.135 2001/11/15 20:48:17 bouyer Exp $");
#ifndef WDCDEBUG
#define WDCDEBUG
@ -2431,6 +2431,10 @@ cmd0643_9_chip_map(sc, pa)
sc->sc_wdcdev.cap |= WDC_CAPABILITY_DMA | WDC_CAPABILITY_IRQACK;
switch (sc->sc_pp->ide_product) {
case PCI_PRODUCT_CMDTECH_649:
sc->sc_wdcdev.cap |= WDC_CAPABILITY_UDMA;
sc->sc_wdcdev.UDMA_cap = 5;
sc->sc_wdcdev.irqack = cmd646_9_irqack;
break;
case PCI_PRODUCT_CMDTECH_648:
sc->sc_wdcdev.cap |= WDC_CAPABILITY_UDMA;
sc->sc_wdcdev.UDMA_cap = 4;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pciide_cmd_reg.h,v 1.10 2001/10/21 18:49:20 thorpej Exp $ */
/* $NetBSD: pciide_cmd_reg.h,v 1.11 2001/11/15 20:48:17 bouyer Exp $ */
/*
* Copyright (c) 1998 Manuel Bouyer.
@ -98,7 +98,7 @@
#define CMD_UDMATIM_TIM_MASK 0x3
#define CMD_UDMATIM_TIM_OFF(drive) (4 + ((drive) * 2))
static const int8_t cmd0646_9_tim_udma[] __attribute__((__unused__)) =
{0x03, 0x02, 0x01, 0x02, 0x01};
{0x03, 0x02, 0x01, 0x02, 0x01, 0x00};
/*
* timings values for the 0643/6/8/9