]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Protocol/PxeDhcp4CallBack/PxeDhcp4CallBack.h
Update Guid Value format.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Protocol / PxeDhcp4CallBack / PxeDhcp4CallBack.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 PxeDhcp4Callback.h\r
14\r
15Abstract:\r
16 EFI PXE DHCP4 Callback protocol definition.\r
17\r
18--*/\r
19\r
20#ifndef _PXE_DHCP4CALLBACK_H\r
21#define _PXE_DHCP4CALLBACK_H\r
22\r
23#include "..\PxeDhcp4\PxeDhcp4.h"\r
24\r
25//\r
26// GUID definition\r
27//\r
28\r
29#define EFI_PXE_DHCP4_CALLBACK_PROTOCOL_GUID \\r
7ccf38a3 30{ 0xc1544c01, 0x92a4, 0x4198, {0x8a, 0x84, 0x77, 0x85, 0x83, 0xc2, 0x36, 0x21} }\r
3eb9473e 31\r
32\r
33//\r
34// Revision number\r
35//\r
36\r
37#define EFI_PXE_DHCP4_CALLBACK_INTERFACE_REVISION 0x00010000\r
38\r
39//\r
40// Interface definition\r
41//\r
42\r
43EFI_FORWARD_DECLARATION (EFI_PXE_DHCP4_CALLBACK_PROTOCOL);\r
44\r
45typedef enum {\r
46 EFI_PXE_DHCP4_FUNCTION_FIRST,\r
47 EFI_PXE_DHCP4_FUNCTION_INIT,\r
48 EFI_PXE_DHCP4_FUNCTION_SELECT,\r
49 EFI_PXE_DHCP4_FUNCTION_RENEW,\r
50 EFI_PXE_DHCP4_FUNCTION_REBIND,\r
51 EFI_PXE_DHCP4_FUNCTION_LAST\r
52} EFI_PXE_DHCP4_FUNCTION;\r
53\r
54typedef enum {\r
55 EFI_PXE_DHCP4_CALLBACK_STATUS_FIRST,\r
56 EFI_PXE_DHCP4_CALLBACK_STATUS_ABORT,\r
57 EFI_PXE_DHCP4_CALLBACK_STATUS_IGNORE_ABORT,\r
58 EFI_PXE_DHCP4_CALLBACK_STATUS_KEEP_ABORT,\r
59 EFI_PXE_DHCP4_CALLBACK_STATUS_CONTINUE,\r
60 EFI_PXE_DHCP4_CALLBACK_STATUS_IGNORE_CONTINUE,\r
61 EFI_PXE_DHCP4_CALLBACK_STATUS_KEEP_CONTINUE,\r
62 EFI_PXE_DHCP4_CALLBACK_STATUS_LAST\r
63} EFI_PXE_DHCP4_CALLBACK_STATUS;\r
64\r
65typedef\r
66EFI_PXE_DHCP4_CALLBACK_STATUS\r
67(EFIAPI *EFI_PXE_DHCP4_CALLBACK) (\r
68 IN EFI_PXE_DHCP4_PROTOCOL *This,\r
69 IN EFI_PXE_DHCP4_FUNCTION Function,\r
70 IN UINT32 PacketLen,\r
71 IN DHCP4_PACKET *Packet OPTIONAL\r
72 );\r
73\r
9c092841 74struct _EFI_PXE_DHCP4_CALLBACK_PROTOCOL {\r
3eb9473e 75 UINT64 Revision;\r
76 EFI_PXE_DHCP4_CALLBACK Callback;\r
9c092841 77};\r
3eb9473e 78\r
79//\r
80// GUID declaration\r
81//\r
82\r
83extern EFI_GUID gEfiPxeDhcp4CallbackProtocolGuid;\r
84\r
85#endif /* _PXE_DHCP4CALLBACK_H */\r
86/* EOF - PxeDhcp4Callback.h */\r