summaryrefslogtreecommitdiff
path: root/Silicon/Ampere/AmpereAltraPkg/Library/NVParamLib/NVParamLibCommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'Silicon/Ampere/AmpereAltraPkg/Library/NVParamLib/NVParamLibCommon.h')
-rw-r--r--Silicon/Ampere/AmpereAltraPkg/Library/NVParamLib/NVParamLibCommon.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/Silicon/Ampere/AmpereAltraPkg/Library/NVParamLib/NVParamLibCommon.h b/Silicon/Ampere/AmpereAltraPkg/Library/NVParamLib/NVParamLibCommon.h
index 57b6cccda7..a4dcae886c 100644
--- a/Silicon/Ampere/AmpereAltraPkg/Library/NVParamLib/NVParamLibCommon.h
+++ b/Silicon/Ampere/AmpereAltraPkg/Library/NVParamLib/NVParamLibCommon.h
@@ -9,17 +9,17 @@
#ifndef NV_PARAM_LIB_COMMON_H_
#define NV_PARAM_LIB_COMMON_H_
-#define EFI_MM_MAX_PAYLOAD_SIZE 0x50
+#define EFI_MM_MAX_PAYLOAD_SIZE 0x50
-#define MM_NVPARAM_FUNC_READ 0x01
-#define MM_NVPARAM_FUNC_WRITE 0x02
-#define MM_NVPARAM_FUNC_CLEAR 0x03
-#define MM_NVPARAM_FUNC_CLEAR_ALL 0x04
+#define MM_NVPARAM_FUNC_READ 0x01
+#define MM_NVPARAM_FUNC_WRITE 0x02
+#define MM_NVPARAM_FUNC_CLEAR 0x03
+#define MM_NVPARAM_FUNC_CLEAR_ALL 0x04
-#define MM_NVPARAM_RES_SUCCESS 0xAABBCC00
-#define MM_NVPARAM_RES_NOT_SET 0xAABBCC01
-#define MM_NVPARAM_RES_NO_PERM 0xAABBCC02
-#define MM_NVPARAM_RES_FAIL 0xAABBCCFF
+#define MM_NVPARAM_RES_SUCCESS 0xAABBCC00
+#define MM_NVPARAM_RES_NOT_SET 0xAABBCC01
+#define MM_NVPARAM_RES_NO_PERM 0xAABBCC02
+#define MM_NVPARAM_RES_FAIL 0xAABBCCFF
#pragma pack (1)
@@ -27,22 +27,22 @@ typedef struct {
//
// Allows for disambiguation of the message format.
//
- EFI_GUID HeaderGuid;
+ EFI_GUID HeaderGuid;
//
// Describes the size of Data (in bytes) and does not include the size of the header.
//
- UINTN MessageLength;
+ UINTN MessageLength;
//
// Designates an array of bytes that is MessageLength in size.
//
- UINT8 Data[EFI_MM_MAX_PAYLOAD_SIZE];
+ UINT8 Data[EFI_MM_MAX_PAYLOAD_SIZE];
} EFI_MM_COMMUNICATE_REQUEST;
typedef struct {
- UINT64 Status;
- UINT64 Value;
+ UINT64 Status;
+ UINT64 Value;
} EFI_MM_COMMUNICATE_NVPARAM_RESPONSE;
#pragma pack ()
@@ -62,9 +62,10 @@ typedef struct {
**/
EFI_STATUS
NVParamMmCommunicate (
- IN VOID *Request,
- IN UINT32 RequestDataSize,
- OUT VOID *Response,
- IN UINT32 ResponseDataSize
+ IN VOID *Request,
+ IN UINT32 RequestDataSize,
+ OUT VOID *Response,
+ IN UINT32 ResponseDataSize
);
+
#endif /* NV_PARAM_LIB_COMMON_H_ */