VirtualBox

Changeset 8134 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 18, 2008 10:57:04 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29839
Message:

Fixed USB led when EHCI is enabled.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r8083 r8134  
    18561856        case DeviceType_Floppy:
    18571857        {
    1858             for (unsigned i = 0; i < ELEMENTS(mapFDLeds); i++)
     1858            for (unsigned i = 0; i < RT_ELEMENTS(mapFDLeds); i++)
    18591859                SumLed.u32 |= readAndClearLed(mapFDLeds[i]);
    18601860            break;
     
    18721872            SumLed.u32 |= readAndClearLed(mapIDELeds[1]);
    18731873            SumLed.u32 |= readAndClearLed(mapIDELeds[3]);
    1874             for (unsigned i = 0; i < ELEMENTS(mapSATALeds); i++)
     1874            for (unsigned i = 0; i < RT_ELEMENTS(mapSATALeds); i++)
    18751875                SumLed.u32 |= readAndClearLed(mapSATALeds[i]);
    18761876            break;
     
    18791879        case DeviceType_Network:
    18801880        {
    1881             for (unsigned i = 0; i < ELEMENTS(mapNetworkLeds); i++)
     1881            for (unsigned i = 0; i < RT_ELEMENTS(mapNetworkLeds); i++)
    18821882                SumLed.u32 |= readAndClearLed(mapNetworkLeds[i]);
    18831883            break;
     
    18861886        case DeviceType_USB:
    18871887        {
    1888             SumLed.u32 |= readAndClearLed(mapUSBLed);
     1888            for (unsigned i = 0; i < RT_ELEMENTS(mapUSBLed); i++)
     1889                SumLed.u32 |= readAndClearLed(mapUSBLed[i]);
    18891890            break;
    18901891        }
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r8083 r8134  
    15011501            rc = CFGMR3InsertString(pLunL0, "Driver",               "MainStatus");      RC_CHECK();
    15021502            rc = CFGMR3InsertNode(pLunL0,   "Config", &pCfg);                           RC_CHECK();
    1503             rc = CFGMR3InsertInteger(pCfg,  "papLeds", (uintptr_t)&pConsole->mapUSBLed);RC_CHECK();
     1503            rc = CFGMR3InsertInteger(pCfg,  "papLeds", (uintptr_t)&pConsole->mapUSBLed[0]);RC_CHECK();
    15041504            rc = CFGMR3InsertInteger(pCfg,  "First",    0);                             RC_CHECK();
    15051505            rc = CFGMR3InsertInteger(pCfg,  "Last",     0);                             RC_CHECK();
     
    15281528                rc = CFGMR3InsertString(pLunL0, "Driver",               "MainStatus");      RC_CHECK();
    15291529                rc = CFGMR3InsertNode(pLunL0,   "Config", &pCfg);                           RC_CHECK();
    1530                 rc = CFGMR3InsertInteger(pCfg,  "papLeds", (uintptr_t)&pConsole->mapUSBLed);RC_CHECK();
     1530                rc = CFGMR3InsertInteger(pCfg,  "papLeds", (uintptr_t)&pConsole->mapUSBLed[1]);RC_CHECK();
    15311531                rc = CFGMR3InsertInteger(pCfg,  "First",    0);                             RC_CHECK();
    15321532                rc = CFGMR3InsertInteger(pCfg,  "Last",     0);                             RC_CHECK();
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r7939 r8134  
    512512    PPDMLED     mapNetworkLeds[8];
    513513    PPDMLED     mapSharedFolderLed;
    514     PPDMLED     mapUSBLed;
     514    PPDMLED     mapUSBLed[2];
    515515#ifdef VBOX_WITH_UNIXY_TAP_NETWORKING
    516516    Utf8Str     maTAPDeviceName[8];
Note: See TracChangeset for help on using the changeset viewer.

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