3 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #include <Library/BaseLib.h>
19 #include <Library/BaseMemoryLib.h>
20 #include <Library/MemoryAllocationLib.h>
21 #include <Library/UefiBootServicesTableLib.h>
22 #include <Library/DebugLib.h>
24 #include <IndustryStandard/Hsti.h>
26 #include <Protocol/AdapterInformation.h>
28 #define HSTI_AIP_PRIVATE_SIGNATURE SIGNATURE_32('H', 'S', 'T', 'I')
33 EFI_ADAPTER_INFORMATION_PROTOCOL Aip
;
37 } HSTI_AIP_PRIVATE_DATA
;
39 #define HSTI_AIP_PRIVATE_DATA_FROM_THIS(a) \
41 HSTI_AIP_PRIVATE_DATA, \
43 HSTI_AIP_PRIVATE_SIGNATURE \
46 #define HSTI_DEFAULT_ERROR_STRING_LEN 255
48 extern EFI_ADAPTER_INFORMATION_PROTOCOL mAdapterInformationProtocol
;
51 Return if input HSTI data follows HSTI specification.
53 @param HstiData HSTI data
54 @param HstiSize HSTI size
56 @retval TRUE HSTI data follows HSTI specification.
57 @retval FALSE HSTI data does not follow HSTI specification.
60 InternalHstiIsValidTable (