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