VirtualBox

Changeset 80589 in vbox for trunk/include/VBox/vscsi.h


Ignore:
Timestamp:
Sep 4, 2019 6:20:28 PM (5 years ago)
Author:
vboxsync
Message:

Devices/Storage: Add two new parameters to PDMIMEDIAEX::pfnIoReqSendScsiCmd to return the amount ofsense data written and the determined transfer direction from parsed CDB, bugref:9440

File:
1 edited

Legend:

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

    r76585 r80589  
    8787
    8888/**
     89 * Virtual SCSI transfer direction as seen from the initiator.
     90 */
     91typedef enum VSCSIXFERDIR
     92{
     93    /** Invalid data direction. */
     94    PVSCSIXFERDIR_INVALID     = 0,
     95    /** Direction is unknown. */
     96    VSCSIXFERDIR_UNKNOWN,
     97    /** Direction is from target to initiator (aka a read). */
     98    VSCSIXFERDIR_T2I,
     99    /** Direction is from initiator to device (aka a write). */
     100    VSCSIXFERDIR_I2T,
     101    /** No data transfer associated with this request. */
     102    VSCSIXFERDIR_NONE,
     103    /** 32bit hack. */
     104    VSCSIXFERDIR_32BIT_HACK  = 0x7fffffff
     105} VSCSIXFERDIR;
     106
     107/**
    89108 * LUN types we support
    90109 */
     
    277296                                               bool fRedoPossible,
    278297                                               int rcReq,
    279                                                size_t cbXfer);
     298                                               size_t cbXfer,
     299                                               VSCSIXFERDIR enmXferDir,
     300                                               size_t cbSense);
    280301/** Pointer to a virtual SCSI request completed callback. */
    281302typedef FNVSCSIREQCOMPLETED *PFNVSCSIREQCOMPLETED;
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