]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/IScsiDxe/IScsiImpl.h
Fix a bug. iSCSI driver doesn’t follow driver model Start()/Stop() in case no configu...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / IScsiDxe / IScsiImpl.h
index 34847f52b8d3f24d4ce379f17ba667ffe68d4052..8c761f882c65f511b1a587ad12c85a431541ee9f 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   The header file of IScsiImpl.c.\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -17,12 +17,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <Uefi.h>\r
 \r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
 #include <Library/NetLib.h>\r
 #include <Library/PrintLib.h>\r
 #include <Library/UefiRuntimeServicesTableLib.h>\r
+\r
+#include <Guid/EventGroup.h>\r
+#include <Guid/Acpi.h>\r
+\r
 #include "IScsiCommon.h"\r
 #include "IScsiDriver.h"\r
-#include "IscsiInitiatorName.h"\r
+#include "IScsiInitiatorName.h"\r
 #include "ComponentName.h"\r
 #include "IScsiConfigNVDataStruc.h"\r
 #include "IScsiExtScsiPassThru.h"\r
@@ -35,7 +41,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "IScsiIbft.h"\r
 \r
 \r
-#define ISCSI_SESSION_SIGNATURE EFI_SIGNATURE_32 ('I', 'S', 'S', 'N')\r
+#define ISCSI_SESSION_SIGNATURE SIGNATURE_32 ('I', 'S', 'S', 'N')\r
 \r
 struct _ISCSI_SESSION {\r
   UINT32                    Signature;\r
@@ -47,15 +53,15 @@ struct _ISCSI_SESSION {
   UINTN                     InitiatorNameLength;\r
   UINT8                     State;\r
 \r
-  UINT8                     ISID[6];\r
-  UINT16                    TSIH;\r
+  UINT8                     Isid[6];\r
+  UINT16                    Tsih;\r
 \r
   UINT32                    CmdSN;\r
   UINT32                    ExpCmdSN;\r
   UINT32                    MaxCmdSN;\r
 \r
   UINT32                    InitiatorTaskTag;\r
-  UINT16                    NextCID;\r
+  UINT16                    NextCid;\r
 \r
   LIST_ENTRY                Conns;\r
   UINT32                    NumConns;\r
@@ -79,7 +85,7 @@ struct _ISCSI_SESSION {
   UINT8                     ErrorRecoveryLevel;\r
 };\r
 \r
-#define ISCSI_CONNECTION_SIGNATURE  EFI_SIGNATURE_32 ('I', 'S', 'C', 'N')\r
+#define ISCSI_CONNECTION_SIGNATURE  SIGNATURE_32 ('I', 'S', 'C', 'N')\r
 \r
 struct _ISCSI_CONNECTION {\r
   UINT32            Signature;\r
@@ -100,7 +106,7 @@ struct _ISCSI_CONNECTION {
 \r
   BOOLEAN           TransitInitiated;\r
 \r
-  UINT16            CID;\r
+  UINT16            Cid;\r
   UINT32            ExpStatSN;\r
 \r
   //\r
@@ -118,7 +124,7 @@ struct _ISCSI_CONNECTION {
   ISCSI_DIGEST_TYPE DataDigest;\r
 };\r
 \r
-#define ISCSI_DRIVER_DATA_SIGNATURE EFI_SIGNATURE_32 ('I', 'S', 'D', 'A')\r
+#define ISCSI_DRIVER_DATA_SIGNATURE SIGNATURE_32 ('I', 'S', 'D', 'A')\r
 \r
 #define ISCSI_DRIVER_DATA_FROM_EXT_SCSI_PASS_THRU(PassThru) \\r
   CR ( \\r
@@ -147,7 +153,7 @@ struct _ISCSI_DRIVER_DATA {
   EFI_HANDLE                      Image;\r
   EFI_HANDLE                      Controller;\r
   ISCSI_PRIVATE_PROTOCOL          IScsiIdentifier;\r
-\r
+  EFI_HANDLE                      ChildHandle;\r
   EFI_EVENT                       ExitBootServiceEvent;\r
 \r
   EFI_EXT_SCSI_PASS_THRU_PROTOCOL IScsiExtScsiPassThru;\r