Changeset 26112 in vbox for trunk/include/VBox
- Timestamp:
- Feb 1, 2010 1:44:02 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57100
- Location:
- trunk/include/VBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/dbgf.h
r25728 r26112 451 451 * Info handler, device version. 452 452 * 453 * @param pDevIns Device instance which registered the info.453 * @param pDevIns The device instance which registered the info. 454 454 * @param pHlp Callback functions for doing output. 455 455 * @param pszArgs Argument string. Optional and specific to the handler. … … 460 460 461 461 /** 462 * Info handler, USB device version. 463 * 464 * @param pUsbIns The USB device instance which registered the info. 465 * @param pHlp Callback functions for doing output. 466 * @param pszArgs Argument string. Optional and specific to the handler. 467 */ 468 typedef DECLCALLBACK(void) FNDBGFHANDLERUSB(PPDMUSBINS pUsbIns, PCDBGFINFOHLP pHlp, const char *pszArgs); 469 /** Pointer to a FNDBGFHANDLERUSB function. */ 470 typedef FNDBGFHANDLERUSB *PFNDBGFHANDLERUSB; 471 472 /** 462 473 * Info handler, driver version. 463 474 * 464 * @param pDrvIns Driver instance which registered the info.475 * @param pDrvIns The driver instance which registered the info. 465 476 * @param pHlp Callback functions for doing output. 466 477 * @param pszArgs Argument string. Optional and specific to the handler. -
trunk/include/VBox/log.h
r24834 r26112 312 312 /** USBFilter group. */ 313 313 LOG_GROUP_USB_FILTER, 314 /** MSD USB device group. */ 315 LOG_GROUP_USB_MSD, 314 316 /** Generic virtual disk layer. */ 315 317 LOG_GROUP_VD, … … 477 479 "USB_DRV", \ 478 480 "USB_FILTER", \ 481 "USB_MSD", \ 479 482 "VD", \ 480 483 "VD_ISCSI", \ -
trunk/include/VBox/pdmqueue.h
r21363 r26112 76 76 77 77 /** 78 * Queue consumer callback for USB devices. 79 * 80 * @returns Success indicator. 81 * If false the item will not be removed and the flushing will stop. 82 * @param pDevIns The USB device instance. 83 * @param pItem The item to consume. Upon return this item will be freed. 84 */ 85 typedef DECLCALLBACK(bool) FNPDMQUEUEUSB(PPDMUSBINS pUsbIns, PPDMQUEUEITEMCORE pItem); 86 /** Pointer to a FNPDMQUEUEUSB(). */ 87 typedef FNPDMQUEUEUSB *PFNPDMQUEUEUSB; 88 89 /** 78 90 * Queue consumer callback for drivers. 79 91 * -
trunk/include/VBox/pdmusb.h
r26001 r26112 451 451 * @param pfnHandler The handler function to be called to display the info. 452 452 */ 453 /** @todo DECLR3CALLBACKMEMBER(int, pfnDBGFInfoRegister,(PPDMUSBINS pUsbIns, const char *pszName, const char *pszDesc, PFNDBGFHANDLERUSB pfnHandler)); */ 453 DECLR3CALLBACKMEMBER(int, pfnDBGFInfoRegister,(PPDMUSBINS pUsbIns, const char *pszName, const char *pszDesc, PFNDBGFHANDLERUSB pfnHandler)); 454 454 455 455 /** … … 483 483 * If 0 then the emulation thread will be notified whenever an item arrives. 484 484 * @param pfnCallback The consumer function. 485 * @param pszName The queue base name. The instance number will be 486 * appended automatically. 485 487 * @param ppQueue Where to store the queue handle on success. 486 488 * @thread The emulation thread. 487 489 */ 488 /** @todo DECLR3CALLBACKMEMBER(int, pfnPDMQueueCreate,(PPDMUSBINS pUsbIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, PFNPDMQUEUEUSB pfnCallback, PPDMQUEUE *ppQueue)); */ 490 DECLR3CALLBACKMEMBER(int, pfnPDMQueueCreate,(PPDMUSBINS pUsbIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 491 PFNPDMQUEUEUSB pfnCallback, const char *pszName, PPDMQUEUE *ppQueue)); 489 492 490 493 /** … … 493 496 * @returns VBox status. 494 497 * @param pUsbIns The USB device instance. 495 * @param pszName Data unit name. 496 * @param u32Instance The instance identifier of the data unit. 497 * This must together with the name be unique. 498 * @param u32Version Data layout version number. 499 * @param cbGuess The approximate amount of data in the unit. 500 * Only for progress indicators. 501 * @param pfnSavePrep Prepare save callback, optional. 502 * @param pfnSaveExec Execute save callback, optional. 503 * @param pfnSaveDone Done save callback, optional. 504 * @param pfnLoadPrep Prepare load callback, optional. 505 * @param pfnLoadExec Execute load callback, optional. 506 * @param pfnLoadDone Done load callback, optional. 507 */ 508 /** @todo DECLR3CALLBACKMEMBER(int, pfnSSMRegister,(PPDMUSBINS pUsbIns, const char *pszName, uint32_t u32Instance, uint32_t u32Version, size_t cbGuess, 498 * @param uVersion Data layout version number. 499 * @param cbGuess The approximate amount of data in the unit. 500 * Only for progress indicators. 501 * 502 * @param pfnLivePrep Prepare live save callback, optional. 503 * @param pfnLiveExec Execute live save callback, optional. 504 * @param pfnLiveVote Vote live save callback, optional. 505 * 506 * @param pfnSavePrep Prepare save callback, optional. 507 * @param pfnSaveExec Execute save callback, optional. 508 * @param pfnSaveDone Done save callback, optional. 509 * 510 * @param pfnLoadPrep Prepare load callback, optional. 511 * @param pfnLoadExec Execute load callback, optional. 512 * @param pfnLoadDone Done load callback, optional. 513 */ 514 DECLR3CALLBACKMEMBER(int, pfnSSMRegister,(PPDMUSBINS pUsbIns, uint32_t uVersion, size_t cbGuess, 515 PFNSSMUSBLIVEPREP pfnLivePrep, PFNSSMUSBLIVEEXEC pfnLiveExec, PFNSSMUSBLIVEVOTE pfnLiveVote, 509 516 PFNSSMUSBSAVEPREP pfnSavePrep, PFNSSMUSBSAVEEXEC pfnSaveExec, PFNSSMUSBSAVEDONE pfnSaveDone, 510 PFNSSMUSBLOADPREP pfnLoadPrep, PFNSSMUSBLOADEXEC pfnLoadExec, PFNSSMUSBLOADDONE pfnLoadDone)); */517 PFNSSMUSBLOADPREP pfnLoadPrep, PFNSSMUSBLOADEXEC pfnLoadExec, PFNSSMUSBLOADDONE pfnLoadDone)); 511 518 512 519 /** … … 535 542 * @param enmClock The clock to use on this timer. 536 543 * @param pfnCallback Callback function. 544 * @param pvUser User argument for the callback. 545 * @param fFlags Flags, see TMTIMER_FLAGS_*. 537 546 * @param pszDesc Pointer to description string which must stay around 538 547 * until the timer is fully destroyed (i.e. a bit after TMTimerDestroy()). 539 548 * @param ppTimer Where to store the timer on success. 540 549 */ 541 /** @todo DECLR3CALLBACKMEMBER(int, pfnTMTimerCreate,(PPDMUSBINS pUsbIns, TMCLOCK enmClock, PFNTMTIMERUSB pfnCallback, const char *pszDesc, PPTMTIMERHC ppTimer)); */ 550 DECLR3CALLBACKMEMBER(int, pfnTMTimerCreate,(PPDMUSBINS pUsbIns, TMCLOCK enmClock, PFNTMTIMERUSB pfnCallback, void *pvUser, 551 uint32_t fFlags, const char *pszDesc, PPTMTIMERR3 ppTimer)); 542 552 543 553 /** … … 704 714 705 715 /** 716 * @copydoc PDMUSBHLP::pfnDriverAttach 717 */ 718 DECLINLINE(int) PDMUsbHlpDriverAttach(PPDMUSBINS pUsbIns, RTUINT iLun, PPDMIBASE pBaseInterface, PPDMIBASE *ppBaseInterface, const char *pszDesc) 719 { 720 return pUsbIns->pUsbHlp->pfnDriverAttach(pUsbIns, iLun, pBaseInterface, ppBaseInterface, pszDesc); 721 } 722 723 /** 706 724 * VBOX_STRICT wrapper for pUsbHlp->pfnDBGFStopV. 707 725 * … … 755 773 } 756 774 775 /** 776 * Set the VM error message 777 * 778 * @returns rc. 779 * @param pUsbIns The USB device instance. 780 * @param rc VBox status code. 781 * @param RT_SRC_POS_DECL Use RT_SRC_POS. 782 * @param pszFormat Error message format string. 783 * @param ... Error message arguments. 784 */ 785 DECLINLINE(int) PDMUsbHlpVMSetError(PPDMUSBINS pUsbIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) 786 { 787 va_list va; 788 va_start(va, pszFormat); 789 rc = pUsbIns->pUsbHlp->pfnVMSetErrorV(pUsbIns, rc, RT_SRC_POS_ARGS, pszFormat, va); 790 va_end(va); 791 return rc; 792 } 793 794 757 795 #endif /* IN_RING3 */ 758 796 -
trunk/include/VBox/ssm.h
r24917 r26112 510 510 511 511 512 /** The PDM Drivercallback variants.512 /** The PDM USB device callback variants. 513 513 * @{ 514 514 */ … … 518 518 * 519 519 * @returns VBox status code. 520 * @param p DrvIns Driver instance of the device which registered the521 * data unit.522 * @param pSSM SSM operation handle. 523 * @thread Any. 524 */ 525 typedef DECLCALLBACK(int) FNSSM DRVLIVEPREP(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM);526 /** Pointer to a FNSSM DRVLIVEPREP() function. */527 typedef FNSSM DRVLIVEPREP *PFNSSMDRVLIVEPREP;520 * @param pUsbIns The USB device instance of the USB device which 521 * registered the data unit. 522 * @param pSSM SSM operation handle. 523 * @thread Any. 524 */ 525 typedef DECLCALLBACK(int) FNSSMUSBLIVEPREP(PPDMUSBINS pUsbIns, PSSMHANDLE pSSM); 526 /** Pointer to a FNSSMUSBLIVEPREP() function. */ 527 typedef FNSSMUSBLIVEPREP *PFNSSMUSBLIVEPREP; 528 528 529 529 /** … … 534 534 * 535 535 * @returns VBox status code. 536 * @param p DrvIns Driver instance of the device which registered the537 * data unit.538 * @param pSSM SSM operation handle. 539 * @param uPass The datapass.540 * @thread Any. 541 */ 542 typedef DECLCALLBACK(int) FNSSM DRVLIVEEXEC(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM, uint32_t uPass);543 /** Pointer to a FNSSM DRVLIVEEXEC() function. */544 typedef FNSSM DRVLIVEEXEC *PFNSSMDRVLIVEEXEC;536 * @param pUsbIns The USB device instance of the USB device which 537 * registered the data unit. 538 * @param pSSM SSM operation handle. 539 * @param uPass The pass. 540 * @thread Any. 541 */ 542 typedef DECLCALLBACK(int) FNSSMUSBLIVEEXEC(PPDMUSBINS pUsbIns, PSSMHANDLE pSSM, uint32_t uPass); 543 /** Pointer to a FNSSMUSBLIVEEXEC() function. */ 544 typedef FNSSMUSBLIVEEXEC *PFNSSMUSBLIVEEXEC; 545 545 546 546 /** … … 557 557 * @retval VERR_SSM_VOTE_FOR_GIVING_UP if its time to give up. 558 558 * 559 * @param pDrvIns Driver instance of the device which registered the 559 * @param pUsbIns The USB device instance of the USB device which 560 * registered the data unit. 561 * @param pSSM SSM operation handle. 562 * @param uPass The data pass. 563 * @thread Any. 564 */ 565 typedef DECLCALLBACK(int) FNSSMUSBLIVEVOTE(PPDMUSBINS pUsbIns, PSSMHANDLE pSSM, uint32_t uPass); 566 /** Pointer to a FNSSMUSBLIVEVOTE() function. */ 567 typedef FNSSMUSBLIVEVOTE *PFNSSMUSBLIVEVOTE; 568 569 /** 570 * Prepare state save operation. 571 * 572 * @returns VBox status code. 573 * @param pUsbIns The USB device instance of the USB device which 574 * registered the data unit. 575 * @param pSSM SSM operation handle. 576 */ 577 typedef DECLCALLBACK(int) FNSSMUSBSAVEPREP(PPDMUSBINS pUsbIns, PSSMHANDLE pSSM); 578 /** Pointer to a FNSSMUSBSAVEPREP() function. */ 579 typedef FNSSMUSBSAVEPREP *PFNSSMUSBSAVEPREP; 580 581 /** 582 * Execute state save operation. 583 * 584 * @returns VBox status code. 585 * @param pUsbIns The USB device instance of the USB device which 586 * registered the data unit. 587 * @param pSSM SSM operation handle. 588 */ 589 typedef DECLCALLBACK(int) FNSSMUSBSAVEEXEC(PPDMUSBINS pUsbIns, PSSMHANDLE pSSM); 590 /** Pointer to a FNSSMUSBSAVEEXEC() function. */ 591 typedef FNSSMUSBSAVEEXEC *PFNSSMUSBSAVEEXEC; 592 593 /** 594 * Done state save operation. 595 * 596 * @returns VBox status code. 597 * @param pUsbIns The USB device instance of the USB device which 598 * registered the data unit. 599 * @param pSSM SSM operation handle. 600 */ 601 typedef DECLCALLBACK(int) FNSSMUSBSAVEDONE(PPDMUSBINS pUsbIns, PSSMHANDLE pSSM); 602 /** Pointer to a FNSSMUSBSAVEDONE() function. */ 603 typedef FNSSMUSBSAVEDONE *PFNSSMUSBSAVEDONE; 604 605 /** 606 * Prepare state load operation. 607 * 608 * @returns VBox status code. 609 * @param pUsbIns The USB device instance of the USB device which 610 * registered the data unit. 611 * @param pSSM SSM operation handle. 612 */ 613 typedef DECLCALLBACK(int) FNSSMUSBLOADPREP(PPDMUSBINS pUsbIns, PSSMHANDLE pSSM); 614 /** Pointer to a FNSSMUSBLOADPREP() function. */ 615 typedef FNSSMUSBLOADPREP *PFNSSMUSBLOADPREP; 616 617 /** 618 * Execute state load operation. 619 * 620 * @returns VBox status code. 621 * @param pUsbIns The USB device instance of the USB device which 622 * registered the data unit. 623 * @param pSSM SSM operation handle. 624 * @param uVersion Data layout version. 625 * @param uPass The pass. This is always SSM_PASS_FINAL for units 626 * that doesn't specify a pfnSaveLive callback. 627 */ 628 typedef DECLCALLBACK(int) FNSSMUSBLOADEXEC(PPDMUSBINS pUsbIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass); 629 /** Pointer to a FNSSMUSBLOADEXEC() function. */ 630 typedef FNSSMUSBLOADEXEC *PFNSSMUSBLOADEXEC; 631 632 /** 633 * Done state load operation. 634 * 635 * @returns VBox load code. 636 * @param pUsbIns The USB device instance of the USB device which 637 * registered the data unit. 638 * @param pSSM SSM operation handle. 639 */ 640 typedef DECLCALLBACK(int) FNSSMUSBLOADDONE(PPDMUSBINS pUsbIns, PSSMHANDLE pSSM); 641 /** Pointer to a FNSSMUSBLOADDONE() function. */ 642 typedef FNSSMUSBLOADDONE *PFNSSMUSBLOADDONE; 643 644 /** @} */ 645 646 647 /** The PDM Driver callback variants. 648 * @{ 649 */ 650 651 /** 652 * Prepare state live save operation. 653 * 654 * @returns VBox status code. 655 * @param pDrvIns Driver instance of the driver which registered the 656 * data unit. 657 * @param pSSM SSM operation handle. 658 * @thread Any. 659 */ 660 typedef DECLCALLBACK(int) FNSSMDRVLIVEPREP(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM); 661 /** Pointer to a FNSSMDRVLIVEPREP() function. */ 662 typedef FNSSMDRVLIVEPREP *PFNSSMDRVLIVEPREP; 663 664 /** 665 * Execute state live save operation. 666 * 667 * This will be called repeatedly until all units vote that the live phase has 668 * been concluded. 669 * 670 * @returns VBox status code. 671 * @param pDrvIns Driver instance of the driver which registered the 672 * data unit. 673 * @param pSSM SSM operation handle. 674 * @param uPass The data pass. 675 * @thread Any. 676 */ 677 typedef DECLCALLBACK(int) FNSSMDRVLIVEEXEC(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM, uint32_t uPass); 678 /** Pointer to a FNSSMDRVLIVEEXEC() function. */ 679 typedef FNSSMDRVLIVEEXEC *PFNSSMDRVLIVEEXEC; 680 681 /** 682 * Vote on whether the live part of the saving has been concluded. 683 * 684 * The vote stops once a unit has vetoed the decision, so don't rely upon this 685 * being called every time. 686 * 687 * @returns VBox status code. 688 * @retval VINF_SUCCESS if done. 689 * @retval VINF_SSM_VOTE_FOR_ANOTHER_PASS if another pass is needed. 690 * @retval VINF_SSM_VOTE_DONE_DONT_CALL_AGAIN if the live saving of the unit is 691 * done and there is not need calling it again before the final pass. 692 * @retval VERR_SSM_VOTE_FOR_GIVING_UP if its time to give up. 693 * 694 * @param pDrvIns Driver instance of the driver which registered the 560 695 * data unit. 561 696 * @param pSSM SSM operation handle. -
trunk/include/VBox/tm.h
r22808 r26112 150 150 /** Pointer to a device timer callback function. */ 151 151 typedef FNTMTIMERDEV *PFNTMTIMERDEV; 152 153 /** 154 * Device timer callback function. 155 * 156 * @param pUsbIns The USB device instance the timer is associated 157 * with. 158 * @param pTimer The timer handle. 159 * @param pvUser User argument specified upon timer creation. 160 */ 161 typedef DECLCALLBACK(void) FNTMTIMERUSB(PPDMUSBINS pUsbIns, PTMTIMER pTimer, void *pvUser); 162 /** Pointer to a timer callback for a USB device. */ 163 typedef FNTMTIMERUSB *PFNTMTIMERUSB; 152 164 153 165 /** -
trunk/include/VBox/vusb.h
r25984 r26112 962 962 struct VUSBURBDEV 963 963 { 964 /** Pointer to the proxy URB. */ 965 void *pvProxyUrb; 964 /** Pointer to private device specific data. */ 965 void *pvPrivate; 966 /** Used by the device when linking the URB in some list of its own. */ 967 PVUSBURB pNext; 966 968 } Dev; 967 969
Note:
See TracChangeset
for help on using the changeset viewer.