summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2002-06-07 11:49:33 +0000
committerbenno <benno@FreeBSD.org>2002-06-07 11:49:33 +0000
commit54bb6c7dad3d4f85e0fd054b69ba2496c49e041e (patch)
tree24d8bfee467411ec6d84f9d53e1d251598537aec
parentef796a5f354641fd12b304f2f83cd83a612d3574 (diff)
downloadFreeBSD-src-54bb6c7dad3d4f85e0fd054b69ba2496c49e041e.zip
FreeBSD-src-54bb6c7dad3d4f85e0fd054b69ba2496c49e041e.tar.gz
Fix up the DMA buffer allocation call.
-rw-r--r--sys/boot/ofw/libofw/ofw_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/ofw_net.c b/sys/boot/ofw/libofw/ofw_net.c
index e14759c..0add05b 100644
--- a/sys/boot/ofw/libofw/ofw_net.c
+++ b/sys/boot/ofw/libofw/ofw_net.c
@@ -210,7 +210,8 @@ ofwn_init(struct iodesc *desc, void *machdep_hint)
#endif
#ifndef __sparc64__
- if (OF_call_method("dma-alloc", netinstance, 1, 1, NULL, &dmabuf)
+ dmabuf = NULL;
+ if (OF_call_method("dma-alloc", netinstance, 1, 1, (64 * 1024), &dmabuf)
< 0) {
printf("Failed to allocate DMA buffer (got %08x).\n", dmabuf);
goto punt;
OpenPOWER on IntegriCloud