-/*++\r
+/** @file\r
+ The header file of IScsiDhcp.\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation\r
+Copyright (c) 2004 - 2008, Intel Corporation.<BR>\r
All rights reserved. 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
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
-Module Name:\r
-\r
- IScsiDhcp.h\r
-\r
-Abstract:\r
-\r
---*/\r
+**/\r
\r
#ifndef _ISCSI_DHCP_H_\r
#define _ISCSI_DHCP_H_\r
#define ISCSI_ROOT_PATH_ID "iscsi:"\r
#define ISCSI_ROOT_PATH_FIELD_DELIMITER ':'\r
\r
-enum {\r
+typedef enum {\r
RP_FIELD_IDX_SERVERNAME = 0,\r
RP_FIELD_IDX_PROTOCOL,\r
RP_FIELD_IDX_PORT,\r
RP_FIELD_IDX_LUN,\r
RP_FIELD_IDX_TARGETNAME,\r
RP_FIELD_IDX_MAX\r
-};\r
+} RP_FIELD_IDX;\r
\r
typedef struct _ISCSI_ROOT_PATH_FIELD {\r
CHAR8 *Str;\r
UINT8 Len;\r
} ISCSI_ROOT_PATH_FIELD;\r
\r
+/**\r
+ Parse the DHCP ACK to get the address configuration and DNS information.\r
+ \r
+ @param[in] Image The handle of the driver image.\r
+ @param[in] Controller The handle of the controller;\r
+ @param[in] ConfigData The session configuration data.\r
+\r
+ @retval EFI_SUCCESS The DNS information is got from the DHCP ACK.\r
+ @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
+ @retval Others Other errors as indicated.\r
+**/\r
EFI_STATUS\r
IScsiDoDhcp (\r
IN EFI_HANDLE Image,\r