VirtualBox

Changeset 14610 in vbox for trunk


Ignore:
Timestamp:
Nov 25, 2008 11:44:12 PM (16 years ago)
Author:
vboxsync
Message:

Address some todos

File:
1 edited

Legend:

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

    r14464 r14610  
    25042504typedef enum PDMSCSIREQUESTTXDIR
    25052505{
    2506     PDMSCSIREQUESTTXDIR_UNKNOWN = 0,
    2507     PDMSCSIREQUESTTXDIR_FROM_DEVICE,
    2508     PDMSCSIREQUESTTXDIR_TO_DEVICE,
    2509     PDMSCSIREQUESTTXDIR_NONE
    2510     /** @todo r=bird: 32-bit type size blowup? */
     2506    PDMSCSIREQUESTTXDIR_UNKNOWN     = 0x00,
     2507    PDMSCSIREQUESTTXDIR_FROM_DEVICE = 0x01,
     2508    PDMSCSIREQUESTTXDIR_TO_DEVICE   = 0x02,
     2509    PDMSCSIREQUESTTXDIR_NONE        = 0x03,
     2510    PDMSCSIREQUESTTXDIR_32BIT_HACK  = 0x7fffffff
    25112511} PDMSCSIREQUESTTXDIR;
    25122512
     
    25172517{
    25182518    /** The logical unit. */
    2519     uint32_t    uLogicalUnit;
     2519    uint32_t               uLogicalUnit;
    25202520    /** Direction of the data flow. */
    2521     uint32_t    uDataDirection;         /**< @todo r=bird: why isn't this PDMSCSIREQUESTTXDIR? */
     2521    PDMSCSIREQUESTTXDIR    uDataDirection;
    25222522    /** Size of the SCSI CDB. */
    2523     uint32_t    cbCDB;
     2523    uint32_t               cbCDB;
    25242524    /** Pointer to the SCSI CDB. */
    2525     uint8_t    *paCDB;                  /**< @todo r=bird: array what? pbCDB perhaps? */
     2525    uint8_t               *pbCDB;
    25262526    /** Overall size of all scatter gather list elements
    25272527     *  for data transfer if any. */
    2528     uint32_t    cbScatterGather;
     2528    uint32_t               cbScatterGather;
    25292529    /** Number of elements in the scatter gather list. */
    2530     uint32_t    cScatterGatherEntries;
     2530    uint32_t               cScatterGatherEntries;
    25312531    /** Pointer to the head of the scatter gather list. */
    2532     PPDMDATASEG paScatterGatherHead;
     2532    PPDMDATASEG            paScatterGatherHead;
    25332533    /** Size of the sense buffer. */
    2534     uint32_t    cbSenseBuffer;
     2534    uint32_t               cbSenseBuffer;
    25352535    /** Pointer to the sense buffer. *
    25362536     * Current assumption that the sense buffer is not scattered. */
    2537     uint8_t    *pu8SenseBuffer;         /**< @todo r=bird: pbSenseBuffer is simpler */
     2537    uint8_t               *pbSenseBuffer;
    25382538    /** Opaque user data for use by the device. Left untouched by everything else! */
    2539     void       *pvUser;
     2539    void                  *pvUser;
    25402540} PDMSCSIREQUEST, *PPDMSCSIREQUEST;
    25412541/** Pointer to a const SCSI request structure. */
     
    25792579     * @param   pInterface    Pointer to this interface.
    25802580     * @param   pSCSIRequest  Pointer to the SCSI request to execute.
    2581      * @remark  pfnSetSimultaneousRequestsMax must be called before this function can be used.
    25822581     */
    25832582     DECLR3CALLBACKMEMBER(int, pfnSCSIRequestSend, (PPDMISCSICONNECTOR pInterface, PPDMSCSIREQUEST pSCSIRequest));
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