diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-05-19 15:27:36 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-05-19 15:27:36 +0000 |
commit | 158d178f03df6b6e0f7f96e4596904b0ab8274bb (patch) | |
tree | 592e86ac7a4fefc86456a1838bc06aab1a0602ed /sys/dev/pci/musycc.c | |
parent | fa977d1430aef60feb0d5aa71b3610a2ad13ba3e (diff) |
BUS_DMA_ZERO instead of alloc, map, bzero.
ok krw@
Diffstat (limited to 'sys/dev/pci/musycc.c')
-rw-r--r-- | sys/dev/pci/musycc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/musycc.c b/sys/dev/pci/musycc.c index d641ac96164..6a57d691c9f 100644 --- a/sys/dev/pci/musycc.c +++ b/sys/dev/pci/musycc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: musycc.c,v 1.20 2010/04/08 00:23:53 tedu Exp $ */ +/* $OpenBSD: musycc.c,v 1.21 2010/05/19 15:27:35 oga Exp $ */ /* * Copyright (c) 2004,2005 Internet Business Solutions AG, Zurich, Switzerland @@ -262,7 +262,7 @@ musycc_alloc_group(struct musycc_group *mg) /* Allocate per group dma memory */ if (bus_dmamem_alloc(mg->mg_dmat, MUSYCC_DMA_MAPSIZE, PAGE_SIZE, 0, mg->mg_listseg, 1, &mg->mg_listnseg, - BUS_DMA_NOWAIT)) + BUS_DMA_NOWAIT | BUS_DMA_ZERO)) return (-1); if (bus_dmamem_map(mg->mg_dmat, mg->mg_listseg, mg->mg_listnseg, MUSYCC_DMA_MAPSIZE, &mg->mg_listkva, BUS_DMA_NOWAIT)) { @@ -302,8 +302,6 @@ musycc_alloc_group(struct musycc_group *mg) } mg->mg_dma_pool = (struct dma_desc *)mg->mg_listkva; - bzero(mg->mg_dma_pool, - MUSYCC_DMA_CNT * sizeof(struct dma_desc)); /* add all descriptors to the freelist */ for (j = 0; j < MUSYCC_DMA_CNT; j++) { |