MdePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
1436aea4d5
commit
2f88bd3a12
@@ -24,7 +24,7 @@
|
||||
///
|
||||
/// Forward reference for pure ANSI compatability
|
||||
///
|
||||
typedef struct _EFI_SCSI_PASS_THRU_PROTOCOL EFI_SCSI_PASS_THRU_PROTOCOL;
|
||||
typedef struct _EFI_SCSI_PASS_THRU_PROTOCOL EFI_SCSI_PASS_THRU_PROTOCOL;
|
||||
|
||||
#define EFI_SCSI_PASS_THRU_ATTRIBUTES_PHYSICAL 0x0001
|
||||
#define EFI_SCSI_PASS_THRU_ATTRIBUTES_LOGICAL 0x0002
|
||||
@@ -49,15 +49,15 @@ typedef struct _EFI_SCSI_PASS_THRU_PROTOCOL EFI_SCSI_PASS_THRU_PROTOCOL;
|
||||
//
|
||||
// SCSI Target Status definition
|
||||
//
|
||||
#define EFI_SCSI_STATUS_TARGET_GOOD 0x00
|
||||
#define EFI_SCSI_STATUS_TARGET_CHECK_CONDITION 0x02 // check condition
|
||||
#define EFI_SCSI_STATUS_TARGET_CONDITION_MET 0x04 // condition met
|
||||
#define EFI_SCSI_STATUS_TARGET_BUSY 0x08 // busy
|
||||
#define EFI_SCSI_STATUS_TARGET_INTERMEDIATE 0x10 // intermediate
|
||||
#define EFI_SCSI_STATUS_TARGET_INTERMEDIATE_CONDITION_MET 0x14 // intermediate-condition met
|
||||
#define EFI_SCSI_STATUS_TARGET_RESERVATION_CONFLICT 0x18 // reservation conflict
|
||||
#define EFI_SCSI_STATUS_TARGET_COMMOND_TERMINATED 0x22 // command terminated
|
||||
#define EFI_SCSI_STATUS_TARGET_QUEUE_FULL 0x28 // queue full
|
||||
#define EFI_SCSI_STATUS_TARGET_GOOD 0x00
|
||||
#define EFI_SCSI_STATUS_TARGET_CHECK_CONDITION 0x02 // check condition
|
||||
#define EFI_SCSI_STATUS_TARGET_CONDITION_MET 0x04 // condition met
|
||||
#define EFI_SCSI_STATUS_TARGET_BUSY 0x08 // busy
|
||||
#define EFI_SCSI_STATUS_TARGET_INTERMEDIATE 0x10 // intermediate
|
||||
#define EFI_SCSI_STATUS_TARGET_INTERMEDIATE_CONDITION_MET 0x14 // intermediate-condition met
|
||||
#define EFI_SCSI_STATUS_TARGET_RESERVATION_CONFLICT 0x18 // reservation conflict
|
||||
#define EFI_SCSI_STATUS_TARGET_COMMOND_TERMINATED 0x22 // command terminated
|
||||
#define EFI_SCSI_STATUS_TARGET_QUEUE_FULL 0x28 // queue full
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
@@ -68,78 +68,78 @@ typedef struct {
|
||||
/// EFI_TIMEOUT if the time required to execute the SCSI Request
|
||||
/// Packet is greater than Timeout.
|
||||
///
|
||||
UINT64 Timeout;
|
||||
UINT64 Timeout;
|
||||
///
|
||||
/// A pointer to the data buffer to transfer between the SCSI
|
||||
/// controller and the SCSI device. Must be aligned to the boundary
|
||||
/// specified in the IoAlign field of the
|
||||
/// EFI_SCSI_PASS_THRU_MODE structure.
|
||||
///
|
||||
VOID *DataBuffer;
|
||||
VOID *DataBuffer;
|
||||
///
|
||||
/// A pointer to the sense data that was generated by the execution of
|
||||
/// the SCSI Request Packet.
|
||||
///
|
||||
VOID *SenseData;
|
||||
VOID *SenseData;
|
||||
///
|
||||
/// A pointer to buffer that contains the Command Data Block to
|
||||
/// send to the SCSI device.
|
||||
///
|
||||
VOID *Cdb;
|
||||
VOID *Cdb;
|
||||
///
|
||||
/// On Input, the size, in bytes, of InDataBuffer. On output, the
|
||||
/// number of bytes transferred between the SCSI controller and the SCSI device.
|
||||
///
|
||||
UINT32 TransferLength;
|
||||
UINT32 TransferLength;
|
||||
///
|
||||
/// The length, in bytes, of the buffer Cdb. The standard values are
|
||||
/// 6, 10, 12, and 16, but other values are possible if a variable length CDB is used.
|
||||
///
|
||||
UINT8 CdbLength;
|
||||
UINT8 CdbLength;
|
||||
///
|
||||
/// The direction of the data transfer. 0 for reads, 1 for writes. A
|
||||
/// value of 2 is Reserved for Bi-Directional SCSI commands.
|
||||
///
|
||||
UINT8 DataDirection;
|
||||
UINT8 DataDirection;
|
||||
///
|
||||
/// The status of the SCSI Host Controller that produces the SCSI
|
||||
/// bus where the SCSI device attached when the SCSI Request
|
||||
/// Packet was executed on the SCSI Controller.
|
||||
///
|
||||
UINT8 HostAdapterStatus;
|
||||
UINT8 HostAdapterStatus;
|
||||
///
|
||||
/// The status returned by the SCSI device when the SCSI Request
|
||||
/// Packet was executed.
|
||||
///
|
||||
UINT8 TargetStatus;
|
||||
UINT8 TargetStatus;
|
||||
///
|
||||
/// On input, the length in bytes of the SenseData buffer. On
|
||||
/// output, the number of bytes written to the SenseData buffer.
|
||||
///
|
||||
UINT8 SenseDataLength;
|
||||
UINT8 SenseDataLength;
|
||||
} EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET;
|
||||
|
||||
typedef struct {
|
||||
///
|
||||
/// A Null-terminated Unicode string that represents the printable name of the SCSI controller.
|
||||
///
|
||||
CHAR16 *ControllerName;
|
||||
CHAR16 *ControllerName;
|
||||
///
|
||||
/// A Null-terminated Unicode string that represents the printable name of the SCSI channel.
|
||||
///
|
||||
CHAR16 *ChannelName;
|
||||
CHAR16 *ChannelName;
|
||||
///
|
||||
/// The Target ID of the host adapter on the SCSI channel.
|
||||
///
|
||||
UINT32 AdapterId;
|
||||
UINT32 AdapterId;
|
||||
///
|
||||
/// Additional information on the attributes of the SCSI channel.
|
||||
///
|
||||
UINT32 Attributes;
|
||||
UINT32 Attributes;
|
||||
///
|
||||
/// Supplies the alignment requirement for any buffer used in a data transfer.
|
||||
///
|
||||
UINT32 IoAlign;
|
||||
UINT32 IoAlign;
|
||||
} EFI_SCSI_PASS_THRU_MODE;
|
||||
|
||||
/**
|
||||
@@ -363,15 +363,15 @@ struct _EFI_SCSI_PASS_THRU_PROTOCOL {
|
||||
///
|
||||
/// A pointer to the EFI_SCSI_PASS_THRU_MODE data for this SCSI channel.
|
||||
///
|
||||
EFI_SCSI_PASS_THRU_MODE *Mode;
|
||||
EFI_SCSI_PASS_THRU_PASSTHRU PassThru;
|
||||
EFI_SCSI_PASS_THRU_GET_NEXT_DEVICE GetNextDevice;
|
||||
EFI_SCSI_PASS_THRU_BUILD_DEVICE_PATH BuildDevicePath;
|
||||
EFI_SCSI_PASS_THRU_GET_TARGET_LUN GetTargetLun;
|
||||
EFI_SCSI_PASS_THRU_RESET_CHANNEL ResetChannel;
|
||||
EFI_SCSI_PASS_THRU_RESET_TARGET ResetTarget;
|
||||
EFI_SCSI_PASS_THRU_MODE *Mode;
|
||||
EFI_SCSI_PASS_THRU_PASSTHRU PassThru;
|
||||
EFI_SCSI_PASS_THRU_GET_NEXT_DEVICE GetNextDevice;
|
||||
EFI_SCSI_PASS_THRU_BUILD_DEVICE_PATH BuildDevicePath;
|
||||
EFI_SCSI_PASS_THRU_GET_TARGET_LUN GetTargetLun;
|
||||
EFI_SCSI_PASS_THRU_RESET_CHANNEL ResetChannel;
|
||||
EFI_SCSI_PASS_THRU_RESET_TARGET ResetTarget;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiScsiPassThruProtocolGuid;
|
||||
extern EFI_GUID gEfiScsiPassThruProtocolGuid;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user