]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Pcd.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / Pcd.h
index 6dc5388b39ba5b21e9027a9d9985e3ef7380247f..25f73cda1423ee047597537225c2c0c2391139f0 100644 (file)
@@ -17,13 +17,12 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #ifndef __PCD_H__\r
 #define __PCD_H__\r
 \r
-extern EFI_GUID gPcdProtocolGuid;\r
+extern EFI_GUID  gPcdProtocolGuid;\r
 \r
 #define PCD_PROTOCOL_GUID \\r
   { 0x11b34006, 0xd85b, 0x4d0a, { 0xa2, 0x90, 0xd5, 0xa5, 0x71, 0x31, 0xe, 0xf7 } }\r
 \r
-#define PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)\r
-\r
+#define PCD_INVALID_TOKEN_NUMBER  ((UINTN) 0)\r
 \r
 /**\r
   Sets the SKU value for subsequent calls to set or get PCD token values.\r
@@ -53,8 +52,6 @@ VOID
   IN  UINTN                  SkuId\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves an 8-bit value for a given PCD token.\r
 \r
@@ -72,8 +69,6 @@ UINT8
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves a 16-bit value for a given PCD token.\r
 \r
@@ -91,8 +86,6 @@ UINT16
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves a 32-bit value for a given PCD token.\r
 \r
@@ -110,8 +103,6 @@ UINT32
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves a 64-bit value for a given PCD token.\r
 \r
@@ -129,8 +120,6 @@ UINT64
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves a pointer to a value for a given PCD token.\r
 \r
@@ -150,8 +139,6 @@ VOID *
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves a Boolean value for a given PCD token.\r
 \r
@@ -171,8 +158,6 @@ BOOLEAN
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves the size of the value for a given PCD token.\r
 \r
@@ -190,8 +175,6 @@ UINTN
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves an 8-bit value for a given PCD token.\r
 \r
@@ -213,8 +196,6 @@ UINT8
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves a 16-bit value for a given PCD token.\r
 \r
@@ -236,8 +217,6 @@ UINT16
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves a 32-bit value for a given PCD token.\r
 \r
@@ -259,8 +238,6 @@ UINT32
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves an 64-bit value for a given PCD token.\r
 \r
@@ -282,8 +259,6 @@ UINT64
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves a pointer to a value for a given PCD token.\r
 \r
@@ -305,8 +280,6 @@ VOID *
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves a Boolean value for a given PCD token.\r
 \r
@@ -328,8 +301,6 @@ BOOLEAN
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves the size of the value for a given PCD token.\r
 \r
@@ -349,8 +320,6 @@ UINTN
   IN UINTN             TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets an 8-bit value for a given PCD token.\r
 \r
@@ -375,8 +344,6 @@ EFI_STATUS
   IN UINT8             Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets a 16-bit value for a given PCD token.\r
 \r
@@ -401,8 +368,6 @@ EFI_STATUS
   IN UINT16             Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets a 32-bit value for a given PCD token.\r
 \r
@@ -427,8 +392,6 @@ EFI_STATUS
   IN UINT32             Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets a 64-bit value for a given PCD token.\r
 \r
@@ -453,8 +416,6 @@ EFI_STATUS
   IN UINT64            Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets a value of a specified size for a given PCD token.\r
 \r
@@ -484,8 +445,6 @@ EFI_STATUS
   IN      VOID              *Buffer\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets a Boolean value for a given PCD token.\r
 \r
@@ -510,8 +469,6 @@ EFI_STATUS
   IN BOOLEAN           Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets an 8-bit value for a given PCD token.\r
 \r
@@ -538,8 +495,6 @@ EFI_STATUS
   IN UINT8             Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets an 16-bit value for a given PCD token.\r
 \r
@@ -566,8 +521,6 @@ EFI_STATUS
   IN UINT16            Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets a 32-bit value for a given PCD token.\r
 \r
@@ -594,8 +547,6 @@ EFI_STATUS
   IN UINT32             Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets a 64-bit value for a given PCD token.\r
 \r
@@ -622,8 +573,6 @@ EFI_STATUS
   IN UINT64            Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets a value of a specified size for a given PCD token.\r
 \r
@@ -655,8 +604,6 @@ EFI_STATUS
   IN       VOID              *Buffer\r
   );\r
 \r
-\r
-\r
 /**\r
   Sets a Boolean value for a given PCD token.\r
 \r
@@ -683,8 +630,6 @@ EFI_STATUS
   IN BOOLEAN           Value\r
   );\r
 \r
-\r
-\r
 /**\r
   Callback on SET function prototype definition.\r
 \r
@@ -713,8 +658,6 @@ VOID
   IN       UINTN            TokenDataSize\r
   );\r
 \r
-\r
-\r
 /**\r
   Specifies a function to be called anytime the value of a designated token is changed.\r
 \r
@@ -735,8 +678,6 @@ EFI_STATUS
   IN  PCD_PROTOCOL_CALLBACK   CallBackFunction\r
   );\r
 \r
-\r
-\r
 /**\r
   Cancels a previously set callback function for a particular PCD token number.\r
 \r
@@ -757,8 +698,6 @@ EFI_STATUS
   IN  PCD_PROTOCOL_CALLBACK   CallBackFunction\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves the next valid token number in a given namespace.\r
 \r
@@ -792,8 +731,6 @@ EFI_STATUS
   IN OUT  UINTN               *TokenNumber\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves the next valid PCD token namespace for a given namespace.\r
 \r
@@ -820,42 +757,42 @@ EFI_STATUS
 /// This service abstracts the ability to set/get Platform Configuration Database (PCD).\r
 ///\r
 typedef struct {\r
-  PCD_PROTOCOL_SET_SKU              SetSku;\r
-\r
-  PCD_PROTOCOL_GET8                 Get8;\r
-  PCD_PROTOCOL_GET16                Get16;\r
-  PCD_PROTOCOL_GET32                Get32;\r
-  PCD_PROTOCOL_GET64                Get64;\r
-  PCD_PROTOCOL_GET_POINTER          GetPtr;\r
-  PCD_PROTOCOL_GET_BOOLEAN          GetBool;\r
-  PCD_PROTOCOL_GET_SIZE             GetSize;\r
-\r
-  PCD_PROTOCOL_GET_EX_8             Get8Ex;\r
-  PCD_PROTOCOL_GET_EX_16            Get16Ex;\r
-  PCD_PROTOCOL_GET_EX_32            Get32Ex;\r
-  PCD_PROTOCOL_GET_EX_64            Get64Ex;\r
-  PCD_PROTOCOL_GET_EX_POINTER       GetPtrEx;\r
-  PCD_PROTOCOL_GET_EX_BOOLEAN       GetBoolEx;\r
-  PCD_PROTOCOL_GET_EX_SIZE          GetSizeEx;\r
-\r
-  PCD_PROTOCOL_SET8                 Set8;\r
-  PCD_PROTOCOL_SET16                Set16;\r
-  PCD_PROTOCOL_SET32                Set32;\r
-  PCD_PROTOCOL_SET64                Set64;\r
-  PCD_PROTOCOL_SET_POINTER          SetPtr;\r
-  PCD_PROTOCOL_SET_BOOLEAN          SetBool;\r
-\r
-  PCD_PROTOCOL_SET_EX_8             Set8Ex;\r
-  PCD_PROTOCOL_SET_EX_16            Set16Ex;\r
-  PCD_PROTOCOL_SET_EX_32            Set32Ex;\r
-  PCD_PROTOCOL_SET_EX_64            Set64Ex;\r
-  PCD_PROTOCOL_SET_EX_POINTER       SetPtrEx;\r
-  PCD_PROTOCOL_SET_EX_BOOLEAN       SetBoolEx;\r
-\r
-  PCD_PROTOCOL_CALLBACK_ONSET       CallbackOnSet;\r
-  PCD_PROTOCOL_CANCEL_CALLBACK      CancelCallback;\r
-  PCD_PROTOCOL_GET_NEXT_TOKEN       GetNextToken;\r
-  PCD_PROTOCOL_GET_NEXT_TOKENSPACE  GetNextTokenSpace;\r
+  PCD_PROTOCOL_SET_SKU                SetSku;\r
+\r
+  PCD_PROTOCOL_GET8                   Get8;\r
+  PCD_PROTOCOL_GET16                  Get16;\r
+  PCD_PROTOCOL_GET32                  Get32;\r
+  PCD_PROTOCOL_GET64                  Get64;\r
+  PCD_PROTOCOL_GET_POINTER            GetPtr;\r
+  PCD_PROTOCOL_GET_BOOLEAN            GetBool;\r
+  PCD_PROTOCOL_GET_SIZE               GetSize;\r
+\r
+  PCD_PROTOCOL_GET_EX_8               Get8Ex;\r
+  PCD_PROTOCOL_GET_EX_16              Get16Ex;\r
+  PCD_PROTOCOL_GET_EX_32              Get32Ex;\r
+  PCD_PROTOCOL_GET_EX_64              Get64Ex;\r
+  PCD_PROTOCOL_GET_EX_POINTER         GetPtrEx;\r
+  PCD_PROTOCOL_GET_EX_BOOLEAN         GetBoolEx;\r
+  PCD_PROTOCOL_GET_EX_SIZE            GetSizeEx;\r
+\r
+  PCD_PROTOCOL_SET8                   Set8;\r
+  PCD_PROTOCOL_SET16                  Set16;\r
+  PCD_PROTOCOL_SET32                  Set32;\r
+  PCD_PROTOCOL_SET64                  Set64;\r
+  PCD_PROTOCOL_SET_POINTER            SetPtr;\r
+  PCD_PROTOCOL_SET_BOOLEAN            SetBool;\r
+\r
+  PCD_PROTOCOL_SET_EX_8               Set8Ex;\r
+  PCD_PROTOCOL_SET_EX_16              Set16Ex;\r
+  PCD_PROTOCOL_SET_EX_32              Set32Ex;\r
+  PCD_PROTOCOL_SET_EX_64              Set64Ex;\r
+  PCD_PROTOCOL_SET_EX_POINTER         SetPtrEx;\r
+  PCD_PROTOCOL_SET_EX_BOOLEAN         SetBoolEx;\r
+\r
+  PCD_PROTOCOL_CALLBACK_ONSET         CallbackOnSet;\r
+  PCD_PROTOCOL_CANCEL_CALLBACK        CancelCallback;\r
+  PCD_PROTOCOL_GET_NEXT_TOKEN         GetNextToken;\r
+  PCD_PROTOCOL_GET_NEXT_TOKENSPACE    GetNextTokenSpace;\r
 } PCD_PROTOCOL;\r
 \r
 #endif\r