Changeset 32876 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
- Timestamp:
- Oct 1, 2010 8:38:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r32677 r32876 1969 1969 1970 1970 #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; 1973 1974 #endif /* VBOX_WITH_HGSMI */ 1974 1975 … … 2024 2025 VBoxSetupDisplaysHGSMI((PDEVICE_EXTENSION)HwDeviceExtension, ConfigInfo, AdapterMemorySize); 2025 2026 2026 if ( ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.bHGSMI)2027 if (hgsmiFromDeviceExt((PDEVICE_EXTENSION)HwDeviceExtension)->bHGSMI) 2027 2028 { 2028 2029 LogRel(("VBoxVideo: using HGSMI\n")); … … 2675 2676 } 2676 2677 2677 if (! pDevExt->pPrimary->u.primary.bHGSMI)2678 if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI) 2678 2679 { 2679 2680 RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION; … … 2692 2693 pInfo->u32MinVBVABufferSize = VBVA_MIN_BUFFER_SIZE; 2693 2694 2694 pInfo->IOPortGuestCommand = pDevExt->pPrimary->u.primary.IOPortGuest;2695 pInfo->IOPortGuestCommand = hgsmiFromDeviceExt(pDevExt)->IOPortGuest; 2695 2696 2696 2697 RequestPacket->StatusBlock->Information = sizeof(QUERYHGSMIRESULT); … … 2711 2712 } 2712 2713 2713 if (! pDevExt->pPrimary->u.primary.bHGSMI)2714 if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI) 2714 2715 { 2715 2716 RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION; … … 2739 2740 } 2740 2741 2741 if (! pDevExt->pPrimary->u.primary.bHGSMI)2742 if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI) 2742 2743 { 2743 2744 RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION; … … 2765 2766 } 2766 2767 2767 if (! pDevExt->pPrimary->u.primary.bHGSMI)2768 if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI) 2768 2769 { 2769 2770 RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION; … … 2786 2787 { 2787 2788 /* TODO: implement */ 2788 if (! pDevExt->pPrimary->u.primary.bHGSMI)2789 if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI) 2789 2790 { 2790 2791 RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION; … … 2804 2805 } 2805 2806 2806 if (! pDevExt->pPrimary->u.primary.bHGSMI)2807 if (!hgsmiFromDeviceExt(pDevExt)->bHGSMI) 2807 2808 { 2808 2809 RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION;
Note:
See TracChangeset
for help on using the changeset viewer.