Changeset 475 in vbox for trunk/include/VBox
- Timestamp:
- Jan 31, 2007 10:20:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vusb.h
r1 r475 75 75 * @param pAvailable Bitmap indicating the available ports. Set bit == available port. 76 76 */ 77 DECL CALLBACKMEMBER(unsigned, pfnGetAvailablePorts)(PVUSBIROOTHUBPORT pInterface, PVUSBPORTBITMAP pAvailable);77 DECLR3CALLBACKMEMBER(unsigned, pfnGetAvailablePorts,(PVUSBIROOTHUBPORT pInterface, PVUSBPORTBITMAP pAvailable)); 78 78 79 79 /** … … 84 84 * @param uPort The port number assigned to the device. 85 85 */ 86 DECL CALLBACKMEMBER(int, pfnAttach)(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort);86 DECLR3CALLBACKMEMBER(int, pfnAttach,(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort)); 87 87 88 88 /** … … 93 93 * @param uPort The port number assigned to the device. 94 94 */ 95 DECL CALLBACKMEMBER(void, pfnDetach)(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort);95 DECLR3CALLBACKMEMBER(void, pfnDetach,(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort)); 96 96 97 97 /** … … 102 102 * @param pResetOnLinux Whether or not to do real reset on linux. 103 103 */ 104 DECL CALLBACKMEMBER(int, pfnReset)(PVUSBIROOTHUBPORT pInterface, bool fResetOnLinux);104 DECLR3CALLBACKMEMBER(int, pfnReset,(PVUSBIROOTHUBPORT pInterface, bool fResetOnLinux)); 105 105 106 106 /** … … 112 112 * @param pUrb Pointer to the URB in question. 113 113 */ 114 DECL CALLBACKMEMBER(void, pfnXferPrepare)(PVUSBIROOTHUBPORT pInterface, PVUSBURB pUrb);114 DECLR3CALLBACKMEMBER(void, pfnXferPrepare,(PVUSBIROOTHUBPORT pInterface, PVUSBURB pUrb)); 115 115 116 116 /** … … 123 123 * @param pUrb Pointer to the URB in question. 124 124 */ 125 DECL CALLBACKMEMBER(void, pfnXferCompletion)(PVUSBIROOTHUBPORT pInterface, PVUSBURB urb);125 DECLR3CALLBACKMEMBER(void, pfnXferCompletion,(PVUSBIROOTHUBPORT pInterface, PVUSBURB urb)); 126 126 127 127 /** … … 135 135 * @param pUrb Pointer to the URB in question. 136 136 */ 137 DECL CALLBACKMEMBER(bool, pfnXferError)(PVUSBIROOTHUBPORT pInterface, PVUSBURB pUrb);137 DECLR3CALLBACKMEMBER(bool, pfnXferError,(PVUSBIROOTHUBPORT pInterface, PVUSBURB pUrb)); 138 138 139 139 } VUSBIROOTHUBPORT; … … 162 162 * @param cTds The amount of TD space. 163 163 */ 164 DECL CALLBACKMEMBER(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)); 165 165 166 166 /** … … 173 173 * The URB will be freed in case of failure. 174 174 */ 175 DECL CALLBACKMEMBER(int, pfnSubmitUrb)(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBURB pUrb);175 DECLR3CALLBACKMEMBER(int, pfnSubmitUrb,(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBURB pUrb)); 176 176 177 177 /** … … 189 189 * @param cMillies Number of milliseconds to poll for completion. 190 190 */ 191 DECL CALLBACKMEMBER(void, pfnReapAsyncUrbs)(PVUSBIROOTHUBCONNECTOR pInterface, unsigned cMillies);191 DECLR3CALLBACKMEMBER(void, pfnReapAsyncUrbs,(PVUSBIROOTHUBCONNECTOR pInterface, unsigned cMillies)); 192 192 193 193 /** … … 197 197 * @param pInterface Pointer to this struct. 198 198 */ 199 DECL CALLBACKMEMBER(void, pfnCancelAllUrbs)(PVUSBIROOTHUBCONNECTOR pInterface);199 DECLR3CALLBACKMEMBER(void, pfnCancelAllUrbs,(PVUSBIROOTHUBCONNECTOR pInterface)); 200 200 201 201 /** … … 207 207 * @param pDevice Pointer to the device (interface) attach. 208 208 */ 209 DECL CALLBACKMEMBER(int, pfnAttachDevice)(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice);209 DECLR3CALLBACKMEMBER(int, pfnAttachDevice,(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice)); 210 210 211 211 /** … … 217 217 * @param pDevice Pointer to the device (interface) to detach. 218 218 */ 219 DECL CALLBACKMEMBER(int, pfnDetachDevice)(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice);219 DECLR3CALLBACKMEMBER(int, pfnDetachDevice,(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice)); 220 220 221 221 } VUSBIROOTHUBCONNECTOR; 222 222 223 223 224 #ifdef IN_RING3 224 225 /** @copydoc VUSBIROOTHUBCONNECTOR::pfnNewUrb */ 225 226 DECLINLINE(PVUSBURB) VUSBIRhNewUrb(PVUSBIROOTHUBCONNECTOR pInterface, uint32_t DstAddress, uint32_t cbData, uint32_t cTds) … … 257 258 return pInterface->pfnDetachDevice(pInterface, pDevice); 258 259 } 260 #endif /* IN_RING3 */ 259 261 260 262 … … 279 281 * the VRDP backend so far. 280 282 */ 281 DECL CALLBACKMEMBER(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)); 282 284 283 285 /** … … 288 290 * @param pUuid Pointer to the UUID for the device. 289 291 */ 290 DECL CALLBACKMEMBER(int, pfnDestroyProxyDevice)(PVUSBIRHCONFIG pInterface, PCRTUUID pUuid);292 DECLR3CALLBACKMEMBER(int, pfnDestroyProxyDevice,(PVUSBIRHCONFIG pInterface, PCRTUUID pUuid)); 291 293 292 294 } VUSBIRHCONFIG; 293 295 296 #ifdef IN_RING3 294 297 /** @copydoc VUSBIRHCONFIG::pfnCreateProxyDevice */ 295 298 DECLINLINE(int) VUSBIRhCreateProxyDevice(PVUSBIRHCONFIG pInterface, PCRTUUID pUuid, bool fRemote, const char *pszAddress, void *pvBackend) … … 303 306 return pInterface->pfnDestroyProxyDevice(pInterface, pUuid); 304 307 } 308 #endif /* IN_RING3 */ 305 309 306 310 … … 386 390 * @param pVM Pointer to the VM handle if callback in EMT is required. (optional) 387 391 */ 388 DECL CALLBACKMEMBER(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)); 390 394 391 395 /** … … 395 399 * @param pInterface Pointer to the device interface structure. 396 400 */ 397 DECL CALLBACKMEMBER(int, pfnPowerOn)(PVUSBIDEVICE pInterface);401 DECLR3CALLBACKMEMBER(int, pfnPowerOn,(PVUSBIDEVICE pInterface)); 398 402 399 403 /** … … 403 407 * @param pInterface Pointer to the device interface structure. 404 408 */ 405 DECL CALLBACKMEMBER(int, pfnPowerOff)(PVUSBIDEVICE pInterface);409 DECLR3CALLBACKMEMBER(int, pfnPowerOff,(PVUSBIDEVICE pInterface)); 406 410 407 411 /** … … 411 415 * @param pInterface Pointer to the device interface structure. 412 416 */ 413 DECL CALLBACKMEMBER(VUSBDEVICESTATE, pfnGetState)(PVUSBIDEVICE pInterface);417 DECLR3CALLBACKMEMBER(VUSBDEVICESTATE, pfnGetState,(PVUSBIDEVICE pInterface)); 414 418 415 419 } VUSBIDEVICE; 416 420 417 421 422 #ifdef IN_RING3 418 423 /** 419 424 * Resets the device. … … 478 483 return pInterface->pfnGetState(pInterface); 479 484 } 485 #endif /* IN_RING3 */ 480 486 481 487
Note:
See TracChangeset
for help on using the changeset viewer.