///\r
/// Forward reference for pure ANSI compatability\r
///\r
-typedef struct _EFI_SCSI_PASS_THRU_PROTOCOL EFI_SCSI_PASS_THRU_PROTOCOL;\r
+typedef struct _EFI_SCSI_PASS_THRU_PROTOCOL EFI_SCSI_PASS_THRU_PROTOCOL;\r
\r
#define EFI_SCSI_PASS_THRU_ATTRIBUTES_PHYSICAL 0x0001\r
#define EFI_SCSI_PASS_THRU_ATTRIBUTES_LOGICAL 0x0002\r
//\r
// SCSI Target Status definition\r
//\r
-#define EFI_SCSI_STATUS_TARGET_GOOD 0x00\r
-#define EFI_SCSI_STATUS_TARGET_CHECK_CONDITION 0x02 // check condition\r
-#define EFI_SCSI_STATUS_TARGET_CONDITION_MET 0x04 // condition met\r
-#define EFI_SCSI_STATUS_TARGET_BUSY 0x08 // busy\r
-#define EFI_SCSI_STATUS_TARGET_INTERMEDIATE 0x10 // intermediate\r
-#define EFI_SCSI_STATUS_TARGET_INTERMEDIATE_CONDITION_MET 0x14 // intermediate-condition met\r
-#define EFI_SCSI_STATUS_TARGET_RESERVATION_CONFLICT 0x18 // reservation conflict\r
-#define EFI_SCSI_STATUS_TARGET_COMMOND_TERMINATED 0x22 // command terminated\r
-#define EFI_SCSI_STATUS_TARGET_QUEUE_FULL 0x28 // queue full\r
+#define EFI_SCSI_STATUS_TARGET_GOOD 0x00\r
+#define EFI_SCSI_STATUS_TARGET_CHECK_CONDITION 0x02 // check condition\r
+#define EFI_SCSI_STATUS_TARGET_CONDITION_MET 0x04 // condition met\r
+#define EFI_SCSI_STATUS_TARGET_BUSY 0x08 // busy\r
+#define EFI_SCSI_STATUS_TARGET_INTERMEDIATE 0x10 // intermediate\r
+#define EFI_SCSI_STATUS_TARGET_INTERMEDIATE_CONDITION_MET 0x14 // intermediate-condition met\r
+#define EFI_SCSI_STATUS_TARGET_RESERVATION_CONFLICT 0x18 // reservation conflict\r
+#define EFI_SCSI_STATUS_TARGET_COMMOND_TERMINATED 0x22 // command terminated\r
+#define EFI_SCSI_STATUS_TARGET_QUEUE_FULL 0x28 // queue full\r
\r
typedef struct {\r
///\r
/// EFI_TIMEOUT if the time required to execute the SCSI Request\r
/// Packet is greater than Timeout.\r
///\r
- UINT64 Timeout;\r
+ UINT64 Timeout;\r
///\r
/// A pointer to the data buffer to transfer between the SCSI\r
/// controller and the SCSI device. Must be aligned to the boundary\r
/// specified in the IoAlign field of the\r
/// EFI_SCSI_PASS_THRU_MODE structure.\r
///\r
- VOID *DataBuffer;\r
+ VOID *DataBuffer;\r
///\r
/// A pointer to the sense data that was generated by the execution of\r
/// the SCSI Request Packet.\r
///\r
- VOID *SenseData;\r
+ VOID *SenseData;\r
///\r
/// A pointer to buffer that contains the Command Data Block to\r
/// send to the SCSI device.\r
///\r
- VOID *Cdb;\r
+ VOID *Cdb;\r
///\r
/// On Input, the size, in bytes, of InDataBuffer. On output, the\r
/// number of bytes transferred between the SCSI controller and the SCSI device.\r
///\r
- UINT32 TransferLength;\r
+ UINT32 TransferLength;\r
///\r
/// The length, in bytes, of the buffer Cdb. The standard values are\r
/// 6, 10, 12, and 16, but other values are possible if a variable length CDB is used.\r
///\r
- UINT8 CdbLength;\r
+ UINT8 CdbLength;\r
///\r
/// The direction of the data transfer. 0 for reads, 1 for writes. A\r
/// value of 2 is Reserved for Bi-Directional SCSI commands.\r
///\r
- UINT8 DataDirection;\r
+ UINT8 DataDirection;\r
///\r
/// The status of the SCSI Host Controller that produces the SCSI\r
/// bus where the SCSI device attached when the SCSI Request\r
/// Packet was executed on the SCSI Controller.\r
///\r
- UINT8 HostAdapterStatus;\r
+ UINT8 HostAdapterStatus;\r
///\r
/// The status returned by the SCSI device when the SCSI Request\r
/// Packet was executed.\r
///\r
- UINT8 TargetStatus;\r
+ UINT8 TargetStatus;\r
///\r
/// On input, the length in bytes of the SenseData buffer. On\r
/// output, the number of bytes written to the SenseData buffer.\r
///\r
- UINT8 SenseDataLength;\r
+ UINT8 SenseDataLength;\r
} EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET;\r
\r
typedef struct {\r
///\r
/// A Null-terminated Unicode string that represents the printable name of the SCSI controller.\r
///\r
- CHAR16 *ControllerName;\r
+ CHAR16 *ControllerName;\r
///\r
/// A Null-terminated Unicode string that represents the printable name of the SCSI channel.\r
///\r
- CHAR16 *ChannelName;\r
+ CHAR16 *ChannelName;\r
///\r
/// The Target ID of the host adapter on the SCSI channel.\r
///\r
- UINT32 AdapterId;\r
+ UINT32 AdapterId;\r
///\r
/// Additional information on the attributes of the SCSI channel.\r
///\r
- UINT32 Attributes;\r
+ UINT32 Attributes;\r
///\r
/// Supplies the alignment requirement for any buffer used in a data transfer.\r
///\r
- UINT32 IoAlign;\r
+ UINT32 IoAlign;\r
} EFI_SCSI_PASS_THRU_MODE;\r
\r
/**\r
///\r
/// A pointer to the EFI_SCSI_PASS_THRU_MODE data for this SCSI channel.\r
///\r
- EFI_SCSI_PASS_THRU_MODE *Mode;\r
- EFI_SCSI_PASS_THRU_PASSTHRU PassThru;\r
- EFI_SCSI_PASS_THRU_GET_NEXT_DEVICE GetNextDevice;\r
- EFI_SCSI_PASS_THRU_BUILD_DEVICE_PATH BuildDevicePath;\r
- EFI_SCSI_PASS_THRU_GET_TARGET_LUN GetTargetLun;\r
- EFI_SCSI_PASS_THRU_RESET_CHANNEL ResetChannel;\r
- EFI_SCSI_PASS_THRU_RESET_TARGET ResetTarget;\r
+ EFI_SCSI_PASS_THRU_MODE *Mode;\r
+ EFI_SCSI_PASS_THRU_PASSTHRU PassThru;\r
+ EFI_SCSI_PASS_THRU_GET_NEXT_DEVICE GetNextDevice;\r
+ EFI_SCSI_PASS_THRU_BUILD_DEVICE_PATH BuildDevicePath;\r
+ EFI_SCSI_PASS_THRU_GET_TARGET_LUN GetTargetLun;\r
+ EFI_SCSI_PASS_THRU_RESET_CHANNEL ResetChannel;\r
+ EFI_SCSI_PASS_THRU_RESET_TARGET ResetTarget;\r
};\r
\r
-extern EFI_GUID gEfiScsiPassThruProtocolGuid;\r
+extern EFI_GUID gEfiScsiPassThruProtocolGuid;\r
\r
#endif\r