- Timestamp:
- Nov 25, 2008 11:44:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmifs.h
r14464 r14610 2504 2504 typedef enum PDMSCSIREQUESTTXDIR 2505 2505 { 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 2511 2511 } PDMSCSIREQUESTTXDIR; 2512 2512 … … 2517 2517 { 2518 2518 /** The logical unit. */ 2519 uint32_t uLogicalUnit;2519 uint32_t uLogicalUnit; 2520 2520 /** Direction of the data flow. */ 2521 uint32_t uDataDirection; /**< @todo r=bird: why isn't this PDMSCSIREQUESTTXDIR? */2521 PDMSCSIREQUESTTXDIR uDataDirection; 2522 2522 /** Size of the SCSI CDB. */ 2523 uint32_t cbCDB;2523 uint32_t cbCDB; 2524 2524 /** Pointer to the SCSI CDB. */ 2525 uint8_t *paCDB; /**< @todo r=bird: array what? pbCDB perhaps? */2525 uint8_t *pbCDB; 2526 2526 /** Overall size of all scatter gather list elements 2527 2527 * for data transfer if any. */ 2528 uint32_t cbScatterGather;2528 uint32_t cbScatterGather; 2529 2529 /** Number of elements in the scatter gather list. */ 2530 uint32_t cScatterGatherEntries;2530 uint32_t cScatterGatherEntries; 2531 2531 /** Pointer to the head of the scatter gather list. */ 2532 PPDMDATASEG paScatterGatherHead;2532 PPDMDATASEG paScatterGatherHead; 2533 2533 /** Size of the sense buffer. */ 2534 uint32_t cbSenseBuffer;2534 uint32_t cbSenseBuffer; 2535 2535 /** Pointer to the sense buffer. * 2536 2536 * Current assumption that the sense buffer is not scattered. */ 2537 uint8_t *pu8SenseBuffer; /**< @todo r=bird: pbSenseBuffer is simpler */2537 uint8_t *pbSenseBuffer; 2538 2538 /** Opaque user data for use by the device. Left untouched by everything else! */ 2539 void *pvUser;2539 void *pvUser; 2540 2540 } PDMSCSIREQUEST, *PPDMSCSIREQUEST; 2541 2541 /** Pointer to a const SCSI request structure. */ … … 2579 2579 * @param pInterface Pointer to this interface. 2580 2580 * @param pSCSIRequest Pointer to the SCSI request to execute. 2581 * @remark pfnSetSimultaneousRequestsMax must be called before this function can be used.2582 2581 */ 2583 2582 DECLR3CALLBACKMEMBER(int, pfnSCSIRequestSend, (PPDMISCSICONNECTOR pInterface, PPDMSCSIREQUEST pSCSIRequest));
Note:
See TracChangeset
for help on using the changeset viewer.