VirtualBox

vbox的更動 4035 路徑 trunk/src/VBox/Devices/VMMDev


忽略:
時間撮記:
2007-8-4 下午05:42:14 (17 年 以前)
作者:
vboxsync
訊息:

disabled status leds until I fix them

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r4032 r4035  
    14691469}
    14701470
     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 */
     1479static 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
    14711490/* -=-=-=-=-=- IVMMDevPort -=-=-=-=-=- */
    14721491
     
    16641683
    16651684    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;
    16851685}
    16861686
     
    19531953        AssertMsgFailedReturn(("Failed to attach LUN #0! rc=%Vrc\n", rc), rc);
    19541954
     1955#if 0
    19551956    /*
    19561957     * Attach status driver for shared folders (optional).
     
    19661967        return rc;
    19671968    }
     1969#endif
    19681970
    19691971    /*
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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