VirtualBox

Changeset 59687 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 15, 2016 6:52:31 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105544
Message:

VUSB: Some structural cleanup (#1 Don't replicate the URB tagging for log enabled builds in every device emulation but move it to the roothub implementation )

File:
1 edited

Legend:

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

    r58124 r59687  
    524524} VUSBDIRECTION;
    525525
     526/**
     527 * VUSB Transfer types.
     528 */
     529typedef enum VUSBXFERTYPE
     530{
     531    /** Control message. Used to represent a single control transfer. */
     532    VUSBXFERTYPE_CTRL = 0,
     533    /* Isochronous transfer. */
     534    VUSBXFERTYPE_ISOC,
     535    /** Bulk transfer. */
     536    VUSBXFERTYPE_BULK,
     537    /** Interrupt transfer. */
     538    VUSBXFERTYPE_INTR,
     539    /** Complete control message. Used to represent an entire control message. */
     540    VUSBXFERTYPE_MSG,
     541    /** Invalid transfer type. */
     542    VUSBXFERTYPE_INVALID = 0x7f
     543} VUSBXFERTYPE;
    526544
    527545/** Pointer to a VBox USB device interface. */
     
    651669     * @param   pInterface  Pointer to this struct.
    652670     * @param   DstAddress  The destination address of the URB.
     671     * @param   enmType     Type of the URB.
     672     * @param   enmDir      Data transfer direction.
    653673     * @param   cbData      The amount of data space required.
    654674     * @param   cTds        The amount of TD space.
    655      */
    656     DECLR3CALLBACKMEMBER(PVUSBURB, pfnNewUrb,(PVUSBIROOTHUBCONNECTOR pInterface, uint8_t DstAddress, uint32_t cbData, uint32_t cTds));
     675     * @param   pszTag      Custom URB tag assigned by the caller, only for
     676     *                      logged builds and optional.
     677     */
     678    DECLR3CALLBACKMEMBER(PVUSBURB, pfnNewUrb,(PVUSBIROOTHUBCONNECTOR pInterface, uint8_t DstAddress, VUSBXFERTYPE enmType,
     679                                              VUSBDIRECTION enmDir, uint32_t cbData, uint32_t cTds, const char *pszTag));
    657680
    658681    /**
     
    740763} VUSBIROOTHUBCONNECTOR;
    741764/** VUSBIROOTHUBCONNECTOR interface ID. */
    742 #define VUSBIROOTHUBCONNECTOR_IID               "d9a90c59-e3ff-4dff-9754-844557c3f7a1"
     765#define VUSBIROOTHUBCONNECTOR_IID               "dba1a54e-9708-4702-8d7f-b9ac94dc17e6"
    743766
    744767
    745768#ifdef IN_RING3
    746769/** @copydoc VUSBIROOTHUBCONNECTOR::pfnNewUrb */
    747 DECLINLINE(PVUSBURB) VUSBIRhNewUrb(PVUSBIROOTHUBCONNECTOR pInterface, uint32_t DstAddress, uint32_t cbData, uint32_t cTds)
    748 {
    749     return pInterface->pfnNewUrb(pInterface, DstAddress, cbData, cTds);
     770DECLINLINE(PVUSBURB) VUSBIRhNewUrb(PVUSBIROOTHUBCONNECTOR pInterface, uint32_t DstAddress, VUSBXFERTYPE enmType,
     771                                   VUSBDIRECTION enmDir, uint32_t cbData, uint32_t cTds, const char *pszTag)
     772{
     773    return pInterface->pfnNewUrb(pInterface, DstAddress, enmType, enmDir, cbData, cTds, pszTag);
    750774}
    751775
     
    10131037    VUSBSTATUS_INVALID = 0x7f
    10141038} VUSBSTATUS;
    1015 
    1016 
    1017 /**
    1018  * VUSB Transfer types.
    1019  */
    1020 typedef enum VUSBXFERTYPE
    1021 {
    1022     /** Control message. Used to represent a single control transfer. */
    1023     VUSBXFERTYPE_CTRL = 0,
    1024     /* Isochronous transfer. */
    1025     VUSBXFERTYPE_ISOC,
    1026     /** Bulk transfer. */
    1027     VUSBXFERTYPE_BULK,
    1028     /** Interrupt transfer. */
    1029     VUSBXFERTYPE_INTR,
    1030     /** Complete control message. Used to represent an entire control message. */
    1031     VUSBXFERTYPE_MSG,
    1032     /** Invalid transfer type. */
    1033     VUSBXFERTYPE_INVALID = 0x7f
    1034 } VUSBXFERTYPE;
    10351039
    10361040
Note: See TracChangeset for help on using the changeset viewer.

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