vbox的更動 4035 路徑 trunk/src/VBox/Devices/VMMDev
- 時間撮記:
- 2007-8-4 下午05:42:14 (17 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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 /*
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器