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/i915 Use bus_space_write_4, n...
details: https://anonhg.NetBSD.org/src/rev/7a050ee073b5
branches: trunk
changeset: 365857:7a050ee073b5
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 07:01:02 2018 +0000
description:
Use bus_space_write_4, not iowrite32.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/intel_lrc.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 5909fa2fff94 -r 7a050ee073b5 sys/external/bsd/drm2/dist/drm/i915/intel_lrc.h
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_lrc.h Mon Aug 27 07:00:52 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_lrc.h Mon Aug 27 07:01:02 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intel_lrc.h,v 1.2 2018/08/27 04:58:24 riastradh Exp $ */
+/* $NetBSD: intel_lrc.h,v 1.3 2018/08/27 07:01:02 riastradh Exp $ */
/*
* Copyright © 2014 Intel Corporation
@@ -69,7 +69,11 @@
static inline void intel_logical_ring_emit(struct intel_ringbuffer *ringbuf,
u32 data)
{
+#ifdef __NetBSD__
+ bus_space_write_4(ringbuf->bst, ringbuf->bsh, ringbuf->tail, data);
+#else
iowrite32(data, ringbuf->virtual_start + ringbuf->tail);
+#endif
ringbuf->tail += 4;
}
Home |
Main Index |
Thread Index |
Old Index