From f4eda9f83576c70e9b2204433d50c46d7fa5d146 Mon Sep 17 00:00:00 2001 From: kiyohara Date: Sun, 30 Apr 2006 14:03:11 +0000 Subject: [PATCH] use fw_bus_dmamap_create(). --- sys/dev/ieee1394/fwohci.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sys/dev/ieee1394/fwohci.c b/sys/dev/ieee1394/fwohci.c index 192d5c37e3d0..06aeb58ae623 100644 --- a/sys/dev/ieee1394/fwohci.c +++ b/sys/dev/ieee1394/fwohci.c @@ -1,4 +1,4 @@ -/* $NetBSD: fwohci.c,v 1.95 2006/04/30 13:54:18 kiyohara Exp $ */ +/* $NetBSD: fwohci.c,v 1.96 2006/04/30 14:03:11 kiyohara Exp $ */ /*- * Copyright (c) 2003 Hidetoshi Shimokawa @@ -58,7 +58,7 @@ #include #include -__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.95 2006/04/30 13:54:18 kiyohara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.96 2006/04/30 14:03:11 kiyohara Exp $"); #if defined(__DragonFly__) || __FreeBSD_version < 500000 #include /* for DELAY() */ @@ -1332,10 +1332,8 @@ fwohci_db_init(struct fwohci_softc *sc, struct fwohci_dbch *dbch) /* create dmamap for buffers */ /* XXX do we need 4bytes alignment tag? */ /* XXX don't alloc dma_map for AR */ - if (bus_dmamap_create(sc->fc.dmat, dbch->xferq.psize, - dbch->ndesc > 3 ? dbch->ndesc - 2 : 1, MAX_REQCOUNT, - 0, BUS_DMA_NOWAIT, &db_tr->dma_map) != 0) { - printf("bus_dmamap_create failed\n"); + if (fw_bus_dmamap_create(dbch->dmat, 0, &db_tr->dma_map) != 0) { + printf("fw_bus_dmamap_create failed\n"); dbch->flags = FWOHCI_DBCH_INIT; /* XXX fake */ fwohci_db_free(dbch); return;