summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2013-05-21 22:12:59 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2013-05-21 22:12:59 +0000
commit35efad1276ea8721406bc5944101d0edecddf4aa (patch)
tree6c3d212ba28f0d8d47344c4a8c0d98cb526e57ce
parent90b9e23a7e9a5621ea5871ec43824160851d0d45 (diff)
Delete unused function.
-rw-r--r--sys/dev/pci/drm/i915/i915_drv.c21
-rw-r--r--sys/dev/pci/drm/i915/i915_drv.h3
2 files changed, 2 insertions, 22 deletions
diff --git a/sys/dev/pci/drm/i915/i915_drv.c b/sys/dev/pci/drm/i915/i915_drv.c
index 85e3824c2e3..29b95498d5f 100644
--- a/sys/dev/pci/drm/i915/i915_drv.c
+++ b/sys/dev/pci/drm/i915/i915_drv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i915_drv.c,v 1.30 2013/05/17 12:03:42 kettenis Exp $ */
+/* $OpenBSD: i915_drv.c,v 1.31 2013/05/21 22:12:58 kettenis Exp $ */
/*
* Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org>
*
@@ -1346,25 +1346,6 @@ inteldrm_set_max_obj_size(struct inteldrm_softc *dev_priv)
}
-void
-inteldrm_wipe_mappings(struct drm_obj *obj)
-{
- struct drm_i915_gem_object *obj_priv = to_intel_bo(obj);
- struct drm_device *dev = obj->dev;
- struct inteldrm_softc *dev_priv = dev->dev_private;
- struct vm_page *pg;
-
- DRM_ASSERT_HELD(obj);
- /* make sure any writes hit the bus before we do whatever change
- * that prompted us to kill the mappings.
- */
- DRM_MEMORYBARRIER();
- /* nuke all our mappings. XXX optimise. */
- for (pg = &dev_priv->pgs[atop(obj_priv->gtt_offset)]; pg !=
- &dev_priv->pgs[atop(obj_priv->gtt_offset + obj->size)]; pg++)
- pmap_page_protect(pg, VM_PROT_NONE);
-}
-
/**
* Pin an object to the GTT and evaluate the relocations landing in it.
*/
diff --git a/sys/dev/pci/drm/i915/i915_drv.h b/sys/dev/pci/drm/i915/i915_drv.h
index c8facd23913..95e20816d00 100644
--- a/sys/dev/pci/drm/i915/i915_drv.h
+++ b/sys/dev/pci/drm/i915/i915_drv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: i915_drv.h,v 1.21 2013/05/18 21:43:42 kettenis Exp $ */
+/* $OpenBSD: i915_drv.h,v 1.22 2013/05/21 22:12:58 kettenis Exp $ */
/* i915_drv.h -- Private header for the I915 driver -*- linux-c -*-
*/
/*
@@ -1171,7 +1171,6 @@ int i915_driver_open(struct drm_device *, struct drm_file *);
void i915_driver_close(struct drm_device *, struct drm_file *);
/* i915_drv.c */
-void inteldrm_wipe_mappings(struct drm_obj *);
void inteldrm_set_max_obj_size(struct inteldrm_softc *);
void inteldrm_purge_obj(struct drm_obj *);
void i915_gem_chipset_flush(struct drm_device *);