TianoCore EDK2 master
Loading...
Searching...
No Matches
CacheLib.h
Go to the documentation of this file.
1
8#ifndef _CACHE_LIB_H_
9#define _CACHE_LIB_H_
10
11//
12// EFI_MEMORY_CACHE_TYPE
13//
14typedef INT32 EFI_MEMORY_CACHE_TYPE;
15
16#define EFI_CACHE_UNCACHEABLE 0
17#define EFI_CACHE_WRITECOMBINING 1
18#define EFI_CACHE_WRITETHROUGH 4
19#define EFI_CACHE_WRITEPROTECTED 5
20#define EFI_CACHE_WRITEBACK 6
21
29EFIAPI
31 VOID
32 );
33
48EFIAPI
50 IN EFI_PHYSICAL_ADDRESS MemoryAddress,
51 IN UINT64 MemoryLength,
52 IN EFI_MEMORY_CACHE_TYPE MemoryCacheType
53 );
54
55#endif
EFI_STATUS EFIAPI SetCacheAttributes(IN EFI_PHYSICAL_ADDRESS MemoryAddress, IN UINT64 MemoryLength, IN EFI_MEMORY_CACHE_TYPE MemoryCacheType)
Definition: CacheLib.c:377
EFI_STATUS EFIAPI ResetCacheAttributes(VOID)
Definition: CacheLib.c:582
#define IN
Definition: Base.h:279
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29