Changeset View
Changeset View
Standalone View
Standalone View
stand/ofw/libofw/ofw_net.c
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | |||||
#if defined(NETIF_DEBUG) | #if defined(NETIF_DEBUG) | ||||
printf("ofwn_init: Open Firmware instance handle: %08x\n", netinstance); | printf("ofwn_init: Open Firmware instance handle: %08x\n", netinstance); | ||||
#endif | #endif | ||||
#ifndef __sparc64__ | #ifndef __sparc64__ | ||||
dmabuf = NULL; | dmabuf = NULL; | ||||
if (OF_call_method("dma-alloc", netinstance, 1, 1, (64 * 1024), &dmabuf) | if (OF_call_method("dma-alloc", netinstance, 1, 1, (64 * 1024), &dmabuf) | ||||
< 0) { | < 0) { | ||||
printf("Failed to allocate DMA buffer (got %08x).\n", dmabuf); | printf("Failed to allocate DMA buffer (got %p).\n", dmabuf); | ||||
goto punt; | goto punt; | ||||
} | } | ||||
#if defined(NETIF_DEBUG) | #if defined(NETIF_DEBUG) | ||||
printf("ofwn_init: allocated DMA buffer: %08x\n", dmabuf); | printf("ofwn_init: allocated DMA buffer: %p\n", dmabuf); | ||||
#endif | #endif | ||||
#endif | #endif | ||||
return; | return; | ||||
punt: | punt: | ||||
printf("\n"); | printf("\n"); | ||||
printf("Could not boot from %s.\n", path); | printf("Could not boot from %s.\n", path); | ||||
Show All 34 Lines |