diff options
author | dfr <dfr@FreeBSD.org> | 1999-08-26 08:41:41 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-08-26 08:41:41 +0000 |
commit | b5506bbe0f5faa2d3e715e22f730378180017e12 (patch) | |
tree | 264411a1d87eaa3e44cddb47160c88aabc121f97 /sys/dev/usb | |
parent | dfff9dd881cdf1f7632d12063916db5a735be00e (diff) | |
download | FreeBSD-src-b5506bbe0f5faa2d3e715e22f730378180017e12.zip FreeBSD-src-b5506bbe0f5faa2d3e715e22f730378180017e12.tar.gz |
Fix DMA macros to work on alpha.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/usb_mem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_mem.h b/sys/dev/usb/usb_mem.h index 3144ef3..60abd5f 100644 --- a/sys/dev/usb/usb_mem.h +++ b/sys/dev/usb/usb_mem.h @@ -86,7 +86,11 @@ typedef void * usb_dma_t; #define usb_allocmem(t,s,a,p) (*(p) = malloc(s, M_USB, M_NOWAIT), (*(p) == NULL? USBD_NOMEM: USBD_NORMAL_COMPLETION)) #define usb_freemem(t,p) (free(*(p), M_USB)) +#ifdef __alpha__ +#define DMAADDR(dma) (alpha_XXX_dmamap((vm_offset_t) *(dma))) +#else #define DMAADDR(dma) (vtophys(*(dma))) +#endif #define KERNADDR(dma) ((void *) *(dma)) #endif |