Changeset 63039 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp
- Timestamp:
- Aug 5, 2016 12:17:07 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109651
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp
r62522 r63039 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox XPDM Miniport driver interface functions … … 17 16 */ 18 17 18 /********************************************************************************************************************************* 19 * Header Files * 20 *********************************************************************************************************************************/ 19 21 #include "VBoxMPInternal.h" 20 22 #include <VBox/Hardware/VBoxVideoVBE.h> … … 27 29 #include <VBox/version.h> 28 30 31 32 /********************************************************************************************************************************* 33 * Global Variables * 34 *********************************************************************************************************************************/ 29 35 /* Resource list */ 30 VIDEO_ACCESS_RANGE VBoxLegacyVGAResourceList[] =36 static VIDEO_ACCESS_RANGE g_aVBoxLegacyVGAResources[] = 31 37 { 32 38 { 0x000003B0, 0x00000000, 0x0000000C, 1, 1, 1, 0 }, /* VGA regs (0x3B0-0x3BB) */ … … 36 42 37 43 /* Card info for property dialog */ 38 static WCHAR VBoxChipType[] = L"VBOX"; 39 static WCHAR VBoxDACType[] = L"Integrated RAMDAC"; 40 static WCHAR VBoxAdapterString[] = L"VirtualBox Video Adapter"; 41 static WCHAR VBoxBiosString[] = L"Version 0xB0C2 or later"; 44 static WCHAR g_wszVBoxChipType[] = L"VBOX"; 45 static WCHAR g_wszVBoxDACType[] = L"Integrated RAMDAC"; 46 static WCHAR g_wszVBoxAdapterString[] = L"VirtualBox Video Adapter"; 47 static WCHAR g_wszVBoxBiosString[] = L"Version 0xB0C2 or later"; 48 42 49 43 50 /* Checks if we have a device supported by our driver and initialize … … 49 56 IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo, OUT PUCHAR Again) 50 57 { 58 RT_NOREF(HwContext, ArgumentString, Again); 51 59 PVBOXMP_DEVEXT pExt = (PVBOXMP_DEVEXT) HwDeviceExtension; 52 60 VP_STATUS rc; … … 81 89 /* Write hw information to registry, so that it's visible in windows property dialog */ 82 90 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.ChipType", 83 VBoxChipType, sizeof(VBoxChipType));91 g_wszVBoxChipType, sizeof(g_wszVBoxChipType)); 84 92 VBOXMP_WARN_VPS(rc); 85 93 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.DacType", 86 VBoxDACType, sizeof(VBoxDACType));94 g_wszVBoxDACType, sizeof(g_wszVBoxDACType)); 87 95 VBOXMP_WARN_VPS(rc); 88 96 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.MemorySize", … … 90 98 VBOXMP_WARN_VPS(rc); 91 99 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.AdapterString", 92 VBoxAdapterString, sizeof(VBoxAdapterString));100 g_wszVBoxAdapterString, sizeof(g_wszVBoxAdapterString)); 93 101 VBOXMP_WARN_VPS(rc); 94 102 rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.BiosString", 95 VBoxBiosString, sizeof(VBoxBiosString));103 g_wszVBoxBiosString, sizeof(g_wszVBoxBiosString)); 96 104 VBOXMP_WARN_VPS(rc); 97 105 … … 364 372 STARTIO_IN(VIDEO_POINTER_POSITION, pPos); 365 373 366 /** @todo set pointer position*/374 NOREF(pPos); /** @todo set pointer position*/ 367 375 bResult = VBoxMPEnablePointer(pExt, TRUE, pStatus); 368 376 break; … … 392 400 STARTIO_OUT(VIDEO_POINTER_ATTRIBUTES, pPointerAttrs); 393 401 394 /* Not Implemented */402 NOREF(pPointerAttrs); /* Not Implemented */ 395 403 pStatus->Status = ERROR_INVALID_FUNCTION; 396 404 … … 592 600 593 601 /*Not implemented*/ 602 RT_NOREF(HwDeviceExtension, HwId, VideoPowerControl); 594 603 595 604 LOGF_LEAVE(); … … 605 614 606 615 /*Not implemented*/ 616 RT_NOREF(HwDeviceExtension, HwId, VideoPowerControl); 607 617 608 618 LOGF_LEAVE(); … … 616 626 PULONG pUnused) 617 627 { 628 RT_NOREF(pChildDescriptor, pUnused); 618 629 PVBOXMP_DEVEXT pExt = (PVBOXMP_DEVEXT) HwDeviceExtension; 619 630 … … 640 651 VBoxDrvResetHW(PVOID HwDeviceExtension, ULONG Columns, ULONG Rows) 641 652 { 653 RT_NOREF(Columns, Rows); 642 654 PVBOXMP_DEVEXT pExt = (PVBOXMP_DEVEXT) HwDeviceExtension; 643 655 … … 675 687 static VOID VBoxMPHGSMIDpc(IN PVOID HwDeviceExtension, IN PVOID Context) 676 688 { 689 NOREF(Context); 677 690 PVBOXMP_DEVEXT pExt = (PVBOXMP_DEVEXT) HwDeviceExtension; 678 691 … … 754 767 755 768 /*Claim legacy VGA resource ranges*/ 756 vhwData.HwLegacyResourceList = VBoxLegacyVGAResourceList;757 vhwData.HwLegacyResourceCount = RT_ELEMENTS( VBoxLegacyVGAResourceList);769 vhwData.HwLegacyResourceList = g_aVBoxLegacyVGAResources; 770 vhwData.HwLegacyResourceCount = RT_ELEMENTS(g_aVBoxLegacyVGAResources); 758 771 759 772 /*Size of this structure changes between windows/ddk versions,
Note:
See TracChangeset
for help on using the changeset viewer.