iPXE
PxeBaseCode.h
Go to the documentation of this file.
1 /** @file
2  EFI PXE Base Code Protocol definitions, which is used to access PXE-compatible
3  devices for network access and network booting.
4 
5 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
6 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
7 Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
8 
9 SPDX-License-Identifier: BSD-2-Clause-Patent
10 
11  @par Revision Reference:
12  This Protocol is introduced in EFI Specification 1.10.
13 
14 **/
15 
16 #ifndef __PXE_BASE_CODE_PROTOCOL_H__
17 #define __PXE_BASE_CODE_PROTOCOL_H__
18 
19 FILE_LICENCE ( BSD2_PATENT );
20 
21 ///
22 /// PXE Base Code protocol.
23 ///
24 #define EFI_PXE_BASE_CODE_PROTOCOL_GUID \
25  { \
26  0x03c4e603, 0xac28, 0x11d3, {0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d } \
27  }
28 
30 
31 ///
32 /// Protocol defined in EFI1.1.
33 ///
35 
36 ///
37 /// Default IP TTL and ToS.
38 ///
39 #define DEFAULT_TTL 16
40 #define DEFAULT_ToS 0
41 
42 ///
43 /// ICMP error format.
44 ///
45 typedef struct {
49  union {
53  struct {
56  } Echo;
57  } u;
58  UINT8 Data[494];
60 
61 ///
62 /// TFTP error format.
63 ///
64 typedef struct {
66  CHAR8 ErrorString[127];
68 
69 ///
70 /// IP Receive Filter definitions.
71 ///
72 #define EFI_PXE_BASE_CODE_MAX_IPCNT 8
73 
74 ///
75 /// IP Receive Filter structure.
76 ///
77 typedef struct {
83 
84 #define EFI_PXE_BASE_CODE_IP_FILTER_STATION_IP 0x0001
85 #define EFI_PXE_BASE_CODE_IP_FILTER_BROADCAST 0x0002
86 #define EFI_PXE_BASE_CODE_IP_FILTER_PROMISCUOUS 0x0004
87 #define EFI_PXE_BASE_CODE_IP_FILTER_PROMISCUOUS_MULTICAST 0x0008
88 
89 ///
90 /// ARP cache entries.
91 ///
92 typedef struct {
96 
97 ///
98 /// ARP route table entries.
99 ///
100 typedef struct {
105 
106 //
107 // UDP definitions
108 //
110 
111 #define EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_SRC_IP 0x0001
112 #define EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_SRC_PORT 0x0002
113 #define EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_DEST_IP 0x0004
114 #define EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_DEST_PORT 0x0008
115 #define EFI_PXE_BASE_CODE_UDP_OPFLAGS_USE_FILTER 0x0010
116 #define EFI_PXE_BASE_CODE_UDP_OPFLAGS_MAY_FRAGMENT 0x0020
117 
118 //
119 // Discover() definitions
120 //
121 #define EFI_PXE_BASE_CODE_BOOT_TYPE_BOOTSTRAP 0
122 #define EFI_PXE_BASE_CODE_BOOT_TYPE_MS_WINNT_RIS 1
123 #define EFI_PXE_BASE_CODE_BOOT_TYPE_INTEL_LCM 2
124 #define EFI_PXE_BASE_CODE_BOOT_TYPE_DOSUNDI 3
125 #define EFI_PXE_BASE_CODE_BOOT_TYPE_NEC_ESMPRO 4
126 #define EFI_PXE_BASE_CODE_BOOT_TYPE_IBM_WSoD 5
127 #define EFI_PXE_BASE_CODE_BOOT_TYPE_IBM_LCCM 6
128 #define EFI_PXE_BASE_CODE_BOOT_TYPE_CA_UNICENTER_TNG 7
129 #define EFI_PXE_BASE_CODE_BOOT_TYPE_HP_OPENVIEW 8
130 #define EFI_PXE_BASE_CODE_BOOT_TYPE_ALTIRIS_9 9
131 #define EFI_PXE_BASE_CODE_BOOT_TYPE_ALTIRIS_10 10
132 #define EFI_PXE_BASE_CODE_BOOT_TYPE_ALTIRIS_11 11
133 #define EFI_PXE_BASE_CODE_BOOT_TYPE_NOT_USED_12 12
134 #define EFI_PXE_BASE_CODE_BOOT_TYPE_REDHAT_INSTALL 13
135 #define EFI_PXE_BASE_CODE_BOOT_TYPE_REDHAT_BOOT 14
136 #define EFI_PXE_BASE_CODE_BOOT_TYPE_REMBO 15
137 #define EFI_PXE_BASE_CODE_BOOT_TYPE_BEOBOOT 16
138 //
139 // 17 through 32767 are reserved
140 // 32768 through 65279 are for vendor use
141 // 65280 through 65534 are reserved
142 //
143 #define EFI_PXE_BASE_CODE_BOOT_TYPE_PXETEST 65535
144 
145 #define EFI_PXE_BASE_CODE_BOOT_LAYER_MASK 0x7FFF
146 #define EFI_PXE_BASE_CODE_BOOT_LAYER_INITIAL 0x0000
147 
148 //
149 // PXE Tag definition that identifies the processor
150 // and programming environment of the client system.
151 // These identifiers are defined by IETF:
152 // http://www.ietf.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xml
153 //
154 #if defined (MDE_CPU_IA32)
155 #define EFI_PXE_CLIENT_SYSTEM_ARCHITECTURE 0x0006
156 #elif defined (MDE_CPU_X64)
157 #define EFI_PXE_CLIENT_SYSTEM_ARCHITECTURE 0x0007
158 #elif defined (MDE_CPU_ARM)
159 #define EFI_PXE_CLIENT_SYSTEM_ARCHITECTURE 0x000A
160 #elif defined (MDE_CPU_AARCH64)
161 #define EFI_PXE_CLIENT_SYSTEM_ARCHITECTURE 0x000B
162 #elif defined (MDE_CPU_RISCV64)
163 #define EFI_PXE_CLIENT_SYSTEM_ARCHITECTURE 0x001B
164 #elif defined (MDE_CPU_LOONGARCH64)
165 #define EFI_PXE_CLIENT_SYSTEM_ARCHITECTURE 0x0027
166 #endif
167 
168 ///
169 /// Discover() server list structure.
170 ///
171 typedef struct {
177 
178 ///
179 /// Discover() information override structure.
180 ///
181 typedef struct {
190 
191 ///
192 /// TFTP opcode definitions.
193 ///
194 typedef enum {
205 
206 ///
207 /// MTFTP information. This information is required
208 /// to start or join a multicast TFTP session. It is also required to
209 /// perform the "get file size" and "read directory" operations of MTFTP.
210 ///
211 typedef struct {
218 
219 ///
220 /// DHCPV4 Packet structure.
221 ///
222 typedef struct {
230  UINT8 BootpCiAddr[4];
231  UINT8 BootpYiAddr[4];
232  UINT8 BootpSiAddr[4];
233  UINT8 BootpGiAddr[4];
234  UINT8 BootpHwAddr[16];
235  UINT8 BootpSrvName[64];
236  UINT8 BootpBootFile[128];
238  UINT8 DhcpOptions[56];
240 
241 ///
242 /// DHCPV6 Packet structure.
243 ///
244 typedef struct {
247  UINT8 DhcpOptions[1024];
249 
250 ///
251 /// Packet structure.
252 ///
253 typedef union {
254  UINT8 Raw[1472];
258 
259 //
260 // PXE Base Code Mode structure
261 //
262 #define EFI_PXE_BASE_CODE_MAX_ARP_ENTRIES 8
263 #define EFI_PXE_BASE_CODE_MAX_ROUTE_ENTRIES 8
264 
265 ///
266 /// EFI_PXE_BASE_CODE_MODE.
267 /// The data values in this structure are read-only and
268 /// are updated by the code that produces the
269 /// EFI_PXE_BASE_CODE_PROTOCOL functions.
270 ///
271 typedef struct {
307 
308 //
309 // PXE Base Code Interface Function definitions
310 //
311 
312 /**
313  Enables the use of the PXE Base Code Protocol functions.
314 
315  This function enables the use of the PXE Base Code Protocol functions. If the
316  Started field of the EFI_PXE_BASE_CODE_MODE structure is already TRUE, then
317  EFI_ALREADY_STARTED will be returned. If UseIpv6 is TRUE, then IPv6 formatted
318  addresses will be used in this session. If UseIpv6 is FALSE, then IPv4 formatted
319  addresses will be used in this session. If UseIpv6 is TRUE, and the Ipv6Supported
320  field of the EFI_PXE_BASE_CODE_MODE structure is FALSE, then EFI_UNSUPPORTED will
321  be returned. If there is not enough memory or other resources to start the PXE
322  Base Code Protocol, then EFI_OUT_OF_RESOURCES will be returned. Otherwise, the
323  PXE Base Code Protocol will be started, and all of the fields of the EFI_PXE_BASE_CODE_MODE
324  structure will be initialized as follows:
325  StartedSet to TRUE.
326  Ipv6SupportedUnchanged.
327  Ipv6AvailableUnchanged.
328  UsingIpv6Set to UseIpv6.
329  BisSupportedUnchanged.
330  BisDetectedUnchanged.
331  AutoArpSet to TRUE.
332  SendGUIDSet to FALSE.
333  TTLSet to DEFAULT_TTL.
334  ToSSet to DEFAULT_ToS.
335  DhcpCompletedSet to FALSE.
336  ProxyOfferReceivedSet to FALSE.
337  StationIpSet to an address of all zeros.
338  SubnetMaskSet to a subnet mask of all zeros.
339  DhcpDiscoverZero-filled.
340  DhcpAckZero-filled.
341  ProxyOfferZero-filled.
342  PxeDiscoverValidSet to FALSE.
343  PxeDiscoverZero-filled.
344  PxeReplyValidSet to FALSE.
345  PxeReplyZero-filled.
346  PxeBisReplyValidSet to FALSE.
347  PxeBisReplyZero-filled.
348  IpFilterSet the Filters field to 0 and the IpCnt field to 0.
349  ArpCacheEntriesSet to 0.
350  ArpCacheZero-filled.
351  RouteTableEntriesSet to 0.
352  RouteTableZero-filled.
353  IcmpErrorReceivedSet to FALSE.
354  IcmpErrorZero-filled.
355  TftpErroReceivedSet to FALSE.
356  TftpErrorZero-filled.
357  MakeCallbacksSet to TRUE if the PXE Base Code Callback Protocol is available.
358  Set to FALSE if the PXE Base Code Callback Protocol is not available.
359 
360  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
361  @param UseIpv6 Specifies the type of IP addresses that are to be used during the session
362  that is being started. Set to TRUE for IPv6 addresses, and FALSE for
363  IPv4 addresses.
364 
365  @retval EFI_SUCCESS The PXE Base Code Protocol was started.
366  @retval EFI_DEVICE_ERROR The network device encountered an error during this oper
367  @retval EFI_UNSUPPORTED UseIpv6 is TRUE, but the Ipv6Supported field of the
368  EFI_PXE_BASE_CODE_MODE structure is FALSE.
369  @retval EFI_ALREADY_STARTED The PXE Base Code Protocol is already in the started state.
370  @retval EFI_INVALID_PARAMETER The This parameter is NULL or does not point to a valid
371  EFI_PXE_BASE_CODE_PROTOCOL structure.
372  @retval EFI_OUT_OF_RESOURCES Could not allocate enough memory or other resources to start the
373  PXE Base Code Protocol.
374 
375 **/
376 typedef
380  IN BOOLEAN UseIpv6
381  );
382 
383 /**
384  Disables the use of the PXE Base Code Protocol functions.
385 
386  This function stops all activity on the network device. All the resources allocated
387  in Start() are released, the Started field of the EFI_PXE_BASE_CODE_MODE structure is
388  set to FALSE and EFI_SUCCESS is returned. If the Started field of the EFI_PXE_BASE_CODE_MODE
389  structure is already FALSE, then EFI_NOT_STARTED will be returned.
390 
391  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
392 
393  @retval EFI_SUCCESS The PXE Base Code Protocol was stopped.
394  @retval EFI_NOT_STARTED The PXE Base Code Protocol is already in the stopped state.
395  @retval EFI_INVALID_PARAMETER The This parameter is NULL or does not point to a valid
396  EFI_PXE_BASE_CODE_PROTOCOL structure.
397  @retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
398 
399 **/
400 typedef
404  );
405 
406 /**
407  Attempts to complete a DHCPv4 D.O.R.A. (discover / offer / request / acknowledge) or DHCPv6
408  S.A.R.R (solicit / advertise / request / reply) sequence.
409 
410  This function attempts to complete the DHCP sequence. If this sequence is completed,
411  then EFI_SUCCESS is returned, and the DhcpCompleted, ProxyOfferReceived, StationIp,
412  SubnetMask, DhcpDiscover, DhcpAck, and ProxyOffer fields of the EFI_PXE_BASE_CODE_MODE
413  structure are filled in.
414  If SortOffers is TRUE, then the cached DHCP offer packets will be sorted before
415  they are tried. If SortOffers is FALSE, then the cached DHCP offer packets will
416  be tried in the order in which they are received. Please see the Preboot Execution
417  Environment (PXE) Specification for additional details on the implementation of DHCP.
418  This function can take at least 31 seconds to timeout and return control to the
419  caller. If the DHCP sequence does not complete, then EFI_TIMEOUT will be returned.
420  If the Callback Protocol does not return EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE,
421  then the DHCP sequence will be stopped and EFI_ABORTED will be returned.
422 
423  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
424  @param SortOffers TRUE if the offers received should be sorted. Set to FALSE to try the
425  offers in the order that they are received.
426 
427  @retval EFI_SUCCESS Valid DHCP has completed.
428  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
429  @retval EFI_INVALID_PARAMETER The This parameter is NULL or does not point to a valid
430  EFI_PXE_BASE_CODE_PROTOCOL structure.
431  @retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
432  @retval EFI_OUT_OF_RESOURCES Could not allocate enough memory to complete the DHCP Protocol.
433  @retval EFI_ABORTED The callback function aborted the DHCP Protocol.
434  @retval EFI_TIMEOUT The DHCP Protocol timed out.
435  @retval EFI_ICMP_ERROR An ICMP error packet was received during the DHCP session.
436  @retval EFI_NO_RESPONSE Valid PXE offer was not received.
437 
438 **/
439 typedef
443  IN BOOLEAN SortOffers
444  );
445 
446 /**
447  Attempts to complete the PXE Boot Server and/or boot image discovery sequence.
448 
449  This function attempts to complete the PXE Boot Server and/or boot image discovery
450  sequence. If this sequence is completed, then EFI_SUCCESS is returned, and the
451  PxeDiscoverValid, PxeDiscover, PxeReplyReceived, and PxeReply fields of the
452  EFI_PXE_BASE_CODE_MODE structure are filled in. If UseBis is TRUE, then the
453  PxeBisReplyReceived and PxeBisReply fields of the EFI_PXE_BASE_CODE_MODE structure
454  will also be filled in. If UseBis is FALSE, then PxeBisReplyValid will be set to FALSE.
455  In the structure referenced by parameter Info, the PXE Boot Server list, SrvList[],
456  has two uses: It is the Boot Server IP address list used for unicast discovery
457  (if the UseUCast field is TRUE), and it is the list used for Boot Server verification
458  (if the MustUseList field is TRUE). Also, if the MustUseList field in that structure
459  is TRUE and the AcceptAnyResponse field in the SrvList[] array is TRUE, any Boot
460  Server reply of that type will be accepted. If the AcceptAnyResponse field is
461  FALSE, only responses from Boot Servers with matching IP addresses will be accepted.
462  This function can take at least 10 seconds to timeout and return control to the
463  caller. If the Discovery sequence does not complete, then EFI_TIMEOUT will be
464  returned. Please see the Preboot Execution Environment (PXE) Specification for
465  additional details on the implementation of the Discovery sequence.
466  If the Callback Protocol does not return EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE,
467  then the Discovery sequence is stopped and EFI_ABORTED will be returned.
468 
469  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
470  @param Type The type of bootstrap to perform.
471  @param Layer The pointer to the boot server layer number to discover, which must be
472  PXE_BOOT_LAYER_INITIAL when a new server type is being
473  discovered.
474  @param UseBis TRUE if Boot Integrity Services are to be used. FALSE otherwise.
475  @param Info The pointer to a data structure that contains additional information on the
476  type of discovery operation that is to be performed.
477 
478  @retval EFI_SUCCESS The Discovery sequence has been completed.
479  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
480  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
481  @retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
482  @retval EFI_OUT_OF_RESOURCES Could not allocate enough memory to complete Discovery.
483  @retval EFI_ABORTED The callback function aborted the Discovery sequence.
484  @retval EFI_TIMEOUT The Discovery sequence timed out.
485  @retval EFI_ICMP_ERROR An ICMP error packet was received during the PXE discovery
486  session.
487 
488 **/
489 typedef
493  IN UINT16 Type,
494  IN UINT16 *Layer,
495  IN BOOLEAN UseBis,
497  );
498 
499 /**
500  Used to perform TFTP and MTFTP services.
501 
502  This function is used to perform TFTP and MTFTP services. This includes the
503  TFTP operations to get the size of a file, read a directory, read a file, and
504  write a file. It also includes the MTFTP operations to get the size of a file,
505  read a directory, and read a file. The type of operation is specified by Operation.
506  If the callback function that is invoked during the TFTP/MTFTP operation does
507  not return EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE, then EFI_ABORTED will
508  be returned.
509  For read operations, the return data will be placed in the buffer specified by
510  BufferPtr. If BufferSize is too small to contain the entire downloaded file,
511  then EFI_BUFFER_TOO_SMALL will be returned and BufferSize will be set to zero
512  or the size of the requested file (the size of the requested file is only returned
513  if the TFTP server supports TFTP options). If BufferSize is large enough for the
514  read operation, then BufferSize will be set to the size of the downloaded file,
515  and EFI_SUCCESS will be returned. Applications using the PxeBc.Mtftp() services
516  should use the get-file-size operations to determine the size of the downloaded
517  file prior to using the read-file operations--especially when downloading large
518  (greater than 64 MB) files--instead of making two calls to the read-file operation.
519  Following this recommendation will save time if the file is larger than expected
520  and the TFTP server does not support TFTP option extensions. Without TFTP option
521  extension support, the client has to download the entire file, counting and discarding
522  the received packets, to determine the file size.
523  For write operations, the data to be sent is in the buffer specified by BufferPtr.
524  BufferSize specifies the number of bytes to send. If the write operation completes
525  successfully, then EFI_SUCCESS will be returned.
526  For TFTP "get file size" operations, the size of the requested file or directory
527  is returned in BufferSize, and EFI_SUCCESS will be returned. If the TFTP server
528  does not support options, the file will be downloaded into a bit bucket and the
529  length of the downloaded file will be returned. For MTFTP "get file size" operations,
530  if the MTFTP server does not support the "get file size" option, EFI_UNSUPPORTED
531  will be returned.
532  This function can take up to 10 seconds to timeout and return control to the caller.
533  If the TFTP sequence does not complete, EFI_TIMEOUT will be returned.
534  If the Callback Protocol does not return EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE,
535  then the TFTP sequence is stopped and EFI_ABORTED will be returned.
536  The format of the data returned from a TFTP read directory operation is a null-terminated
537  filename followed by a null-terminated information string, of the form
538  "size year-month-day hour:minute:second" (i.e. %d %d-%d-%d %d:%d:%f - note that
539  the seconds field can be a decimal number), where the date and time are UTC. For
540  an MTFTP read directory command, there is additionally a null-terminated multicast
541  IP address preceding the filename of the form %d.%d.%d.%d for IP v4. The final
542  entry is itself null-terminated, so that the final information string is terminated
543  with two null octets.
544 
545  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
546  @param Operation The type of operation to perform.
547  @param BufferPtr A pointer to the data buffer.
548  @param Overwrite Only used on write file operations. TRUE if a file on a remote server can
549  be overwritten.
550  @param BufferSize For get-file-size operations, *BufferSize returns the size of the
551  requested file.
552  @param BlockSize The requested block size to be used during a TFTP transfer.
553  @param ServerIp The TFTP / MTFTP server IP address.
554  @param Filename A Null-terminated ASCII string that specifies a directory name or a file
555  name.
556  @param Info The pointer to the MTFTP information.
557  @param DontUseBuffer Set to FALSE for normal TFTP and MTFTP read file operation.
558 
559  @retval EFI_SUCCESS The TFTP/MTFTP operation was completed.
560  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
561  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
562  @retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
563  @retval EFI_BUFFER_TOO_SMALL The buffer is not large enough to complete the read operation.
564  @retval EFI_ABORTED The callback function aborted the TFTP/MTFTP operation.
565  @retval EFI_TIMEOUT The TFTP/MTFTP operation timed out.
566  @retval EFI_ICMP_ERROR An ICMP error packet was received during the MTFTP session.
567  @retval EFI_TFTP_ERROR A TFTP error packet was received during the MTFTP session.
568 
569 **/
570 typedef
575  IN OUT VOID *BufferPtr OPTIONAL,
576  IN BOOLEAN Overwrite,
578  IN UINTN *BlockSize OPTIONAL,
579  IN EFI_IP_ADDRESS *ServerIp,
580  IN UINT8 *Filename OPTIONAL,
582  IN BOOLEAN DontUseBuffer
583  );
584 
585 /**
586  Writes a UDP packet to the network interface.
587 
588  This function writes a UDP packet specified by the (optional HeaderPtr and)
589  BufferPtr parameters to the network interface. The UDP header is automatically
590  built by this routine. It uses the parameters OpFlags, DestIp, DestPort, GatewayIp,
591  SrcIp, and SrcPort to build this header. If the packet is successfully built and
592  transmitted through the network interface, then EFI_SUCCESS will be returned.
593  If a timeout occurs during the transmission of the packet, then EFI_TIMEOUT will
594  be returned. If an ICMP error occurs during the transmission of the packet, then
595  the IcmpErrorReceived field is set to TRUE, the IcmpError field is filled in and
596  EFI_ICMP_ERROR will be returned. If the Callback Protocol does not return
597  EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE, then EFI_ABORTED will be returned.
598 
599  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
600  @param OpFlags The UDP operation flags.
601  @param DestIp The destination IP address.
602  @param DestPort The destination UDP port number.
603  @param GatewayIp The gateway IP address.
604  @param SrcIp The source IP address.
605  @param SrcPort The source UDP port number.
606  @param HeaderSize An optional field which may be set to the length of a header at
607  HeaderPtr to be prefixed to the data at BufferPtr.
608  @param HeaderPtr If HeaderSize is not NULL, a pointer to a header to be prefixed to the
609  data at BufferPtr.
610  @param BufferSize A pointer to the size of the data at BufferPtr.
611  @param BufferPtr A pointer to the data to be written.
612 
613  @retval EFI_SUCCESS The UDP Write operation was completed.
614  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
615  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
616  @retval EFI_BAD_BUFFER_SIZE The buffer is too long to be transmitted.
617  @retval EFI_ABORTED The callback function aborted the UDP Write operation.
618  @retval EFI_TIMEOUT The UDP Write operation timed out.
619  @retval EFI_ICMP_ERROR An ICMP error packet was received during the UDP write session.
620 
621 **/
622 typedef
626  IN UINT16 OpFlags,
627  IN EFI_IP_ADDRESS *DestIp,
628  IN EFI_PXE_BASE_CODE_UDP_PORT *DestPort,
629  IN EFI_IP_ADDRESS *GatewayIp OPTIONAL,
630  IN EFI_IP_ADDRESS *SrcIp OPTIONAL,
632  IN UINTN *HeaderSize OPTIONAL,
633  IN VOID *HeaderPtr OPTIONAL,
635  IN VOID *BufferPtr
636  );
637 
638 /**
639  Reads a UDP packet from the network interface.
640 
641  This function reads a UDP packet from a network interface. The data contents
642  are returned in (the optional HeaderPtr and) BufferPtr, and the size of the
643  buffer received is returned in BufferSize. If the input BufferSize is smaller
644  than the UDP packet received (less optional HeaderSize), it will be set to the
645  required size, and EFI_BUFFER_TOO_SMALL will be returned. In this case, the
646  contents of BufferPtr are undefined, and the packet is lost. If a UDP packet is
647  successfully received, then EFI_SUCCESS will be returned, and the information
648  from the UDP header will be returned in DestIp, DestPort, SrcIp, and SrcPort if
649  they are not NULL.
650  Depending on the values of OpFlags and the DestIp, DestPort, SrcIp, and SrcPort
651  input values, different types of UDP packet receive filtering will be performed.
652  The following tables summarize these receive filter operations.
653 
654  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
655  @param OpFlags The UDP operation flags.
656  @param DestIp The destination IP address.
657  @param DestPort The destination UDP port number.
658  @param SrcIp The source IP address.
659  @param SrcPort The source UDP port number.
660  @param HeaderSize An optional field which may be set to the length of a header at
661  HeaderPtr to be prefixed to the data at BufferPtr.
662  @param HeaderPtr If HeaderSize is not NULL, a pointer to a header to be prefixed to the
663  data at BufferPtr.
664  @param BufferSize A pointer to the size of the data at BufferPtr.
665  @param BufferPtr A pointer to the data to be read.
666 
667  @retval EFI_SUCCESS The UDP Read operation was completed.
668  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
669  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
670  @retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
671  @retval EFI_BUFFER_TOO_SMALL The packet is larger than Buffer can hold.
672  @retval EFI_ABORTED The callback function aborted the UDP Read operation.
673  @retval EFI_TIMEOUT The UDP Read operation timed out.
674 
675 **/
676 typedef
680  IN UINT16 OpFlags,
681  IN OUT EFI_IP_ADDRESS *DestIp OPTIONAL,
683  IN OUT EFI_IP_ADDRESS *SrcIp OPTIONAL,
685  IN UINTN *HeaderSize OPTIONAL,
686  IN VOID *HeaderPtr OPTIONAL,
688  IN VOID *BufferPtr
689  );
690 
691 /**
692  Updates the IP receive filters of a network device and enables software filtering.
693 
694  The NewFilter field is used to modify the network device's current IP receive
695  filter settings and to enable a software filter. This function updates the IpFilter
696  field of the EFI_PXE_BASE_CODE_MODE structure with the contents of NewIpFilter.
697  The software filter is used when the USE_FILTER in OpFlags is set to UdpRead().
698  The current hardware filter remains in effect no matter what the settings of OpFlags
699  are, so that the meaning of ANY_DEST_IP set in OpFlags to UdpRead() is from those
700  packets whose reception is enabled in hardware - physical NIC address (unicast),
701  broadcast address, logical address or addresses (multicast), or all (promiscuous).
702  UdpRead() does not modify the IP filter settings.
703  Dhcp(), Discover(), and Mtftp() set the IP filter, and return with the IP receive
704  filter list emptied and the filter set to EFI_PXE_BASE_CODE_IP_FILTER_STATION_IP.
705  If an application or driver wishes to preserve the IP receive filter settings,
706  it will have to preserve the IP receive filter settings before these calls, and
707  use SetIpFilter() to restore them after the calls. If incompatible filtering is
708  requested (for example, PROMISCUOUS with anything else), or if the device does not
709  support a requested filter setting and it cannot be accommodated in software
710  (for example, PROMISCUOUS not supported), EFI_INVALID_PARAMETER will be returned.
711  The IPlist field is used to enable IPs other than the StationIP. They may be
712  multicast or unicast. If IPcnt is set as well as EFI_PXE_BASE_CODE_IP_FILTER_STATION_IP,
713  then both the StationIP and the IPs from the IPlist will be used.
714 
715  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
716  @param NewFilter The pointer to the new set of IP receive filters.
717 
718  @retval EFI_SUCCESS The IP receive filter settings were updated.
719  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
720  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
721 
722 **/
723 typedef
728  );
729 
730 /**
731  Uses the ARP protocol to resolve a MAC address.
732 
733  This function uses the ARP protocol to resolve a MAC address. The UsingIpv6 field
734  of the EFI_PXE_BASE_CODE_MODE structure is used to determine if IPv4 or IPv6
735  addresses are being used. The IP address specified by IpAddr is used to resolve
736  a MAC address. If the ARP protocol succeeds in resolving the specified address,
737  then the ArpCacheEntries and ArpCache fields of the EFI_PXE_BASE_CODE_MODE structure
738  are updated, and EFI_SUCCESS is returned. If MacAddr is not NULL, the resolved
739  MAC address is placed there as well.
740  If the PXE Base Code protocol is in the stopped state, then EFI_NOT_STARTED is
741  returned. If the ARP protocol encounters a timeout condition while attempting
742  to resolve an address, then EFI_TIMEOUT is returned. If the Callback Protocol
743  does not return EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE, then EFI_ABORTED is
744  returned.
745 
746  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
747  @param IpAddr The pointer to the IP address that is used to resolve a MAC address.
748  @param MacAddr If not NULL, a pointer to the MAC address that was resolved with the
749  ARP protocol.
750 
751  @retval EFI_SUCCESS The IP or MAC address was resolved.
752  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
753  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
754  @retval EFI_DEVICE_ERROR The network device encountered an error during this operation.
755  @retval EFI_ABORTED The callback function aborted the ARP Protocol.
756  @retval EFI_TIMEOUT The ARP Protocol encountered a timeout condition.
757 
758 **/
759 typedef
763  IN EFI_IP_ADDRESS *IpAddr,
764  IN EFI_MAC_ADDRESS *MacAddr OPTIONAL
765  );
766 
767 /**
768  Updates the parameters that affect the operation of the PXE Base Code Protocol.
769 
770  This function sets parameters that affect the operation of the PXE Base Code Protocol.
771  The parameter specified by NewAutoArp is used to control the generation of ARP
772  protocol packets. If NewAutoArp is TRUE, then ARP Protocol packets will be generated
773  as required by the PXE Base Code Protocol. If NewAutoArp is FALSE, then no ARP
774  Protocol packets will be generated. In this case, the only mappings that are
775  available are those stored in the ArpCache of the EFI_PXE_BASE_CODE_MODE structure.
776  If there are not enough mappings in the ArpCache to perform a PXE Base Code Protocol
777  service, then the service will fail. This function updates the AutoArp field of
778  the EFI_PXE_BASE_CODE_MODE structure to NewAutoArp.
779  The SetParameters() call must be invoked after a Callback Protocol is installed
780  to enable the use of callbacks.
781 
782  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
783  @param NewAutoArp If not NULL, a pointer to a value that specifies whether to replace the
784  current value of AutoARP.
785  @param NewSendGUID If not NULL, a pointer to a value that specifies whether to replace the
786  current value of SendGUID.
787  @param NewTTL If not NULL, a pointer to be used in place of the current value of TTL,
788  the "time to live" field of the IP header.
789  @param NewToS If not NULL, a pointer to be used in place of the current value of ToS,
790  the "type of service" field of the IP header.
791  @param NewMakeCallback If not NULL, a pointer to a value that specifies whether to replace the
792  current value of the MakeCallback field of the Mode structure.
793 
794  @retval EFI_SUCCESS The new parameters values were updated.
795  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
796  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
797 
798 **/
799 typedef
803  IN BOOLEAN *NewAutoArp OPTIONAL,
804  IN BOOLEAN *NewSendGUID OPTIONAL,
805  IN UINT8 *NewTTL OPTIONAL,
806  IN UINT8 *NewToS OPTIONAL,
807  IN BOOLEAN *NewMakeCallback OPTIONAL
808  );
809 
810 /**
811  Updates the station IP address and/or subnet mask values of a network device.
812 
813  This function updates the station IP address and/or subnet mask values of a network
814  device.
815  The NewStationIp field is used to modify the network device's current IP address.
816  If NewStationIP is NULL, then the current IP address will not be modified. Otherwise,
817  this function updates the StationIp field of the EFI_PXE_BASE_CODE_MODE structure
818  with NewStationIp.
819  The NewSubnetMask field is used to modify the network device's current subnet
820  mask. If NewSubnetMask is NULL, then the current subnet mask will not be modified.
821  Otherwise, this function updates the SubnetMask field of the EFI_PXE_BASE_CODE_MODE
822  structure with NewSubnetMask.
823 
824  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
825  @param NewStationIp The pointer to the new IP address to be used by the network device.
826  @param NewSubnetMask The pointer to the new subnet mask to be used by the network device.
827 
828  @retval EFI_SUCCESS The new station IP address and/or subnet mask were updated.
829  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
830  @retval EFI_INVALID_PARAMETER One or more parameters are invalid.
831 
832 **/
833 typedef
837  IN EFI_IP_ADDRESS *NewStationIp OPTIONAL,
838  IN EFI_IP_ADDRESS *NewSubnetMask OPTIONAL
839  );
840 
841 /**
842  Updates the contents of the cached DHCP and Discover packets.
843 
844  The pointers to the new packets are used to update the contents of the cached
845  packets in the EFI_PXE_BASE_CODE_MODE structure.
846 
847  @param This The pointer to the EFI_PXE_BASE_CODE_PROTOCOL instance.
848  @param NewDhcpDiscoverValid The pointer to a value that will replace the current
849  DhcpDiscoverValid field.
850  @param NewDhcpAckReceived The pointer to a value that will replace the current
851  DhcpAckReceived field.
852  @param NewProxyOfferReceived The pointer to a value that will replace the current
853  ProxyOfferReceived field.
854  @param NewPxeDiscoverValid The pointer to a value that will replace the current
855  ProxyOfferReceived field.
856  @param NewPxeReplyReceived The pointer to a value that will replace the current
857  PxeReplyReceived field.
858  @param NewPxeBisReplyReceived The pointer to a value that will replace the current
859  PxeBisReplyReceived field.
860  @param NewDhcpDiscover The pointer to the new cached DHCP Discover packet contents.
861  @param NewDhcpAck The pointer to the new cached DHCP Ack packet contents.
862  @param NewProxyOffer The pointer to the new cached Proxy Offer packet contents.
863  @param NewPxeDiscover The pointer to the new cached PXE Discover packet contents.
864  @param NewPxeReply The pointer to the new cached PXE Reply packet contents.
865  @param NewPxeBisReply The pointer to the new cached PXE BIS Reply packet contents.
866 
867  @retval EFI_SUCCESS The cached packet contents were updated.
868  @retval EFI_NOT_STARTED The PXE Base Code Protocol is in the stopped state.
869  @retval EFI_INVALID_PARAMETER This is NULL or not point to a valid EFI_PXE_BASE_CODE_PROTOCOL structure.
870 
871 **/
872 typedef
876  BOOLEAN *NewDhcpDiscoverValid OPTIONAL,
877  BOOLEAN *NewDhcpAckReceived OPTIONAL,
878  BOOLEAN *NewProxyOfferReceived OPTIONAL,
879  BOOLEAN *NewPxeDiscoverValid OPTIONAL,
880  BOOLEAN *NewPxeReplyReceived OPTIONAL,
881  BOOLEAN *NewPxeBisReplyReceived OPTIONAL,
882  IN EFI_PXE_BASE_CODE_PACKET *NewDhcpDiscover OPTIONAL,
884  IN EFI_PXE_BASE_CODE_PACKET *NewProxyOffer OPTIONAL,
885  IN EFI_PXE_BASE_CODE_PACKET *NewPxeDiscover OPTIONAL,
886  IN EFI_PXE_BASE_CODE_PACKET *NewPxeReply OPTIONAL,
887  IN EFI_PXE_BASE_CODE_PACKET *NewPxeBisReply OPTIONAL
888  );
889 
890 //
891 // PXE Base Code Protocol structure
892 //
893 #define EFI_PXE_BASE_CODE_PROTOCOL_REVISION 0x00010000
894 
895 //
896 // Revision defined in EFI1.1
897 //
898 #define EFI_PXE_BASE_CODE_INTERFACE_REVISION EFI_PXE_BASE_CODE_PROTOCOL_REVISION
899 
900 ///
901 /// The EFI_PXE_BASE_CODE_PROTOCOL is used to control PXE-compatible devices.
902 /// An EFI_PXE_BASE_CODE_PROTOCOL will be layered on top of an
903 /// EFI_MANAGED_NETWORK_PROTOCOL protocol in order to perform packet level transactions.
904 /// The EFI_PXE_BASE_CODE_PROTOCOL handle also supports the
905 /// EFI_LOAD_FILE_PROTOCOL protocol. This provides a clean way to obtain control from the
906 /// boot manager if the boot path is from the remote device.
907 ///
909  ///
910  /// The revision of the EFI_PXE_BASE_CODE_PROTOCOL. All future revisions must
911  /// be backwards compatible. If a future version is not backwards compatible
912  /// it is not the same GUID.
913  ///
927  ///
928  /// The pointer to the EFI_PXE_BASE_CODE_MODE data for this device.
929  ///
931 };
932 
934 
935 #endif
EFI_PXE_BASE_CODE_MODE.
Definition: PxeBaseCode.h:271
#define OPTIONAL
Passing the datum to the function is optional, and a NULL is passed if the value is not supplied.
Definition: Base.h:292
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_ARP)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN EFI_IP_ADDRESS *IpAddr, IN EFI_MAC_ADDRESS *MacAddr OPTIONAL)
Uses the ARP protocol to resolve a MAC address.
Definition: PxeBaseCode.h:761
UINT8 Type
Definition: Acpi10.h:136
EFI_PXE_BASE_CODE_DHCPV6_PACKET Dhcpv6
Definition: PxeBaseCode.h:256
128 bit buffer containing a unique identifier value.
Definition: Base.h:215
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_SET_PARAMETERS)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN BOOLEAN *NewAutoArp OPTIONAL, IN BOOLEAN *NewSendGUID OPTIONAL, IN UINT8 *NewTTL OPTIONAL, IN UINT8 *NewToS OPTIONAL, IN BOOLEAN *NewMakeCallback OPTIONAL)
Updates the parameters that affect the operation of the PXE Base Code Protocol.
Definition: PxeBaseCode.h:801
EFI_IP_ADDRESS IpAddr
Definition: PxeBaseCode.h:93
32-byte buffer containing a network Media Access Control address.
Definition: UefiBaseType.h:97
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_DISCOVER)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN UINT16 Type, IN UINT16 *Layer, IN BOOLEAN UseBis, IN EFI_PXE_BASE_CODE_DISCOVER_INFO *Info OPTIONAL)
Attempts to complete the PXE Boot Server and/or boot image discovery sequence.
Definition: PxeBaseCode.h:491
unsigned char BOOLEAN
#define EFI_PXE_BASE_CODE_MAX_IPCNT
IP Receive Filter definitions.
Definition: PxeBaseCode.h:72
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_SET_IP_FILTER)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN EFI_PXE_BASE_CODE_IP_FILTER *NewFilter)
Updates the IP receive filters of a network device and enables software filtering.
Definition: PxeBaseCode.h:725
EFI_PXE_BASE_CODE_SET_PARAMETERS SetParameters
Definition: PxeBaseCode.h:924
EFI_MAC_ADDRESS MacAddr
Definition: PxeBaseCode.h:94
ICMP error format.
Definition: PxeBaseCode.h:45
FILE_LICENCE(BSD2_PATENT)
unsigned int UINT32
Definition: ProcessorBind.h:98
EFI_PXE_BASE_CODE_MTFTP Mtftp
Definition: PxeBaseCode.h:919
UINT16_t BufferSize
Buffer size.
Definition: pxe_api.h:64
EFI_PXE_BASE_CODE_DHCPV4_PACKET Dhcpv4
Definition: PxeBaseCode.h:255
EFI_IP_ADDRESS SubnetMask
Definition: PxeBaseCode.h:292
EFI_PXE_BASE_CODE_SET_STATION_IP SetStationIp
Definition: PxeBaseCode.h:925
EFI_PXE_BASE_CODE_PACKET PxeReply
Definition: PxeBaseCode.h:297
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_UDP_WRITE)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN UINT16 OpFlags, IN EFI_IP_ADDRESS *DestIp, IN EFI_PXE_BASE_CODE_UDP_PORT *DestPort, IN EFI_IP_ADDRESS *GatewayIp OPTIONAL, IN EFI_IP_ADDRESS *SrcIp OPTIONAL, IN OUT EFI_PXE_BASE_CODE_UDP_PORT *SrcPort OPTIONAL, IN UINTN *HeaderSize OPTIONAL, IN VOID *HeaderPtr OPTIONAL, IN UINTN *BufferSize, IN VOID *BufferPtr)
Writes a UDP packet to the network interface.
Definition: PxeBaseCode.h:624
EFI_GUID gEfiPxeBaseCodeProtocolGuid
unsigned char UINT8
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_DHCP)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN BOOLEAN SortOffers)
Attempts to complete a DHCPv4 D.O.R.A.
Definition: PxeBaseCode.h:441
ARP route table entries.
Definition: PxeBaseCode.h:100
#define OUT
Definition: mlx_utils.h:29
MTFTP information.
Definition: PxeBaseCode.h:211
16-byte buffer aligned on a 4-byte boundary.
Definition: UefiBaseType.h:105
EFI_PXE_BASE_CODE_PACKET PxeBisReply
Definition: PxeBaseCode.h:298
UINT16 EFI_PXE_BASE_CODE_UDP_PORT
Definition: PxeBaseCode.h:109
unsigned short UINT16
EFI_IP_ADDRESS SubnetMask
Definition: PxeBaseCode.h:102
#define EFIAPI
#define EFI_PXE_BASE_CODE_MAX_ROUTE_ENTRIES
Definition: PxeBaseCode.h:263
UINT64 Revision
The revision of the EFI_PXE_BASE_CODE_PROTOCOL.
Definition: PxeBaseCode.h:914
EFI_PXE_BASE_CODE_SET_PACKETS SetPackets
Definition: PxeBaseCode.h:926
EFI_PXE_BASE_CODE_UDP_READ UdpRead
Definition: PxeBaseCode.h:921
EFI_PXE_BASE_CODE_DHCP Dhcp
Definition: PxeBaseCode.h:917
UINT64 UINTN
Unsigned value of native width.
IP Receive Filter structure.
Definition: PxeBaseCode.h:77
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_SET_PACKETS)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, BOOLEAN *NewDhcpDiscoverValid OPTIONAL, BOOLEAN *NewDhcpAckReceived OPTIONAL, BOOLEAN *NewProxyOfferReceived OPTIONAL, BOOLEAN *NewPxeDiscoverValid OPTIONAL, BOOLEAN *NewPxeReplyReceived OPTIONAL, BOOLEAN *NewPxeBisReplyReceived OPTIONAL, IN EFI_PXE_BASE_CODE_PACKET *NewDhcpDiscover OPTIONAL, IN EFI_PXE_BASE_CODE_PACKET *NewDhcpAck OPTIONAL, IN EFI_PXE_BASE_CODE_PACKET *NewProxyOffer OPTIONAL, IN EFI_PXE_BASE_CODE_PACKET *NewPxeDiscover OPTIONAL, IN EFI_PXE_BASE_CODE_PACKET *NewPxeReply OPTIONAL, IN EFI_PXE_BASE_CODE_PACKET *NewPxeBisReply OPTIONAL)
Updates the contents of the cached DHCP and Discover packets.
Definition: PxeBaseCode.h:874
EFI_PXE_BASE_CODE_PROTOCOL EFI_PXE_BASE_CODE
Protocol defined in EFI1.1.
Definition: PxeBaseCode.h:34
EFI_PXE_BASE_CODE_ARP Arp
Definition: PxeBaseCode.h:923
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_UDP_READ)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN UINT16 OpFlags, 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, IN UINTN *HeaderSize OPTIONAL, IN VOID *HeaderPtr OPTIONAL, IN OUT UINTN *BufferSize, IN VOID *BufferPtr)
Reads a UDP packet from the network interface.
Definition: PxeBaseCode.h:678
EFI_PXE_BASE_CODE_TFTP_ERROR TftpError
Definition: PxeBaseCode.h:305
EFI_IP_ADDRESS IpAddr
Definition: PxeBaseCode.h:101
#define VOID
Undeclared type.
Definition: Base.h:271
Discover() server list structure.
Definition: PxeBaseCode.h:171
unsigned long long UINT64
Definition: ProcessorBind.h:96
DHCPV4 Packet structure.
Definition: PxeBaseCode.h:222
Packet structure.
Definition: PxeBaseCode.h:253
#define IN
Definition: mlx_utils.h:28
DHCPV6 Packet structure.
Definition: PxeBaseCode.h:244
EFI_PXE_BASE_CODE_STOP Stop
Definition: PxeBaseCode.h:916
EFI_PXE_BASE_CODE_PACKET DhcpDiscover
Definition: PxeBaseCode.h:293
Discover() information override structure.
Definition: PxeBaseCode.h:181
#define EFI_PXE_BASE_CODE_MAX_ARP_ENTRIES
Definition: PxeBaseCode.h:262
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_STOP)(IN EFI_PXE_BASE_CODE_PROTOCOL *This)
Disables the use of the PXE Base Code Protocol functions.
Definition: PxeBaseCode.h:402
EFI_PXE_BASE_CODE_PACKET DhcpAck
Definition: PxeBaseCode.h:294
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_SET_STATION_IP)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN EFI_IP_ADDRESS *NewStationIp OPTIONAL, IN EFI_IP_ADDRESS *NewSubnetMask OPTIONAL)
Updates the station IP address and/or subnet mask values of a network device.
Definition: PxeBaseCode.h:835
char CHAR8
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
Definition: UefiBaseType.h:31
EFI_PXE_BASE_CODE_SET_IP_FILTER SetIpFilter
Definition: PxeBaseCode.h:922
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_START)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN BOOLEAN UseIpv6)
Enables the use of the PXE Base Code Protocol functions.
Definition: PxeBaseCode.h:378
EFI_PXE_BASE_CODE_UDP_PORT SPort
Definition: PxeBaseCode.h:214
EFI_PXE_BASE_CODE_ICMP_ERROR IcmpError
Definition: PxeBaseCode.h:304
union @17 u
EFI_PXE_BASE_CODE_TFTP_OPCODE
TFTP opcode definitions.
Definition: PxeBaseCode.h:194
EFI_PXE_BASE_CODE_IP_FILTER IpFilter
Definition: PxeBaseCode.h:299
ARP cache entries.
Definition: PxeBaseCode.h:92
EFI_STATUS(EFIAPI * EFI_PXE_BASE_CODE_MTFTP)(IN EFI_PXE_BASE_CODE_PROTOCOL *This, IN EFI_PXE_BASE_CODE_TFTP_OPCODE Operation, IN OUT VOID *BufferPtr OPTIONAL, IN BOOLEAN Overwrite, IN OUT UINT64 *BufferSize, IN UINTN *BlockSize OPTIONAL, IN EFI_IP_ADDRESS *ServerIp, IN UINT8 *Filename OPTIONAL, IN EFI_PXE_BASE_CODE_MTFTP_INFO *Info OPTIONAL, IN BOOLEAN DontUseBuffer)
Used to perform TFTP and MTFTP services.
Definition: PxeBaseCode.h:572
EFI_IP_ADDRESS StationIp
Definition: PxeBaseCode.h:291
EFI_PXE_BASE_CODE_UDP_PORT CPort
Definition: PxeBaseCode.h:213
EFI_PXE_BASE_CODE_MODE * Mode
The pointer to the EFI_PXE_BASE_CODE_MODE data for this device.
Definition: PxeBaseCode.h:930
The EFI_PXE_BASE_CODE_PROTOCOL is used to control PXE-compatible devices.
Definition: PxeBaseCode.h:908
EFI_PXE_BASE_CODE_PACKET PxeDiscover
Definition: PxeBaseCode.h:296
TFTP error format.
Definition: PxeBaseCode.h:64
EFI_PXE_BASE_CODE_PACKET ProxyOffer
Definition: PxeBaseCode.h:295
EFI_PXE_BASE_CODE_DISCOVER Discover
Definition: PxeBaseCode.h:918
EFI_PXE_BASE_CODE_UDP_WRITE UdpWrite
Definition: PxeBaseCode.h:920
EFI_IP_ADDRESS GwAddr
Definition: PxeBaseCode.h:103
EFI_PXE_BASE_CODE_START Start
Definition: PxeBaseCode.h:915