summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-06-05 13:53:34 +0300
committerAlon Levy <alevy@redhat.com>2011-06-20 12:19:25 +0200
commit945b476681611940596e5d3561614fd6c4b89f1b (patch)
treedfd26aeda095ff4671a3333f48d9bf69f9e5d19c
parent442498d3975e2d14fcf673aa777bd392e16a7b96 (diff)
miniport/qxl: store vram_start on video memory map for later debug usage
-rw-r--r--miniport/qxl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/miniport/qxl.c b/miniport/qxl.c
index 19c0033..6e9bd8e 100644
--- a/miniport/qxl.c
+++ b/miniport/qxl.c
@@ -77,6 +77,7 @@ typedef struct QXLExtension {
PHYSICAL_ADDRESS vram_physical;
ULONG vram_size;
+ UINT8 *vram_start;
ULONG current_mode;
ULONG n_modes;
@@ -928,6 +929,7 @@ BOOLEAN StartIO(PVOID dev_extension, PVIDEO_REQUEST_PACKET packet)
DEBUG_PRINT((0, "%s: map filed\n", __FUNCTION__));
goto err;
}
+ dev_ext->vram_start = mem_info->VideoRamBase;
DEBUG_PRINT((0, "%s: vram size %lu ret size %lu fb vaddr 0x%lx\n",
__FUNCTION__,
dev_ext->vram_size,
@@ -963,6 +965,7 @@ BOOLEAN StartIO(PVOID dev_extension, PVIDEO_REQUEST_PACKET packet)
if ((error = VideoPortUnmapMemory(dev_ext, addr, NULL)) != NO_ERROR) {
DEBUG_PRINT((0, "%s: unmap failed\n", __FUNCTION__));
}
+ dev_ext->vram_start = NULL;
}
break;
case IOCTL_VIDEO_RESET_DEVICE: