/* Frees the hardware status page, whether it's a physical address or a virtual address set up by the X Server.  */
static void i915_free_hws(struct drm_device *dev)
/* Frees the hardware status page, whether it's a physical address or a virtual address set up by the X Server.  */
static void i915_free_hws(struct drm_device *dev)
{
	drm_i915_private_t *dev_priv = dev->dev_private;
	if (dev_priv->status_page_dmah) {
		drm_pci_free(dev, dev_priv->status_page_dmah);
		dev_priv->status_page_dmah = NULL;
	}
	if (dev_priv->status_gfx_addr) {
		dev_priv->status_gfx_addr = 0;
		drm_core_ioremapfree(&dev_priv->hws_map, dev);
	}
	I915_WRITE(HWS_PGA, 0x1ffff000);
}