+++ /dev/null
-/** @file\r
-\r
- Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-#ifndef _CACHE_LIB_H_\r
-#define _CACHE_LIB_H_\r
-\r
-//\r
-// EFI_MEMORY_CACHE_TYPE\r
-//\r
-typedef INT32 EFI_MEMORY_CACHE_TYPE;\r
-\r
-#define EFI_CACHE_UNCACHEABLE 0\r
-#define EFI_CACHE_WRITECOMBINING 1\r
-#define EFI_CACHE_WRITETHROUGH 4\r
-#define EFI_CACHE_WRITEPROTECTED 5\r
-#define EFI_CACHE_WRITEBACK 6\r
-\r
-/**\r
- Reset all the MTRRs to a known state.\r
-\r
- @retval EFI_SUCCESS All MTRRs have been reset successfully.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-ResetCacheAttributes (\r
- VOID\r
- );\r
-\r
-/**\r
- Given the memory range and cache type, programs the MTRRs.\r
-\r
- @param[in] MemoryAddress Base Address of Memory to program MTRR.\r
- @param[in] MemoryLength Length of Memory to program MTRR.\r
- @param[in] MemoryCacheType Cache Type.\r
-\r
- @retval EFI_SUCCESS Mtrr are set successfully.\r
- @retval EFI_LOAD_ERROR No empty MTRRs to use.\r
- @retval EFI_INVALID_PARAMETER The input parameter is not valid.\r
- @retval others An error occurs when setting MTTR.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-SetCacheAttributes (\r
- IN EFI_PHYSICAL_ADDRESS MemoryAddress,\r
- IN UINT64 MemoryLength,\r
- IN EFI_MEMORY_CACHE_TYPE MemoryCacheType\r
- );\r
-\r
-#endif\r
-\r