\r
typedef struct _EFI_EXT_SCSI_PASS_THRU_PROTOCOL EFI_EXT_SCSI_PASS_THRU_PROTOCOL;\r
\r
-#define TARGET_MAX_BYTES 0x10\r
+#define TARGET_MAX_BYTES 0x10\r
\r
-#define EFI_EXT_SCSI_PASS_THRU_ATTRIBUTES_PHYSICAL 0x0001\r
-#define EFI_EXT_SCSI_PASS_THRU_ATTRIBUTES_LOGICAL 0x0002\r
-#define EFI_EXT_SCSI_PASS_THRU_ATTRIBUTES_NONBLOCKIO 0x0004\r
+#define EFI_EXT_SCSI_PASS_THRU_ATTRIBUTES_PHYSICAL 0x0001\r
+#define EFI_EXT_SCSI_PASS_THRU_ATTRIBUTES_LOGICAL 0x0002\r
+#define EFI_EXT_SCSI_PASS_THRU_ATTRIBUTES_NONBLOCKIO 0x0004\r
\r
//\r
// DataDirection\r
//\r
-#define EFI_EXT_SCSI_DATA_DIRECTION_READ 0\r
-#define EFI_EXT_SCSI_DATA_DIRECTION_WRITE 1\r
-#define EFI_EXT_SCSI_DATA_DIRECTION_BIDIRECTIONAL 2\r
+#define EFI_EXT_SCSI_DATA_DIRECTION_READ 0\r
+#define EFI_EXT_SCSI_DATA_DIRECTION_WRITE 1\r
+#define EFI_EXT_SCSI_DATA_DIRECTION_BIDIRECTIONAL 2\r
//\r
// HostAdapterStatus\r
//\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_OK 0x00\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_TIMEOUT_COMMAND 0x09\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_TIMEOUT 0x0b\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_MESSAGE_REJECT 0x0d\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_BUS_RESET 0x0e\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_PARITY_ERROR 0x0f\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_REQUEST_SENSE_FAILED 0x10\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_SELECTION_TIMEOUT 0x11\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_DATA_OVERRUN_UNDERRUN 0x12\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_BUS_FREE 0x13\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_PHASE_ERROR 0x14\r
-#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_OTHER 0x7f\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_OK 0x00\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_TIMEOUT_COMMAND 0x09\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_TIMEOUT 0x0b\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_MESSAGE_REJECT 0x0d\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_BUS_RESET 0x0e\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_PARITY_ERROR 0x0f\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_REQUEST_SENSE_FAILED 0x10\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_SELECTION_TIMEOUT 0x11\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_DATA_OVERRUN_UNDERRUN 0x12\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_BUS_FREE 0x13\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_PHASE_ERROR 0x14\r
+#define EFI_EXT_SCSI_STATUS_HOST_ADAPTER_OTHER 0x7f\r
//\r
// TargetStatus\r
//\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_EXT_SCSI_PASS_THRU_MODE;\r
\r
typedef struct {\r
/// EFI_TIMEOUT if the time required to execute the SCSI\r
/// Request 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 for read and bidirectional commands.\r
///\r
- VOID *InDataBuffer;\r
+ VOID *InDataBuffer;\r
///\r
/// A pointer to the data buffer to transfer between the SCSI\r
/// controller and the SCSI device for write or bidirectional commands.\r
///\r
- VOID *OutDataBuffer;\r
+ VOID *OutDataBuffer;\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 specified by Target and Lun.\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 InTransferLength;\r
+ UINT32 InTransferLength;\r
///\r
/// On Input, the size, in bytes of OutDataBuffer. On Output, the\r
/// Number of bytes transferred between SCSI Controller and the SCSI device.\r
///\r
- UINT32 OutTransferLength;\r
+ UINT32 OutTransferLength;\r
///\r
/// The length, in bytes, of the buffer Cdb. The standard values are 6,\r
/// 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 host adapter specified by This when the SCSI\r
/// Request Packet was executed on the target device.\r
///\r
- UINT8 HostAdapterStatus;\r
+ UINT8 HostAdapterStatus;\r
///\r
/// The status returned by the device specified by Target and Lun\r
/// when the SCSI Request 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_EXT_SCSI_PASS_THRU_SCSI_REQUEST_PACKET;\r
\r
/**\r
///\r
/// A pointer to the EFI_EXT_SCSI_PASS_THRU_MODE data for this SCSI channel.\r
///\r
- EFI_EXT_SCSI_PASS_THRU_MODE *Mode;\r
- EFI_EXT_SCSI_PASS_THRU_PASSTHRU PassThru;\r
- EFI_EXT_SCSI_PASS_THRU_GET_NEXT_TARGET_LUN GetNextTargetLun;\r
- EFI_EXT_SCSI_PASS_THRU_BUILD_DEVICE_PATH BuildDevicePath;\r
- EFI_EXT_SCSI_PASS_THRU_GET_TARGET_LUN GetTargetLun;\r
- EFI_EXT_SCSI_PASS_THRU_RESET_CHANNEL ResetChannel;\r
- EFI_EXT_SCSI_PASS_THRU_RESET_TARGET_LUN ResetTargetLun;\r
- EFI_EXT_SCSI_PASS_THRU_GET_NEXT_TARGET GetNextTarget;\r
+ EFI_EXT_SCSI_PASS_THRU_MODE *Mode;\r
+ EFI_EXT_SCSI_PASS_THRU_PASSTHRU PassThru;\r
+ EFI_EXT_SCSI_PASS_THRU_GET_NEXT_TARGET_LUN GetNextTargetLun;\r
+ EFI_EXT_SCSI_PASS_THRU_BUILD_DEVICE_PATH BuildDevicePath;\r
+ EFI_EXT_SCSI_PASS_THRU_GET_TARGET_LUN GetTargetLun;\r
+ EFI_EXT_SCSI_PASS_THRU_RESET_CHANNEL ResetChannel;\r
+ EFI_EXT_SCSI_PASS_THRU_RESET_TARGET_LUN ResetTargetLun;\r
+ EFI_EXT_SCSI_PASS_THRU_GET_NEXT_TARGET GetNextTarget;\r
};\r
\r
-extern EFI_GUID gEfiExtScsiPassThruProtocolGuid;\r
+extern EFI_GUID gEfiExtScsiPassThruProtocolGuid;\r
\r
#endif\r