VirtualBox

Changeset 475 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 31, 2007 10:20:54 PM (18 years ago)
Author:
vboxsync
Message:

Ring-3 callbacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vusb.h

    r1 r475  
    7575     * @param   pAvailable      Bitmap indicating the available ports. Set bit == available port.
    7676     */
    77     DECLCALLBACKMEMBER(unsigned, pfnGetAvailablePorts)(PVUSBIROOTHUBPORT pInterface, PVUSBPORTBITMAP pAvailable);
     77    DECLR3CALLBACKMEMBER(unsigned, pfnGetAvailablePorts,(PVUSBIROOTHUBPORT pInterface, PVUSBPORTBITMAP pAvailable));
    7878
    7979    /**
     
    8484     * @param   uPort           The port number assigned to the device.
    8585     */
    86     DECLCALLBACKMEMBER(int, pfnAttach)(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort);
     86    DECLR3CALLBACKMEMBER(int, pfnAttach,(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort));
    8787
    8888    /**
     
    9393     * @param   uPort           The port number assigned to the device.
    9494     */
    95     DECLCALLBACKMEMBER(void, pfnDetach)(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort);
     95    DECLR3CALLBACKMEMBER(void, pfnDetach,(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort));
    9696
    9797    /**
     
    102102     * @param   pResetOnLinux   Whether or not to do real reset on linux.
    103103     */
    104     DECLCALLBACKMEMBER(int, pfnReset)(PVUSBIROOTHUBPORT pInterface, bool fResetOnLinux);
     104    DECLR3CALLBACKMEMBER(int, pfnReset,(PVUSBIROOTHUBPORT pInterface, bool fResetOnLinux));
    105105
    106106    /**
     
    112112     * @param   pUrb            Pointer to the URB in question.
    113113     */
    114     DECLCALLBACKMEMBER(void, pfnXferPrepare)(PVUSBIROOTHUBPORT pInterface, PVUSBURB pUrb);
     114    DECLR3CALLBACKMEMBER(void, pfnXferPrepare,(PVUSBIROOTHUBPORT pInterface, PVUSBURB pUrb));
    115115
    116116    /**
     
    123123     * @param   pUrb            Pointer to the URB in question.
    124124     */
    125     DECLCALLBACKMEMBER(void, pfnXferCompletion)(PVUSBIROOTHUBPORT pInterface, PVUSBURB urb);
     125    DECLR3CALLBACKMEMBER(void, pfnXferCompletion,(PVUSBIROOTHUBPORT pInterface, PVUSBURB urb));
    126126
    127127    /**
     
    135135     * @param   pUrb            Pointer to the URB in question.
    136136     */
    137     DECLCALLBACKMEMBER(bool, pfnXferError)(PVUSBIROOTHUBPORT pInterface, PVUSBURB pUrb);
     137    DECLR3CALLBACKMEMBER(bool, pfnXferError,(PVUSBIROOTHUBPORT pInterface, PVUSBURB pUrb));
    138138
    139139} VUSBIROOTHUBPORT;
     
    162162     * @param   cTds        The amount of TD space.
    163163     */
    164     DECLCALLBACKMEMBER(PVUSBURB, pfnNewUrb)(PVUSBIROOTHUBCONNECTOR pInterface, uint8_t DstAddress, uint32_t cbData, uint32_t cTds);
     164    DECLR3CALLBACKMEMBER(PVUSBURB, pfnNewUrb,(PVUSBIROOTHUBCONNECTOR pInterface, uint8_t DstAddress, uint32_t cbData, uint32_t cTds));
    165165
    166166    /**
     
    173173     *                      The URB will be freed in case of failure.
    174174     */
    175     DECLCALLBACKMEMBER(int, pfnSubmitUrb)(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBURB pUrb);
     175    DECLR3CALLBACKMEMBER(int, pfnSubmitUrb,(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBURB pUrb));
    176176
    177177    /**
     
    189189     * @param   cMillies    Number of milliseconds to poll for completion.
    190190     */
    191     DECLCALLBACKMEMBER(void, pfnReapAsyncUrbs)(PVUSBIROOTHUBCONNECTOR pInterface, unsigned cMillies);
     191    DECLR3CALLBACKMEMBER(void, pfnReapAsyncUrbs,(PVUSBIROOTHUBCONNECTOR pInterface, unsigned cMillies));
    192192
    193193    /**
     
    197197     * @param   pInterface  Pointer to this struct.
    198198     */
    199     DECLCALLBACKMEMBER(void, pfnCancelAllUrbs)(PVUSBIROOTHUBCONNECTOR pInterface);
     199    DECLR3CALLBACKMEMBER(void, pfnCancelAllUrbs,(PVUSBIROOTHUBCONNECTOR pInterface));
    200200
    201201    /**
     
    207207     * @param   pDevice     Pointer to the device (interface) attach.
    208208     */
    209     DECLCALLBACKMEMBER(int, pfnAttachDevice)(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice);
     209    DECLR3CALLBACKMEMBER(int, pfnAttachDevice,(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice));
    210210
    211211    /**
     
    217217     * @param   pDevice     Pointer to the device (interface) to detach.
    218218     */
    219     DECLCALLBACKMEMBER(int, pfnDetachDevice)(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice);
     219    DECLR3CALLBACKMEMBER(int, pfnDetachDevice,(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice));
    220220
    221221} VUSBIROOTHUBCONNECTOR;
    222222
    223223
     224#ifdef IN_RING3
    224225/** @copydoc VUSBIROOTHUBCONNECTOR::pfnNewUrb */
    225226DECLINLINE(PVUSBURB) VUSBIRhNewUrb(PVUSBIROOTHUBCONNECTOR pInterface, uint32_t DstAddress, uint32_t cbData, uint32_t cTds)
     
    257258    return pInterface->pfnDetachDevice(pInterface, pDevice);
    258259}
     260#endif /* IN_RING3 */
    259261
    260262
     
    279281     *                          the VRDP backend so far.
    280282     */
    281     DECLCALLBACKMEMBER(int, pfnCreateProxyDevice)(PVUSBIRHCONFIG pInterface, PCRTUUID pUuid, bool fRemote, const char *pszAddress, void *pvBackend);
     283    DECLR3CALLBACKMEMBER(int, pfnCreateProxyDevice,(PVUSBIRHCONFIG pInterface, PCRTUUID pUuid, bool fRemote, const char *pszAddress, void *pvBackend));
    282284
    283285    /**
     
    288290     * @param   pUuid           Pointer to the UUID for the device.
    289291     */
    290     DECLCALLBACKMEMBER(int, pfnDestroyProxyDevice)(PVUSBIRHCONFIG pInterface, PCRTUUID pUuid);
     292    DECLR3CALLBACKMEMBER(int, pfnDestroyProxyDevice,(PVUSBIRHCONFIG pInterface, PCRTUUID pUuid));
    291293
    292294} VUSBIRHCONFIG;
    293295
     296#ifdef IN_RING3
    294297/** @copydoc  VUSBIRHCONFIG::pfnCreateProxyDevice */
    295298DECLINLINE(int) VUSBIRhCreateProxyDevice(PVUSBIRHCONFIG pInterface, PCRTUUID pUuid, bool fRemote, const char *pszAddress, void *pvBackend)
     
    303306    return pInterface->pfnDestroyProxyDevice(pInterface, pUuid);
    304307}
     308#endif /* IN_RING3 */
    305309
    306310
     
    386390     * @param   pVM             Pointer to the VM handle if callback in EMT is required. (optional)
    387391     */
    388     DECLCALLBACKMEMBER(int, pfnReset)(PVUSBIDEVICE pInterface, bool fResetOnLinux,
    389                                       PFNVUSBRESETDONE pfnDone, void *pvUser, PVM pVM);
     392    DECLR3CALLBACKMEMBER(int, pfnReset,(PVUSBIDEVICE pInterface, bool fResetOnLinux,
     393                                        PFNVUSBRESETDONE pfnDone, void *pvUser, PVM pVM));
    390394
    391395    /**
     
    395399     * @param   pInterface      Pointer to the device interface structure.
    396400     */
    397     DECLCALLBACKMEMBER(int, pfnPowerOn)(PVUSBIDEVICE pInterface);
     401    DECLR3CALLBACKMEMBER(int, pfnPowerOn,(PVUSBIDEVICE pInterface));
    398402
    399403    /**
     
    403407     * @param   pInterface      Pointer to the device interface structure.
    404408     */
    405     DECLCALLBACKMEMBER(int, pfnPowerOff)(PVUSBIDEVICE pInterface);
     409    DECLR3CALLBACKMEMBER(int, pfnPowerOff,(PVUSBIDEVICE pInterface));
    406410
    407411    /**
     
    411415     * @param   pInterface      Pointer to the device interface structure.
    412416     */
    413     DECLCALLBACKMEMBER(VUSBDEVICESTATE, pfnGetState)(PVUSBIDEVICE pInterface);
     417    DECLR3CALLBACKMEMBER(VUSBDEVICESTATE, pfnGetState,(PVUSBIDEVICE pInterface));
    414418
    415419} VUSBIDEVICE;
    416420
    417421
     422#ifdef IN_RING3
    418423/**
    419424 * Resets the device.
     
    478483    return pInterface->pfnGetState(pInterface);
    479484}
     485#endif /* IN_RING3 */
    480486
    481487
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