Changeset 4035 in vbox for trunk/src/VBox/Devices/VMMDev
- Timestamp:
- Aug 4, 2007 5:42:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp
r4032 r4035 1469 1469 } 1470 1470 1471 /** 1472 * Gets the pointer to the status LED of a unit. 1473 * 1474 * @returns VBox status code. 1475 * @param pInterface Pointer to the interface structure containing the called function pointer. 1476 * @param iLUN The unit which status LED we desire. 1477 * @param ppLed Where to store the LED pointer. 1478 */ 1479 static DECLCALLBACK(int) vmmdevQueryStatusLed(PPDMILEDPORTS pInterface, unsigned iLUN, PPDMLED *ppLed) 1480 { 1481 VMMDevState *pData = (VMMDevState*)((uintptr_t)pInterface - RT_OFFSETOF(VMMDevState, Base)); 1482 if (iLUN == 0) /* LUN 0 is shared folders */ 1483 { 1484 *ppLed = &pData->SharedFolders.Led; 1485 return VINF_SUCCESS; 1486 } 1487 return VERR_PDM_LUN_NOT_FOUND; 1488 } 1489 1471 1490 /* -=-=-=-=-=- IVMMDevPort -=-=-=-=-=- */ 1472 1491 … … 1664 1683 1665 1684 return; 1666 }1667 1668 /**1669 * Gets the pointer to the status LED of a unit.1670 *1671 * @returns VBox status code.1672 * @param pInterface Pointer to the interface structure containing the called function pointer.1673 * @param iLUN The unit which status LED we desire.1674 * @param ppLed Where to store the LED pointer.1675 */1676 static DECLCALLBACK(int) vmmdevQueryStatusLed(PPDMILEDPORTS pInterface, unsigned iLUN, PPDMLED *ppLed)1677 {1678 VMMDevState *pData = IVMMDEVPORT_2_VMMDEVSTATE(pInterface);1679 if (iLUN == 0) /* LUN 0 is shared folders */1680 {1681 *ppLed = &pData->SharedFolders.Led;1682 return VINF_SUCCESS;1683 }1684 return VERR_PDM_LUN_NOT_FOUND;1685 1685 } 1686 1686 … … 1953 1953 AssertMsgFailedReturn(("Failed to attach LUN #0! rc=%Vrc\n", rc), rc); 1954 1954 1955 #if 0 1955 1956 /* 1956 1957 * Attach status driver for shared folders (optional). … … 1966 1967 return rc; 1967 1968 } 1969 #endif 1968 1970 1969 1971 /*
Note:
See TracChangeset
for help on using the changeset viewer.