9#ifndef _VAR_CHECK_POLICY_MMI_COMMON_H_
10#define _VAR_CHECK_POLICY_MMI_COMMON_H_
12#define VAR_CHECK_POLICY_COMM_SIG SIGNATURE_32('V', 'C', 'P', 'C')
13#define VAR_CHECK_POLICY_COMM_REVISION 1
42 UINT32 InputVariableNameSize;
43 UINT32 OutputVariableNameSize;
45 CHAR16 InputVariableName[1];
50#define VAR_CHECK_POLICY_COMM_GET_INFO_PARAMS_END \
51 (OFFSET_OF(VAR_CHECK_POLICY_COMM_GET_INFO_PARAMS, InputVariableName))
54#define VAR_CHECK_POLICY_MM_COMM_BUFFER_SIZE MAX((OFFSET_OF(EFI_MM_COMMUNICATE_HEADER, Data) + sizeof (VAR_CHECK_POLICY_COMM_HEADER) + EFI_PAGES_TO_SIZE(1)), EFI_PAGES_TO_SIZE(4))
55#define VAR_CHECK_POLICY_MM_DUMP_BUFFER_SIZE (VAR_CHECK_POLICY_MM_COMM_BUFFER_SIZE - \
56 (OFFSET_OF(EFI_MM_COMMUNICATE_HEADER, Data) + \
57 sizeof(VAR_CHECK_POLICY_COMM_HEADER) + \
58 sizeof(VAR_CHECK_POLICY_COMM_DUMP_PARAMS)))
60#define VAR_CHECK_POLICY_MM_GET_INFO_BUFFER_SIZE (VAR_CHECK_POLICY_MM_COMM_BUFFER_SIZE - \
61 (OFFSET_OF(EFI_MM_COMMUNICATE_HEADER, Data) + \
62 sizeof(VAR_CHECK_POLICY_COMM_HEADER) + \
63 OFFSET_OF(VAR_CHECK_POLICY_COMM_GET_INFO_PARAMS, InputVariableName)))
66 VAR_CHECK_POLICY_MM_DUMP_BUFFER_SIZE < VAR_CHECK_POLICY_MM_COMM_BUFFER_SIZE,
67 "an integer underflow may have occurred calculating VAR_CHECK_POLICY_MM_DUMP_BUFFER_SIZE"
71 VAR_CHECK_POLICY_MM_GET_INFO_BUFFER_SIZE < VAR_CHECK_POLICY_MM_COMM_BUFFER_SIZE,
72 "an integer underflow may have occurred calculating VAR_CHECK_POLICY_MM_GET_INFO_BUFFER_SIZE"
75#define VAR_CHECK_POLICY_COMMAND_DISABLE 0x0001
76#define VAR_CHECK_POLICY_COMMAND_IS_ENABLED 0x0002
77#define VAR_CHECK_POLICY_COMMAND_REGISTER 0x0003
78#define VAR_CHECK_POLICY_COMMAND_DUMP 0x0004
79#define VAR_CHECK_POLICY_COMMAND_LOCK 0x0005
80#define VAR_CHECK_POLICY_COMMAND_GET_INFO 0x0006
81#define VAR_CHECK_POLICY_COMMAND_GET_LOCK_VAR_STATE_INFO 0x0007