]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Framework/Protocol/SmmAccess/SmmAccess.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Framework / Protocol / SmmAccess / SmmAccess.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 SmmAccess.h\r
16\r
17Abstract:\r
18\r
19 This file defines SMM SMRAM Access abstraction protocol defined \r
20 by the SMM CIS.\r
21\r
22--*/\r
23\r
24#ifndef _SMM_ACCESS_H_\r
25#define _SMM_ACCESS_H_\r
26\r
27#include EFI_GUID_DEFINITION (SmramMemoryReserve)\r
28\r
29EFI_FORWARD_DECLARATION (EFI_SMM_ACCESS_PROTOCOL);\r
30\r
31#define EFI_SMM_ACCESS_PROTOCOL_GUID \\r
32 { \\r
7ccf38a3 33 0x3792095a, 0xe309, 0x4c1e, {0xaa, 0x01, 0x85, 0xf5, 0x65, 0x5a, 0x17, 0xf1} \\r
3eb9473e 34 }\r
35\r
36//\r
37// SMM Access specification Data Structures\r
38//\r
39typedef\r
40EFI_STATUS\r
41(EFIAPI *EFI_SMM_OPEN) (\r
42 IN EFI_SMM_ACCESS_PROTOCOL * This,\r
43 UINTN DescriptorIndex\r
44 );\r
45\r
46typedef\r
47EFI_STATUS\r
48(EFIAPI *EFI_SMM_CLOSE) (\r
49 IN EFI_SMM_ACCESS_PROTOCOL * This,\r
50 UINTN DescriptorIndex\r
51 );\r
52\r
53typedef\r
54EFI_STATUS\r
55(EFIAPI *EFI_SMM_LOCK) (\r
56 IN EFI_SMM_ACCESS_PROTOCOL * This,\r
57 UINTN DescriptorIndex\r
58 );\r
59\r
60typedef\r
61EFI_STATUS\r
62(EFIAPI *EFI_SMM_CAPABILITIES) (\r
63 IN EFI_SMM_ACCESS_PROTOCOL * This,\r
64 IN OUT UINTN *SmramMapSize,\r
65 IN OUT EFI_SMRAM_DESCRIPTOR * SmramMap\r
66 );\r
67\r
5d46191d 68struct _EFI_SMM_ACCESS_PROTOCOL {\r
3eb9473e 69 EFI_SMM_OPEN Open;\r
70 EFI_SMM_CLOSE Close;\r
71 EFI_SMM_LOCK Lock;\r
72 EFI_SMM_CAPABILITIES GetCapabilities;\r
73 BOOLEAN LockState;\r
74 BOOLEAN OpenState;\r
5d46191d 75};\r
3eb9473e 76\r
77extern EFI_GUID gEfiSmmAccessProtocolGuid;\r
78\r
79#endif\r