Changeset 99404 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/IScsiDxe/IScsiImpl.h
- Timestamp:
- Apr 14, 2023 3:17:44 PM (20 months ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-145445 /vendor/edk2/current 103735-103757,103769-103776,129194-156846
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/IScsiDxe/IScsiImpl.h
r80721 r99404 36 36 #include <Protocol/NetworkInterfaceIdentifier.h> 37 37 38 #include <Library/HiiLib.h> 39 #include <Library/UefiHiiServicesLib.h> 40 #include <Library/DevicePathLib.h> 41 #include <Library/DebugLib.h> 38 #include <Library/BaseCryptLib.h> 42 39 #include <Library/BaseLib.h> 43 40 #include <Library/BaseMemoryLib.h> 41 #include <Library/DebugLib.h> 42 #include <Library/DevicePathLib.h> 43 #include <Library/HiiLib.h> 44 44 #include <Library/MemoryAllocationLib.h> 45 #include <Library/NetLib.h> 45 46 #include <Library/PrintLib.h> 47 #include <Library/SafeIntLib.h> 48 #include <Library/TcpIoLib.h> 46 49 #include <Library/UefiBootServicesTableLib.h> 50 #include <Library/UefiHiiServicesLib.h> 51 #include <Library/UefiLib.h> 47 52 #include <Library/UefiRuntimeServicesTableLib.h> 48 #include <Library/UefiLib.h>49 #include <Library/DpcLib.h>50 #include <Library/NetLib.h>51 #include <Library/TcpIoLib.h>52 #include <Library/BaseCryptLib.h>53 53 54 54 #include <Guid/MdeModuleHii.h> … … 68 68 #include "IScsiConfig.h" 69 69 70 #define ISCSI_AUTH_INITIAL 71 72 #define ISCSI_SESSION_SIGNATURE 70 #define ISCSI_AUTH_INITIAL 0 71 72 #define ISCSI_SESSION_SIGNATURE SIGNATURE_32 ('I', 'S', 'S', 'N') 73 73 /// 74 74 /// 10 seconds 75 75 /// 76 #define ISCSI_GET_MAPPING_TIMEOUT 100000000U76 #define ISCSI_GET_MAPPING_TIMEOUT 100000000U 77 77 /// 78 78 /// 3 seconds … … 81 81 82 82 struct _ISCSI_SESSION { 83 UINT32 Signature;84 85 ISCSI_DRIVER_DATA *Private;86 ISCSI_ATTEMPT_CONFIG_NVDATA *ConfigData;87 88 UINT8 AuthType;83 UINT32 Signature; 84 85 ISCSI_DRIVER_DATA *Private; 86 ISCSI_ATTEMPT_CONFIG_NVDATA *ConfigData; 87 88 UINT8 AuthType; 89 89 union { 90 ISCSI_CHAP_AUTH_DATA 90 ISCSI_CHAP_AUTH_DATA CHAP; 91 91 } AuthData; 92 92 93 UINT8 State;94 95 UINT8 Isid[6];96 UINT16 Tsih;97 98 UINT32 CmdSN;99 UINT32 ExpCmdSN;100 UINT32 MaxCmdSN;101 102 UINT32 InitiatorTaskTag;103 UINT16 NextCid;104 105 LIST_ENTRY Conns;106 UINT32 NumConns;107 108 LIST_ENTRY TcbList;93 UINT8 State; 94 95 UINT8 Isid[6]; 96 UINT16 Tsih; 97 98 UINT32 CmdSN; 99 UINT32 ExpCmdSN; 100 UINT32 MaxCmdSN; 101 102 UINT32 InitiatorTaskTag; 103 UINT16 NextCid; 104 105 LIST_ENTRY Conns; 106 UINT32 NumConns; 107 108 LIST_ENTRY TcbList; 109 109 110 110 // 111 111 // Session-wide parameters 112 112 // 113 UINT16 TargetPortalGroupTag;114 UINT32 MaxConnections;115 BOOLEAN InitialR2T;116 BOOLEAN ImmediateData;117 UINT32 MaxBurstLength;118 UINT32 FirstBurstLength;119 UINT32 DefaultTime2Wait;120 UINT32 DefaultTime2Retain;121 UINT16 MaxOutstandingR2T;122 BOOLEAN DataPDUInOrder;123 BOOLEAN DataSequenceInOrder;124 UINT8 ErrorRecoveryLevel;113 UINT16 TargetPortalGroupTag; 114 UINT32 MaxConnections; 115 BOOLEAN InitialR2T; 116 BOOLEAN ImmediateData; 117 UINT32 MaxBurstLength; 118 UINT32 FirstBurstLength; 119 UINT32 DefaultTime2Wait; 120 UINT32 DefaultTime2Retain; 121 UINT16 MaxOutstandingR2T; 122 BOOLEAN DataPDUInOrder; 123 BOOLEAN DataSequenceInOrder; 124 UINT8 ErrorRecoveryLevel; 125 125 }; 126 126 … … 128 128 129 129 struct _ISCSI_CONNECTION { 130 UINT32 Signature;131 LIST_ENTRY Link;132 133 EFI_EVENT TimeoutEvent;134 135 ISCSI_SESSION *Session;136 137 UINT8 State;138 UINT8 CurrentStage;139 UINT8 NextStage;140 141 UINT8 AuthStep;142 143 BOOLEAN PartialReqSent;144 BOOLEAN PartialRspRcvd;145 146 BOOLEAN TransitInitiated;147 BOOLEAN ParamNegotiated;148 149 UINT16 Cid;150 UINT32 ExpStatSN;130 UINT32 Signature; 131 LIST_ENTRY Link; 132 133 EFI_EVENT TimeoutEvent; 134 135 ISCSI_SESSION *Session; 136 137 UINT8 State; 138 UINT8 CurrentStage; 139 UINT8 NextStage; 140 141 UINT8 AuthStep; 142 143 BOOLEAN PartialReqSent; 144 BOOLEAN PartialRspRcvd; 145 146 BOOLEAN TransitInitiated; 147 BOOLEAN ParamNegotiated; 148 149 UINT16 Cid; 150 UINT32 ExpStatSN; 151 151 152 152 // 153 153 // Queues... 154 154 // 155 NET_BUF_QUEUE RspQue;156 157 BOOLEAN Ipv6Flag;158 TCP_IO TcpIo;155 NET_BUF_QUEUE RspQue; 156 157 BOOLEAN Ipv6Flag; 158 TCP_IO TcpIo; 159 159 160 160 // 161 161 // Connection-only parameters. 162 162 // 163 UINT32 MaxRecvDataSegmentLength;164 ISCSI_DIGEST_TYPE HeaderDigest;165 ISCSI_DIGEST_TYPE DataDigest;163 UINT32 MaxRecvDataSegmentLength; 164 ISCSI_DIGEST_TYPE HeaderDigest; 165 ISCSI_DIGEST_TYPE DataDigest; 166 166 }; 167 167 168 #define ISCSI_DRIVER_DATA_SIGNATURE SIGNATURE_32 ('I', 'S', 'D', 'A')168 #define ISCSI_DRIVER_DATA_SIGNATURE SIGNATURE_32 ('I', 'S', 'D', 'A') 169 169 170 170 #define ISCSI_DRIVER_DATA_FROM_EXT_SCSI_PASS_THRU(PassThru) \ … … 185 185 186 186 struct _ISCSI_DRIVER_DATA { 187 UINT32 Signature;188 EFI_HANDLE Image;189 EFI_HANDLE Controller;190 ISCSI_PRIVATE_PROTOCOL IScsiIdentifier;191 192 EFI_EVENT ExitBootServiceEvent;193 194 EFI_EXT_SCSI_PASS_THRU_PROTOCOL IScsiExtScsiPassThru;195 EFI_EXT_SCSI_PASS_THRU_MODE ExtScsiPassThruMode;196 EFI_HANDLE ExtScsiPassThruHandle;197 EFI_DEVICE_PATH_PROTOCOL *DevicePath;198 EFI_HANDLE ChildHandle;199 ISCSI_SESSION *Session;187 UINT32 Signature; 188 EFI_HANDLE Image; 189 EFI_HANDLE Controller; 190 ISCSI_PRIVATE_PROTOCOL IScsiIdentifier; 191 192 EFI_EVENT ExitBootServiceEvent; 193 194 EFI_EXT_SCSI_PASS_THRU_PROTOCOL IScsiExtScsiPassThru; 195 EFI_EXT_SCSI_PASS_THRU_MODE ExtScsiPassThruMode; 196 EFI_HANDLE ExtScsiPassThruHandle; 197 EFI_DEVICE_PATH_PROTOCOL *DevicePath; 198 EFI_HANDLE ChildHandle; 199 ISCSI_SESSION *Session; 200 200 }; 201 201
Note:
See TracChangeset
for help on using the changeset viewer.