]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Include/Library/ArmLib.h
ArmPkg: add ArmHasSecurityExtensions () helper function
[mirror_edk2.git] / ArmPkg / Include / Library / ArmLib.h
index 9a804c15fdb6f168528d7383db7688fccc01dc7d..c2ed72112b73d2e36c11abecc167aa5edad68f4d 100644 (file)
@@ -2,14 +2,9 @@
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
   Copyright (c) 2011 - 2016, ARM Ltd. All rights reserved.<BR>\r
+  Copyright (c) 2020, NUVIA Inc. All rights reserved.<BR>\r
 \r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -217,24 +212,6 @@ ArmCleanInvalidateDataCacheEntryByMVA (
   IN  UINTN   Address\r
   );\r
 \r
-VOID\r
-EFIAPI\r
-ArmInvalidateDataCacheEntryBySetWay (\r
-  IN  UINTN  SetWayFormat\r
-  );\r
-\r
-VOID\r
-EFIAPI\r
-ArmCleanDataCacheEntryBySetWay (\r
-  IN  UINTN  SetWayFormat\r
-  );\r
-\r
-VOID\r
-EFIAPI\r
-ArmCleanInvalidateDataCacheEntryBySetWay (\r
-  IN  UINTN   SetWayFormat\r
-  );\r
-\r
 VOID\r
 EFIAPI\r
 ArmEnableDataCache (\r
@@ -739,4 +716,38 @@ ArmGetPhysicalAddressBits (
   VOID\r
   );\r
 \r
+\r
+///\r
+///  ID Register Helper functions\r
+///\r
+\r
+/**\r
+  Check whether the CPU supports the GIC system register interface (any version)\r
+\r
+  @return   Whether GIC System Register Interface is supported\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+ArmHasGicSystemRegisters (\r
+  VOID\r
+  );\r
+\r
+#ifdef MDE_CPU_ARM\r
+///\r
+/// AArch32-only ID Register Helper functions\r
+///\r
+/**\r
+  Check whether the CPU supports the Security extensions\r
+\r
+  @return   Whether the Security extensions are implemented\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+ArmHasSecurityExtensions (\r
+  VOID\r
+  );\r
+#endif // MDE_CPU_ARM\r
+\r
 #endif // __ARM_LIB__\r