Fix DMA macros to work on alpha.
This commit is contained in:
parent
22147525d2
commit
50de873b59
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user