]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/DxeHstiLib/HstiDxe.h
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / DxeHstiLib / HstiDxe.h
CommitLineData
aaedfe3c
JY
1/** @file\r
2\r
9095d37b 3 Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
aaedfe3c
JY
4 This program and the accompanying materials\r
5 are licensed and made available under the terms and conditions of the BSD License\r
6 which accompanies this distribution. The full text of the license may be found at\r
7 http://opensource.org/licenses/bsd-license.php\r
8\r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12**/\r
13\r
14#ifndef _HSTI_DXE_H_\r
15#define _HSTI_DXE_H_\r
16\r
17#include <PiDxe.h>\r
18#include <Library/BaseLib.h>\r
19#include <Library/BaseMemoryLib.h>\r
20#include <Library/MemoryAllocationLib.h>\r
21#include <Library/UefiBootServicesTableLib.h>\r
22#include <Library/DebugLib.h>\r
23\r
24#include <IndustryStandard/Hsti.h>\r
25\r
26#include <Protocol/AdapterInformation.h>\r
27\r
28#define HSTI_AIP_PRIVATE_SIGNATURE SIGNATURE_32('H', 'S', 'T', 'I')\r
29\r
30typedef struct {\r
31 UINT32 Signature;\r
32 LIST_ENTRY Link;\r
33 EFI_ADAPTER_INFORMATION_PROTOCOL Aip;\r
34 VOID *Hsti;\r
35 UINTN HstiSize;\r
36 UINTN HstiMaxSize;\r
37} HSTI_AIP_PRIVATE_DATA;\r
38\r
39#define HSTI_AIP_PRIVATE_DATA_FROM_THIS(a) \\r
40 CR (a, \\r
41 HSTI_AIP_PRIVATE_DATA, \\r
42 Aip, \\r
43 HSTI_AIP_PRIVATE_SIGNATURE \\r
44 )\r
45\r
46#define HSTI_DEFAULT_ERROR_STRING_LEN 255\r
47\r
48extern EFI_ADAPTER_INFORMATION_PROTOCOL mAdapterInformationProtocol;\r
49\r
50/**\r
51 Return if input HSTI data follows HSTI specification.\r
52\r
53 @param HstiData HSTI data\r
54 @param HstiSize HSTI size\r
55\r
56 @retval TRUE HSTI data follows HSTI specification.\r
57 @retval FALSE HSTI data does not follow HSTI specification.\r
58**/\r
59BOOLEAN\r
60InternalHstiIsValidTable (\r
61 IN VOID *HstiData,\r
62 IN UINTN HstiSize\r
63 );\r
64\r
9095d37b 65#endif\r