Add a crutch so that direct-mapped DMA works on alpha. This is a step

toward preventing this driver from crashing an alpha at boot.

Tested by: Oliver Lehmann <lehmann@ans-netz.de>
This commit is contained in:
Andrew Gallatin 2003-04-01 16:31:12 +00:00
parent 252bcf459d
commit 9ef024f7b7

View File

@ -165,7 +165,11 @@ typedef struct _pdq_os_ctx_t {
#define PDQ_OS_CSR_FMT "0x%x"
#define PDQ_OS_USEC_DELAY(n) DELAY(n)
#ifdef __alpha__
#define PDQ_OS_VA_TO_BUSPA(pdq, p) alpha_XXX_dmamap((vm_offset_t)p)
#else
#define PDQ_OS_VA_TO_BUSPA(pdq, p) vtophys(p)
#endif
#define PDQ_OS_MEMALLOC(n) malloc(n, M_DEVBUF, M_NOWAIT)
#define PDQ_OS_MEMFREE(p, n) free((void *) p, M_DEVBUF)