]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Framework/Protocol/LegacyRegion/LegacyRegion.h
Maintainers.txt: Remove EdkCompatibilityPkg information
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Framework / Protocol / LegacyRegion / LegacyRegion.h
CommitLineData
3eb9473e 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 1999 - 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials\r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12\r
13Module Name:\r
14\r
15 LegacyRegion.h\r
16 \r
17Abstract:\r
18\r
19 This protocol manages the legacy memory regions between 0xc0000 - 0xfffff\r
20\r
21Revision History\r
22\r
23 The EFI Legacy Region Protocol is compliant with CSM spec 0.96.\r
24\r
25--*/\r
26\r
27#ifndef _EFI_LEGACY_REGION_H_\r
28#define _EFI_LEGACY_REGION_H_\r
29\r
30#define EFI_LEGACY_REGION_PROTOCOL_GUID \\r
31 { \\r
7ccf38a3 32 0xfc9013a, 0x568, 0x4ba9, {0x9b, 0x7e, 0xc9, 0xc3, 0x90, 0xa6, 0x60, 0x9b} \\r
3eb9473e 33 }\r
34\r
35EFI_FORWARD_DECLARATION (EFI_LEGACY_REGION_PROTOCOL);\r
36\r
37typedef\r
38EFI_STATUS\r
39(EFIAPI *EFI_LEGACY_REGION_DECODE) (\r
40 IN EFI_LEGACY_REGION_PROTOCOL * This,\r
41 IN UINT32 Start,\r
42 IN UINT32 Length,\r
43 IN BOOLEAN *On\r
44 );\r
45\r
46typedef\r
47EFI_STATUS\r
48(EFIAPI *EFI_LEGACY_REGION_LOCK) (\r
49 IN EFI_LEGACY_REGION_PROTOCOL * This,\r
50 IN UINT32 Start,\r
51 IN UINT32 Length,\r
52 OUT UINT32 *Granularity OPTIONAL\r
53 );\r
54\r
55typedef\r
56EFI_STATUS\r
57(EFIAPI *EFI_LEGACY_REGION_BOOT_LOCK) (\r
58 IN EFI_LEGACY_REGION_PROTOCOL * This,\r
59 IN UINT32 Start,\r
60 IN UINT32 Length,\r
61 OUT UINT32 *Granularity OPTIONAL\r
62 );\r
63\r
64typedef\r
65EFI_STATUS\r
66(EFIAPI *EFI_LEGACY_REGION_UNLOCK) (\r
67 IN EFI_LEGACY_REGION_PROTOCOL * This,\r
68 IN UINT32 Start,\r
69 IN UINT32 Length,\r
70 OUT UINT32 *Granularity OPTIONAL\r
71 );\r
72\r
5d46191d 73struct _EFI_LEGACY_REGION_PROTOCOL {\r
3eb9473e 74 EFI_LEGACY_REGION_DECODE Decode;\r
75 EFI_LEGACY_REGION_LOCK Lock;\r
76 EFI_LEGACY_REGION_BOOT_LOCK BootLock;\r
77 EFI_LEGACY_REGION_UNLOCK UnLock;\r
5d46191d 78};\r
3eb9473e 79\r
80extern EFI_GUID gEfiLegacyRegionProtocolGuid;\r
81\r
82#endif\r