summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-08-06 07:29:19 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-08-06 07:29:19 +0000
commit86fc7ce1aad275c74a707480ba82a3191eb4089f (patch)
treebbe64ab9f2ab757ac0d04f3ca0e9040e9691d4d9
parent19696b1f73c2f40828f407f3c2df91b6d14956fa (diff)
we can support more than one entry in an sgl, so stop lying to bus_dma
-rw-r--r--sys/dev/pci/arc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/arc.c b/sys/dev/pci/arc.c
index ae14fbe69d1..4e3f9885214 100644
--- a/sys/dev/pci/arc.c
+++ b/sys/dev/pci/arc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arc.c,v 1.10 2006/08/06 00:38:33 dlg Exp $ */
+/* $OpenBSD: arc.c,v 1.11 2006/08/06 07:29:18 dlg Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -822,8 +822,8 @@ arc_alloc_ccbs(struct arc_softc *sc)
for (i = 0; i < sc->sc_req_count; i++) {
ccb = &sc->sc_ccbs[i];
- if (bus_dmamap_create(sc->sc_dmat, MAXPHYS, 1, MAXPHYS, 0, 0,
- &ccb->ccb_dmamap) != 0) {
+ if (bus_dmamap_create(sc->sc_dmat, MAXPHYS, ARC_SGL_MAXLEN,
+ MAXPHYS, 0, 0, &ccb->ccb_dmamap) != 0) {
printf("%s: unable to create dmamap for ccb %d\n",
DEVNAME(sc), i);
goto free_maps;