Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Provisionally a...
details: https://anonhg.NetBSD.org/src/rev/d807b884bb08
branches: riastradh-drm2
changeset: 788436:d807b884bb08
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:47:23 2013 +0000
description:
Provisionally add kludgerific ioread32 to intel_panel.c.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/intel_panel.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r 82157555a2d0 -r d807b884bb08 sys/external/bsd/drm2/dist/drm/i915/intel_panel.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_panel.c Wed Jul 24 03:47:07 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_panel.c Wed Jul 24 03:47:23 2013 +0000
@@ -382,6 +382,17 @@
dev_priv->backlight_enabled = dev_priv->backlight_level != 0;
}
+#ifdef __NetBSD__ /* XXX This is worse than the others! */
+static inline uint32_t
+ioread32(const uint32_t __acpi_iomem *ptr)
+{
+ const uint32_t value = *ptr;
+
+ __insn_barrier();
+ return value;
+}
+#endif
+
enum drm_connector_status
intel_panel_detect(struct drm_device *dev)
{
Home |
Main Index |
Thread Index |
Old Index