TianoCore EDK2 master
Loading...
Searching...
No Matches
PxeBcSupport.h
Go to the documentation of this file.
1
10#ifndef __EFI_PXEBC_SUPPORT_H__
11#define __EFI_PXEBC_SUPPORT_H__
12
13#define ICMP_DEST_UNREACHABLE 3
14#define ICMP_SOURCE_QUENCH 4
15#define ICMP_REDIRECT 5
16#define ICMP_ECHO_REQUEST 8
17#define ICMP_TIME_EXCEEDED 11
18#define ICMP_PARAMETER_PROBLEM 12
19
33 PXEBC_PRIVATE_DATA *Private,
34 EFI_IP_ADDRESS *StationIp OPTIONAL,
35 EFI_IP_ADDRESS *SubnetMask OPTIONAL
36 );
37
45VOID
46EFIAPI
48 IN EFI_EVENT Event,
49 IN VOID *Context
50 );
51
64BOOLEAN
67 IN EFI_IPv4_ADDRESS *Ip4Addr,
68 OUT EFI_MAC_ADDRESS *MacAddress
69 );
70
78VOID
79EFIAPI
81 IN EFI_EVENT Event,
82 IN VOID *Context
83 );
84
92VOID
93EFIAPI
95 IN EFI_EVENT Event,
96 IN VOID *Context
97 );
98
106VOID
107EFIAPI
109 IN EFI_EVENT Event,
110 IN VOID *Context
111 );
112
132 IN EFI_UDP4_PROTOCOL *Udp4,
133 IN EFI_IPv4_ADDRESS *StationIp,
134 IN EFI_IPv4_ADDRESS *SubnetMask,
135 IN EFI_IPv4_ADDRESS *Gateway,
136 IN OUT UINT16 *SrcPort,
137 IN BOOLEAN DoNotFragment,
138 IN UINT8 Ttl,
139 IN UINT8 ToS
140 );
141
155 IN EFI_UDP6_PROTOCOL *Udp6,
156 IN EFI_IPv6_ADDRESS *StationIp,
157 IN OUT UINT16 *SrcPort
158 );
159
180 IN EFI_UDP4_PROTOCOL *Udp4,
181 IN EFI_UDP4_SESSION_DATA *Session,
182 IN EFI_EVENT TimeoutEvent,
183 IN EFI_IPv4_ADDRESS *Gateway OPTIONAL,
184 IN UINTN *HeaderSize OPTIONAL,
185 IN VOID *HeaderPtr OPTIONAL,
186 IN UINTN *BufferSize,
187 IN VOID *BufferPtr
188 );
189
209 IN EFI_UDP6_PROTOCOL *Udp6,
210 IN EFI_UDP6_SESSION_DATA *Session,
211 IN EFI_EVENT TimeoutEvent,
212 IN UINTN *HeaderSize OPTIONAL,
213 IN VOID *HeaderPtr OPTIONAL,
214 IN UINTN *BufferSize,
215 IN VOID *BufferPtr
216 );
217
229BOOLEAN
232 IN VOID *Session,
233 IN UINT16 OpFlags
234 );
235
248BOOLEAN
251 IN VOID *Session,
252 IN OUT EFI_IP_ADDRESS *DestIp,
253 IN UINT16 OpFlags
254 );
255
268BOOLEAN
271 IN VOID *Session,
272 IN OUT UINT16 *DestPort,
273 IN UINT16 OpFlags
274 );
275
288BOOLEAN
291 IN VOID *Session,
292 IN OUT EFI_IP_ADDRESS *SrcIp,
293 IN UINT16 OpFlags
294 );
295
308BOOLEAN
311 IN VOID *Session,
312 IN OUT UINT16 *SrcPort,
313 IN UINT16 OpFlags
314 );
315
337 IN EFI_UDP4_PROTOCOL *Udp4,
340 IN EFI_EVENT TimeoutEvent,
341 IN UINT16 OpFlags,
342 IN BOOLEAN *IsDone,
343 OUT BOOLEAN *IsMatched,
344 IN OUT EFI_IP_ADDRESS *DestIp OPTIONAL,
345 IN OUT EFI_PXE_BASE_CODE_UDP_PORT *DestPort OPTIONAL,
346 IN OUT EFI_IP_ADDRESS *SrcIp OPTIONAL,
347 IN OUT EFI_PXE_BASE_CODE_UDP_PORT *SrcPort OPTIONAL
348 );
349
371 IN EFI_UDP6_PROTOCOL *Udp6,
374 IN EFI_EVENT TimeoutEvent,
375 IN UINT16 OpFlags,
376 IN BOOLEAN *IsDone,
377 OUT BOOLEAN *IsMatched,
378 IN OUT EFI_IP_ADDRESS *DestIp OPTIONAL,
379 IN OUT EFI_PXE_BASE_CODE_UDP_PORT *DestPort OPTIONAL,
380 IN OUT EFI_IP_ADDRESS *SrcIp OPTIONAL,
381 IN OUT EFI_PXE_BASE_CODE_UDP_PORT *SrcPort OPTIONAL
382 );
383
390VOID
393 );
394
401VOID
404 );
405
414VOID
416 IN UINTN Number,
417 IN UINT8 *Buffer,
418 IN INTN Length
419 );
420
432UINTN
434 IN UINTN Number,
435 IN UINT8 *Buffer,
436 IN UINTN BufferSize
437 );
438
451 OUT UINT8 *Digit,
452 IN CHAR16 Char
453 );
454
461VOID
463 IN PXEBC_PRIVATE_DATA *Private
464 );
465
476 IN EFI_HANDLE ControllerHandle
477 );
478
489 IN EFI_HANDLE ControllerHandle
490 );
491
492#endif
UINT64 UINTN
INT64 INTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
BOOLEAN PxeBcCheckByIpFilter(IN EFI_PXE_BASE_CODE_MODE *Mode, IN VOID *Session, IN UINT16 OpFlags)
Definition: PxeBcSupport.c:840
VOID PxeBcShowIp6Addr(IN EFI_IPv6_ADDRESS *Ip)
VOID CalcElapsedTime(IN PXEBC_PRIVATE_DATA *Private)
VOID EFIAPI PxeBcArpCacheUpdate(IN EFI_EVENT Event, IN VOID *Context)
Definition: PxeBcSupport.c:180
EFI_STATUS PxeBcUdp4Read(IN EFI_UDP4_PROTOCOL *Udp4, IN EFI_UDP4_COMPLETION_TOKEN *Token, IN EFI_PXE_BASE_CODE_MODE *Mode, IN EFI_EVENT TimeoutEvent, IN UINT16 OpFlags, IN BOOLEAN *IsDone, OUT BOOLEAN *IsMatched, IN OUT EFI_IP_ADDRESS *DestIp OPTIONAL, IN OUT EFI_PXE_BASE_CODE_UDP_PORT *DestPort OPTIONAL, IN OUT EFI_IP_ADDRESS *SrcIp OPTIONAL, IN OUT EFI_PXE_BASE_CODE_UDP_PORT *SrcPort OPTIONAL)
EFI_STATUS PxeBcUniHexToUint8(OUT UINT8 *Digit, IN CHAR16 Char)
EFI_STATUS PxeBcUdp4Write(IN EFI_UDP4_PROTOCOL *Udp4, IN EFI_UDP4_SESSION_DATA *Session, IN EFI_EVENT TimeoutEvent, IN EFI_IPv4_ADDRESS *Gateway OPTIONAL, IN UINTN *HeaderSize OPTIONAL, IN VOID *HeaderPtr OPTIONAL, IN UINTN *BufferSize, IN VOID *BufferPtr)
Definition: PxeBcSupport.c:639
EFI_STATUS PxeBcFlushStationIp(PXEBC_PRIVATE_DATA *Private, EFI_IP_ADDRESS *StationIp OPTIONAL, EFI_IP_ADDRESS *SubnetMask OPTIONAL)
Definition: PxeBcSupport.c:24
EFI_STATUS PxeBcUdp6Write(IN EFI_UDP6_PROTOCOL *Udp6, IN EFI_UDP6_SESSION_DATA *Session, IN EFI_EVENT TimeoutEvent, IN UINTN *HeaderSize OPTIONAL, IN VOID *HeaderPtr OPTIONAL, IN UINTN *BufferSize, IN VOID *BufferPtr)
Definition: PxeBcSupport.c:745
BOOLEAN PxeBcFilterBySrcIp(IN EFI_PXE_BASE_CODE_MODE *Mode, IN VOID *Session, IN OUT EFI_IP_ADDRESS *SrcIp, IN UINT16 OpFlags)
VOID PxeBcShowIp4Addr(IN EFI_IPv4_ADDRESS *Ip)
BOOLEAN PxeBcCheckByDestIp(IN EFI_PXE_BASE_CODE_MODE *Mode, IN VOID *Session, IN OUT EFI_IP_ADDRESS *DestIp, IN UINT16 OpFlags)
Definition: PxeBcSupport.c:929
UINTN PxeBcUintnToAscDec(IN UINTN Number, IN UINT8 *Buffer, IN UINTN BufferSize)
EFI_STATUS PxeBcUdp6Read(IN EFI_UDP6_PROTOCOL *Udp6, IN EFI_UDP6_COMPLETION_TOKEN *Token, IN EFI_PXE_BASE_CODE_MODE *Mode, IN EFI_EVENT TimeoutEvent, IN UINT16 OpFlags, IN BOOLEAN *IsDone, OUT BOOLEAN *IsMatched, IN OUT EFI_IP_ADDRESS *DestIp OPTIONAL, IN OUT EFI_PXE_BASE_CODE_UDP_PORT *DestPort OPTIONAL, IN OUT EFI_IP_ADDRESS *SrcIp OPTIONAL, IN OUT EFI_PXE_BASE_CODE_UDP_PORT *SrcPort OPTIONAL)
VOID EFIAPI PxeBcIcmp6ErrorUpdate(IN EFI_EVENT Event, IN VOID *Context)
Definition: PxeBcSupport.c:493
BOOLEAN PxeBcFilterBySrcPort(IN EFI_PXE_BASE_CODE_MODE *Mode, IN VOID *Session, IN OUT UINT16 *SrcPort, IN UINT16 OpFlags)
EFI_HANDLE PxeBcGetNicByIp6Children(IN EFI_HANDLE ControllerHandle)
Definition: PxeBcDriver.c:76
VOID PxeBcUintnToAscDecWithFormat(IN UINTN Number, IN UINT8 *Buffer, IN INTN Length)
EFI_STATUS PxeBcConfigUdp6Write(IN EFI_UDP6_PROTOCOL *Udp6, IN EFI_IPv6_ADDRESS *StationIp, IN OUT UINT16 *SrcPort)
Definition: PxeBcSupport.c:583
VOID EFIAPI PxeBcCommonNotify(IN EFI_EVENT Event, IN VOID *Context)
Definition: PxeBcSupport.c:123
BOOLEAN PxeBcCheckByDestPort(IN EFI_PXE_BASE_CODE_MODE *Mode, IN VOID *Session, IN OUT UINT16 *DestPort, IN UINT16 OpFlags)
Definition: PxeBcSupport.c:991
VOID EFIAPI PxeBcIcmpErrorUpdate(IN EFI_EVENT Event, IN VOID *Context)
Definition: PxeBcSupport.c:361
BOOLEAN PxeBcCheckArpCache(IN EFI_PXE_BASE_CODE_MODE *Mode, IN EFI_IPv4_ADDRESS *Ip4Addr, OUT EFI_MAC_ADDRESS *MacAddress)
Definition: PxeBcSupport.c:144
EFI_STATUS PxeBcConfigUdp4Write(IN EFI_UDP4_PROTOCOL *Udp4, IN EFI_IPv4_ADDRESS *StationIp, IN EFI_IPv4_ADDRESS *SubnetMask, IN EFI_IPv4_ADDRESS *Gateway, IN OUT UINT16 *SrcPort, IN BOOLEAN DoNotFragment, IN UINT8 Ttl, IN UINT8 ToS)
Definition: PxeBcSupport.c:519
EFI_HANDLE PxeBcGetNicByIp4Children(IN EFI_HANDLE ControllerHandle)
Definition: PxeBcDriver.c:41
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_EVENT
Definition: UefiBaseType.h:37
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33