~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to include/VBox/vusb.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <VBox/cdefs.h>
30
30
#include <VBox/types.h>
31
31
 
 
32
struct PDMLED;
 
33
 
32
34
RT_C_DECLS_BEGIN
33
35
 
34
36
/** @defgroup grp_vusb  VBox USB API
353
355
/** Pointer to a VBox USB port bitmap. */
354
356
typedef VUSBPORTBITMAP *PVUSBPORTBITMAP;
355
357
 
 
358
#ifndef RDESKTOP
356
359
 
357
360
/**
358
361
 * The VUSB RootHub port interface provided by the HCI (down).
361
364
typedef struct VUSBIROOTHUBPORT
362
365
{
363
366
    /**
364
 
     * Get the number of avilable ports in the hub.
 
367
     * Get the number of available ports in the hub.
365
368
     *
366
369
     * @returns The number of ports available.
367
370
     * @param   pInterface      Pointer to this structure.
419
422
     * Handle transfer errors.
420
423
     *
421
424
     * VUSB calls this when a transfer attempt failed. This function will respond
422
 
     * indicating wheter to retry or complete the URB with failure.
 
425
     * indicating whether to retry or complete the URB with failure.
423
426
     *
424
427
     * @returns Retry indicator.
425
428
     * @param   pInterface      Pointer to this structure.
620
623
}
621
624
#endif /* IN_RING3 */
622
625
 
 
626
#endif /* ! RDESKTOP */
623
627
 
624
628
 
625
629
/**
661
665
    VUSB_DEVICE_STATE_32BIT_HACK = 0x7fffffff
662
666
} VUSBDEVICESTATE;
663
667
 
 
668
#ifndef RDESKTOP
664
669
 
665
670
/**
666
671
 * USB Device Interface (up).
790
795
}
791
796
#endif /* IN_RING3 */
792
797
 
 
798
#endif /* ! RDESKTOP */
793
799
 
794
800
/** @name URB
795
801
 * @{ */
894
900
{
895
901
    /** The size of the packet.
896
902
     * IN: The packet size. I.e. the number of bytes to the next packet or end of buffer.
897
 
     * OUT: The actual size transfered. */
 
903
     * OUT: The actual size transferred. */
898
904
    uint16_t        cb;
899
905
    /** The offset of the packet. (Relative to VUSBURB::abData[0].)
900
906
     * OUT: This can be changed by the USB device if it does some kind of buffer squeezing. */
921
927
    /** URB description, can be null. intended for logging. */
922
928
    char           *pszDesc;
923
929
 
 
930
#ifdef RDESKTOP
 
931
    /** The next URB in rdesktop-vrdp's linked list */
 
932
    PVUSBURB        pNext;
 
933
    /** The previous URB in rdesktop-vrdp's linked list */
 
934
    PVUSBURB        pPrev;
 
935
    /** The vrdp handle for the URB */
 
936
    uint32_t        handle;
 
937
    /** Pointer used to find the usb proxy device */
 
938
    struct VUSBDEV *pDev;
 
939
#endif
 
940
 
924
941
    /** The VUSB data. */
925
942
    struct VUSBURBVUSB
926
943
    {
983
1000
        PVUSBURB        pNext;
984
1001
    } Dev;
985
1002
 
 
1003
#ifndef RDESKTOP
986
1004
    /** The USB device instance this belongs to.
987
1005
     * This is NULL if the device address is invalid, in which case this belongs to the hub. */
988
1006
    PPDMUSBINS      pUsbIns;
 
1007
#endif
989
1008
    /** The device address.
990
1009
     * This is set at allocation time. */
991
1010
    uint8_t         DstAddress;