Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd Move dma_addr_t to linux/types.h.



details:   https://anonhg.NetBSD.org/src/rev/f53363a4ce5c
branches:  trunk
changeset: 1028036:f53363a4ce5c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:42:09 2021 +0000

description:
Move dma_addr_t to linux/types.h.

diffstat:

 sys/external/bsd/common/include/linux/types.h     |  4 +++-
 sys/external/bsd/drm2/include/linux/dma-mapping.h |  4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 4b2dd11bf03f -r f53363a4ce5c sys/external/bsd/common/include/linux/types.h
--- a/sys/external/bsd/common/include/linux/types.h     Sun Dec 19 01:42:01 2021 +0000
+++ b/sys/external/bsd/common/include/linux/types.h     Sun Dec 19 01:42:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.2 2021/12/19 01:19:37 riastradh Exp $      */
+/*     $NetBSD: types.h,v 1.3 2021/12/19 01:42:09 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -82,6 +82,8 @@
 
 typedef paddr_t phys_addr_t;
 
+typedef bus_addr_t dma_addr_t;
+
 /* XXX Is this the right type?  */
 typedef unsigned long long cycles_t;
 
diff -r 4b2dd11bf03f -r f53363a4ce5c sys/external/bsd/drm2/include/linux/dma-mapping.h
--- a/sys/external/bsd/drm2/include/linux/dma-mapping.h Sun Dec 19 01:42:01 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/dma-mapping.h Sun Dec 19 01:42:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dma-mapping.h,v 1.6 2021/12/19 00:25:41 riastradh Exp $        */
+/*     $NetBSD: dma-mapping.h,v 1.7 2021/12/19 01:42:10 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 
 #include <machine/limits.h>
 
-typedef bus_addr_t dma_addr_t;
+#include <linux/types.h>
 
 static inline uintmax_t
 DMA_BIT_MASK(unsigned nbits)



Home | Main Index | Thread Index | Old Index