Changeset 23793 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Oct 15, 2009 9:13:56 AM (15 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Miniport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r23652 r23793 1208 1208 dprintf(("VBoxVideo::VBoxVideoFindAdapter: calling VideoPortGetAccessRanges\n")); 1209 1209 1210 /* Ports not yet found. */ 1211 ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortHost = 0; 1212 ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortGuest = 0; 1210 ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortHost = (RTIOPORT)VGA_PORT_HGSMI_HOST; 1211 ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortGuest = (RTIOPORT)VGA_PORT_HGSMI_GUEST; 1213 1212 1214 1213 VIDEO_ACCESS_RANGE tmpRanges[4]; … … 1247 1246 } 1248 1247 dprintf(("VBoxVideo::VBoxVideoFindAdapter: VideoPortGetAccessRanges status 0x%x\n", status)); 1249 if (status == NO_ERROR)1250 {1251 ULONG iRange = 0;1252 for (; iRange < sizeof (tmpRanges)/sizeof (tmpRanges[0]); iRange++)1253 {1254 dprintf(("VBoxVideo::VBoxVideoFindAdapter: range[%i]:\n"1255 " RangeStart = 0x%llx\n"1256 " RangeLength = %d\n"1257 " RangeInIoSpace = %d\n"1258 " RangeVisible = %d\n"1259 " RangeShareable = %d\n"1260 " RangePassive = %d\n",1261 iRange,1262 tmpRanges[iRange].RangeStart.QuadPart,1263 tmpRanges[iRange].RangeLength,1264 tmpRanges[iRange].RangeInIoSpace,1265 tmpRanges[iRange].RangeVisible,1266 tmpRanges[iRange].RangeShareable,1267 tmpRanges[iRange].RangePassive));1268 if (tmpRanges[iRange].RangeInIoSpace)1269 {1270 PVOID ioBase = VideoPortGetDeviceBase(HwDeviceExtension, tmpRanges[iRange].RangeStart, 8, VIDEO_MEMORY_SPACE_IO);1271 dprintf (("ioBase %p\n", ioBase));1272 1273 ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortHost = (RTIOPORT)ioBase + VGA_PORT_OFF_HGSMI_HOST;1274 ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortGuest = (RTIOPORT)ioBase + VGA_PORT_OFF_HGSMI_GUEST;1275 }1276 }1277 }1278 1248 1279 1249 /* no matter what we get with VideoPortGetAccessRanges, we assert the default ranges */ -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h
r22549 r23793 66 66 67 67 #ifdef VBOX_WITH_HGSMI 68 #define VGA_PORT_ OFF_HGSMI_HOST069 #define VGA_PORT_ OFF_HGSMI_GUEST 468 #define VGA_PORT_HGSMI_HOST 0x3b0 69 #define VGA_PORT_HGSMI_GUEST 0x3d0 70 70 #endif /* VBOX_WITH_HGSMI */ 71 71
Note:
See TracChangeset
for help on using the changeset viewer.