]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Network/IScsiDxe/IScsiDhcp.h
edk2/MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.h:
[mirror_edk2.git] / MdeModulePkg / Universal / Network / IScsiDxe / IScsiDhcp.h
1 /*++
2
3 Copyright (c) 2004 - 2008, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 IScsiDhcp.h
15
16 Abstract:
17
18 --*/
19
20 #ifndef _ISCSI_DHCP_H_
21 #define _ISCSI_DHCP_H_
22
23 #include <Protocol/Dhcp4.h>
24
25 #define DHCP4_TAG_PARA_LIST 55
26 #define DHCP4_TAG_NETMASK 1
27 #define DHCP4_TAG_ROUTER 3
28 #define DHCP4_TAG_DNS 6
29 #define DHCP4_TAG_SERVER_ID 54
30 #define DHCP4_TAG_ROOT_PATH 17
31 #define ISCSI_ROOT_PATH_ID "iscsi:"
32 #define ISCSI_ROOT_PATH_FIELD_DELIMITER ':'
33
34 enum {
35 RP_FIELD_IDX_SERVERNAME = 0,
36 RP_FIELD_IDX_PROTOCOL,
37 RP_FIELD_IDX_PORT,
38 RP_FIELD_IDX_LUN,
39 RP_FIELD_IDX_TARGETNAME,
40 RP_FIELD_IDX_MAX
41 };
42
43 typedef struct _ISCSI_ROOT_PATH_FIELD {
44 CHAR8 *Str;
45 UINT8 Len;
46 } ISCSI_ROOT_PATH_FIELD;
47
48 EFI_STATUS
49 IScsiDoDhcp (
50 IN EFI_HANDLE Image,
51 IN EFI_HANDLE Controller,
52 IN ISCSI_SESSION_CONFIG_DATA *ConfigData
53 );
54
55 #endif