From 70e83c0d6ef0a8bc84e8f39b3b364958bb23fa37 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Sun, 6 Mar 2005 20:56:16 +0000 Subject: [PATCH] Use the correct flags for bus_dma_tag_create(). --- sys/dev/twa/twa_freebsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/twa/twa_freebsd.c b/sys/dev/twa/twa_freebsd.c index 7eff607b7ce7..b153c011054e 100644 --- a/sys/dev/twa/twa_freebsd.c +++ b/sys/dev/twa/twa_freebsd.c @@ -559,7 +559,7 @@ twa_alloc_req_pkts(struct twa_softc *sc, int num_reqs) (sizeof(struct twa_command_packet)),/* maxsize */ TWA_MAX_SG_ELEMENTS, /* nsegments */ BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */ - BUS_DMA_ALLOCNOW, /* flags */ + 0, /* flags */ NULL, /* lockfunc */ NULL, /* lockfuncarg */ &sc->twa_parent_tag /* tag */)) { @@ -613,7 +613,7 @@ twa_alloc_req_pkts(struct twa_softc *sc, int num_reqs) TWA_MAX_IO_SIZE, /* maxsize */ TWA_MAX_SG_ELEMENTS, /* nsegments */ TWA_MAX_IO_SIZE, /* maxsegsize */ - BUS_DMA_WAITOK, /* flags */ + BUS_DMA_ALLOCNOW, /* flags */ busdma_lock_mutex, /* lockfunc */ &Giant, /* lockfuncarg */ &sc->twa_buf_tag /* tag */)) {