TianoCore EDK2 master
Loading...
Searching...
No Matches
HstiAip.c File Reference
#include "HstiDxe.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI HstiAipGetInfo (IN EFI_ADAPTER_INFORMATION_PROTOCOL *This, IN EFI_GUID *InformationType, OUT VOID **InformationBlock, OUT UINTN *InformationBlockSize)
 
EFI_STATUS EFIAPI HstiAipSetInfo (IN EFI_ADAPTER_INFORMATION_PROTOCOL *This, IN EFI_GUID *InformationType, IN VOID *InformationBlock, IN UINTN InformationBlockSize)
 
EFI_STATUS EFIAPI HstiAipGetSupportedTypes (IN EFI_ADAPTER_INFORMATION_PROTOCOL *This, OUT EFI_GUID **InfoTypesBuffer, OUT UINTN *InfoTypesBufferCount)
 

Variables

EFI_ADAPTER_INFORMATION_PROTOCOL mAdapterInformationProtocol
 

Detailed Description

Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file HstiAip.c.

Function Documentation

◆ HstiAipGetInfo()

EFI_STATUS EFIAPI HstiAipGetInfo ( IN EFI_ADAPTER_INFORMATION_PROTOCOL This,
IN EFI_GUID InformationType,
OUT VOID **  InformationBlock,
OUT UINTN InformationBlockSize 
)

Returns the current state information for the adapter.

This function returns information of type InformationType from the adapter. If an adapter does not support the requested informational type, then EFI_UNSUPPORTED is returned. If an adapter does not contain Information for the requested InformationType, it fills InformationBlockSize with 0 and returns EFI_NOT_FOUND.

Parameters
[in]ThisA pointer to the EFI_ADAPTER_INFORMATION_PROTOCOL instance.
[in]InformationTypeA pointer to an EFI_GUID that defines the contents of InformationBlock.
[out]InformationBlockThe service returns a pointer to the buffer with the InformationBlock structure which contains details about the data specific to InformationType.
[out]InformationBlockSizeThe driver returns the size of the InformationBlock in bytes.
Return values
EFI_SUCCESSThe InformationType information was retrieved.
EFI_UNSUPPORTEDThe InformationType is not known.
EFI_NOT_FOUNDInformation is not available for the requested information type.
EFI_DEVICE_ERRORThe device reported an error.
EFI_OUT_OF_RESOURCESThe request could not be completed due to a lack of resources.
EFI_INVALID_PARAMETERThis is NULL.
EFI_INVALID_PARAMETERInformationBlock is NULL.
EFI_INVALID_PARAMETERInformationBlockSize is NULL.

Definition at line 37 of file HstiAip.c.

◆ HstiAipGetSupportedTypes()

EFI_STATUS EFIAPI HstiAipGetSupportedTypes ( IN EFI_ADAPTER_INFORMATION_PROTOCOL This,
OUT EFI_GUID **  InfoTypesBuffer,
OUT UINTN InfoTypesBufferCount 
)

Get a list of supported information types for this instance of the protocol.

This function returns a list of InformationType GUIDs that are supported on an adapter with this instance of EFI_ADAPTER_INFORMATION_PROTOCOL. The list is returned in InfoTypesBuffer, and the number of GUID pointers in InfoTypesBuffer is returned in InfoTypesBufferCount.

Parameters
[in]ThisA pointer to the EFI_ADAPTER_INFORMATION_PROTOCOL instance.
[out]InfoTypesBufferA pointer to the array of InformationType GUIDs that are supported by This.
[out]InfoTypesBufferCountA pointer to the number of GUIDs present in InfoTypesBuffer.
Return values
EFI_SUCCESSThe list of information type GUIDs that are supported on this adapter was returned in InfoTypesBuffer. The number of information type GUIDs was returned in InfoTypesBufferCount.
EFI_INVALID_PARAMETERThis is NULL.
EFI_INVALID_PARAMETERInfoTypesBuffer is NULL.
EFI_INVALID_PARAMETERInfoTypesBufferCount is NULL.
EFI_OUT_OF_RESOURCESThere is not enough pool memory to store the results.

Definition at line 153 of file HstiAip.c.

◆ HstiAipSetInfo()

EFI_STATUS EFIAPI HstiAipSetInfo ( IN EFI_ADAPTER_INFORMATION_PROTOCOL This,
IN EFI_GUID InformationType,
IN VOID *  InformationBlock,
IN UINTN  InformationBlockSize 
)

Sets state information for an adapter.

This function sends information of type InformationType for an adapter. If an adapter does not support the requested information type, then EFI_UNSUPPORTED is returned.

Parameters
[in]ThisA pointer to the EFI_ADAPTER_INFORMATION_PROTOCOL instance.
[in]InformationTypeA pointer to an EFI_GUID that defines the contents of InformationBlock.
[in]InformationBlockA pointer to the InformationBlock structure which contains details about the data specific to InformationType.
[in]InformationBlockSizeThe size of the InformationBlock in bytes.
Return values
EFI_SUCCESSThe information was received and interpreted successfully.
EFI_UNSUPPORTEDThe InformationType is not known.
EFI_DEVICE_ERRORThe device reported an error.
EFI_INVALID_PARAMETERThis is NULL.
EFI_INVALID_PARAMETERInformationBlock is NULL.
EFI_WRITE_PROTECTEDThe InformationType cannot be modified using EFI_ADAPTER_INFO_SET_INFO().

Definition at line 88 of file HstiAip.c.

Variable Documentation

◆ mAdapterInformationProtocol

EFI_ADAPTER_INFORMATION_PROTOCOL mAdapterInformationProtocol
Initial value:
= {
}
EFI_STATUS EFIAPI HstiAipGetSupportedTypes(IN EFI_ADAPTER_INFORMATION_PROTOCOL *This, OUT EFI_GUID **InfoTypesBuffer, OUT UINTN *InfoTypesBufferCount)
Definition: HstiAip.c:153
EFI_STATUS EFIAPI HstiAipGetInfo(IN EFI_ADAPTER_INFORMATION_PROTOCOL *This, IN EFI_GUID *InformationType, OUT VOID **InformationBlock, OUT UINTN *InformationBlockSize)
Definition: HstiAip.c:37
EFI_STATUS EFIAPI HstiAipSetInfo(IN EFI_ADAPTER_INFORMATION_PROTOCOL *This, IN EFI_GUID *InformationType, IN VOID *InformationBlock, IN UINTN InformationBlockSize)
Definition: HstiAip.c:88

Definition at line 173 of file HstiAip.c.