diff options
| author | Mike Spengler <mks@FreeBSD.org> | 2000-01-15 21:01:04 +0000 |
|---|---|---|
| committer | Mike Spengler <mks@FreeBSD.org> | 2000-01-15 21:01:04 +0000 |
| commit | 3ee23c43ffe2ea7959ff8c5d810f484ef50d0611 (patch) | |
| tree | 1d99a60bbdb8b6174030137bb4df8408a40c10a4 /sys/dev/hfa/fore_buffer.c | |
| parent | c34532be04ebf6bc55f446f89d51dece739f801e (diff) | |
Notes
Diffstat (limited to 'sys/dev/hfa/fore_buffer.c')
| -rw-r--r-- | sys/dev/hfa/fore_buffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/hfa/fore_buffer.c b/sys/dev/hfa/fore_buffer.c index ff3396d972e7d..2c22e4283d5a3 100644 --- a/sys/dev/hfa/fore_buffer.c +++ b/sys/dev/hfa/fore_buffer.c @@ -407,6 +407,7 @@ fore_buf_supply_1s(fup) * an entry, free up what's been partially built */ if (i != BUF1_SM_ENTSIZE) { + caddr_t cp; /* * Clean up each used descriptor @@ -420,6 +421,8 @@ fore_buf_supply_1s(fup) m = (KBuffer *) ((caddr_t)bhp - BUF1_SM_HOFF); + KB_DATASTART(m, cp, caddr_t); + DMA_FREE_ADDR(cp, bhp->bh_dma, BUF1_SM_SIZE, 0); KB_FREEALL(m); } break; @@ -546,6 +549,7 @@ fore_buf_supply_1l(fup) * an entry, free up what's been partially built */ if (i != BUF1_LG_ENTSIZE) { + caddr_t cp; /* * Clean up each used descriptor @@ -558,6 +562,8 @@ fore_buf_supply_1l(fup) m = (KBuffer *) ((caddr_t)bhp - BUF1_LG_HOFF); + KB_DATASTART(m, cp, caddr_t); + DMA_FREE_ADDR(cp, bhp->bh_dma, BUF1_LG_SIZE, 0); KB_FREEALL(m); } break; |
