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
@@ -37,28 +37,28 @@ typedef enum {
|
||||
} EFI_SD_MMC_RESPONSE_TYPE;
|
||||
|
||||
typedef struct _EFI_SD_MMC_COMMAND_BLOCK {
|
||||
UINT16 CommandIndex;
|
||||
UINT32 CommandArgument;
|
||||
UINT32 CommandType; // One of the EFI_SD_MMC_COMMAND_TYPE values
|
||||
UINT32 ResponseType; // One of the EFI_SD_MMC_RESPONSE_TYPE values
|
||||
UINT16 CommandIndex;
|
||||
UINT32 CommandArgument;
|
||||
UINT32 CommandType; // One of the EFI_SD_MMC_COMMAND_TYPE values
|
||||
UINT32 ResponseType; // One of the EFI_SD_MMC_RESPONSE_TYPE values
|
||||
} EFI_SD_MMC_COMMAND_BLOCK;
|
||||
|
||||
typedef struct _EFI_SD_MMC_STATUS_BLOCK {
|
||||
UINT32 Resp0;
|
||||
UINT32 Resp1;
|
||||
UINT32 Resp2;
|
||||
UINT32 Resp3;
|
||||
UINT32 Resp0;
|
||||
UINT32 Resp1;
|
||||
UINT32 Resp2;
|
||||
UINT32 Resp3;
|
||||
} EFI_SD_MMC_STATUS_BLOCK;
|
||||
|
||||
typedef struct _EFI_SD_MMC_PASS_THRU_COMMAND_PACKET {
|
||||
UINT64 Timeout;
|
||||
EFI_SD_MMC_COMMAND_BLOCK *SdMmcCmdBlk;
|
||||
EFI_SD_MMC_STATUS_BLOCK *SdMmcStatusBlk;
|
||||
VOID *InDataBuffer;
|
||||
VOID *OutDataBuffer;
|
||||
UINT32 InTransferLength;
|
||||
UINT32 OutTransferLength;
|
||||
EFI_STATUS TransactionStatus;
|
||||
UINT64 Timeout;
|
||||
EFI_SD_MMC_COMMAND_BLOCK *SdMmcCmdBlk;
|
||||
EFI_SD_MMC_STATUS_BLOCK *SdMmcStatusBlk;
|
||||
VOID *InDataBuffer;
|
||||
VOID *OutDataBuffer;
|
||||
UINT32 InTransferLength;
|
||||
UINT32 OutTransferLength;
|
||||
EFI_STATUS TransactionStatus;
|
||||
} EFI_SD_MMC_PASS_THRU_COMMAND_PACKET;
|
||||
|
||||
/**
|
||||
@@ -100,12 +100,12 @@ typedef struct _EFI_SD_MMC_PASS_THRU_COMMAND_PACKET {
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_PASSTHRU) (
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_PASSTHRU)(
|
||||
IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This,
|
||||
IN UINT8 Slot,
|
||||
IN OUT EFI_SD_MMC_PASS_THRU_COMMAND_PACKET *Packet,
|
||||
IN EFI_EVENT Event OPTIONAL
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Used to retrieve next slot numbers supported by the SD controller. The function
|
||||
@@ -138,10 +138,10 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_GET_NEXT_SLOT) (
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_GET_NEXT_SLOT)(
|
||||
IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This,
|
||||
IN OUT UINT8 *Slot
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Used to allocate and build a device path node for an SD card on the SD controller.
|
||||
@@ -179,11 +179,11 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_BUILD_DEVICE_PATH) (
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_BUILD_DEVICE_PATH)(
|
||||
IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This,
|
||||
IN UINT8 Slot,
|
||||
OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
This function retrieves an SD card slot number based on the input device path.
|
||||
@@ -208,11 +208,11 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_GET_SLOT_NUMBER) (
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_GET_SLOT_NUMBER)(
|
||||
IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
||||
OUT UINT8 *Slot
|
||||
);
|
||||
);
|
||||
|
||||
/**
|
||||
Resets an SD card that is connected to the SD controller.
|
||||
@@ -239,20 +239,20 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_RESET_DEVICE) (
|
||||
(EFIAPI *EFI_SD_MMC_PASS_THRU_RESET_DEVICE)(
|
||||
IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This,
|
||||
IN UINT8 Slot
|
||||
);
|
||||
);
|
||||
|
||||
struct _EFI_SD_MMC_PASS_THRU_PROTOCOL {
|
||||
UINT32 IoAlign;
|
||||
EFI_SD_MMC_PASS_THRU_PASSTHRU PassThru;
|
||||
EFI_SD_MMC_PASS_THRU_GET_NEXT_SLOT GetNextSlot;
|
||||
EFI_SD_MMC_PASS_THRU_BUILD_DEVICE_PATH BuildDevicePath;
|
||||
EFI_SD_MMC_PASS_THRU_GET_SLOT_NUMBER GetSlotNumber;
|
||||
EFI_SD_MMC_PASS_THRU_RESET_DEVICE ResetDevice;
|
||||
UINT32 IoAlign;
|
||||
EFI_SD_MMC_PASS_THRU_PASSTHRU PassThru;
|
||||
EFI_SD_MMC_PASS_THRU_GET_NEXT_SLOT GetNextSlot;
|
||||
EFI_SD_MMC_PASS_THRU_BUILD_DEVICE_PATH BuildDevicePath;
|
||||
EFI_SD_MMC_PASS_THRU_GET_SLOT_NUMBER GetSlotNumber;
|
||||
EFI_SD_MMC_PASS_THRU_RESET_DEVICE ResetDevice;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiSdMmcPassThruProtocolGuid;
|
||||
extern EFI_GUID gEfiSdMmcPassThruProtocolGuid;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user