Use BUS_DMA_NOWAIT where appropriate. Don't create DMA maps with
BUS_DMA_ALLOCNOW.
This commit is contained in:
parent
005abca7c5
commit
208d979613
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_de.c,v 1.59 1998/02/06 20:57:12 matt Exp $ */
|
||||
/* $NetBSD: if_de.c,v 1.60 1998/02/07 10:27:12 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
|
||||
@ -4999,7 +4999,7 @@ tulip_busdma_allocmem(
|
||||
if (error == 0) {
|
||||
bus_dmamap_t map;
|
||||
error = bus_dmamap_create(sc->tulip_dmatag, size, 1, size, 0,
|
||||
BUS_DMA_ALLOCNOW, &map);
|
||||
BUS_DMA_NOWAIT, &map);
|
||||
if (error == 0) {
|
||||
error = bus_dmamap_load(sc->tulip_dmatag, map, desc,
|
||||
size, NULL, BUS_DMA_NOWAIT);
|
||||
@ -5031,7 +5031,7 @@ tulip_busdma_init(
|
||||
* Allocate dmamap for setup descriptor
|
||||
*/
|
||||
error = bus_dmamap_create(sc->tulip_dmatag, sizeof(sc->tulip_setupbuf), 2,
|
||||
sizeof(sc->tulip_setupbuf), 0, BUS_DMA_ALLOCNOW,
|
||||
sizeof(sc->tulip_setupbuf), 0, BUS_DMA_NOWAIT,
|
||||
&sc->tulip_setupmap);
|
||||
if (error == 0) {
|
||||
error = bus_dmamap_load(sc->tulip_dmatag, sc->tulip_setupmap,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_devar.h,v 1.23 1998/02/06 20:57:19 matt Exp $ */
|
||||
/* $NetBSD: if_devar.h,v 1.24 1998/02/07 10:27:15 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
|
||||
@ -870,7 +870,7 @@ static void tulip_softintr(void);
|
||||
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE)
|
||||
#define TULIP_RXMAP_CREATE(sc, mapp) \
|
||||
bus_dmamap_create((sc)->tulip_dmatag, TULIP_RX_BUFLEN, 2, \
|
||||
TULIP_DATA_PER_DESC, 0, BUS_DMA_ALLOCNOW, (mapp))
|
||||
TULIP_DATA_PER_DESC, 0, BUS_DMA_NOWAIT, (mapp))
|
||||
#else
|
||||
#define TULIP_RXDESC_PRESYNC(sc, di, s) do { } while (0)
|
||||
#define TULIP_RXDESC_POSTSYNC(sc, di, s) do { } while (0)
|
||||
@ -897,7 +897,7 @@ static void tulip_softintr(void);
|
||||
#define TULIP_TXMAP_CREATE(sc, mapp) \
|
||||
bus_dmamap_create((sc)->tulip_dmatag, TULIP_DATA_PER_DESC, \
|
||||
TULIP_MAX_TXSEG, TULIP_DATA_PER_DESC, \
|
||||
0, BUS_DMA_ALLOCNOW, (mapp))
|
||||
0, BUS_DMA_NOWAIT, (mapp))
|
||||
#else
|
||||
#define TULIP_TXDESC_PRESYNC(sc, di, s) do { } while (0)
|
||||
#define TULIP_TXDESC_POSTSYNC(sc, di, s) do { } while (0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user