]>
Commit | Line | Data |
---|---|---|
6a690e23 | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2007 Intel Corporation. All rights reserved\r | |
4 | This software and associated documentation (if any) is furnished\r | |
5 | under a license and may only be used or copied in accordance\r | |
6 | with the terms of the license. Except as permitted by such\r | |
7 | license, no part of this software or documentation may be\r | |
8 | reproduced, stored in a retrieval system, or transmitted in any\r | |
9 | form or by any means without the express written consent of\r | |
10 | Intel Corporation.\r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | IScsiDhcp.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | --*/\r | |
19 | \r | |
20 | #ifndef _ISCSI_DHCP_H_\r | |
21 | #define _ISCSI_DHCP_H_\r | |
22 | \r | |
93e3992d | 23 | //#include "Tiano.h"\r |
24 | //#include EFI_PROTOCOL_CONSUMER (Dhcp4)\r | |
25 | #include "protocol\Dhcp4.h"\r | |
6a690e23 | 26 | \r |
27 | #define DHCP4_TAG_PARA_LIST 55\r | |
28 | #define DHCP4_TAG_NETMASK 1\r | |
29 | #define DHCP4_TAG_ROUTER 3\r | |
30 | #define DHCP4_TAG_DNS 6\r | |
31 | #define DHCP4_TAG_SERVER_ID 54\r | |
32 | #define DHCP4_TAG_ROOT_PATH 17\r | |
33 | #define ISCSI_ROOT_PATH_ID "iscsi:"\r | |
34 | #define ISCSI_ROOT_PATH_FIELD_DELIMITER ':'\r | |
35 | \r | |
36 | enum {\r | |
37 | RP_FIELD_IDX_SERVERNAME = 0,\r | |
38 | RP_FIELD_IDX_PROTOCOL,\r | |
39 | RP_FIELD_IDX_PORT,\r | |
40 | RP_FIELD_IDX_LUN,\r | |
41 | RP_FIELD_IDX_TARGETNAME,\r | |
42 | RP_FIELD_IDX_MAX\r | |
43 | };\r | |
44 | \r | |
45 | typedef struct _ISCSI_ROOT_PATH_FIELD {\r | |
46 | CHAR8 *Str;\r | |
47 | UINT8 Len;\r | |
48 | } ISCSI_ROOT_PATH_FIELD;\r | |
49 | \r | |
50 | EFI_STATUS\r | |
51 | IScsiDoDhcp (\r | |
52 | IN EFI_HANDLE Image,\r | |
53 | IN EFI_HANDLE Controller,\r | |
54 | IN ISCSI_SESSION_CONFIG_DATA *ConfigData\r | |
55 | );\r | |
56 | \r | |
57 | #endif\r |