aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2003-04-01 16:31:12 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2003-04-01 16:31:12 +0000
commit9ef024f7b7b9f43703565126d45820d4e70641de (patch)
tree04e1a5ce32cbe57ebf434c4034e45422f22dd06b /sys
parent252bcf459d75e518dae3e5f38998cb179bca2a04 (diff)
downloadsrc-9ef024f7b7b9f43703565126d45820d4e70641de.tar.gz
src-9ef024f7b7b9f43703565126d45820d4e70641de.zip
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>
Notes
Notes: svn path=/head/; revision=112948
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pdq/pdq_freebsd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pdq/pdq_freebsd.h b/sys/dev/pdq/pdq_freebsd.h
index 99e06c2db42d..f43f3e3c0fdf 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)