Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mca use the new MCABUS_DMA_16BIT flag to use 16bit D...
details: https://anonhg.NetBSD.org/src/rev/70337da38c3e
branches: trunk
changeset: 518618:70337da38c3e
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Dec 02 17:04:41 2001 +0000
description:
use the new MCABUS_DMA_16BIT flag to use 16bit DMA (not implicit anymore)
diffstat:
sys/dev/mca/edc_mca.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r d75dbf9ba11f -r 70337da38c3e sys/dev/mca/edc_mca.c
--- a/sys/dev/mca/edc_mca.c Sun Dec 02 17:02:33 2001 +0000
+++ b/sys/dev/mca/edc_mca.c Sun Dec 02 17:04:41 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: edc_mca.c,v 1.11 2001/11/23 22:53:09 jdolecek Exp $ */
+/* $NetBSD: edc_mca.c,v 1.12 2001/12/02 17:04:41 jdolecek Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: edc_mca.c,v 1.11 2001/11/23 22:53:09 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: edc_mca.c,v 1.12 2001/12/02 17:04:41 jdolecek Exp $");
#include "rnd.h"
@@ -249,7 +249,8 @@
/* Create a MCA DMA map, used for data transfer */
sc->sc_dmat = ma->ma_dmat;
if ((error = mca_dmamap_create(sc->sc_dmat, MAXPHYS,
- BUS_DMA_WAITOK | BUS_DMA_ALLOCNOW, &sc->sc_dmamap_xfer, drq)) != 0){
+ BUS_DMA_WAITOK | BUS_DMA_ALLOCNOW | MCABUS_DMA_16BIT,
+ &sc->sc_dmamap_xfer, drq)) != 0){
printf("%s: couldn't create DMA map - error %d\n",
sc->sc_dev.dv_xname, error);
return;
Home |
Main Index |
Thread Index |
Old Index