3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef __ARM_V7_LIB_H__
10 #define __ARM_V7_LIB_H__
12 #define ID_MMFR0_SHARELVL_SHIFT 12
13 #define ID_MMFR0_SHARELVL_MASK 0xf
14 #define ID_MMFR0_SHARELVL_ONE 0
15 #define ID_MMFR0_SHARELVL_TWO 1
17 #define ID_MMFR0_INNERSHR_SHIFT 28
18 #define ID_MMFR0_INNERSHR_MASK 0xf
19 #define ID_MMFR0_OUTERSHR_SHIFT 8
20 #define ID_MMFR0_OUTERSHR_MASK 0xf
22 #define ID_MMFR0_SHR_IMP_UNCACHED 0
23 #define ID_MMFR0_SHR_IMP_HW_COHERENT 1
24 #define ID_MMFR0_SHR_IGNORED 0xf
26 typedef VOID (*ARM_V7_CACHE_OPERATION
)(UINT32
);
29 ArmV7AllDataCachesOperation (
30 IN ARM_V7_CACHE_OPERATION DataCacheOperation
35 ArmInvalidateDataCacheEntryBySetWay (
41 ArmCleanDataCacheEntryBySetWay (
47 ArmCleanInvalidateDataCacheEntryBySetWay (
51 /** Reads the ID_MMFR4 register.
53 @return The contents of the ID_MMFR4 register.
67 #endif // __ARM_V7_LIB_H__