diff options
author | gallatin <gallatin@FreeBSD.org> | 2003-04-01 16:31:12 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2003-04-01 16:31:12 +0000 |
commit | fe878182e2221eb05ed76dfb0914f58534505266 (patch) | |
tree | 04e1a5ce32cbe57ebf434c4034e45422f22dd06b /sys/dev/pdq | |
parent | 5f9d93b08dc52cc46df0c0935575163741ef4092 (diff) | |
download | FreeBSD-src-fe878182e2221eb05ed76dfb0914f58534505266.zip FreeBSD-src-fe878182e2221eb05ed76dfb0914f58534505266.tar.gz |
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>
Diffstat (limited to 'sys/dev/pdq')
-rw-r--r-- | sys/dev/pdq/pdq_freebsd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pdq/pdq_freebsd.h b/sys/dev/pdq/pdq_freebsd.h index 99e06c2..f43f3e3 100644 --- a/sys/dev/pdq/pdq_freebsd.h +++ b/sys/dev/pdq/pdq_freebsd.h @@ -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) |