VirtualBox

Ignore:
Timestamp:
Oct 1, 2010 8:38:01 PM (14 years ago)
Author:
vboxsync
Message:

Additions/WINNT/VBoxVideo: start refactoring the HGSMI code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r32677 r32876  
    19691969
    19701970#ifdef VBOX_WITH_HGSMI
    1971       ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortHost = (RTIOPORT)VGA_PORT_HGSMI_HOST;
    1972       ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortGuest = (RTIOPORT)VGA_PORT_HGSMI_GUEST;
     1971      /* pPrimary is not yet set */
     1972      ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.hgsmiInfo.IOPortHost = (RTIOPORT)VGA_PORT_HGSMI_HOST;
     1973      ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.hgsmiInfo.IOPortGuest = (RTIOPORT)VGA_PORT_HGSMI_GUEST;
    19731974#endif /* VBOX_WITH_HGSMI */
    19741975
     
    20242025      VBoxSetupDisplaysHGSMI((PDEVICE_EXTENSION)HwDeviceExtension, ConfigInfo, AdapterMemorySize);
    20252026
    2026       if (((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.bHGSMI)
     2027      if (hgsmiFromDeviceExt((PDEVICE_EXTENSION)HwDeviceExtension)->bHGSMI)
    20272028      {
    20282029          LogRel(("VBoxVideo: using HGSMI\n"));
     
    26752676            }
    26762677
    2677             if (!pDevExt->pPrimary->u.primary.bHGSMI)
     2678            if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI)
    26782679            {
    26792680                RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION;
     
    26922693            pInfo->u32MinVBVABufferSize = VBVA_MIN_BUFFER_SIZE;
    26932694
    2694             pInfo->IOPortGuestCommand = pDevExt->pPrimary->u.primary.IOPortGuest;
     2695            pInfo->IOPortGuestCommand = hgsmiFromDeviceExt(pDevExt)->IOPortGuest;
    26952696
    26962697            RequestPacket->StatusBlock->Information = sizeof(QUERYHGSMIRESULT);
     
    27112712            }
    27122713
    2713             if (!pDevExt->pPrimary->u.primary.bHGSMI)
     2714            if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI)
    27142715            {
    27152716                RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION;
     
    27392740            }
    27402741
    2741             if (!pDevExt->pPrimary->u.primary.bHGSMI)
     2742            if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI)
    27422743            {
    27432744                RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION;
     
    27652766            }
    27662767
    2767             if (!pDevExt->pPrimary->u.primary.bHGSMI)
     2768            if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI)
    27682769            {
    27692770                RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION;
     
    27862787        {
    27872788            /* TODO: implement */
    2788             if (!pDevExt->pPrimary->u.primary.bHGSMI)
     2789            if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI)
    27892790            {
    27902791                RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION;
     
    28042805            }
    28052806
    2806             if (!pDevExt->pPrimary->u.primary.bHGSMI)
     2807            if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI)
    28072808            {
    28082809                RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION;
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