VirtualBox

Ignore:
Timestamp:
Oct 15, 2009 9:13:56 AM (15 years ago)
Author:
vboxsync
Message:

HGSMI: use IO ports 3b0/3d0

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Miniport
Files:
2 edited

Legend:

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

    r23652 r23793  
    12081208          dprintf(("VBoxVideo::VBoxVideoFindAdapter: calling VideoPortGetAccessRanges\n"));
    12091209
    1210           /* Ports not yet found. */
    1211           ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortHost = 0;
    1212           ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortGuest = 0;
     1210          ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortHost = (RTIOPORT)VGA_PORT_HGSMI_HOST;
     1211          ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortGuest = (RTIOPORT)VGA_PORT_HGSMI_GUEST;
    12131212
    12141213          VIDEO_ACCESS_RANGE tmpRanges[4];
     
    12471246          }
    12481247          dprintf(("VBoxVideo::VBoxVideoFindAdapter: VideoPortGetAccessRanges status 0x%x\n", status));
    1249           if (status == NO_ERROR)
    1250           {
    1251               ULONG iRange = 0;
    1252               for (; iRange < sizeof (tmpRanges)/sizeof (tmpRanges[0]); iRange++)
    1253               {
    1254                   dprintf(("VBoxVideo::VBoxVideoFindAdapter: range[%i]:\n"
    1255                            "    RangeStart = 0x%llx\n"
    1256                            "    RangeLength = %d\n"
    1257                            "    RangeInIoSpace = %d\n"
    1258                            "    RangeVisible = %d\n"
    1259                            "    RangeShareable = %d\n"
    1260                            "    RangePassive = %d\n",
    1261                            iRange,
    1262                            tmpRanges[iRange].RangeStart.QuadPart,
    1263                            tmpRanges[iRange].RangeLength,
    1264                            tmpRanges[iRange].RangeInIoSpace,
    1265                            tmpRanges[iRange].RangeVisible,
    1266                            tmpRanges[iRange].RangeShareable,
    1267                            tmpRanges[iRange].RangePassive));
    1268                    if (tmpRanges[iRange].RangeInIoSpace)
    1269                    {
    1270                        PVOID ioBase = VideoPortGetDeviceBase(HwDeviceExtension, tmpRanges[iRange].RangeStart, 8, VIDEO_MEMORY_SPACE_IO);
    1271                        dprintf (("ioBase %p\n", ioBase));
    1272 
    1273                        ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortHost = (RTIOPORT)ioBase + VGA_PORT_OFF_HGSMI_HOST;
    1274                        ((PDEVICE_EXTENSION)HwDeviceExtension)->u.primary.IOPortGuest = (RTIOPORT)ioBase + VGA_PORT_OFF_HGSMI_GUEST;
    1275                    }
    1276               }
    1277           }
    12781248
    12791249          /* no matter what we get with VideoPortGetAccessRanges, we assert the default ranges */
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h

    r22549 r23793  
    6666
    6767#ifdef VBOX_WITH_HGSMI
    68 #define VGA_PORT_OFF_HGSMI_HOST  0
    69 #define VGA_PORT_OFF_HGSMI_GUEST 4
     68#define VGA_PORT_HGSMI_HOST  0x3b0
     69#define VGA_PORT_HGSMI_GUEST 0x3d0
    7070#endif /* VBOX_WITH_HGSMI */
    7171
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