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 Stub out intel_...
details: https://anonhg.NetBSD.org/src/rev/43b453ca38d8
branches: riastradh-drm2
changeset: 788484:43b453ca38d8
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 04:00:51 2013 +0000
description:
Stub out intel_gtt initialization until we' ready for gem stuff.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_dma.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (61 lines):
diff -r f17777af7c6a -r 43b453ca38d8 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c Wed Jul 24 04:00:35 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c Wed Jul 24 04:00:51 2013 +0000
@@ -1446,6 +1446,7 @@
master->driver_priv = NULL;
}
+#ifndef __NetBSD__ /* XXX gtt */
static void
i915_mtrr_setup(struct drm_i915_private *dev_priv, unsigned long base,
unsigned long size)
@@ -1468,6 +1469,7 @@
"performance may suffer.\n");
}
}
+#endif
#ifndef __NetBSD__ /* XXX fb */
static void i915_kick_out_firmware_fb(struct drm_i915_private *dev_priv)
@@ -1523,7 +1525,9 @@
struct drm_i915_private *dev_priv;
struct intel_device_info *info;
int ret = 0, mmio_bar, mmio_size;
+#ifndef __NetBSD__ /* XXX gtt */
uint32_t aperture_size;
+#endif
info = (struct intel_device_info *) flags;
@@ -1636,6 +1640,7 @@
}
#endif
+#ifndef __NetBSD__ /* XXX gtt */
aperture_size = dev_priv->mm.gtt->gtt_mappable_entries << PAGE_SHIFT;
dev_priv->mm.gtt_base_addr = dev_priv->mm.gtt->gma_bus_addr;
@@ -1655,6 +1660,7 @@
i915_mtrr_setup(dev_priv, dev_priv->mm.gtt_base_addr,
aperture_size);
+#endif /* __NetBSD__ */
/* The i915 workqueue is primarily used for batched retirement of
* requests (and thus managing bo) once the task has been completed
@@ -1771,6 +1777,7 @@
intel_teardown_mchbar(dev);
destroy_workqueue(dev_priv->wq);
out_mtrrfree:
+#ifndef __NetBSD__ /* XXX gtt */
if (dev_priv->mm.gtt_mtrr >= 0) {
mtrr_del(dev_priv->mm.gtt_mtrr,
dev_priv->mm.gtt_base_addr,
@@ -1779,6 +1786,7 @@
}
io_mapping_free(dev_priv->mm.gtt_mapping);
out_rmmap:
+#endif
#ifdef __NetBSD__
(void)drm_rmmap(dev, dev_priv->regs_map);
#else
Home |
Main Index |
Thread Index |
Old Index