Index: arch/alpha/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/alpha/include/bus.h,v retrieving revision 1.30 diff -u -p -r1.30 bus.h --- arch/alpha/include/bus.h 3 May 2016 11:22:08 -0000 1.30 +++ arch/alpha/include/bus.h 5 May 2017 11:57:23 -0000 @@ -464,6 +464,7 @@ struct alpha_bus_space { #define BUS_DMA_READ 0x0200 /* mapping is device -> memory only */ #define BUS_DMA_WRITE 0x0400 /* mapping is memory -> device only */ #define BUS_DMA_ZERO 0x1000 /* zero memory in dmamem_alloc */ +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* * Private flags stored in the DMA map. Index: arch/amd64/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/amd64/include/bus.h,v retrieving revision 1.32 diff -u -p -r1.32 bus.h --- arch/amd64/include/bus.h 24 Jan 2015 15:13:55 -0000 1.32 +++ arch/amd64/include/bus.h 5 May 2017 11:57:23 -0000 @@ -525,6 +525,7 @@ extern const struct x86_bus_space_ops x8 #define BUS_DMA_WRITE 0x0400 /* mapping is memory -> device only */ #define BUS_DMA_NOCACHE 0x0800 /* map memory uncached */ #define BUS_DMA_ZERO 0x1000 /* zero memory in dmamem_alloc */ +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ struct mbuf; Index: arch/arm/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/arm/include/bus.h,v retrieving revision 1.16 diff -u -p -r1.16 bus.h --- arch/arm/include/bus.h 5 Oct 2016 07:44:24 -0000 1.16 +++ arch/arm/include/bus.h 5 May 2017 11:57:23 -0000 @@ -604,19 +604,20 @@ bs_c_8_proto(f); /* * Flags used in various bus DMA methods. */ -#define BUS_DMA_WAITOK 0x000 /* safe to sleep (pseudo-flag) */ -#define BUS_DMA_NOWAIT 0x001 /* not safe to sleep */ -#define BUS_DMA_ALLOCNOW 0x002 /* perform resource allocation now */ -#define BUS_DMA_COHERENT 0x004 /* hint: map memory DMA coherent */ -#define BUS_DMA_STREAMING 0x008 /* hint: sequential, unidirectional */ -#define BUS_DMA_BUS1 0x010 /* placeholders for bus functions... */ -#define BUS_DMA_BUS2 0x020 -#define BUS_DMA_BUS3 0x040 -#define BUS_DMA_BUS4 0x080 -#define BUS_DMA_READ 0x100 /* mapping is device -> memory only */ -#define BUS_DMA_WRITE 0x200 /* mapping is memory -> device only */ -#define BUS_DMA_NOCACHE 0x400 /* hint: map non-cached memory */ -#define BUS_DMA_ZERO 0x800 /* dmamem_alloc returns zeroed mem */ +#define BUS_DMA_WAITOK 0x0000 /* safe to sleep (pseudo-flag) */ +#define BUS_DMA_NOWAIT 0x0001 /* not safe to sleep */ +#define BUS_DMA_ALLOCNOW 0x0002 /* perform resource allocation now */ +#define BUS_DMA_COHERENT 0x0004 /* hint: map memory DMA coherent */ +#define BUS_DMA_STREAMING 0x0008 /* hint: sequential, unidirectional */ +#define BUS_DMA_BUS1 0x0010 /* placeholders for bus functions... */ +#define BUS_DMA_BUS2 0x0020 +#define BUS_DMA_BUS3 0x0040 +#define BUS_DMA_BUS4 0x0080 +#define BUS_DMA_READ 0x0100 /* mapping is device -> memory only */ +#define BUS_DMA_WRITE 0x0200 /* mapping is memory -> device only */ +#define BUS_DMA_NOCACHE 0x0400 /* hint: map non-cached memory */ +#define BUS_DMA_ZERO 0x0800 /* dmamem_alloc returns zeroed mem */ +#define BUS_DMA_64BIT 0x1000 /* device handles 64bit dva */ /* * Private flags stored in the DMA map. Index: arch/arm64/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/arm64/include/bus.h,v retrieving revision 1.2 diff -u -p -r1.2 bus.h --- arch/arm64/include/bus.h 22 Feb 2017 22:55:27 -0000 1.2 +++ arch/arm64/include/bus.h 5 May 2017 11:57:23 -0000 @@ -315,6 +315,7 @@ bus_space_barrier(bus_space_tag_t t, bus #define BUS_DMA_STREAMING 0x0400 /* hint: sequential, unidirectional */ #define BUS_DMA_ZERO 0x0800 /* zero memory in dmamem_alloc */ #define BUS_DMA_NOCACHE 0x1000 +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ struct mbuf; Index: arch/hppa/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/hppa/include/bus.h,v retrieving revision 1.31 diff -u -p -r1.31 bus.h --- arch/hppa/include/bus.h 14 Nov 2011 14:29:53 -0000 1.31 +++ arch/hppa/include/bus.h 5 May 2017 11:57:23 -0000 @@ -299,6 +299,7 @@ extern const struct hppa_bus_space_tag h #define BUS_DMA_READ 0x0400 /* mapping is device -> memory only */ #define BUS_DMA_WRITE 0x0800 /* mapping is memory -> device only */ #define BUS_DMA_ZERO 0x1000 /* zero memory in dmamem_alloc */ +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ struct mbuf; Index: arch/i386/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/i386/include/bus.h,v retrieving revision 1.66 diff -u -p -r1.66 bus.h --- arch/i386/include/bus.h 27 Feb 2015 18:59:43 -0000 1.66 +++ arch/i386/include/bus.h 5 May 2017 11:57:23 -0000 @@ -528,6 +528,7 @@ extern const struct i386_bus_space_ops i #define BUS_DMA_WRITE 0x0400 /* mapping is memory -> device only */ #define BUS_DMA_NOCACHE 0x0800 /* map memory uncached */ #define BUS_DMA_ZERO 0x1000 /* dmamem_alloc return zeroed mem */ +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ struct mbuf; Index: arch/landisk/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/landisk/include/bus.h,v retrieving revision 1.8 diff -u -p -r1.8 bus.h --- arch/landisk/include/bus.h 23 Mar 2011 16:54:35 -0000 1.8 +++ arch/landisk/include/bus.h 5 May 2017 11:57:23 -0000 @@ -421,19 +421,20 @@ struct _bus_space { /* * Flags used in various bus DMA methods. */ -#define BUS_DMA_WAITOK 0x000 /* safe to sleep (pseudo-flag) */ -#define BUS_DMA_NOWAIT 0x001 /* not safe to sleep */ -#define BUS_DMA_ALLOCNOW 0x002 /* perform resource allocation now */ -#define BUS_DMA_COHERENT 0x004 /* map memory to not require sync */ -#define BUS_DMA_STREAMING 0x008 /* hint: sequential, unidirectional */ -#define BUS_DMA_BUS1 0x010 /* placeholders for bus functions... */ -#define BUS_DMA_BUS2 0x020 -#define BUS_DMA_BUS3 0x040 -#define BUS_DMA_BUS4 0x080 -#define BUS_DMA_READ 0x100 /* mapping is device -> memory only */ -#define BUS_DMA_WRITE 0x200 /* mapping is memory -> device only */ -#define BUS_DMA_NOCACHE 0x400 /* hint: map non-cached memory */ -#define BUS_DMA_ZERO 0x800 /* zero memory in dmamem_alloc */ +#define BUS_DMA_WAITOK 0x0000 /* safe to sleep (pseudo-flag) */ +#define BUS_DMA_NOWAIT 0x0001 /* not safe to sleep */ +#define BUS_DMA_ALLOCNOW 0x0002 /* perform resource allocation now */ +#define BUS_DMA_COHERENT 0x0004 /* map memory to not require sync */ +#define BUS_DMA_STREAMING 0x0008 /* hint: sequential, unidirectional */ +#define BUS_DMA_BUS1 0x0010 /* placeholders for bus functions... */ +#define BUS_DMA_BUS2 0x0020 +#define BUS_DMA_BUS3 0x0040 +#define BUS_DMA_BUS4 0x0080 +#define BUS_DMA_READ 0x0100 /* mapping is device -> memory only */ +#define BUS_DMA_WRITE 0x0200 /* mapping is memory -> device only */ +#define BUS_DMA_NOCACHE 0x0400 /* hint: map non-cached memory */ +#define BUS_DMA_ZERO 0x0800 /* zero memory in dmamem_alloc */ +#define BUS_DMA_64BIT 0x1000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ struct mbuf; Index: arch/loongson/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/loongson/include/bus.h,v retrieving revision 1.6 diff -u -p -r1.6 bus.h --- arch/loongson/include/bus.h 24 May 2014 21:11:01 -0000 1.6 +++ arch/loongson/include/bus.h 5 May 2017 11:57:23 -0000 @@ -350,6 +350,7 @@ bus_space_barrier(bus_space_tag_t t, bus #define BUS_DMA_STREAMING 0x0400 /* hint: sequential, unidirectional */ #define BUS_DMA_ZERO 0x0800 /* zero memory in dmamem_alloc */ #define BUS_DMA_NOCACHE 0x1000 +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ struct mbuf; Index: arch/macppc/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/macppc/include/bus.h,v retrieving revision 1.25 diff -u -p -r1.25 bus.h --- arch/macppc/include/bus.h 3 May 2016 12:23:25 -0000 1.25 +++ arch/macppc/include/bus.h 5 May 2017 11:57:23 -0000 @@ -489,6 +489,7 @@ bus_space_copy_4(void *v, bus_space_hand #define BUS_DMA_STREAMING 0x0400 /* hint: sequential, unidirectional */ #define BUS_DMA_ZERO 0x0800 /* zero memory in dmamem_alloc */ #define BUS_DMA_NOCACHE 0x1000 /* map memory uncached */ +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ Index: arch/octeon/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/octeon/include/bus.h,v retrieving revision 1.6 diff -u -p -r1.6 bus.h --- arch/octeon/include/bus.h 29 Mar 2014 18:09:30 -0000 1.6 +++ arch/octeon/include/bus.h 5 May 2017 11:57:23 -0000 @@ -316,6 +316,7 @@ bus_space_barrier(bus_space_tag_t t, bus #define BUS_DMA_STREAMING 0x0400 /* hint: sequential, unidirectional */ #define BUS_DMA_ZERO 0x0800 /* zero memory in dmamem_alloc */ #define BUS_DMA_NOCACHE 0x1000 +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ struct mbuf; Index: arch/sgi/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/sgi/include/bus.h,v retrieving revision 1.26 diff -u -p -r1.26 bus.h --- arch/sgi/include/bus.h 10 Mar 2014 21:32:15 -0000 1.26 +++ arch/sgi/include/bus.h 5 May 2017 11:57:23 -0000 @@ -318,6 +318,7 @@ bus_space_barrier(bus_space_tag_t t, bus #define BUS_DMA_STREAMING 0x0400 /* hint: sequential, unidirectional */ #define BUS_DMA_ZERO 0x0800 /* zero memory in dmamem_alloc */ #define BUS_DMA_NOCACHE 0x1000 +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ struct mbuf; Index: arch/socppc/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/socppc/include/bus.h,v retrieving revision 1.11 diff -u -p -r1.11 bus.h --- arch/socppc/include/bus.h 24 Jan 2015 20:59:42 -0000 1.11 +++ arch/socppc/include/bus.h 5 May 2017 11:57:23 -0000 @@ -461,6 +461,7 @@ bus_space_copy_4(void *v, bus_space_hand #define BUS_DMA_STREAMING 0x0400 /* hint: sequential, unidirectional */ #define BUS_DMA_ZERO 0x0800 /* zero memory in dmamem_alloc */ #define BUS_DMA_NOCACHE 0x1000 /* map memory uncached */ +#define BUS_DMA_64BIT 0x2000 /* device handles 64bit dva */ /* Forwards needed by prototypes below. */ Index: arch/sparc64/include/bus.h =================================================================== RCS file: /cvs/src/sys/arch/sparc64/include/bus.h,v retrieving revision 1.31 diff -u -p -r1.31 bus.h --- arch/sparc64/include/bus.h 13 Feb 2017 01:34:37 -0000 1.31 +++ arch/sparc64/include/bus.h 5 May 2017 11:57:23 -0000 @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.31 2017/02/13 01:34:37 dlg Exp $ */ +/* $OpenBSD: bus.h,v 1.30 2016/05/04 18:26:12 kettenis 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 */