From b5506bbe0f5faa2d3e715e22f730378180017e12 Mon Sep 17 00:00:00 2001 From: dfr Date: Thu, 26 Aug 1999 08:41:41 +0000 Subject: Fix DMA macros to work on alpha. --- sys/dev/usb/usb_mem.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.1