VirtualBox

Changeset 19430 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
May 6, 2009 1:16:44 PM (16 years ago)
Author:
vboxsync
Message:

HGSMI: windows graphics drivers.

Location:
trunk/src/VBox/Additions/WINNT/Graphics
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c

    r17704 r19430  
    435435    BOOL bRc = FALSE;
    436436
    437     DISPDBG((1, "VBoxDisp::vboxHwBufferBeginUpdate called flags = 0x%08X\n",
    438              ppdev->pVBVA? ppdev->pVBVA->u32HostEvents: -1));
     437    // DISPDBG((1, "VBoxDisp::vboxHwBufferBeginUpdate called flags = 0x%08X\n",
     438    //          ppdev->pVBVA? ppdev->pVBVA->u32HostEvents: -1));
    439439
    440440    if (   ppdev->pVBVA
     
    469469            ppdev->pVBVA->indexRecordFree = indexRecordNext;
    470470
    471             DISPDBG((1, "VBoxDisp::vboxHwBufferBeginUpdate indexRecordNext = %d\n", indexRecordNext));
     471            // DISPDBG((1, "VBoxDisp::vboxHwBufferBeginUpdate indexRecordNext = %d\n", indexRecordNext));
    472472
    473473            /* Remember which record we are using. */
     
    485485    VBVARECORD *pRecord;
    486486
    487     DISPDBG((1, "VBoxDisp::vboxHwBufferEndUpdate called\n"));
     487    // DISPDBG((1, "VBoxDisp::vboxHwBufferEndUpdate called\n"));
    488488
    489489    VBVA_ASSERT(ppdev->pVBVA);
     
    586586        uint32_t cbChunk = cb;
    587587
    588         DISPDBG((1, "VBoxDisp::vboxHwBufferWrite pVBVA->off32Free %d, pRecord->cbRecord 0x%08X, cbHwBufferAvail %d, cb %d, cbWritten %d\n",
    589                     pVBVA->off32Free, pRecord->cbRecord, cbHwBufferAvail, cb, cbWritten));
     588        // DISPDBG((1, "VBoxDisp::vboxHwBufferWrite pVBVA->off32Free %d, pRecord->cbRecord 0x%08X, cbHwBufferAvail %d, cb %d, cbWritten %d\n",
     589        //             pVBVA->off32Free, pRecord->cbRecord, cbHwBufferAvail, cb, cbWritten));
    590590
    591591        if (cbChunk >= cbHwBufferAvail)
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Helper.cpp

    r13837 r19430  
    285285}
    286286
     287#ifndef VBOX_WITH_HGSMI
    287288/**
    288289 * Sends the pointer shape to the VMMDev
     
    359360    return bRC;
    360361}
     362#endif /* VBOX_WITH_HGSMI */
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Helper.h

    r8155 r19430  
    3939BOOLEAN vboxQueryHostWantsAbsolute();
    4040winVersion_t vboxQueryWinVersion();
     41#ifndef VBOX_WITH_HGSMI
    4142BOOLEAN vboxUpdatePointerShape(PVIDEO_POINTER_ATTRIBUTES pointerAttr, uint32_t cbLength);
     43#endif /* !VBOX_WITH_HGSMI */
    4244
    4345#include "vboxioctl.h"
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r17704 r19430  
    12071207      VBoxSetupDisplays((PDEVICE_EXTENSION)HwDeviceExtension, ConfigInfo, AdapterMemorySize);
    12081208#else
     1209      /* Initialize VBoxGuest library, which is used for requests which go through VMMDev. */
     1210      rc = VbglInit ();
     1211
    12091212      /* Guest supports only HGSMI, the old VBVA via VMMDev is not supported. Old
    12101213       * code will be ifdef'ed and later removed.
     
    14981501                PointerAttributes.Enable = VBOX_MOUSE_POINTER_VISIBLE;
    14991502
     1503#ifndef VBOX_WITH_HGSMI
    15001504                Result = vboxUpdatePointerShape(&PointerAttributes, sizeof (PointerAttributes));
     1505#else
     1506                Result = vboxUpdatePointerShape((PDEVICE_EXTENSION)HwDeviceExtension, &PointerAttributes, sizeof (PointerAttributes));
     1507#endif/* VBOX_WITH_HGSMI */
    15011508
    15021509                if (!Result)
     
    15261533                PointerAttributes.Enable = 0;
    15271534
     1535#ifndef VBOX_WITH_HGSMI
    15281536                Result = vboxUpdatePointerShape(&PointerAttributes, sizeof (PointerAttributes));
     1537#else
     1538                Result = vboxUpdatePointerShape((PDEVICE_EXTENSION)HwDeviceExtension, &PointerAttributes, sizeof (PointerAttributes));
     1539#endif/* VBOX_WITH_HGSMI */
    15291540
    15301541                if (!Result)
     
    15691580                dprintf(("\tBytes attached: %d\n", RequestPacket->InputBufferLength - sizeof(VIDEO_POINTER_ATTRIBUTES)));
    15701581#endif
     1582#ifndef VBOX_WITH_HGSMI
    15711583                Result = vboxUpdatePointerShape(pPointerAttributes, RequestPacket->InputBufferLength);
     1584#else
     1585                Result = vboxUpdatePointerShape((PDEVICE_EXTENSION)HwDeviceExtension, pPointerAttributes, RequestPacket->InputBufferLength);
     1586#endif/* VBOX_WITH_HGSMI */
    15721587                if (!Result)
    15731588                    dprintf(("VBoxVideo::VBoxVideoStartIO: Could not set hardware pointer -> fallback\n"));
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h

    r17665 r19430  
    242242                             PVIDEO_PORT_CONFIG_INFO pConfigInfo,
    243243                             ULONG AdapterMemorySize);
     244BOOLEAN vboxUpdatePointerShape (PDEVICE_EXTENSION PrimaryExtension,
     245                                PVIDEO_POINTER_ATTRIBUTES pointerAttr,
     246                                uint32_t cbLength);
    244247#endif /* VBOX_WITH_HGSMI */
    245248} /* extern "C" */
Note: See TracChangeset for help on using the changeset viewer.

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