/** @file\r
MTRR setting library\r
\r
- Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2008 - 2020, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
);\r
\r
\r
-/**\r
- This function will get the raw value in variable MTRRs\r
-\r
- @param[out] VariableSettings A buffer to hold variable MTRRs content.\r
-\r
- @return The buffer point to MTRR_VARIABLE_SETTINGS in which holds the content of the variable MTRR\r
-\r
-**/\r
-MTRR_VARIABLE_SETTINGS*\r
-EFIAPI\r
-MtrrGetVariableMtrr (\r
- OUT MTRR_VARIABLE_SETTINGS *VariableSettings\r
- );\r
-\r
-\r
/**\r
This function sets variable MTRRs\r
\r
Most of services in this library instance are suggested to be invoked by BSP only,\r
except for MtrrSetAllMtrrs() which is used to sync BSP's MTRR setting to APs.\r
\r
- Copyright (c) 2008 - 2019, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2008 - 2020, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
return VariableSettings;\r
}\r
\r
-/**\r
- This function will get the raw value in variable MTRRs\r
-\r
- @param[out] VariableSettings A buffer to hold variable MTRRs content.\r
-\r
- @return The VariableSettings input pointer\r
-\r
-**/\r
-MTRR_VARIABLE_SETTINGS*\r
-EFIAPI\r
-MtrrGetVariableMtrr (\r
- OUT MTRR_VARIABLE_SETTINGS *VariableSettings\r
- )\r
-{\r
- if (!IsMtrrSupported ()) {\r
- return VariableSettings;\r
- }\r
-\r
- return MtrrGetVariableMtrrWorker (\r
- NULL,\r
- GetVariableMtrrCountWorker (),\r
- VariableSettings\r
- );\r
-}\r
-\r
/**\r
Programs fixed MTRRs registers.\r
\r