TianoCore EDK2 master
Loading...
Searching...
No Matches
PxeBaseCodeCallBack.h
Go to the documentation of this file.
1
13#ifndef _PXE_BASE_CODE_CALLBACK_H_
14#define _PXE_BASE_CODE_CALLBACK_H_
15
19#define EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL_GUID \
20 { \
21 0x245dca21, 0xfb7b, 0x11d3, {0x8f, 0x01, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
22 }
23
27#define EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL_REVISION 0x00010000
28
32#define EFI_PXE_BASE_CODE_CALLBACK_INTERFACE_REVISION \
33 EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL_REVISION
34
39
44
48typedef enum {
49 EFI_PXE_BASE_CODE_FUNCTION_FIRST,
50 EFI_PXE_BASE_CODE_FUNCTION_DHCP,
51 EFI_PXE_BASE_CODE_FUNCTION_DISCOVER,
52 EFI_PXE_BASE_CODE_FUNCTION_MTFTP,
53 EFI_PXE_BASE_CODE_FUNCTION_UDP_WRITE,
54 EFI_PXE_BASE_CODE_FUNCTION_UDP_READ,
55 EFI_PXE_BASE_CODE_FUNCTION_ARP,
56 EFI_PXE_BASE_CODE_FUNCTION_IGMP,
57 EFI_PXE_BASE_CODE_PXE_FUNCTION_LAST
59
63typedef enum {
64 EFI_PXE_BASE_CODE_CALLBACK_STATUS_FIRST,
65 EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE,
66 EFI_PXE_BASE_CODE_CALLBACK_STATUS_ABORT,
67 EFI_PXE_BASE_CODE_CALLBACK_STATUS_LAST
69
97typedef
99(EFIAPI *EFI_PXE_CALLBACK)(
102 IN BOOLEAN Received,
103 IN UINT32 PacketLen,
105 );
106
117 UINT64 Revision;
118 EFI_PXE_CALLBACK Callback;
119};
120
121extern EFI_GUID gEfiPxeBaseCodeCallbackProtocolGuid;
122
123#endif
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
EFI_PXE_BASE_CODE_CALLBACK_STATUS(EFIAPI * EFI_PXE_CALLBACK)(IN EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL *This, IN EFI_PXE_BASE_CODE_FUNCTION Function, IN BOOLEAN Received, IN UINT32 PacketLen, IN EFI_PXE_BASE_CODE_PACKET *Packet OPTIONAL)
EFI_PXE_BASE_CODE_FUNCTION
EFI_PXE_BASE_CODE_CALLBACK_STATUS
EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL EFI_PXE_BASE_CODE_CALLBACK
Definition: Base.h:213