DynamicTablesPkg: Apply uncrustify changes

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the DynamicTablesPkg 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: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
Michael Kubacki
2021-12-05 14:53:55 -08:00
committed by mergify[bot]
parent 7c34237831
commit 731c67e1d7
85 changed files with 5347 additions and 4795 deletions

View File

@@ -31,17 +31,17 @@ typedef enum EAmlStreamDirection {
*/
typedef struct AmlStream {
/// Pointer to a buffer.
UINT8 * Buffer;
UINT8 *Buffer;
/// Size of Buffer.
UINT32 MaxBufferSize;
UINT32 MaxBufferSize;
/// Index in the Buffer.
/// The Index field allows to keep track of how many bytes have been
/// read/written in the Buffer, and to retrieve the current stream position.
/// 0 <= Index <= MaxBufferSize.
/// If Index == MaxBufferSize, no more action is allowed on the stream.
UINT32 Index;
UINT32 Index;
/// The direction the stream is progressing.
/// If the stream goes backward (toward lower addresses), the bytes written
@@ -56,7 +56,7 @@ typedef struct AmlStream {
/// +---------------+-----+-----+-----+-----+-----+-----+---- +------+
/// ^
/// Current position.
EAML_STREAM_DIRECTION Direction;
EAML_STREAM_DIRECTION Direction;
} AML_STREAM;
/** Check whether a StreamPtr is a valid Stream.
@@ -88,7 +88,7 @@ typedef struct AmlStream {
@retval TRUE Stream goes forward.
@retval FALSE Otherwise.
*/
#define IS_STREAM_FORWARD(Stream) ( \
#define IS_STREAM_FORWARD(Stream) ( \
((AML_STREAM*)Stream)->Direction == EAmlStreamDirectionForward)
/** Check Stream goes backward.
@@ -98,7 +98,7 @@ typedef struct AmlStream {
@retval TRUE Stream goes backward.
@retval FALSE Otherwise.
*/
#define IS_STREAM_BACKWARD(Stream) ( \
#define IS_STREAM_BACKWARD(Stream) ( \
((AML_STREAM*)Stream)->Direction == EAmlStreamDirectionBackward)
/** Initialize a stream.
@@ -116,10 +116,10 @@ typedef struct AmlStream {
EFI_STATUS
EFIAPI
AmlStreamInit (
IN OUT AML_STREAM * Stream,
IN UINT8 * Buffer,
IN UINT32 MaxBufferSize,
IN EAML_STREAM_DIRECTION Direction
IN OUT AML_STREAM *Stream,
IN UINT8 *Buffer,
IN UINT32 MaxBufferSize,
IN EAML_STREAM_DIRECTION Direction
);
/** Clone a stream.
@@ -136,8 +136,8 @@ AmlStreamInit (
EFI_STATUS
EFIAPI
AmlStreamClone (
IN CONST AML_STREAM * Stream,
OUT AML_STREAM * ClonedStream
IN CONST AML_STREAM *Stream,
OUT AML_STREAM *ClonedStream
);
/** Initialize a sub-stream from a stream.
@@ -167,8 +167,8 @@ AmlStreamClone (
EFI_STATUS
EFIAPI
AmlStreamInitSubStream (
IN CONST AML_STREAM * Stream,
OUT AML_STREAM * SubStream
IN CONST AML_STREAM *Stream,
OUT AML_STREAM *SubStream
);
/** Get the buffer of a stream.
@@ -181,7 +181,7 @@ AmlStreamInitSubStream (
UINT8 *
EFIAPI
AmlStreamGetBuffer (
IN CONST AML_STREAM * Stream
IN CONST AML_STREAM *Stream
);
/** Get the size of Stream's Buffer.
@@ -194,7 +194,7 @@ AmlStreamGetBuffer (
UINT32
EFIAPI
AmlStreamGetMaxBufferSize (
IN CONST AML_STREAM * Stream
IN CONST AML_STREAM *Stream
);
/** Reduce the maximal size of Stream's Buffer (MaxBufferSize field).
@@ -209,8 +209,8 @@ AmlStreamGetMaxBufferSize (
EFI_STATUS
EFIAPI
AmlStreamReduceMaxBufferSize (
IN AML_STREAM * Stream,
IN UINT32 Diff
IN AML_STREAM *Stream,
IN UINT32 Diff
);
/** Get Stream's Index.
@@ -229,7 +229,7 @@ AmlStreamReduceMaxBufferSize (
UINT32
EFIAPI
AmlStreamGetIndex (
IN CONST AML_STREAM * Stream
IN CONST AML_STREAM *Stream
);
/** Get Stream's Direction.
@@ -242,7 +242,7 @@ AmlStreamGetIndex (
EAML_STREAM_DIRECTION
EFIAPI
AmlStreamGetDirection (
IN CONST AML_STREAM * Stream
IN CONST AML_STREAM *Stream
);
/** Return a pointer to the current position in the stream.
@@ -255,7 +255,7 @@ AmlStreamGetDirection (
UINT8 *
EFIAPI
AmlStreamGetCurrPos (
IN CONST AML_STREAM * Stream
IN CONST AML_STREAM *Stream
);
/** Get the space available in the stream.
@@ -268,7 +268,7 @@ AmlStreamGetCurrPos (
UINT32
EFIAPI
AmlStreamGetFreeSpace (
IN CONST AML_STREAM * Stream
IN CONST AML_STREAM *Stream
);
/** Move Stream by Offset bytes.
@@ -287,8 +287,8 @@ AmlStreamGetFreeSpace (
EFI_STATUS
EFIAPI
AmlStreamProgress (
IN AML_STREAM * Stream,
IN UINT32 Offset
IN AML_STREAM *Stream,
IN UINT32 Offset
);
/** Rewind Stream of Offset bytes.
@@ -306,8 +306,8 @@ AmlStreamProgress (
EFI_STATUS
EFIAPI
AmlStreamRewind (
IN AML_STREAM * Stream,
IN UINT32 Offset
IN AML_STREAM *Stream,
IN UINT32 Offset
);
/** Reset the Stream (move the current position to the initial position).
@@ -320,7 +320,7 @@ AmlStreamRewind (
EFI_STATUS
EFIAPI
AmlStreamReset (
IN AML_STREAM * Stream
IN AML_STREAM *Stream
);
/** Peek one byte at Stream's current position.
@@ -339,8 +339,8 @@ AmlStreamReset (
EFI_STATUS
EFIAPI
AmlStreamPeekByte (
IN AML_STREAM * Stream,
OUT UINT8 * OutByte
IN AML_STREAM *Stream,
OUT UINT8 *OutByte
);
/** Read one byte at Stream's current position.
@@ -359,8 +359,8 @@ AmlStreamPeekByte (
EFI_STATUS
EFIAPI
AmlStreamReadByte (
IN AML_STREAM * Stream,
OUT UINT8 * OutByte
IN AML_STREAM *Stream,
OUT UINT8 *OutByte
);
/** Write Size bytes in the stream.
@@ -388,9 +388,9 @@ AmlStreamReadByte (
EFI_STATUS
EFIAPI
AmlStreamWrite (
IN AML_STREAM * Stream,
IN CONST UINT8 * Buffer,
IN UINT32 Size
IN AML_STREAM *Stream,
IN CONST UINT8 *Buffer,
IN UINT32 Size
);
/** Compare Size bytes between Stream1 and Stream2 from their
@@ -416,9 +416,9 @@ AmlStreamWrite (
BOOLEAN
EFIAPI
AmlStreamCmp (
IN CONST AML_STREAM * Stream1,
IN CONST AML_STREAM * Stream2,
IN UINT32 Size
IN CONST AML_STREAM *Stream1,
IN CONST AML_STREAM *Stream2,
IN UINT32 Size
);
/** Copy Size bytes of the stream's data to DstBuffer.
@@ -442,10 +442,10 @@ AmlStreamCmp (
EFI_STATUS
EFIAPI
AmlStreamCpyS (
OUT CHAR8 * DstBuffer,
IN UINT32 MaxDstBufferSize,
IN AML_STREAM * Stream,
IN UINT32 Size
OUT CHAR8 *DstBuffer,
IN UINT32 MaxDstBufferSize,
IN AML_STREAM *Stream,
IN UINT32 Size
);
#endif // AML_STREAM_H_