]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Include/Chipset/ArmV7.h
3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #include <Chipset/ArmV7Mmu.h>
20 // Domain Access Control Register
21 #define DOMAIN_ACCESS_CONTROL_MASK(a) (3UL << (2 * (a)))
22 #define DOMAIN_ACCESS_CONTROL_NONE(a) (0UL << (2 * (a)))
23 #define DOMAIN_ACCESS_CONTROL_CLIENT(a) (1UL << (2 * (a)))
24 #define DOMAIN_ACCESS_CONTROL_RESERVED(a) (2UL << (2 * (a)))
25 #define DOMAIN_ACCESS_CONTROL_MANAGER(a) (3UL << (2 * (a)))
27 // Cortex A9 feature bit definitions
28 #define A9_FEATURE_PARITY (1<<9)
29 #define A9_FEATURE_AOW (1<<8)
30 #define A9_FEATURE_EXCL (1<<7)
31 #define A9_FEATURE_SMP (1<<6)
32 #define A9_FEATURE_FOZ (1<<3)
33 #define A9_FEATURE_DPREF (1<<2)
34 #define A9_FEATURE_HINT (1<<1)
35 #define A9_FEATURE_FWD (1<<0)
37 // SCU register offsets & masks
38 #define SCU_CONTROL_OFFSET 0x0
39 #define SCU_CONFIG_OFFSET 0x4
40 #define SCU_INVALL_OFFSET 0xC
41 #define SCU_FILT_START_OFFSET 0x40
42 #define SCU_FILT_END_OFFSET 0x44
43 #define SCU_SACR_OFFSET 0x50
44 #define SCU_SSACR_OFFSET 0x54
46 #define SMP_GIC_CPUIF_BASE 0x100
47 #define SMP_GIC_DIST_BASE 0x1000
49 // CPACR - Coprocessor Access Control Register definitions
50 #define CPACR_CP_DENIED(cp) 0x00
51 #define CPACR_CP_PRIV(cp) ((0x1 << ((cp) << 1)) & 0x0FFFFFFF)
52 #define CPACR_CP_FULL(cp) ((0x3 << ((cp) << 1)) & 0x0FFFFFFF)
53 #define CPACR_ASEDIS (1 << 31)
54 #define CPACR_D32DIS (1 << 30)
55 #define CPACR_CP_FULL_ACCESS 0x0FFFFFFF
57 // NSACR - Non-Secure Access Control Register definitions
58 #define NSACR_CP(cp) ((1 << (cp)) & 0x3FFF)
59 #define NSACR_NSD32DIS (1 << 14)
60 #define NSACR_NSASEDIS (1 << 15)
61 #define NSACR_PLE (1 << 16)
62 #define NSACR_TL (1 << 17)
63 #define NSACR_NS_SMP (1 << 18)
64 #define NSACR_RFR (1 << 19)
66 // SCR - Secure Configuration Register definitions
67 #define SCR_NS (1 << 0)
68 #define SCR_IRQ (1 << 1)
69 #define SCR_FIQ (1 << 2)
70 #define SCR_EA (1 << 3)
71 #define SCR_FW (1 << 4)
72 #define SCR_AW (1 << 5)
76 ArmEnableSWPInstruction (
83 IN UINT32 SetWayFormat
89 IN UINT32 SetWayFormat
95 IN UINT32 SetWayFormat
101 IN UINT32 SetWayFormat
113 IN UINT32 SetWayFormat
136 ArmGetScuBaseAddress (
166 ArmSetupSmpNonSecure (
178 ArmInvalidateInstructionAndDataTlb (
201 #endif // __ARM_V7_H__