Changeset 4031 in vbox
- Timestamp:
- Aug 4, 2007 9:57:51 AM (18 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r4023 r4031 1877 1877 case DeviceType_SharedFolderDevice: 1878 1878 { 1879 #if 0 /* not yet working */1880 1879 SumLed.u32 |= readAndClearLed(mapSharedFolderLed); 1881 #endif1882 1880 break; 1883 1881 } -
trunk/src/VBox/Main/VMMDevInterface.cpp
r4021 r4031 66 66 /** Our HGCM connector interface. */ 67 67 PDMIHGCMCONNECTOR HGCMConnector; 68 69 struct70 {71 /** The LED. */72 PDMLED Led;73 /** The LED ports. */74 PDMILEDPORTS ILeds;75 /** Partner of ILeds. */76 HCPTRTYPE(PPDMILEDCONNECTORS) pLedsConnector;77 } SharedFolders;78 79 68 #endif 80 69 } DRVMAINVMMDEV, *PDRVMAINVMMDEV; … … 475 464 return &pDrv->HGCMConnector; 476 465 #endif 477 case PDMINTERFACE_LED_PORTS:478 /* Currently only for shared folders */479 return &pDrv->SharedFolders.ILeds;480 466 default: 481 467 return NULL; 482 468 } 483 }484 485 /**486 * Gets the pointer to the status LED of a unit.487 *488 * @returns VBox status code.489 * @param pInterface Pointer to the interface structure containing the called function pointer.490 * @param iLUN The unit which status LED we desire.491 * @param ppLed Where to store the LED pointer.492 */493 static DECLCALLBACK(int) vmmdevQueryStatusLed(PPDMILEDPORTS pInterface, unsigned iLUN, PPDMLED *ppLed)494 {495 PDRVMAINVMMDEV pDrv = PDMIVMMDEVCONNECTOR_2_MAINVMMDEV(pInterface);496 if (iLUN == 0)497 {498 *ppLed = &pDrv->SharedFolders.Led;499 return VINF_SUCCESS;500 }501 return VERR_PDM_LUN_NOT_FOUND;502 469 } 503 470 … … 580 547 pData->Connector.pfnQueryVisibleRegion = vmmdevQueryVisibleRegion; 581 548 582 pData->SharedFolders.Led.u32Magic = PDMLED_MAGIC;583 /* ILeds */584 pData->SharedFolders.ILeds.pfnQueryStatusLed = vmmdevQueryStatusLed;585 586 587 549 #ifdef VBOX_HGCM 588 550 pData->HGCMConnector.pfnConnect = iface_hgcmConnect; … … 629 591 if (VBOX_SUCCESS(rc)) 630 592 { 631 PPDMIBASE pBase;632 633 593 LogRel(("Shared Folders service loaded.\n")); 634 #if 0635 /*636 * Attach status driver (optional).637 */638 rc = PDMDrvHlpDriverAttach(pDrvIns, PDM_STATUS_LUN, &pDrvIns->IBase, &pBase, "Status Port");639 if (VBOX_SUCCESS(rc))640 pData->SharedFolders.pLedsConnector = (PPDMILEDCONNECTORS)641 pBase->pfnQueryInterface(pBase, PDMINTERFACE_LED_CONNECTORS);642 else if (rc != VERR_PDM_NO_ATTACHED_DRIVER)643 {644 AssertMsgFailed(("Failed to attach to status driver. rc=%Vrc\n", rc));645 return rc;646 }647 #endif648 594 } 649 595 else
Note:
See TracChangeset
for help on using the changeset viewer.