3 Copyright (c) 2007 Intel Corporation. All rights reserved
4 This software and associated documentation (if any) is furnished
5 under a license and may only be used or copied in accordance
6 with the terms of the license. Except as permitted by such
7 license, no part of this software or documentation may be
8 reproduced, stored in a retrieval system, or transmitted in any
9 form or by any means without the express written consent of
21 #ifndef _ISCSI_CONFIG_H_
22 #define _ISCSI_CONFIG_H_
25 //#include "EfiDriverLib.h"
27 #include <Library/FrameworkHiiLib.h>
28 #include <Protocol/FrameworkFormBrowser.h>
29 #include <Protocol/FrameworkFormCallback.h>
30 #include <Library/FrameworkIfrSupportLib.h>
31 #include <Library/DebugLib.h>
32 #include <Library/BaseLib.h>
33 //#include "EfiPrintLib.h"
34 //#include EFI_PROTOCOL_DEFINITION (Hii)
35 //#include EFI_PROTOCOL_DEFINITION (FormBrowser)
36 //#include EFI_PROTOCOL_DEFINITION (FormCallback)
38 #include <Library/NetLib.h>
39 #include "IScsiConfigNVDataStruc.h"
41 extern UINT8 IScsiConfigDxeBin
[];
42 extern UINT8 iSCSIStrings
[];
44 #define ISCSI_INITATOR_NAME_VAR_NAME L"I_NAME"
46 #define ISCSI_CONFIG_VAR_ATTR (EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE)
48 #define ISCSI_FORM_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('I', 'f', 'c', 'i')
50 #define ISCSI_FORM_CALLBACK_INFO_FROM_FORM_CALLBACK(Callback) \
53 ISCSI_FORM_CALLBACK_INFO, \
55 ISCSI_FORM_CALLBACK_INFO_SIGNATURE \
60 typedef struct _ISCSI_MAC_INFO
{
65 typedef struct _ISCSI_DEVICE_LIST
{
67 ISCSI_MAC_INFO MacInfo
[1];
72 typedef struct _ISCSI_CONFIG_FORM_ENTRY
{
74 EFI_HANDLE Controller
;
76 STRING_REF PortTitleToken
;
77 STRING_REF PortTitleHelpToken
;
79 ISCSI_SESSION_CONFIG_NVDATA SessionConfigData
;
80 ISCSI_CHAP_AUTH_CONFIG_NVDATA AuthConfigData
;
81 } ISCSI_CONFIG_FORM_ENTRY
;
83 typedef struct _ISCSI_FORM_CALLBACK_INFO
{
85 EFI_HANDLE CallbackHandle
;
86 EFI_FORM_CALLBACK_PROTOCOL FormCallback
;
89 EFI_HII_HANDLE RegisteredHandle
;
90 EFI_HII_PROTOCOL
*Hii
;
91 ISCSI_CONFIG_FORM_ENTRY
*Current
;
92 } ISCSI_FORM_CALLBACK_INFO
;
95 IScsiConfigUpdateForm (
96 IN EFI_HANDLE DriverBindingHandle
,
97 IN EFI_HANDLE Controller
,
102 IScsiConfigFormInit (
103 IN EFI_HANDLE DriverBindingHandle
107 IScsiConfigFormUnload (
108 IN EFI_HANDLE DriverBindingHandle