Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif Fix buil...



details:   https://anonhg.NetBSD.org/src/rev/5182ae6fa34e
branches:  trunk
changeset: 465921:5182ae6fa34e
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Dec 07 13:31:41 2019 +0000

description:
Fix build for ports without __BUS_SPACE_HAS_STREAM_METHODS defined

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/os.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 44bfc7a11059 -r 5182ae6fa34e sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/os.h
--- a/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/os.h  Sat Dec 07 12:47:07 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/os.h  Sat Dec 07 13:31:41 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: os.h,v 1.4 2018/08/27 07:35:13 riastradh Exp $ */
+/*     $NetBSD: os.h,v 1.5 2019/12/07 13:31:41 jmcneill Exp $  */
 
 #ifndef __NOUVEAU_OS_H__
 #define __NOUVEAU_OS_H__
@@ -74,4 +74,14 @@
 #endif /* !ioread32_native */
 #endif
 
+#ifdef __NetBSD__
+#include <sys/bus.h>
+#ifndef __BUS_SPACE_HAS_STREAM_METHODS
+#define        bus_space_read_stream_2 bus_space_read_2
+#define        bus_space_read_stream_4 bus_space_read_4
+#define        bus_space_write_stream_2 bus_space_write_2
+#define        bus_space_write_stream_4 bus_space_write_4
 #endif
+#endif
+
+#endif



Home | Main Index | Thread Index | Old Index