VirtualBox

Changeset 54556 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 27, 2015 3:42:57 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98690
Message:

VUSB: Added RH service to abort an endpoint (as opposed to canceling a single URB).

File:
1 edited

Legend:

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

    r53977 r54556  
    508508} VUSBSPEED;
    509509
     510/**
     511 * VUSB transfer direction.
     512 */
     513typedef enum VUSBDIRECTION
     514{
     515    /** Setup */
     516    VUSBDIRECTION_SETUP = 0,
     517#define VUSB_DIRECTION_SETUP    VUSBDIRECTION_SETUP
     518    /** In - Device to host. */
     519    VUSBDIRECTION_IN = 1,
     520#define VUSB_DIRECTION_IN       VUSBDIRECTION_IN
     521    /** Out - Host to device. */
     522    VUSBDIRECTION_OUT = 2,
     523#define VUSB_DIRECTION_OUT  VUSBDIRECTION_OUT
     524    /** Invalid direction */
     525    VUSBDIRECTION_INVALID = 0x7f
     526} VUSBDIRECTION;
     527
     528
    510529/** Pointer to a VBox USB device interface. */
    511530typedef struct VUSBIDEVICE      *PVUSBIDEVICE;
     
    613632/** VUSBIROOTHUBPORT interface ID. */
    614633#define VUSBIROOTHUBPORT_IID                    "e38e2978-7aa2-4860-94b6-9ef4a066d8a0"
    615 
    616634
    617635/** Pointer to a VUSB RootHub connector interface. */
     
    687705
    688706    /**
     707     * Cancels and completes - with CRC failure - all URBs queued on an endpoint.
     708     * This is done in response to a guest endpoint/pipe abort.
     709     *
     710     * @returns VBox status code.
     711     * @param   pInterface  Pointer to this struct.
     712     * @param   pDevice     Pointer to a USB device.
     713     * @param   EndPt       Endpoint number.
     714     * @param   enmDir      Endpoint direction.
     715     */
     716    DECLR3CALLBACKMEMBER(int, pfnAbortEp,(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice, int EndPt, VUSBDIRECTION enmDir));
     717
     718    /**
    689719     * Attach the device to the root hub.
    690720     * The device must not be attached to any hub for this call to succeed.
     
    708738} VUSBIROOTHUBCONNECTOR;
    709739/** VUSBIROOTHUBCONNECTOR interface ID. */
    710 #define VUSBIROOTHUBCONNECTOR_IID               "d9a90c59-e3ff-4dff-9754-844557c3f7a0"
     740#define VUSBIROOTHUBCONNECTOR_IID               "d9a90c59-e3ff-4dff-9754-844557c3f7a1"
    711741
    712742
     
    10511081} VUSBXFERTYPE;
    10521082
    1053 
    1054 /**
    1055  * VUSB transfer direction.
    1056  */
    1057 typedef enum VUSBDIRECTION
    1058 {
    1059     /** Setup */
    1060     VUSBDIRECTION_SETUP = 0,
    1061 #define VUSB_DIRECTION_SETUP    VUSBDIRECTION_SETUP
    1062     /** In - Device to host. */
    1063     VUSBDIRECTION_IN = 1,
    1064 #define VUSB_DIRECTION_IN       VUSBDIRECTION_IN
    1065     /** Out - Host to device. */
    1066     VUSBDIRECTION_OUT = 2,
    1067 #define VUSB_DIRECTION_OUT  VUSBDIRECTION_OUT
    1068     /** Invalid direction */
    1069     VUSBDIRECTION_INVALID = 0x7f
    1070 } VUSBDIRECTION;
    10711083
    10721084/**
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