diff options
author | AJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-12 18:49:41 +0000 |
---|---|---|
committer | AJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-12 18:49:41 +0000 |
commit | f45ce9d98c8e2cb009095366a5b3c0a0d4a68bbb (patch) | |
tree | 7778da401005f18f9787aa82543c4a871cdfa803 /ArmPkg | |
parent | c2b5ca8b562776a04359e72f13a95aed001af738 (diff) | |
download | edk2-f45ce9d98c8e2cb009095366a5b3c0a0d4a68bbb.zip edk2-f45ce9d98c8e2cb009095366a5b3c0a0d4a68bbb.tar.gz edk2-f45ce9d98c8e2cb009095366a5b3c0a0d4a68bbb.tar.bz2 |
Updating ArmLib.h to add functions needed to turn on paging in CpuDxe. Also added a protocol to enable debugging of DMA issues. DxeCpu driver will produce and the UncachedMemoryAllocationLib can consume.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9717 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Include/Library/ArmLib.h | 12 | ||||
-rw-r--r-- | ArmPkg/Include/Protocol/VirtualUncachedPages.h | 60 |
2 files changed, 72 insertions, 0 deletions
diff --git a/ArmPkg/Include/Library/ArmLib.h b/ArmPkg/Include/Library/ArmLib.h index d68b334..5cadb3c 100644 --- a/ArmPkg/Include/Library/ArmLib.h +++ b/ArmPkg/Include/Library/ArmLib.h @@ -151,6 +151,7 @@ ArmInvalidateDataCache ( VOID ); + VOID EFIAPI ArmCleanInvalidateDataCache ( @@ -259,6 +260,11 @@ ArmSetTranslationTableBaseAddress ( IN VOID *TranslationTableBase ); +VOID * +EFIAPI +ArmGetTranslationTableBaseAddress ( + ); + VOID EFIAPI ArmConfigureMmu ( @@ -267,6 +273,12 @@ ArmConfigureMmu ( OUT UINTN *TranslationTableSize OPTIONAL ); +BOOLEAN +EFIAPI +ArmMmuEnabled ( + VOID + ); + VOID EFIAPI ArmSwitchProcessorMode ( diff --git a/ArmPkg/Include/Protocol/VirtualUncachedPages.h b/ArmPkg/Include/Protocol/VirtualUncachedPages.h new file mode 100644 index 0000000..32deec2 --- /dev/null +++ b/ArmPkg/Include/Protocol/VirtualUncachedPages.h @@ -0,0 +1,60 @@ +/** @file
+
+ Copyright (c) 2008-2010 Apple Inc. All rights reserved.<BR>
+
+ All rights reserved. This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which accompanies this distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef __VIRTUAL_UNCACHED_PAGES_ROTOCOL_H__
+#define __VIRTUAL_UNCACHED_PAGES_ROTOCOL_H__
+
+//
+// Protocol GUID
+//
+#define VIRTUAL_UNCACHED_PAGES_PROTOCOL_GUID { 0xAD651C7D, 0x3C22, 0x4DBF, { 0x92, 0xe8, 0x38, 0xa7, 0xcd, 0xae, 0x87, 0xb2 } }
+
+
+
+//
+// Protocol interface structure
+//
+typedef struct _VIRTUAL_UNCACHED_PAGES_PROTOCOL VIRTUAL_UNCACHED_PAGES_PROTOCOL;
+
+
+typedef
+EFI_STATUS
+(EFIAPI *CONVERT_PAGES_TO_UNCACHED_VIRTUAL_ADDRESS) (
+ IN VIRTUAL_UNCACHED_PAGES_PROTOCOL *This,
+ IN EFI_PHYSICAL_ADDRESS Address,
+ IN UINTN Length,
+ IN EFI_PHYSICAL_ADDRESS VirtualMask,
+ OUT UINT64 *Attributes OPTIONAL
+ );
+
+typedef
+EFI_STATUS
+(EFIAPI *FREE_CONVERTED_PAGES) (
+ IN VIRTUAL_UNCACHED_PAGES_PROTOCOL *This,
+ IN EFI_PHYSICAL_ADDRESS Address,
+ IN UINTN Length,
+ IN EFI_PHYSICAL_ADDRESS VirtualMask,
+ IN UINT64 Attributes
+ );
+
+
+
+struct _VIRTUAL_UNCACHED_PAGES_PROTOCOL {
+ CONVERT_PAGES_TO_UNCACHED_VIRTUAL_ADDRESS ConvertPages;
+ FREE_CONVERTED_PAGES FreeConvertedPages;
+};
+
+extern EFI_GUID gVirtualUncachedPagesProtocolGuid;
+
+#endif
\ No newline at end of file |