diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2017-05-08 00:27:46 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2017-05-08 00:27:46 +0000 |
commit | e9fa087f6298b91db0dbe730065219a569ed30c7 (patch) | |
tree | 6966b785c7dbb463002559e8ccbc305d4fbffd1a /sys/arch/sparc64 | |
parent | c2f5797256434d3b2a71bc0ea895cd9248f151f3 (diff) |
add a BUS_DMA_64BIT flag to bus_dma on all our archs.
this is so drivers can advertise that they can handle 64 dma addresses
to the platform. it may choose to handle dmamaps differently based
on this flag.
tweaks and ok tom@
ok kettenis@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/include/bus.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/bus.h b/sys/arch/sparc64/include/bus.h index bbb52768a6e..497b5843f7c 100644 --- a/sys/arch/sparc64/include/bus.h +++ b/sys/arch/sparc64/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.31 2017/02/13 01:34:37 dlg Exp $ */ +/* $OpenBSD: bus.h,v 1.32 2017/05/08 00:27:45 dlg Exp $ */ /* $NetBSD: bus.h,v 1.31 2001/09/21 15:30:41 wiz Exp $ */ /*- @@ -370,6 +370,7 @@ bus_space_barrier(t, h, o, s, f) #define BUS_DMA_WRITE 0x0400 /* mapping is memory -> device only */ #define BUS_DMA_ZERO 0x0800 /* zero memory in dmamem_alloc */ #define BUS_DMA_OVERRUN 0x1000 /* tolerate DMA overruns */ +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ #define BUS_DMA_NOCACHE BUS_DMA_BUS1 #define BUS_DMA_DVMA BUS_DMA_BUS2 /* Don't bother with alignment */ |