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