]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/LegacyRegion.h
Make variable names for protocol GUIDs consistent
[mirror_edk2.git] / MdePkg / Include / Protocol / LegacyRegion.h
Content-type: text/html ]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/LegacyRegion.h


500 - Internal Server Error

Malformed UTF-8 character (fatal) at (eval 6) line 1, <$fd> line 263.
CommitLineData
878ddf1f 1/** @file\r
2 This protocol manages the legacy memory regions between 0xc0000 - 0xfffff\r
3\r
4 Copyright (c) 2006, Intel Corporation \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 Module Name: LegacyRegion.h\r
14\r
15 @par Revision Reference:\r
16 This protocol is defined in Framework for EFI Compatibility Support Module spec\r
17 Version 0.96\r
18\r
19**/\r
20\r
21#ifndef _EFI_LEGACY_REGION_H_\r
22#define _EFI_LEGACY_REGION_H_\r
23\r
24#define EFI_LEGACY_REGION_PROTOCOL_GUID \\r
25 { \\r
26 0xfc9013a, 0x568, 0x4ba9, {0x9b, 0x7e, 0xc9, 0xc3, 0x90, 0xa6, 0x60, 0x9b } \\r
27 }\r
28\r
29typedef struct _EFI_LEGACY_REGION_PROTOCOL EFI_LEGACY_REGION_PROTOCOL;\r
30\r
31/**\r
32 Sets hardware to decode or not decode a region.\r
33\r
34 @param This Indicates the EFI_LEGACY_REGION_PROTOCOL instance\r
35 \r
36 @param Start Start of region to decode.\r
37 \r
38 @param Length Size in bytes of the region.\r
39 \r
40 @param On Decode/nondecode flag.\r
41\r
42 @retval EFI_SUCCESS Decode range successfully changed.\r
43\r
44**/\r
45typedef\r
46EFI_STATUS\r
47(EFIAPI *EFI_LEGACY_REGION_DECODE) (\r
48 IN EFI_LEGACY_REGION_PROTOCOL *This,\r
49 IN UINT32 Start,\r
50 IN UINT32 Length,\r
51 IN BOOLEAN *On\r
52 );\r
53\r
54/**\r
55 Sets a region to read only.\r
56\r
57 @param This Indicates the EFI_LEGACY_REGION_PROTOCOL instance\r
58 \r
59 @param Start Start of region to lock.\r
60 \r
61 @param Length Size in bytes of the region.\r
62 \r
63 @param Granularity Lock attribute affects this granularity in bytes.\r
64\r
65 @retval EFI_SUCCESS The region was made read only.\r
66\r
67**/\r
68typedef\r
69EFI_STATUS\r
70(EFIAPI *EFI_LEGACY_REGION_LOCK) (\r
71 IN EFI_LEGACY_REGION_PROTOCOL *This,\r
72 IN UINT32 Start,\r
73 IN UINT32 Length,\r
74 OUT UINT32 *Granularity OPTIONAL\r
75 );\r
76\r
77/**\r
78 Sets a region to read only and ensures that flash is locked from being \r
79 inadvertently modified.\r
80\r
81 @param This Indicates the EFI_LEGACY_REGION_PROTOCOL instance\r
82 \r
83 @param Start Start of region to lock.\r
84 \r
85 @param Length Size in bytes of the region.\r
86 \r
87 @param Granularity Lock attribute affects this granularity in bytes.\r
88\r
89 @retval EFI_SUCCESS The region was made read only and flash is locked.\r
90\r
91**/\r
92typedef\r
93EFI_STATUS\r
94(EFIAPI *EFI_LEGACY_REGION_BOOT_LOCK) (\r
95 IN EFI_LEGACY_REGION_PROTOCOL *This,\r
96 IN UINT32 Start,\r
97 IN UINT32 Length,\r
98 OUT UINT32 *Granularity OPTIONAL\r
99 );\r
100\r
101/**\r
102 Sets a region to read-write.\r
103\r
104 @param This Indicates the EFI_LEGACY_REGION_PROTOCOL instance\r
105 \r
106 @param Start Start of region to lock.\r
107 \r
108 @param Length Size in bytes of the region.\r
109 \r
110 @param Granularity Lock attribute affects this granularity in bytes.\r
111\r
112 @retval EFI_SUCCESS The region was successfully made read-write.\r
113\r
114**/\r
115typedef\r
116EFI_STATUS\r
117(EFIAPI *EFI_LEGACY_REGION_UNLOCK) (\r
118 IN EFI_LEGACY_REGION_PROTOCOL *This,\r
119 IN UINT32 Start,\r
120 IN UINT32 Length,\r
121 OUT UINT32 *Granularity OPTIONAL\r
122 );\r
123\r
124/**\r
125 @par Protocol Description:\r
126