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