VirtualBox

Changeset 4035 in vbox for trunk/src/VBox/Devices/VMMDev


Ignore:
Timestamp:
Aug 4, 2007 5:42:14 PM (17 years ago)
Author:
vboxsync
Message:

disabled status leds until I fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    /*
Note: See TracChangeset for help on using the changeset viewer.

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