VirtualBox

Ignore:
Timestamp:
Aug 20, 2010 3:17:00 PM (14 years ago)
Author:
vboxsync
Message:

VBoxVideo: Report legacy VGA resources, do not try to claim conflicting PCI resources.

File:
1 edited

Legend:

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

    r30169 r31827  
    4040static WCHAR VBoxBiosString[] = L"Version 0xB0C2 or later";
    4141
     42VIDEO_ACCESS_RANGE  VGARanges[] = {
     43    { 0x000003B0, 0x00000000, 0x0000000C, 1, 1, 1, 0 }, /* 0x3B0-0x3BB */
     44    { 0x000003C0, 0x00000000, 0x00000020, 1, 1, 1, 0 }, /* 0x3C0-0x3DF */
     45    { 0x000A0000, 0x00000000, 0x00020000, 0, 0, 1, 0 }, /* 0xA0000-0xBFFFF */
     46};
    4247/*
    4348 * Globals for the last custom resolution set. This is important
     
    7984    InitData.HwGetVideoChildDescriptor = VBoxVideoGetChildDescriptor;
    8085    InitData.HwDeviceExtensionSize = sizeof(DEVICE_EXTENSION);
     86    // report legacy VGA resource ranges
     87    InitData.HwLegacyResourceList  = VGARanges;
     88    InitData.HwLegacyResourceCount = sizeof(VGARanges) / sizeof(VGARanges[0]);
    8189
    8290    // our DDK is at the Win2k3 level so we have to take special measures
     
    18691877          /* no matter what we get with VideoPortGetAccessRanges, we assert the default ranges */
    18701878      }
    1871 #endif /* VBOX_WITH_HGSMI */
     1879#else
    18721880      rc = VideoPortVerifyAccessRanges(HwDeviceExtension, 1, AccessRanges);
    18731881      dprintf(("VBoxVideo::VBoxVideoFindAdapter: VideoPortVerifyAccessRanges returned 0x%x\n", rc));
     
    18761884      // pretend success to make the driver work.
    18771885      rc = NO_ERROR;
     1886#endif /* VBOX_WITH_HGSMI */
    18781887
    18791888#ifndef VBOX_WITH_HGSMI
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