VirtualBox

Ignore:
Timestamp:
Aug 5, 2016 12:17:07 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109651
Message:

GA/NT/Graphics: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp

    r62522 r63039  
    11/* $Id$ */
    2 
    32/** @file
    43 * VBox XPDM Miniport driver interface functions
     
    1716 */
    1817
     18/*********************************************************************************************************************************
     19*   Header Files                                                                                                                 *
     20*********************************************************************************************************************************/
    1921#include "VBoxMPInternal.h"
    2022#include <VBox/Hardware/VBoxVideoVBE.h>
     
    2729#include <VBox/version.h>
    2830
     31
     32/*********************************************************************************************************************************
     33*   Global Variables                                                                                                             *
     34*********************************************************************************************************************************/
    2935/* Resource list */
    30 VIDEO_ACCESS_RANGE  VBoxLegacyVGAResourceList[] =
     36static VIDEO_ACCESS_RANGE  g_aVBoxLegacyVGAResources[] =
    3137{
    3238    { 0x000003B0, 0x00000000, 0x0000000C, 1, 1, 1, 0 }, /* VGA regs (0x3B0-0x3BB) */
     
    3642
    3743/* 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";
     44static WCHAR g_wszVBoxChipType[]      = L"VBOX";
     45static WCHAR g_wszVBoxDACType[]       = L"Integrated RAMDAC";
     46static WCHAR g_wszVBoxAdapterString[] = L"VirtualBox Video Adapter";
     47static WCHAR g_wszVBoxBiosString[]    = L"Version 0xB0C2 or later";
     48
    4249
    4350/* Checks if we have a device supported by our driver and initialize
     
    4956                   IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo, OUT PUCHAR Again)
    5057{
     58    RT_NOREF(HwContext,  ArgumentString, Again);
    5159    PVBOXMP_DEVEXT pExt = (PVBOXMP_DEVEXT) HwDeviceExtension;
    5260    VP_STATUS rc;
     
    8189    /* Write hw information to registry, so that it's visible in windows property dialog */
    8290    rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.ChipType",
    83                                         VBoxChipType, sizeof(VBoxChipType));
     91                                        g_wszVBoxChipType, sizeof(g_wszVBoxChipType));
    8492    VBOXMP_WARN_VPS(rc);
    8593    rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.DacType",
    86                                         VBoxDACType, sizeof(VBoxDACType));
     94                                        g_wszVBoxDACType, sizeof(g_wszVBoxDACType));
    8795    VBOXMP_WARN_VPS(rc);
    8896    rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.MemorySize",
     
    9098    VBOXMP_WARN_VPS(rc);
    9199    rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.AdapterString",
    92                                         VBoxAdapterString, sizeof(VBoxAdapterString));
     100                                        g_wszVBoxAdapterString, sizeof(g_wszVBoxAdapterString));
    93101    VBOXMP_WARN_VPS(rc);
    94102    rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.BiosString",
    95                                         VBoxBiosString, sizeof(VBoxBiosString));
     103                                        g_wszVBoxBiosString, sizeof(g_wszVBoxBiosString));
    96104    VBOXMP_WARN_VPS(rc);
    97105
     
    364372            STARTIO_IN(VIDEO_POINTER_POSITION, pPos);
    365373
    366             /** @todo set pointer position*/
     374            NOREF(pPos); /** @todo set pointer position*/
    367375            bResult = VBoxMPEnablePointer(pExt, TRUE, pStatus);
    368376            break;
     
    392400            STARTIO_OUT(VIDEO_POINTER_ATTRIBUTES, pPointerAttrs);
    393401
    394             /* Not Implemented */
     402            NOREF(pPointerAttrs); /* Not Implemented */
    395403            pStatus->Status = ERROR_INVALID_FUNCTION;
    396404
     
    592600
    593601    /*Not implemented*/
     602    RT_NOREF(HwDeviceExtension, HwId, VideoPowerControl);
    594603
    595604    LOGF_LEAVE();
     
    605614
    606615    /*Not implemented*/
     616    RT_NOREF(HwDeviceExtension, HwId, VideoPowerControl);
    607617
    608618    LOGF_LEAVE();
     
    616626                               PULONG pUnused)
    617627{
     628    RT_NOREF(pChildDescriptor, pUnused);
    618629    PVBOXMP_DEVEXT pExt = (PVBOXMP_DEVEXT) HwDeviceExtension;
    619630
     
    640651VBoxDrvResetHW(PVOID HwDeviceExtension, ULONG Columns, ULONG Rows)
    641652{
     653    RT_NOREF(Columns, Rows);
    642654    PVBOXMP_DEVEXT pExt = (PVBOXMP_DEVEXT) HwDeviceExtension;
    643655
     
    675687static VOID VBoxMPHGSMIDpc(IN PVOID  HwDeviceExtension, IN PVOID  Context)
    676688{
     689    NOREF(Context);
    677690    PVBOXMP_DEVEXT pExt = (PVBOXMP_DEVEXT) HwDeviceExtension;
    678691
     
    754767
    755768    /*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);
    758771
    759772    /*Size of this structure changes between windows/ddk versions,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette