PCIIDE_CMD0646U_UDMA->PCIIDE_CMD0646U_ENABLEUDMA for consistency with

PCIIDE_AMD756_ENABLEDMA
defopt PCIIDE_CMD0646U_ENABLEUDMA, PCIIDE_AMD756_ENABLEDMA,
    PCIIDE_CMD064x_DISABLE
Fix a typo pointed out by John Hawkinson
This commit is contained in:
bouyer 2000-08-02 21:49:09 +00:00
parent c018ba7889
commit 46c3f0204d
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files.pci,v 1.100 2000/07/25 23:18:44 jeffs Exp $
# $NetBSD: files.pci,v 1.101 2000/08/02 21:49:10 bouyer Exp $
#
# Config file and device description for machine-independent PCI code.
# Included by ports that need it. Requires that the SCSI files be
@ -11,6 +11,9 @@ defopt opt_bktr.h BKTR_OVERRIDE_CARD BKTR_OVERRIDE_TUNER BKTR_OVERRIDE_DBX
BKTR_USE_PLL BKTR_GPIO_ACCESS BKTR_NO_MSP_RESET
BKTR_430_FX_MODE BKTR_SIS_VIA_MODE
defopt opt_pciide.h PCIIDE_CMD064x_DISABLE PCIIDE_AMD756_ENABLEDMA
PCIIDE_CMD0646U_ENABLEUDMA
device pci {[dev = -1], [function = -1]}
attach pci at pcibus
file dev/pci/pci.c pci needs-flag

View File

@ -1,4 +1,4 @@
/* $NetBSD: pciide.c,v 1.83 2000/08/02 20:23:45 bouyer Exp $ */
/* $NetBSD: pciide.c,v 1.84 2000/08/02 21:49:09 bouyer Exp $ */
/*
@ -115,6 +115,8 @@ int wdcdebug_pciide_mask = 0;
#include <dev/pci/pciide_hpt_reg.h>
#include <dev/pci/cy82c693var.h>
#include "opt_pciide.h"
/* inlines for reading/writing 8-bit PCI registers */
static __inline u_int8_t pciide_pci_read __P((pci_chipset_tag_t, pcitag_t,
int));
@ -2207,7 +2209,7 @@ cmd0643_9_chip_map(sc, pa)
* with UDMA. Only enable it if we know what we're
* doing
*/
#ifdef PCIIDE_CMD0646U_UDMA
#ifdef PCIIDE_CMD0646U_ENABLEUDMA
sc->sc_wdcdev.cap |= WDC_CAPABILITY_UDMA;
sc->sc_wdcdev.UDMA_cap = 2;
#endif
@ -2242,7 +2244,10 @@ cmd0643_9_chip_map(sc, pa)
continue;
cmd0643_9_setup_channel(&cp->wdc_channel);
}
/* note - this also make sure we clear the irq disable and reset bits */
/*
* note - this also makes sure we clear the irq disable and reset
* bits
*/
pciide_pci_write(sc->sc_pc, sc->sc_tag, CMD_DMA_MODE, CMD_DMA_MULTIPLE);
WDCDEBUG_PRINT(("cmd0643_9_chip_map: timings reg now 0x%x 0x%x\n",
pci_conf_read(sc->sc_pc, sc->sc_tag, 0x54),