VirtualBox

Changeset 67590 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 23, 2017 7:24:52 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116348
Message:

VUSB: Bit of infrastructure to allow frame delta (interval) tracking.

File:
1 edited

Legend:

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

    r66989 r67590  
    832832     */
    833833    DECLR3CALLBACKMEMBER(uint32_t, pfnGetPeriodicFrameRate, (PVUSBIROOTHUBCONNECTOR pInterface));
     834
     835    /**
     836     * Updates the internally stored isochronous scheduling frame for a given
     837     * endpoint and returns the delta between the current and previous frame.
     838     *
     839     * @returns Delta between currently and previously scheduled frame.
     840     * @retval  0 if no previous frame was set.
     841     * @param   pInterface  Pointer to this struct.
     842     */
     843    DECLR3CALLBACKMEMBER(uint32_t, pfnUpdateIsocFrameDelta, (PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice,
     844                                                             int EndPt, VUSBDIRECTION enmDir, uint16_t uNewFrameID, uint8_t uBits));
    834845
    835846} VUSBIROOTHUBCONNECTOR;
     
    11751186     * IN: The packet size. I.e. the number of bytes to the next packet or end of buffer.
    11761187     * OUT: The actual size transferred. */
    1177     uint16_t        cb;
     1188    uint32_t        cb;
    11781189    /** The offset of the packet. (Relative to VUSBURB::abData[0].)
    11791190     * OUT: This can be changed by the USB device if it does some kind of buffer squeezing. */
    1180     uint16_t        off;
     1191    uint32_t        off;
    11811192    /** The status of the transfer.
    11821193     * IN: VUSBSTATUS_INVALID
     
    12601271    VUSBSTATUS      enmStatus;
    12611272
     1273    /** The relative starting frame for isochronous transfers.
     1274     *  Zero indicates "transfer ASAP".
     1275     * This is ignored when enmType isn't VUSBXFERTYPE_ISOC. */
     1276    uint16_t        uStartFrameDelta;
     1277    /** Flag indicating whether the start frame delta is relative
     1278     *  to the previous transfer (false) or now (true).
     1279     * This is ignored when enmType isn't VUSBXFERTYPE_ISOC. */
     1280    bool            fStartRelToNow;
    12621281    /** The number of isochronous packets describe in aIsocPkts.
    12631282     * This is ignored when enmType isn't VUSBXFERTYPE_ISOC. */
    1264     uint32_t        cIsocPkts;
     1283    uint8_t         cIsocPkts;
    12651284    /** The iso packets within abData.
    12661285     * This is ignored when enmType isn't VUSBXFERTYPE_ISOC. */
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