Changeset 8134 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 18, 2008 10:57:04 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29839
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r8083 r8134 1856 1856 case DeviceType_Floppy: 1857 1857 { 1858 for (unsigned i = 0; i < ELEMENTS(mapFDLeds); i++)1858 for (unsigned i = 0; i < RT_ELEMENTS(mapFDLeds); i++) 1859 1859 SumLed.u32 |= readAndClearLed(mapFDLeds[i]); 1860 1860 break; … … 1872 1872 SumLed.u32 |= readAndClearLed(mapIDELeds[1]); 1873 1873 SumLed.u32 |= readAndClearLed(mapIDELeds[3]); 1874 for (unsigned i = 0; i < ELEMENTS(mapSATALeds); i++)1874 for (unsigned i = 0; i < RT_ELEMENTS(mapSATALeds); i++) 1875 1875 SumLed.u32 |= readAndClearLed(mapSATALeds[i]); 1876 1876 break; … … 1879 1879 case DeviceType_Network: 1880 1880 { 1881 for (unsigned i = 0; i < ELEMENTS(mapNetworkLeds); i++)1881 for (unsigned i = 0; i < RT_ELEMENTS(mapNetworkLeds); i++) 1882 1882 SumLed.u32 |= readAndClearLed(mapNetworkLeds[i]); 1883 1883 break; … … 1886 1886 case DeviceType_USB: 1887 1887 { 1888 SumLed.u32 |= readAndClearLed(mapUSBLed); 1888 for (unsigned i = 0; i < RT_ELEMENTS(mapUSBLed); i++) 1889 SumLed.u32 |= readAndClearLed(mapUSBLed[i]); 1889 1890 break; 1890 1891 } -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r8083 r8134 1501 1501 rc = CFGMR3InsertString(pLunL0, "Driver", "MainStatus"); RC_CHECK(); 1502 1502 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(); 1504 1504 rc = CFGMR3InsertInteger(pCfg, "First", 0); RC_CHECK(); 1505 1505 rc = CFGMR3InsertInteger(pCfg, "Last", 0); RC_CHECK(); … … 1528 1528 rc = CFGMR3InsertString(pLunL0, "Driver", "MainStatus"); RC_CHECK(); 1529 1529 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(); 1531 1531 rc = CFGMR3InsertInteger(pCfg, "First", 0); RC_CHECK(); 1532 1532 rc = CFGMR3InsertInteger(pCfg, "Last", 0); RC_CHECK(); -
trunk/src/VBox/Main/include/ConsoleImpl.h
r7939 r8134 512 512 PPDMLED mapNetworkLeds[8]; 513 513 PPDMLED mapSharedFolderLed; 514 PPDMLED mapUSBLed ;514 PPDMLED mapUSBLed[2]; 515 515 #ifdef VBOX_WITH_UNIXY_TAP_NETWORKING 516 516 Utf8Str maTAPDeviceName[8];
Note:
See TracChangeset
for help on using the changeset viewer.