TianoCore EDK2 master
|
#include "IScsiConfigNVDataStruc.h"
Go to the source code of this file.
Data Structures | |
struct | _ISCSI_ATTEMPT_CONFIG_NVDATA |
struct | HII_VENDOR_DEVICE_PATH |
struct | _ISCSI_FORM_CALLBACK_INFO |
Macros | |
#define | VAR_OFFSET(Field) ((UINT16) ((UINTN) &(((ISCSI_CONFIG_IFR_NVDATA *) 0)->Field))) |
#define | QUESTION_ID(Field) ((UINT16) (VAR_OFFSET (Field) + CONFIG_OPTION_OFFSET)) |
#define | DYNAMIC_ONE_OF_VAR_OFFSET VAR_OFFSET (Enabled) |
#define | DYNAMIC_ORDERED_LIST_QUESTION_ID QUESTION_ID (DynamicOrderedList) |
#define | DYNAMIC_ORDERED_LIST_VAR_OFFSET VAR_OFFSET (DynamicOrderedList) |
#define | ATTEMPT_DEL_QUESTION_ID QUESTION_ID (DeleteAttemptList) |
#define | ATTEMPT_DEL_VAR_OFFSET VAR_OFFSET (DeleteAttemptList) |
#define | ATTEMPT_ADD_QUESTION_ID QUESTION_ID (AddAttemptList) |
#define | ATTEMPT_ADD_VAR_OFFSET VAR_OFFSET (AddAttemptList) |
#define | ATTEMPT_MAC_ADDR_VAR_OFFSET VAR_OFFSET (ISCSIMacAddr) |
#define | ATTEMPT_ATTEMPT_NAME_QUESTION_ID QUESTION_ID (ISCSIAttemptName) |
#define | ATTEMPT_ATTEMPT_NAME_VAR_OFFSET VAR_OFFSET (ISCSIAttemptName) |
#define | ATTEMPT_BOOTENABLE_QUESTION_ID QUESTION_ID (ISCSIBootEnableList) |
#define | ATTEMPT_BOOTENABLE_VAR_OFFSET VAR_OFFSET (ISCSIBootEnableList) |
#define | ATTEMPT_ADDRESS_TYPE_QUESTION_ID QUESTION_ID (ISCSIIpAddressTypeList) |
#define | ATTEMPT_ADDRESS_TYPE_VAR_OFFSET VAR_OFFSET (ISCSIIpAddressTypeList) |
#define | ATTEMPT_CONNECT_RETRY_QUESTION_ID QUESTION_ID (ISCSIConnectRetry) |
#define | ATTEMPT_CONNECT_RETRY_VAR_OFFSET VAR_OFFSET (ISCSIConnectRetry) |
#define | ATTEMPT_CONNECT_TIMEOUT_QUESTION_ID QUESTION_ID (ISCSIConnectTimeout) |
#define | ATTEMPT_CONNECT_TIMEOUT_VAR_OFFSET VAR_OFFSET (ISCSIConnectTimeout) |
#define | ATTEMPT_ISID_QUESTION_ID QUESTION_ID (Keyword->ISCSIIsId) |
#define | ATTEMPT_ISID_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIIsId) |
#define | ATTEMPT_INITIATOR_VIA_DHCP_QUESTION_ID QUESTION_ID (ISCSIInitiatorInfoViaDHCP) |
#define | ATTEMPT_INITIATOR_VIA_DHCP_VAR_OFFSET VAR_OFFSET (ISCSIInitiatorInfoViaDHCP) |
#define | ATTEMPT_INITIATOR_IP_ADDRESS_QUESTION_ID QUESTION_ID (Keyword->ISCSIInitiatorIpAddress) |
#define | ATTEMPT_INITIATOR_IP_ADDRESS_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIInitiatorIpAddress) |
#define | ATTEMPT_INITIATOR_NET_MASK_QUESTION_ID QUESTION_ID (Keyword->ISCSIInitiatorNetmask) |
#define | ATTEMPT_INITIATOR_NET_MASK_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIInitiatorNetmask) |
#define | ATTEMPT_INITIATOR_GATE_WAY_QUESTION_ID QUESTION_ID (Keyword->ISCSIInitiatorGateway) |
#define | ATTEMPT_INITIATOR_GATE_WAY_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIInitiatorGateway) |
#define | ATTEMPT_TARGET_VIA_DHCP_QUESTION_ID QUESTION_ID (ISCSITargetInfoViaDHCP) |
#define | ATTEMPT_TARGET_VIA_DHCP_VAR_OFFSET VAR_OFFSET (ISCSITargetInfoViaDHCP) |
#define | ATTEMPT_TARGET_NAME_QUESTION_ID QUESTION_ID (Keyword->ISCSITargetName) |
#define | ATTEMPT_TARGET_NAME_VAR_OFFSET VAR_OFFSET (Keyword->ISCSITargetName) |
#define | ATTEMPT_TARGET_IP_ADDRESS_QUESTION_ID QUESTION_ID (Keyword->ISCSITargetIpAddress) |
#define | ATTEMPT_TARGET_IP_ADDRESS_VAR_OFFSET VAR_OFFSET (Keyword->ISCSITargetIpAddress) |
#define | ATTEMPT_TARGET_TCP_PORT_QUESTION_ID QUESTION_ID (ISCSITargetTcpPort) |
#define | ATTEMPT_TARGET_TCP_PORT_VAR_OFFSET VAR_OFFSET (ISCSITargetTcpPort) |
#define | ATTEMPT_LUN_QUESTION_ID QUESTION_ID (Keyword->ISCSILun) |
#define | ATTEMPT_LUN_VAR_OFFSET VAR_OFFSET (Keyword->ISCSILun) |
#define | ATTEMPT_AUTHENTICATION_METHOD_QUESTION_ID QUESTION_ID (ISCSIAuthenticationMethod) |
#define | ATTEMPT_AUTHENTICATION_METHOD_VAR_OFFSET VAR_OFFSET (ISCSIAuthenticationMethod) |
#define | ATTEMPT_CHARTYPE_QUESTION_ID QUESTION_ID (ISCSIChapType) |
#define | ATTEMPT_CHARTYPE_VAR_OFFSET VAR_OFFSET (ISCSIChapType) |
#define | ATTEMPT_CHAR_USER_NAME_QUESTION_ID QUESTION_ID (Keyword->ISCSIChapUsername) |
#define | ATTEMPT_CHAR_USER_NAME_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIChapUsername) |
#define | ATTEMPT_CHAR_SECRET_QUESTION_ID QUESTION_ID (Keyword->ISCSIChapSecret) |
#define | ATTEMPT_CHAR_SECRET_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIChapSecret) |
#define | ATTEMPT_CHAR_REVERSE_USER_NAME_QUESTION_ID QUESTION_ID (Keyword->ISCSIReverseChapUsername) |
#define | ATTEMPT_CHAR_REVERSE_USER_NAME_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIReverseChapUsername) |
#define | ATTEMPT_CHAR_REVERSE_SECRET_QUESTION_ID QUESTION_ID (Keyword->ISCSIReverseChapSecret) |
#define | ATTEMPT_CHAR_REVERSE_SECRET_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIReverseChapSecret) |
#define | ISCSI_INITATOR_NAME_VAR_NAME L"I_NAME" |
#define | ISCSI_CONFIG_VAR_ATTR (EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE) |
#define | ISCSI_FORM_CALLBACK_INFO_SIGNATURE SIGNATURE_32 ('I', 'f', 'c', 'i') |
#define | ISCSI_FORM_CALLBACK_INFO_FROM_FORM_CALLBACK(Callback) |
Typedefs | |
typedef struct _ISCSI_FORM_CALLBACK_INFO | ISCSI_FORM_CALLBACK_INFO |
Functions | |
EFI_STATUS | IScsiCreateOpCode (IN UINT16 StartLabelNumber, OUT VOID **StartOpCodeHandle, OUT EFI_IFR_GUID_LABEL **StartLabel, OUT VOID **EndOpCodeHandle, OUT EFI_IFR_GUID_LABEL **EndLabel) |
EFI_STATUS | IScsiConfigFormInit (IN EFI_HANDLE DriverBindingHandle) |
EFI_STATUS | IScsiConfigFormUnload (IN EFI_HANDLE DriverBindingHandle) |
VOID | IScsiConfigUpdateAttempt (VOID) |
ISCSI_ATTEMPT_CONFIG_NVDATA * | IScsiConfigGetAttemptByConfigIndex (IN UINT8 AttemptConfigIndex) |
Variables | |
UINT8 | IScsiConfigVfrBin [] |
UINT8 | IScsiDxeStrings [] |
ISCSI_FORM_CALLBACK_INFO * | mCallbackInfo |
The header file of functions for configuring or getting the parameters relating to iSCSI.
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file IScsiConfig.h.
#define ATTEMPT_ADD_QUESTION_ID QUESTION_ID (AddAttemptList) |
Definition at line 32 of file IScsiConfig.h.
#define ATTEMPT_ADD_VAR_OFFSET VAR_OFFSET (AddAttemptList) |
Definition at line 33 of file IScsiConfig.h.
#define ATTEMPT_ADDRESS_TYPE_QUESTION_ID QUESTION_ID (ISCSIIpAddressTypeList) |
Definition at line 43 of file IScsiConfig.h.
#define ATTEMPT_ADDRESS_TYPE_VAR_OFFSET VAR_OFFSET (ISCSIIpAddressTypeList) |
Definition at line 44 of file IScsiConfig.h.
#define ATTEMPT_ATTEMPT_NAME_QUESTION_ID QUESTION_ID (ISCSIAttemptName) |
Definition at line 39 of file IScsiConfig.h.
#define ATTEMPT_ATTEMPT_NAME_VAR_OFFSET VAR_OFFSET (ISCSIAttemptName) |
Definition at line 40 of file IScsiConfig.h.
#define ATTEMPT_AUTHENTICATION_METHOD_QUESTION_ID QUESTION_ID (ISCSIAuthenticationMethod) |
Definition at line 69 of file IScsiConfig.h.
#define ATTEMPT_AUTHENTICATION_METHOD_VAR_OFFSET VAR_OFFSET (ISCSIAuthenticationMethod) |
Definition at line 70 of file IScsiConfig.h.
#define ATTEMPT_BOOTENABLE_QUESTION_ID QUESTION_ID (ISCSIBootEnableList) |
Definition at line 41 of file IScsiConfig.h.
#define ATTEMPT_BOOTENABLE_VAR_OFFSET VAR_OFFSET (ISCSIBootEnableList) |
Definition at line 42 of file IScsiConfig.h.
#define ATTEMPT_CHAR_REVERSE_SECRET_QUESTION_ID QUESTION_ID (Keyword->ISCSIReverseChapSecret) |
Definition at line 79 of file IScsiConfig.h.
#define ATTEMPT_CHAR_REVERSE_SECRET_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIReverseChapSecret) |
Definition at line 80 of file IScsiConfig.h.
#define ATTEMPT_CHAR_REVERSE_USER_NAME_QUESTION_ID QUESTION_ID (Keyword->ISCSIReverseChapUsername) |
Definition at line 77 of file IScsiConfig.h.
#define ATTEMPT_CHAR_REVERSE_USER_NAME_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIReverseChapUsername) |
Definition at line 78 of file IScsiConfig.h.
#define ATTEMPT_CHAR_SECRET_QUESTION_ID QUESTION_ID (Keyword->ISCSIChapSecret) |
Definition at line 75 of file IScsiConfig.h.
#define ATTEMPT_CHAR_SECRET_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIChapSecret) |
Definition at line 76 of file IScsiConfig.h.
#define ATTEMPT_CHAR_USER_NAME_QUESTION_ID QUESTION_ID (Keyword->ISCSIChapUsername) |
Definition at line 73 of file IScsiConfig.h.
#define ATTEMPT_CHAR_USER_NAME_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIChapUsername) |
Definition at line 74 of file IScsiConfig.h.
#define ATTEMPT_CHARTYPE_QUESTION_ID QUESTION_ID (ISCSIChapType) |
Definition at line 71 of file IScsiConfig.h.
#define ATTEMPT_CHARTYPE_VAR_OFFSET VAR_OFFSET (ISCSIChapType) |
Definition at line 72 of file IScsiConfig.h.
#define ATTEMPT_CONNECT_RETRY_QUESTION_ID QUESTION_ID (ISCSIConnectRetry) |
Definition at line 45 of file IScsiConfig.h.
#define ATTEMPT_CONNECT_RETRY_VAR_OFFSET VAR_OFFSET (ISCSIConnectRetry) |
Definition at line 46 of file IScsiConfig.h.
#define ATTEMPT_CONNECT_TIMEOUT_QUESTION_ID QUESTION_ID (ISCSIConnectTimeout) |
Definition at line 47 of file IScsiConfig.h.
#define ATTEMPT_CONNECT_TIMEOUT_VAR_OFFSET VAR_OFFSET (ISCSIConnectTimeout) |
Definition at line 48 of file IScsiConfig.h.
#define ATTEMPT_DEL_QUESTION_ID QUESTION_ID (DeleteAttemptList) |
Definition at line 30 of file IScsiConfig.h.
#define ATTEMPT_DEL_VAR_OFFSET VAR_OFFSET (DeleteAttemptList) |
Definition at line 31 of file IScsiConfig.h.
#define ATTEMPT_INITIATOR_GATE_WAY_QUESTION_ID QUESTION_ID (Keyword->ISCSIInitiatorGateway) |
Definition at line 57 of file IScsiConfig.h.
#define ATTEMPT_INITIATOR_GATE_WAY_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIInitiatorGateway) |
Definition at line 58 of file IScsiConfig.h.
#define ATTEMPT_INITIATOR_IP_ADDRESS_QUESTION_ID QUESTION_ID (Keyword->ISCSIInitiatorIpAddress) |
Definition at line 53 of file IScsiConfig.h.
#define ATTEMPT_INITIATOR_IP_ADDRESS_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIInitiatorIpAddress) |
Definition at line 54 of file IScsiConfig.h.
#define ATTEMPT_INITIATOR_NET_MASK_QUESTION_ID QUESTION_ID (Keyword->ISCSIInitiatorNetmask) |
Definition at line 55 of file IScsiConfig.h.
#define ATTEMPT_INITIATOR_NET_MASK_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIInitiatorNetmask) |
Definition at line 56 of file IScsiConfig.h.
#define ATTEMPT_INITIATOR_VIA_DHCP_QUESTION_ID QUESTION_ID (ISCSIInitiatorInfoViaDHCP) |
Definition at line 51 of file IScsiConfig.h.
#define ATTEMPT_INITIATOR_VIA_DHCP_VAR_OFFSET VAR_OFFSET (ISCSIInitiatorInfoViaDHCP) |
Definition at line 52 of file IScsiConfig.h.
#define ATTEMPT_ISID_QUESTION_ID QUESTION_ID (Keyword->ISCSIIsId) |
Definition at line 49 of file IScsiConfig.h.
#define ATTEMPT_ISID_VAR_OFFSET VAR_OFFSET (Keyword->ISCSIIsId) |
Definition at line 50 of file IScsiConfig.h.
#define ATTEMPT_LUN_QUESTION_ID QUESTION_ID (Keyword->ISCSILun) |
Definition at line 67 of file IScsiConfig.h.
#define ATTEMPT_LUN_VAR_OFFSET VAR_OFFSET (Keyword->ISCSILun) |
Definition at line 68 of file IScsiConfig.h.
#define ATTEMPT_MAC_ADDR_VAR_OFFSET VAR_OFFSET (ISCSIMacAddr) |
Definition at line 38 of file IScsiConfig.h.
#define ATTEMPT_TARGET_IP_ADDRESS_QUESTION_ID QUESTION_ID (Keyword->ISCSITargetIpAddress) |
Definition at line 63 of file IScsiConfig.h.
#define ATTEMPT_TARGET_IP_ADDRESS_VAR_OFFSET VAR_OFFSET (Keyword->ISCSITargetIpAddress) |
Definition at line 64 of file IScsiConfig.h.
#define ATTEMPT_TARGET_NAME_QUESTION_ID QUESTION_ID (Keyword->ISCSITargetName) |
Definition at line 61 of file IScsiConfig.h.
#define ATTEMPT_TARGET_NAME_VAR_OFFSET VAR_OFFSET (Keyword->ISCSITargetName) |
Definition at line 62 of file IScsiConfig.h.
#define ATTEMPT_TARGET_TCP_PORT_QUESTION_ID QUESTION_ID (ISCSITargetTcpPort) |
Definition at line 65 of file IScsiConfig.h.
#define ATTEMPT_TARGET_TCP_PORT_VAR_OFFSET VAR_OFFSET (ISCSITargetTcpPort) |
Definition at line 66 of file IScsiConfig.h.
#define ATTEMPT_TARGET_VIA_DHCP_QUESTION_ID QUESTION_ID (ISCSITargetInfoViaDHCP) |
Definition at line 59 of file IScsiConfig.h.
#define ATTEMPT_TARGET_VIA_DHCP_VAR_OFFSET VAR_OFFSET (ISCSITargetInfoViaDHCP) |
Definition at line 60 of file IScsiConfig.h.
#define DYNAMIC_ONE_OF_VAR_OFFSET VAR_OFFSET (Enabled) |
Definition at line 27 of file IScsiConfig.h.
#define DYNAMIC_ORDERED_LIST_QUESTION_ID QUESTION_ID (DynamicOrderedList) |
Definition at line 28 of file IScsiConfig.h.
#define DYNAMIC_ORDERED_LIST_VAR_OFFSET VAR_OFFSET (DynamicOrderedList) |
Definition at line 29 of file IScsiConfig.h.
#define ISCSI_CONFIG_VAR_ATTR (EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE) |
Definition at line 84 of file IScsiConfig.h.
#define ISCSI_FORM_CALLBACK_INFO_FROM_FORM_CALLBACK | ( | Callback | ) |
Definition at line 88 of file IScsiConfig.h.
#define ISCSI_FORM_CALLBACK_INFO_SIGNATURE SIGNATURE_32 ('I', 'f', 'c', 'i') |
Definition at line 86 of file IScsiConfig.h.
#define ISCSI_INITATOR_NAME_VAR_NAME L"I_NAME" |
Definition at line 82 of file IScsiConfig.h.
#define QUESTION_ID | ( | Field | ) | ((UINT16) (VAR_OFFSET (Field) + CONFIG_OPTION_OFFSET)) |
Definition at line 24 of file IScsiConfig.h.
#define VAR_OFFSET | ( | Field | ) | ((UINT16) ((UINTN) &(((ISCSI_CONFIG_IFR_NVDATA *) 0)->Field))) |
Definition at line 21 of file IScsiConfig.h.
typedef struct _ISCSI_FORM_CALLBACK_INFO ISCSI_FORM_CALLBACK_INFO |
Definition at line 15 of file IScsiConfig.h.
EFI_STATUS IScsiConfigFormInit | ( | IN EFI_HANDLE | DriverBindingHandle | ) |
Initialize the iSCSI configuration form.
[in] | DriverBindingHandle | The iSCSI driverbinding handle. |
EFI_SUCCESS | The iSCSI configuration form is initialized. |
EFI_OUT_OF_RESOURCES | Failed to allocate memory. |
Definition at line 3806 of file IScsiConfig.c.
EFI_STATUS IScsiConfigFormUnload | ( | IN EFI_HANDLE | DriverBindingHandle | ) |
Unload the iSCSI configuration form, this includes: delete all the iSCSI configuration entries, uninstall the form callback protocol, and free the resources used.
[in] | DriverBindingHandle | The iSCSI driverbinding handle. |
EFI_SUCCESS | The iSCSI configuration form is unloaded. |
Others | Failed to unload the form. |
Definition at line 3878 of file IScsiConfig.c.
ISCSI_ATTEMPT_CONFIG_NVDATA * IScsiConfigGetAttemptByConfigIndex | ( | IN UINT8 | AttemptConfigIndex | ) |
Get the attempt config data from global structure by the ConfigIndex.
[in] | AttemptConfigIndex | The unique index indicates the attempt. |
NULL | The attempt configuration data can not be found. |
Get the attempt config data from global structure by the ConfigIndex.
[in] | AttemptConfigIndex | The unique index indicates the attempt. |
NULL | The attempt configuration data cannot be found. |
Definition at line 391 of file IScsiConfig.c.
VOID IScsiConfigUpdateAttempt | ( | VOID | ) |
Update the MAIN form to display the configured attempts.
Definition at line 1884 of file IScsiConfig.c.
EFI_STATUS IScsiCreateOpCode | ( | IN UINT16 | StartLabelNumber, |
OUT VOID ** | StartOpCodeHandle, | ||
OUT EFI_IFR_GUID_LABEL ** | StartLabel, | ||
OUT VOID ** | EndOpCodeHandle, | ||
OUT EFI_IFR_GUID_LABEL ** | EndLabel | ||
) |
Create Hii Extend Label OpCode as the start opcode and end opcode. It is a help function.
[in] | StartLabelNumber | The number of start label. |
[out] | StartOpCodeHandle | Points to the start opcode handle. |
[out] | StartLabel | Points to the created start opcode. |
[out] | EndOpCodeHandle | Points to the end opcode handle. |
[out] | EndLabel | Points to the created end opcode. |
EFI_OUT_OF_RESOURCES | Do not have sufficient resource to finish this operation. |
EFI_INVALID_PARAMETER | Any input parameter is invalid. |
EFI_SUCCESS | The operation is completed successfully. |
Definition at line 1796 of file IScsiConfig.c.
|
extern |
Definition at line 74 of file PlatDriOverrideDxe.c.