aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2016-04-10 22:43:36 +0000
committerMarius Strobl <marius@FreeBSD.org>2016-04-10 22:43:36 +0000
commit61a4e586d4ea3a05c656c094b62a1e550737086c (patch)
tree4c9ce4cb14e163447cabeb9576007078c0adc5d4 /sys/sparc64
parentabafa4db03434abdf9cc7115eb64e54c601fa861 (diff)
downloadsrc-61a4e586d4ea3a05c656c094b62a1e550737086c.tar.gz
src-61a4e586d4ea3a05c656c094b62a1e550737086c.zip
Since r296250 it is no longer possible for devices to use bus space
addresses exceeding 32 bit, so bump BUS_SPACE_MAXADDR to 64 bit. The whole situation is sub par, though; prior to r296250 and despite what their names imply, BUS_SPACE_MAX* were primarily, even almost exclusively used for bus_dma(9). Now these macros also have a vital role for bus_space(9). However, it does not necessarily hold that both bus DMA and space addresses universally have the same limits per platform. As for sparc64, 64 bit clearly is beyond what can be addressed via the various IOMMUs. With this change in place, we now rely on the parent bus DMA tags of the host-to-foo drivers causing the child tags to be capped as necessary. PR: 207998
Notes
Notes: svn path=/head/; revision=297792
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/include/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/include/bus.h b/sys/sparc64/include/bus.h
index 9cdd20815972..6ff8c7ccd064 100644
--- a/sys/sparc64/include/bus.h
+++ b/sys/sparc64/include/bus.h
@@ -98,7 +98,7 @@ extern const int bus_stream_asi[];
#define BUS_SPACE_MAXSIZE 0xFFFFFFFFFFFFFFFF
#define BUS_SPACE_MAXADDR_24BIT 0xFFFFFF
#define BUS_SPACE_MAXADDR_32BIT 0xFFFFFFFF
-#define BUS_SPACE_MAXADDR 0xFFFFFFFF
+#define BUS_SPACE_MAXADDR 0xFFFFFFFFFFFFFFFF
#define BUS_SPACE_UNRESTRICTED (~0)