One more header fix
[mirror_edk2.git] / ArmPkg / Include / Protocol / VirtualUncachedPages.h
CommitLineData
f45ce9d9
A
1/** @file\r
2\r
3 Copyright (c) 2008-2010 Apple Inc. All rights reserved.<BR>\r
4\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __VIRTUAL_UNCACHED_PAGES_ROTOCOL_H__\r
16#define __VIRTUAL_UNCACHED_PAGES_ROTOCOL_H__\r
17\r
18//\r
19// Protocol GUID\r
20//\r
21#define VIRTUAL_UNCACHED_PAGES_PROTOCOL_GUID { 0xAD651C7D, 0x3C22, 0x4DBF, { 0x92, 0xe8, 0x38, 0xa7, 0xcd, 0xae, 0x87, 0xb2 } }\r
22\r
23\r
24\r
25//\r
26// Protocol interface structure\r
27//\r
28typedef struct _VIRTUAL_UNCACHED_PAGES_PROTOCOL VIRTUAL_UNCACHED_PAGES_PROTOCOL;\r
29\r
30\r
31typedef\r
32EFI_STATUS\r
33(EFIAPI *CONVERT_PAGES_TO_UNCACHED_VIRTUAL_ADDRESS) (\r
34 IN VIRTUAL_UNCACHED_PAGES_PROTOCOL *This,\r
35 IN EFI_PHYSICAL_ADDRESS Address,\r
36 IN UINTN Length,\r
37 IN EFI_PHYSICAL_ADDRESS VirtualMask,\r
38 OUT UINT64 *Attributes OPTIONAL\r
39 );\r
40 \r
41typedef\r
42EFI_STATUS\r
43(EFIAPI *FREE_CONVERTED_PAGES) (\r
44 IN VIRTUAL_UNCACHED_PAGES_PROTOCOL *This,\r
45 IN EFI_PHYSICAL_ADDRESS Address,\r
46 IN UINTN Length,\r
47 IN EFI_PHYSICAL_ADDRESS VirtualMask,\r
48 IN UINT64 Attributes\r
49 );\r
50\r
51\r
52\r
53struct _VIRTUAL_UNCACHED_PAGES_PROTOCOL {\r
54 CONVERT_PAGES_TO_UNCACHED_VIRTUAL_ADDRESS ConvertPages;\r
55 FREE_CONVERTED_PAGES FreeConvertedPages;\r
56};\r
57\r
58extern EFI_GUID gVirtualUncachedPagesProtocolGuid;\r
59\r
60#endif