]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/iScsi/IScsiDhcp.h
UEFI HII: Merge UEFI HII support changes from branch.
[mirror_edk2.git] / MdeModulePkg / Universal / iScsi / IScsiDhcp.h
1 /*++
2
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
10 Intel Corporation.
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 "Tiano.h"
24 //#include EFI_PROTOCOL_CONSUMER (Dhcp4)
25 #include "protocol\Dhcp4.h"
26
27 #define DHCP4_TAG_PARA_LIST 55
28 #define DHCP4_TAG_NETMASK 1
29 #define DHCP4_TAG_ROUTER 3
30 #define DHCP4_TAG_DNS 6
31 #define DHCP4_TAG_SERVER_ID 54
32 #define DHCP4_TAG_ROOT_PATH 17
33 #define ISCSI_ROOT_PATH_ID "iscsi:"
34 #define ISCSI_ROOT_PATH_FIELD_DELIMITER ':'
35
36 enum {
37 RP_FIELD_IDX_SERVERNAME = 0,
38 RP_FIELD_IDX_PROTOCOL,
39 RP_FIELD_IDX_PORT,
40 RP_FIELD_IDX_LUN,
41 RP_FIELD_IDX_TARGETNAME,
42 RP_FIELD_IDX_MAX
43 };
44
45 typedef struct _ISCSI_ROOT_PATH_FIELD {
46 CHAR8 *Str;
47 UINT8 Len;
48 } ISCSI_ROOT_PATH_FIELD;
49
50 EFI_STATUS
51 IScsiDoDhcp (
52 IN EFI_HANDLE Image,
53 IN EFI_HANDLE Controller,
54 IN ISCSI_SESSION_CONFIG_DATA *ConfigData
55 );
56
57 #endif