iPXE
UefiPxe.h
Go to the documentation of this file.
1/** @file
2 This header file contains all of the PXE type definitions,
3 structure prototypes, global variables and constants that
4 are needed for porting PXE to EFI.
5
6Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
7SPDX-License-Identifier: BSD-2-Clause-Patent
8
9 @par Revision Reference:
10 32/64-bit PXE specification:
11 alpha-4, 99-Dec-17.
12
13**/
14
15#ifndef __EFI_PXE_H__
16#define __EFI_PXE_H__
17
18FILE_LICENCE ( BSD2_PATENT );
19FILE_SECBOOT ( PERMITTED );
20
21#pragma pack(1)
22
23#define PXE_BUSTYPE(a, b, c, d) \
24 ( \
25 (((PXE_UINT32) (d) & 0xFF) << 24) | (((PXE_UINT32) (c) & 0xFF) << 16) | (((PXE_UINT32) (b) & 0xFF) << 8) | \
26 ((PXE_UINT32) (a) & 0xFF) \
27 )
28
29///
30/// UNDI ROM ID and devive ID signature.
31///
32#define PXE_BUSTYPE_PXE PXE_BUSTYPE ('!', 'P', 'X', 'E')
33
34///
35/// BUS ROM ID signatures.
36///
37#define PXE_BUSTYPE_PCI PXE_BUSTYPE ('P', 'C', 'I', 'R')
38#define PXE_BUSTYPE_PC_CARD PXE_BUSTYPE ('P', 'C', 'C', 'R')
39#define PXE_BUSTYPE_USB PXE_BUSTYPE ('U', 'S', 'B', 'R')
40#define PXE_BUSTYPE_1394 PXE_BUSTYPE ('1', '3', '9', '4')
41
42#define PXE_SWAP_UINT16(n) ((((PXE_UINT16) (n) & 0x00FF) << 8) | (((PXE_UINT16) (n) & 0xFF00) >> 8))
43
44#define PXE_SWAP_UINT32(n) \
45 ((((PXE_UINT32)(n) & 0x000000FF) << 24) | \
46 (((PXE_UINT32)(n) & 0x0000FF00) << 8) | \
47 (((PXE_UINT32)(n) & 0x00FF0000) >> 8) | \
48 (((PXE_UINT32)(n) & 0xFF000000) >> 24))
49
50#define PXE_SWAP_UINT64(n) \
51 ((((PXE_UINT64)(n) & 0x00000000000000FFULL) << 56) | \
52 (((PXE_UINT64)(n) & 0x000000000000FF00ULL) << 40) | \
53 (((PXE_UINT64)(n) & 0x0000000000FF0000ULL) << 24) | \
54 (((PXE_UINT64)(n) & 0x00000000FF000000ULL) << 8) | \
55 (((PXE_UINT64)(n) & 0x000000FF00000000ULL) >> 8) | \
56 (((PXE_UINT64)(n) & 0x0000FF0000000000ULL) >> 24) | \
57 (((PXE_UINT64)(n) & 0x00FF000000000000ULL) >> 40) | \
58 (((PXE_UINT64)(n) & 0xFF00000000000000ULL) >> 56))
59
60#define PXE_CPBSIZE_NOT_USED 0 ///< zero
61#define PXE_DBSIZE_NOT_USED 0 ///< zero
62#define PXE_CPBADDR_NOT_USED (PXE_UINT64) 0 ///< zero
63#define PXE_DBADDR_NOT_USED (PXE_UINT64) 0 ///< zero
64#define PXE_CONST CONST
65
66#define PXE_VOLATILE volatile
67
68typedef VOID PXE_VOID;
73
74///
75/// Typedef unsigned long PXE_UINT64.
76///
78
80#define PXE_FALSE 0 ///< zero
81#define PXE_TRUE (!PXE_FALSE)
82
84
85///
86/// Return UNDI operational state.
87///
88#define PXE_OPCODE_GET_STATE 0x0000
89
90///
91/// Change UNDI operational state from Stopped to Started.
92///
93#define PXE_OPCODE_START 0x0001
94
95///
96/// Change UNDI operational state from Started to Stopped.
97///
98#define PXE_OPCODE_STOP 0x0002
99
100///
101/// Get UNDI initialization information.
102///
103#define PXE_OPCODE_GET_INIT_INFO 0x0003
104
105///
106/// Get NIC configuration information.
107///
108#define PXE_OPCODE_GET_CONFIG_INFO 0x0004
109
110///
111/// Changed UNDI operational state from Started to Initialized.
112///
113#define PXE_OPCODE_INITIALIZE 0x0005
114
115///
116/// Re-initialize the NIC H/W.
117///
118#define PXE_OPCODE_RESET 0x0006
119
120///
121/// Change the UNDI operational state from Initialized to Started.
122///
123#define PXE_OPCODE_SHUTDOWN 0x0007
124
125///
126/// Read & change state of external interrupt enables.
127///
128#define PXE_OPCODE_INTERRUPT_ENABLES 0x0008
129
130///
131/// Read & change state of packet receive filters.
132///
133#define PXE_OPCODE_RECEIVE_FILTERS 0x0009
134
135///
136/// Read & change station MAC address.
137///
138#define PXE_OPCODE_STATION_ADDRESS 0x000A
139
140///
141/// Read traffic statistics.
142///
143#define PXE_OPCODE_STATISTICS 0x000B
144
145///
146/// Convert multicast IP address to multicast MAC address.
147///
148#define PXE_OPCODE_MCAST_IP_TO_MAC 0x000C
149
150///
151/// Read or change non-volatile storage on the NIC.
152///
153#define PXE_OPCODE_NVDATA 0x000D
154
155///
156/// Get & clear interrupt status.
157///
158#define PXE_OPCODE_GET_STATUS 0x000E
159
160///
161/// Fill media header in packet for transmit.
162///
163#define PXE_OPCODE_FILL_HEADER 0x000F
164
165///
166/// Transmit packet(s).
167///
168#define PXE_OPCODE_TRANSMIT 0x0010
169
170///
171/// Receive packet.
172///
173#define PXE_OPCODE_RECEIVE 0x0011
174
175///
176/// Last valid PXE UNDI OpCode number.
177///
178#define PXE_OPCODE_LAST_VALID 0x0011
179
181
182#define PXE_OPFLAGS_NOT_USED 0x0000
183
184//
185// //////////////////////////////////////
186// UNDI Get State
187//
188// No OpFlags
189
190////////////////////////////////////////
191// UNDI Start
192//
193// No OpFlags
194
195////////////////////////////////////////
196// UNDI Stop
197//
198// No OpFlags
199
200////////////////////////////////////////
201// UNDI Get Init Info
202//
203// No Opflags
204
205////////////////////////////////////////
206// UNDI Get Config Info
207//
208// No Opflags
209
210///
211/// UNDI Initialize
212///
213#define PXE_OPFLAGS_INITIALIZE_CABLE_DETECT_MASK 0x0001
214#define PXE_OPFLAGS_INITIALIZE_DETECT_CABLE 0x0000
215#define PXE_OPFLAGS_INITIALIZE_DO_NOT_DETECT_CABLE 0x0001
216
217///
218///
219/// UNDI Reset
220///
221#define PXE_OPFLAGS_RESET_DISABLE_INTERRUPTS 0x0001
222#define PXE_OPFLAGS_RESET_DISABLE_FILTERS 0x0002
223
224///
225/// UNDI Shutdown.
226///
227/// No OpFlags.
228
229///
230/// UNDI Interrupt Enables.
231///
232///
233/// Select whether to enable or disable external interrupt signals.
234/// Setting both enable and disable will return PXE_STATCODE_INVALID_OPFLAGS.
235///
236#define PXE_OPFLAGS_INTERRUPT_OPMASK 0xC000
237#define PXE_OPFLAGS_INTERRUPT_ENABLE 0x8000
238#define PXE_OPFLAGS_INTERRUPT_DISABLE 0x4000
239#define PXE_OPFLAGS_INTERRUPT_READ 0x0000
240
241///
242/// Enable receive interrupts. An external interrupt will be generated
243/// after a complete non-error packet has been received.
244///
245#define PXE_OPFLAGS_INTERRUPT_RECEIVE 0x0001
246
247///
248/// Enable transmit interrupts. An external interrupt will be generated
249/// after a complete non-error packet has been transmitted.
250///
251#define PXE_OPFLAGS_INTERRUPT_TRANSMIT 0x0002
252
253///
254/// Enable command interrupts. An external interrupt will be generated
255/// when command execution stops.
256///
257#define PXE_OPFLAGS_INTERRUPT_COMMAND 0x0004
258
259///
260/// Generate software interrupt. Setting this bit generates an external
261/// interrupt, if it is supported by the hardware.
262///
263#define PXE_OPFLAGS_INTERRUPT_SOFTWARE 0x0008
264
265///
266/// UNDI Receive Filters.
267///
268///
269/// Select whether to enable or disable receive filters.
270/// Setting both enable and disable will return PXE_STATCODE_INVALID_OPCODE.
271///
272#define PXE_OPFLAGS_RECEIVE_FILTER_OPMASK 0xC000
273#define PXE_OPFLAGS_RECEIVE_FILTER_ENABLE 0x8000
274#define PXE_OPFLAGS_RECEIVE_FILTER_DISABLE 0x4000
275#define PXE_OPFLAGS_RECEIVE_FILTER_READ 0x0000
276
277///
278/// To reset the contents of the multicast MAC address filter list,
279/// set this OpFlag:
280///
281#define PXE_OPFLAGS_RECEIVE_FILTER_RESET_MCAST_LIST 0x2000
282
283///
284/// Enable unicast packet receiving. Packets sent to the current station
285/// MAC address will be received.
286///
287#define PXE_OPFLAGS_RECEIVE_FILTER_UNICAST 0x0001
288
289///
290/// Enable broadcast packet receiving. Packets sent to the broadcast
291/// MAC address will be received.
292///
293#define PXE_OPFLAGS_RECEIVE_FILTER_BROADCAST 0x0002
294
295///
296/// Enable filtered multicast packet receiving. Packets sent to any
297/// of the multicast MAC addresses in the multicast MAC address filter
298/// list will be received. If the filter list is empty, no multicast
299///
300#define PXE_OPFLAGS_RECEIVE_FILTER_FILTERED_MULTICAST 0x0004
301
302///
303/// Enable promiscuous packet receiving. All packets will be received.
304///
305#define PXE_OPFLAGS_RECEIVE_FILTER_PROMISCUOUS 0x0008
306
307///
308/// Enable promiscuous multicast packet receiving. All multicast
309/// packets will be received.
310///
311#define PXE_OPFLAGS_RECEIVE_FILTER_ALL_MULTICAST 0x0010
312
313///
314/// UNDI Station Address.
315///
316#define PXE_OPFLAGS_STATION_ADDRESS_READ 0x0000
317#define PXE_OPFLAGS_STATION_ADDRESS_WRITE 0x0000
318#define PXE_OPFLAGS_STATION_ADDRESS_RESET 0x0001
319
320///
321/// UNDI Statistics.
322///
323#define PXE_OPFLAGS_STATISTICS_READ 0x0000
324#define PXE_OPFLAGS_STATISTICS_RESET 0x0001
325
326///
327/// UNDI MCast IP to MAC.
328///
329///
330/// Identify the type of IP address in the CPB.
331///
332#define PXE_OPFLAGS_MCAST_IP_TO_MAC_OPMASK 0x0003
333#define PXE_OPFLAGS_MCAST_IPV4_TO_MAC 0x0000
334#define PXE_OPFLAGS_MCAST_IPV6_TO_MAC 0x0001
335
336///
337/// UNDI NvData.
338///
339///
340/// Select the type of non-volatile data operation.
341///
342#define PXE_OPFLAGS_NVDATA_OPMASK 0x0001
343#define PXE_OPFLAGS_NVDATA_READ 0x0000
344#define PXE_OPFLAGS_NVDATA_WRITE 0x0001
345
346///
347/// UNDI Get Status.
348///
349///
350/// Return current interrupt status. This will also clear any interrupts
351/// that are currently set. This can be used in a polling routine. The
352/// interrupt flags are still set and cleared even when the interrupts
353/// are disabled.
354///
355#define PXE_OPFLAGS_GET_INTERRUPT_STATUS 0x0001
356
357///
358/// Return list of transmitted buffers for recycling. Transmit buffers
359/// must not be changed or unallocated until they have recycled. After
360/// issuing a transmit command, wait for a transmit complete interrupt.
361/// When a transmit complete interrupt is received, read the transmitted
362/// buffers. Do not plan on getting one buffer per interrupt. Some
363/// NICs and UNDIs may transmit multiple buffers per interrupt.
364///
365#define PXE_OPFLAGS_GET_TRANSMITTED_BUFFERS 0x0002
366
367///
368/// Return current media status.
369///
370#define PXE_OPFLAGS_GET_MEDIA_STATUS 0x0004
371
372///
373/// UNDI Fill Header.
374///
375#define PXE_OPFLAGS_FILL_HEADER_OPMASK 0x0001
376#define PXE_OPFLAGS_FILL_HEADER_FRAGMENTED 0x0001
377#define PXE_OPFLAGS_FILL_HEADER_WHOLE 0x0000
378
379///
380/// UNDI Transmit.
381///
382///
383/// S/W UNDI only. Return after the packet has been transmitted. A
384/// transmit complete interrupt will still be generated and the transmit
385/// buffer will have to be recycled.
386///
387#define PXE_OPFLAGS_SWUNDI_TRANSMIT_OPMASK 0x0001
388#define PXE_OPFLAGS_TRANSMIT_BLOCK 0x0001
389#define PXE_OPFLAGS_TRANSMIT_DONT_BLOCK 0x0000
390
391#define PXE_OPFLAGS_TRANSMIT_OPMASK 0x0002
392#define PXE_OPFLAGS_TRANSMIT_FRAGMENTED 0x0002
393#define PXE_OPFLAGS_TRANSMIT_WHOLE 0x0000
394
395///
396/// UNDI Receive.
397///
398/// No OpFlags.
399///
400
401///
402/// PXE STATFLAGS.
403///
405
406#define PXE_STATFLAGS_INITIALIZE 0x0000
407
408///
409/// Common StatFlags that can be returned by all commands.
410///
411///
412/// The COMMAND_COMPLETE and COMMAND_FAILED status flags must be
413/// implemented by all UNDIs. COMMAND_QUEUED is only needed by UNDIs
414/// that support command queuing.
415///
416#define PXE_STATFLAGS_STATUS_MASK 0xC000
417#define PXE_STATFLAGS_COMMAND_COMPLETE 0xC000
418#define PXE_STATFLAGS_COMMAND_FAILED 0x8000
419#define PXE_STATFLAGS_COMMAND_QUEUED 0x4000
420
421///
422/// UNDI Get State.
423///
424#define PXE_STATFLAGS_GET_STATE_MASK 0x0003
425#define PXE_STATFLAGS_GET_STATE_INITIALIZED 0x0002
426#define PXE_STATFLAGS_GET_STATE_STARTED 0x0001
427#define PXE_STATFLAGS_GET_STATE_STOPPED 0x0000
428
429///
430/// UNDI Start.
431///
432/// No additional StatFlags.
433///
434
435///
436/// UNDI Get Init Info.
437///
438#define PXE_STATFLAGS_CABLE_DETECT_MASK 0x0001
439#define PXE_STATFLAGS_CABLE_DETECT_NOT_SUPPORTED 0x0000
440#define PXE_STATFLAGS_CABLE_DETECT_SUPPORTED 0x0001
441
442#define PXE_STATFLAGS_GET_STATUS_NO_MEDIA_MASK 0x0002
443#define PXE_STATFLAGS_GET_STATUS_NO_MEDIA_NOT_SUPPORTED 0x0000
444#define PXE_STATFLAGS_GET_STATUS_NO_MEDIA_SUPPORTED 0x0002
445
446///
447/// UNDI Initialize.
448///
449#define PXE_STATFLAGS_INITIALIZED_NO_MEDIA 0x0001
450
451///
452/// UNDI Reset.
453///
454#define PXE_STATFLAGS_RESET_NO_MEDIA 0x0001
455
456///
457/// UNDI Shutdown.
458///
459/// No additional StatFlags.
460
461///
462/// UNDI Interrupt Enables.
463///
464///
465/// If set, receive interrupts are enabled.
466///
467#define PXE_STATFLAGS_INTERRUPT_RECEIVE 0x0001
468
469///
470/// If set, transmit interrupts are enabled.
471///
472#define PXE_STATFLAGS_INTERRUPT_TRANSMIT 0x0002
473
474///
475/// If set, command interrupts are enabled.
476///
477#define PXE_STATFLAGS_INTERRUPT_COMMAND 0x0004
478
479///
480/// UNDI Receive Filters.
481///
482
483///
484/// If set, unicast packets will be received.
485///
486#define PXE_STATFLAGS_RECEIVE_FILTER_UNICAST 0x0001
487
488///
489/// If set, broadcast packets will be received.
490///
491#define PXE_STATFLAGS_RECEIVE_FILTER_BROADCAST 0x0002
492
493///
494/// If set, multicast packets that match up with the multicast address
495/// filter list will be received.
496///
497#define PXE_STATFLAGS_RECEIVE_FILTER_FILTERED_MULTICAST 0x0004
498
499///
500/// If set, all packets will be received.
501///
502#define PXE_STATFLAGS_RECEIVE_FILTER_PROMISCUOUS 0x0008
503
504///
505/// If set, all multicast packets will be received.
506///
507#define PXE_STATFLAGS_RECEIVE_FILTER_ALL_MULTICAST 0x0010
508
509///
510/// UNDI Station Address.
511///
512/// No additional StatFlags.
513///
514
515///
516/// UNDI Statistics.
517///
518/// No additional StatFlags.
519///
520
521///
522//// UNDI MCast IP to MAC.
523////
524//// No additional StatFlags.
525
526///
527/// UNDI NvData.
528///
529/// No additional StatFlags.
530///
531
532///
533/// UNDI Get Status.
534///
535
536///
537/// Use to determine if an interrupt has occurred.
538///
539#define PXE_STATFLAGS_GET_STATUS_INTERRUPT_MASK 0x000F
540#define PXE_STATFLAGS_GET_STATUS_NO_INTERRUPTS 0x0000
541
542///
543/// If set, at least one receive interrupt occurred.
544///
545#define PXE_STATFLAGS_GET_STATUS_RECEIVE 0x0001
546
547///
548/// If set, at least one transmit interrupt occurred.
549///
550#define PXE_STATFLAGS_GET_STATUS_TRANSMIT 0x0002
551
552///
553/// If set, at least one command interrupt occurred.
554///
555#define PXE_STATFLAGS_GET_STATUS_COMMAND 0x0004
556
557///
558/// If set, at least one software interrupt occurred.
559///
560#define PXE_STATFLAGS_GET_STATUS_SOFTWARE 0x0008
561
562///
563/// This flag is set if the transmitted buffer queue is empty. This flag
564/// will be set if all transmitted buffer addresses get written into the DB.
565///
566#define PXE_STATFLAGS_GET_STATUS_TXBUF_QUEUE_EMPTY 0x0010
567
568///
569/// This flag is set if no transmitted buffer addresses were written
570/// into the DB. (This could be because DBsize was too small.)
571///
572#define PXE_STATFLAGS_GET_STATUS_NO_TXBUFS_WRITTEN 0x0020
573
574///
575/// This flag is set if there is no media detected.
576///
577#define PXE_STATFLAGS_GET_STATUS_NO_MEDIA 0x0040
578
579///
580/// UNDI Fill Header.
581///
582/// No additional StatFlags.
583///
584
585///
586/// UNDI Transmit.
587///
588/// No additional StatFlags.
589
590///
591/// UNDI Receive
592/// .
593
594///
595/// No additional StatFlags.
596///
598
599#define PXE_STATCODE_INITIALIZE 0x0000
600
601///
602/// Common StatCodes returned by all UNDI commands, UNDI protocol functions
603/// and BC protocol functions.
604///
605#define PXE_STATCODE_SUCCESS 0x0000
606
607#define PXE_STATCODE_INVALID_CDB 0x0001
608#define PXE_STATCODE_INVALID_CPB 0x0002
609#define PXE_STATCODE_BUSY 0x0003
610#define PXE_STATCODE_QUEUE_FULL 0x0004
611#define PXE_STATCODE_ALREADY_STARTED 0x0005
612#define PXE_STATCODE_NOT_STARTED 0x0006
613#define PXE_STATCODE_NOT_SHUTDOWN 0x0007
614#define PXE_STATCODE_ALREADY_INITIALIZED 0x0008
615#define PXE_STATCODE_NOT_INITIALIZED 0x0009
616#define PXE_STATCODE_DEVICE_FAILURE 0x000A
617#define PXE_STATCODE_NVDATA_FAILURE 0x000B
618#define PXE_STATCODE_UNSUPPORTED 0x000C
619#define PXE_STATCODE_BUFFER_FULL 0x000D
620#define PXE_STATCODE_INVALID_PARAMETER 0x000E
621#define PXE_STATCODE_INVALID_UNDI 0x000F
622#define PXE_STATCODE_IPV4_NOT_SUPPORTED 0x0010
623#define PXE_STATCODE_IPV6_NOT_SUPPORTED 0x0011
624#define PXE_STATCODE_NOT_ENOUGH_MEMORY 0x0012
625#define PXE_STATCODE_NO_DATA 0x0013
626
628
629///
630/// This interface number must be passed to the S/W UNDI Start command.
631///
632#define PXE_IFNUM_START 0x0000
633
634///
635/// This interface number is returned by the S/W UNDI Get State and
636/// Start commands if information in the CDB, CPB or DB is invalid.
637///
638#define PXE_IFNUM_INVALID 0x0000
639
641
642///
643/// Setting this flag directs the UNDI to queue this command for later
644/// execution if the UNDI is busy and it supports command queuing.
645/// If queuing is not supported, a PXE_STATCODE_INVALID_CONTROL error
646/// is returned. If the queue is full, a PXE_STATCODE_CDB_QUEUE_FULL
647/// error is returned.
648///
649#define PXE_CONTROL_QUEUE_IF_BUSY 0x0002
650
651///
652/// These two bit values are used to determine if there are more UNDI
653/// CDB structures following this one. If the link bit is set, there
654/// must be a CDB structure following this one. Execution will start
655/// on the next CDB structure as soon as this one completes successfully.
656/// If an error is generated by this command, execution will stop.
657///
658#define PXE_CONTROL_LINK 0x0001
659#define PXE_CONTROL_LAST_CDB_IN_LIST 0x0000
660
662
663#define PXE_FRAME_TYPE_NONE 0x00
664#define PXE_FRAME_TYPE_UNICAST 0x01
665#define PXE_FRAME_TYPE_BROADCAST 0x02
666#define PXE_FRAME_TYPE_FILTERED_MULTICAST 0x03
667#define PXE_FRAME_TYPE_PROMISCUOUS 0x04
668#define PXE_FRAME_TYPE_PROMISCUOUS_MULTICAST 0x05
669
670#define PXE_FRAME_TYPE_MULTICAST PXE_FRAME_TYPE_FILTERED_MULTICAST
671
673
675#define PXE_MAC_LENGTH 32
676
678
681
682///
683/// This information is from the ARP section of RFC 1700.
684///
685/// 1 Ethernet (10Mb) [JBP]
686/// 2 Experimental Ethernet (3Mb) [JBP]
687/// 3 Amateur Radio AX.25 [PXK]
688/// 4 Proteon ProNET Token Ring [JBP]
689/// 5 Chaos [GXP]
690/// 6 IEEE 802 Networks [JBP]
691/// 7 ARCNET [JBP]
692/// 8 Hyperchannel [JBP]
693/// 9 Lanstar [TU]
694/// 10 Autonet Short Address [MXB1]
695/// 11 LocalTalk [JKR1]
696/// 12 LocalNet (IBM* PCNet or SYTEK* LocalNET) [JXM]
697/// 13 Ultra link [RXD2]
698/// 14 SMDS [GXC1]
699/// 15 Frame Relay [AGM]
700/// 16 Asynchronous Transmission Mode (ATM) [JXB2]
701/// 17 HDLC [JBP]
702/// 18 Fibre Channel [Yakov Rekhter]
703/// 19 Asynchronous Transmission Mode (ATM) [Mark Laubach]
704/// 20 Serial Line [JBP]
705/// 21 Asynchronous Transmission Mode (ATM) [MXB1]
706///
707/// * Other names and brands may be claimed as the property of others.
708///
709#define PXE_IFTYPE_ETHERNET 0x01
710#define PXE_IFTYPE_TOKENRING 0x04
711#define PXE_IFTYPE_FIBRE_CHANNEL 0x12
712
713typedef struct s_pxe_hw_undi {
714 PXE_UINT32 Signature; ///< PXE_ROMID_SIGNATURE.
715 PXE_UINT8 Len; ///< sizeof(PXE_HW_UNDI).
716 PXE_UINT8 Fudge; ///< makes 8-bit cksum equal zero.
717 PXE_UINT8 Rev; ///< PXE_ROMID_REV.
718 PXE_UINT8 IFcnt; ///< physical connector count lower byte.
719 PXE_UINT8 MajorVer; ///< PXE_ROMID_MAJORVER.
720 PXE_UINT8 MinorVer; ///< PXE_ROMID_MINORVER.
721 PXE_UINT8 IFcntExt; ///< physical connector count upper byte.
722 PXE_UINT8 reserved; ///< zero, not used.
723 PXE_UINT32 Implementation; ///< implementation flags.
724 ///< reserved ///< vendor use.
725 ///< UINT32 Status; ///< status port.
726 ///< UINT32 Command; ///< command port.
727 ///< UINT64 CDBaddr; ///< CDB address port.
728 ///<
730
731///
732/// Status port bit definitions.
733///
734
735///
736/// UNDI operation state.
737///
738#define PXE_HWSTAT_STATE_MASK 0xC0000000
739#define PXE_HWSTAT_BUSY 0xC0000000
740#define PXE_HWSTAT_INITIALIZED 0x80000000
741#define PXE_HWSTAT_STARTED 0x40000000
742#define PXE_HWSTAT_STOPPED 0x00000000
743
744///
745/// If set, last command failed.
746///
747#define PXE_HWSTAT_COMMAND_FAILED 0x20000000
748
749///
750/// If set, identifies enabled receive filters.
751///
752#define PXE_HWSTAT_PROMISCUOUS_MULTICAST_RX_ENABLED 0x00001000
753#define PXE_HWSTAT_PROMISCUOUS_RX_ENABLED 0x00000800
754#define PXE_HWSTAT_BROADCAST_RX_ENABLED 0x00000400
755#define PXE_HWSTAT_MULTICAST_RX_ENABLED 0x00000200
756#define PXE_HWSTAT_UNICAST_RX_ENABLED 0x00000100
757
758///
759/// If set, identifies enabled external interrupts.
760///
761#define PXE_HWSTAT_SOFTWARE_INT_ENABLED 0x00000080
762#define PXE_HWSTAT_TX_COMPLETE_INT_ENABLED 0x00000040
763#define PXE_HWSTAT_PACKET_RX_INT_ENABLED 0x00000020
764#define PXE_HWSTAT_CMD_COMPLETE_INT_ENABLED 0x00000010
765
766///
767/// If set, identifies pending interrupts.
768///
769#define PXE_HWSTAT_SOFTWARE_INT_PENDING 0x00000008
770#define PXE_HWSTAT_TX_COMPLETE_INT_PENDING 0x00000004
771#define PXE_HWSTAT_PACKET_RX_INT_PENDING 0x00000002
772#define PXE_HWSTAT_CMD_COMPLETE_INT_PENDING 0x00000001
773
774///
775/// Command port definitions.
776///
777
778///
779/// If set, CDB identified in CDBaddr port is given to UNDI.
780/// If not set, other bits in this word will be processed.
781///
782#define PXE_HWCMD_ISSUE_COMMAND 0x80000000
783#define PXE_HWCMD_INTS_AND_FILTS 0x00000000
784
785///
786/// Use these to enable/disable receive filters.
787///
788#define PXE_HWCMD_PROMISCUOUS_MULTICAST_RX_ENABLE 0x00001000
789#define PXE_HWCMD_PROMISCUOUS_RX_ENABLE 0x00000800
790#define PXE_HWCMD_BROADCAST_RX_ENABLE 0x00000400
791#define PXE_HWCMD_MULTICAST_RX_ENABLE 0x00000200
792#define PXE_HWCMD_UNICAST_RX_ENABLE 0x00000100
793
794///
795/// Use these to enable/disable external interrupts.
796///
797#define PXE_HWCMD_SOFTWARE_INT_ENABLE 0x00000080
798#define PXE_HWCMD_TX_COMPLETE_INT_ENABLE 0x00000040
799#define PXE_HWCMD_PACKET_RX_INT_ENABLE 0x00000020
800#define PXE_HWCMD_CMD_COMPLETE_INT_ENABLE 0x00000010
801
802///
803/// Use these to clear pending external interrupts.
804///
805#define PXE_HWCMD_CLEAR_SOFTWARE_INT 0x00000008
806#define PXE_HWCMD_CLEAR_TX_COMPLETE_INT 0x00000004
807#define PXE_HWCMD_CLEAR_PACKET_RX_INT 0x00000002
808#define PXE_HWCMD_CLEAR_CMD_COMPLETE_INT 0x00000001
809
810typedef struct s_pxe_sw_undi {
811 PXE_UINT32 Signature; ///< PXE_ROMID_SIGNATURE.
812 PXE_UINT8 Len; ///< sizeof(PXE_SW_UNDI).
813 PXE_UINT8 Fudge; ///< makes 8-bit cksum zero.
814 PXE_UINT8 Rev; ///< PXE_ROMID_REV.
815 PXE_UINT8 IFcnt; ///< physical connector count lower byte.
816 PXE_UINT8 MajorVer; ///< PXE_ROMID_MAJORVER.
817 PXE_UINT8 MinorVer; ///< PXE_ROMID_MINORVER.
818 PXE_UINT8 IFcntExt; ///< physical connector count upper byte.
819 PXE_UINT8 reserved1; ///< zero, not used.
820 PXE_UINT32 Implementation; ///< Implementation flags.
821 PXE_UINT64 EntryPoint; ///< API entry point.
822 PXE_UINT8 reserved2[3]; ///< zero, not used.
823 PXE_UINT8 BusCnt; ///< number of bustypes supported.
824 PXE_UINT32 BusType[1]; ///< list of supported bustypes.
826
831
832///
833/// Signature of !PXE structure.
834///
835#define PXE_ROMID_SIGNATURE PXE_BUSTYPE ('!', 'P', 'X', 'E')
836
837///
838/// !PXE structure format revision
839/// .
840#define PXE_ROMID_REV 0x02
841
842///
843/// UNDI command interface revision. These are the values that get sent
844/// in option 94 (Client Network Interface Identifier) in the DHCP Discover
845/// and PXE Boot Server Request packets.
846///
847#define PXE_ROMID_MAJORVER 0x03
848#define PXE_ROMID_MINORVER 0x01
849
850///
851/// Implementation flags.
852///
853#define PXE_ROMID_IMP_HW_UNDI 0x80000000
854#define PXE_ROMID_IMP_SW_VIRT_ADDR 0x40000000
855#define PXE_ROMID_IMP_64BIT_DEVICE 0x00010000
856#define PXE_ROMID_IMP_FRAG_SUPPORTED 0x00008000
857#define PXE_ROMID_IMP_CMD_LINK_SUPPORTED 0x00004000
858#define PXE_ROMID_IMP_CMD_QUEUE_SUPPORTED 0x00002000
859#define PXE_ROMID_IMP_MULTI_FRAME_SUPPORTED 0x00001000
860#define PXE_ROMID_IMP_NVDATA_SUPPORT_MASK 0x00000C00
861#define PXE_ROMID_IMP_NVDATA_BULK_WRITABLE 0x00000C00
862#define PXE_ROMID_IMP_NVDATA_SPARSE_WRITABLE 0x00000800
863#define PXE_ROMID_IMP_NVDATA_READ_ONLY 0x00000400
864#define PXE_ROMID_IMP_NVDATA_NOT_AVAILABLE 0x00000000
865#define PXE_ROMID_IMP_STATISTICS_SUPPORTED 0x00000200
866#define PXE_ROMID_IMP_STATION_ADDR_SETTABLE 0x00000100
867#define PXE_ROMID_IMP_PROMISCUOUS_MULTICAST_RX_SUPPORTED 0x00000080
868#define PXE_ROMID_IMP_PROMISCUOUS_RX_SUPPORTED 0x00000040
869#define PXE_ROMID_IMP_BROADCAST_RX_SUPPORTED 0x00000020
870#define PXE_ROMID_IMP_FILTERED_MULTICAST_RX_SUPPORTED 0x00000010
871#define PXE_ROMID_IMP_SOFTWARE_INT_SUPPORTED 0x00000008
872#define PXE_ROMID_IMP_TX_COMPLETE_INT_SUPPORTED 0x00000004
873#define PXE_ROMID_IMP_PACKET_RX_INT_SUPPORTED 0x00000002
874#define PXE_ROMID_IMP_CMD_COMPLETE_INT_SUPPORTED 0x00000001
875
888
893
894typedef union pxe_device {
895 ///
896 /// PCI and PC Card NICs are both identified using bus, device
897 /// and function numbers. For PC Card, this may require PC
898 /// Card services to be loaded in the BIOS or preboot
899 /// environment.
900 ///
901 struct {
902 ///
903 /// See S/W UNDI ROMID structure definition for PCI and
904 /// PCC BusType definitions.
905 ///
907
908 ///
909 /// Bus, device & function numbers that locate this device.
910 ///
916
917///
918/// cpb and db definitions
919///
920#define MAX_PCI_CONFIG_LEN 64 ///< # of dwords.
921#define MAX_EEPROM_LEN 128 ///< # of dwords.
922#define MAX_XMIT_BUFFERS 32 ///< recycling Q length for xmit_done.
923#define MAX_MCAST_ADDRESS_CNT 8
924
925typedef struct s_pxe_cpb_start_30 {
926 ///
927 /// PXE_VOID Delay(UINTN microseconds);
928 ///
929 /// UNDI will never request a delay smaller than 10 microseconds
930 /// and will always request delays in increments of 10 microseconds.
931 /// The Delay() CallBack routine must delay between n and n + 10
932 /// microseconds before returning control to the UNDI.
933 ///
934 /// This field cannot be set to zero.
935 ///
937
938 ///
939 /// PXE_VOID Block(UINT32 enable);
940 ///
941 /// UNDI may need to block multi-threaded/multi-processor access to
942 /// critical code sections when programming or accessing the network
943 /// device. To this end, a blocking service is needed by the UNDI.
944 /// When UNDI needs a block, it will call Block() passing a non-zero
945 /// value. When UNDI no longer needs a block, it will call Block()
946 /// with a zero value. When called, if the Block() is already enabled,
947 /// do not return control to the UNDI until the previous Block() is
948 /// disabled.
949 ///
950 /// This field cannot be set to zero.
951 ///
953
954 ///
955 /// PXE_VOID Virt2Phys(UINT64 virtual, UINT64 physical_ptr);
956 ///
957 /// UNDI will pass the virtual address of a buffer and the virtual
958 /// address of a 64-bit physical buffer. Convert the virtual address
959 /// to a physical address and write the result to the physical address
960 /// buffer. If virtual and physical addresses are the same, just
961 /// copy the virtual address to the physical address buffer.
962 ///
963 /// This field can be set to zero if virtual and physical addresses
964 /// are equal.
965 ///
967 ///
968 /// PXE_VOID Mem_IO(UINT8 read_write, UINT8 len, UINT64 port,
969 /// UINT64 buf_addr);
970 ///
971 /// UNDI will read or write the device io space using this call back
972 /// function. It passes the number of bytes as the len parameter and it
973 /// will be either 1,2,4 or 8.
974 ///
975 /// This field can not be set to zero.
976 ///
979
980typedef struct s_pxe_cpb_start_31 {
981 ///
982 /// PXE_VOID Delay(UINT64 UnqId, UINTN microseconds);
983 ///
984 /// UNDI will never request a delay smaller than 10 microseconds
985 /// and will always request delays in increments of 10 microseconds.
986 /// The Delay() CallBack routine must delay between n and n + 10
987 /// microseconds before returning control to the UNDI.
988 ///
989 /// This field cannot be set to zero.
990 ///
992
993 ///
994 /// PXE_VOID Block(UINT64 unq_id, UINT32 enable);
995 ///
996 /// UNDI may need to block multi-threaded/multi-processor access to
997 /// critical code sections when programming or accessing the network
998 /// device. To this end, a blocking service is needed by the UNDI.
999 /// When UNDI needs a block, it will call Block() passing a non-zero
1000 /// value. When UNDI no longer needs a block, it will call Block()
1001 /// with a zero value. When called, if the Block() is already enabled,
1002 /// do not return control to the UNDI until the previous Block() is
1003 /// disabled.
1004 ///
1005 /// This field cannot be set to zero.
1006 ///
1008
1009 ///
1010 /// PXE_VOID Virt2Phys(UINT64 UnqId, UINT64 virtual, UINT64 physical_ptr);
1011 ///
1012 /// UNDI will pass the virtual address of a buffer and the virtual
1013 /// address of a 64-bit physical buffer. Convert the virtual address
1014 /// to a physical address and write the result to the physical address
1015 /// buffer. If virtual and physical addresses are the same, just
1016 /// copy the virtual address to the physical address buffer.
1017 ///
1018 /// This field can be set to zero if virtual and physical addresses
1019 /// are equal.
1020 ///
1022 ///
1023 /// PXE_VOID Mem_IO(UINT64 UnqId, UINT8 read_write, UINT8 len, UINT64 port,
1024 /// UINT64 buf_addr);
1025 ///
1026 /// UNDI will read or write the device io space using this call back
1027 /// function. It passes the number of bytes as the len parameter and it
1028 /// will be either 1,2,4 or 8.
1029 ///
1030 /// This field can not be set to zero.
1031 ///
1033 ///
1034 /// PXE_VOID Map_Mem(UINT64 unq_id, UINT64 virtual_addr, UINT32 size,
1035 /// UINT32 Direction, UINT64 mapped_addr);
1036 ///
1037 /// UNDI will pass the virtual address of a buffer, direction of the data
1038 /// flow from/to the mapped buffer (the constants are defined below)
1039 /// and a place holder (pointer) for the mapped address.
1040 /// This call will Map the given address to a physical DMA address and write
1041 /// the result to the mapped_addr pointer. If there is no need to
1042 /// map the given address to a lower address (i.e. the given address is
1043 /// associated with a physical address that is already compatible to be
1044 /// used with the DMA, it converts the given virtual address to it's
1045 /// physical address and write that in the mapped address pointer.
1046 ///
1047 /// This field can be set to zero if there is no mapping service available.
1048 ///
1050
1051 ///
1052 /// PXE_VOID UnMap_Mem(UINT64 unq_id, UINT64 virtual_addr, UINT32 size,
1053 /// UINT32 Direction, UINT64 mapped_addr);
1054 ///
1055 /// UNDI will pass the virtual and mapped addresses of a buffer.
1056 /// This call will un map the given address.
1057 ///
1058 /// This field can be set to zero if there is no unmapping service available.
1059 ///
1061
1062 ///
1063 /// PXE_VOID Sync_Mem(UINT64 unq_id, UINT64 virtual,
1064 /// UINT32 size, UINT32 Direction, UINT64 mapped_addr);
1065 ///
1066 /// UNDI will pass the virtual and mapped addresses of a buffer.
1067 /// This call will synchronize the contents of both the virtual and mapped.
1068 /// buffers for the given Direction.
1069 ///
1070 /// This field can be set to zero if there is no service available.
1071 ///
1073
1074 ///
1075 /// protocol driver can provide anything for this Unique_ID, UNDI remembers
1076 /// that as just a 64bit value associated to the interface specified by
1077 /// the ifnum and gives it back as a parameter to all the call-back routines
1078 /// when calling for that interface!
1079 ///
1082
1083#define TO_AND_FROM_DEVICE 0
1084#define FROM_DEVICE 1
1085#define TO_DEVICE 2
1086
1087#define PXE_DELAY_MILLISECOND 1000
1088#define PXE_DELAY_SECOND 1000000
1089#define PXE_IO_READ 0
1090#define PXE_IO_WRITE 1
1091#define PXE_MEM_READ 2
1092#define PXE_MEM_WRITE 4
1093
1095 ///
1096 /// Minimum length of locked memory buffer that must be given to
1097 /// the Initialize command. Giving UNDI more memory will generally
1098 /// give better performance.
1099 ///
1100 /// If MemoryRequired is zero, the UNDI does not need and will not
1101 /// use system memory to receive and transmit packets.
1102 ///
1104
1105 ///
1106 /// Maximum frame data length for Tx/Rx excluding the media header.
1107 ///
1109
1110 ///
1111 /// Supported link speeds are in units of mega bits. Common ethernet
1112 /// values are 10, 100 and 1000. Unused LinkSpeeds[] entries are zero
1113 /// filled.
1114 ///
1116
1117 ///
1118 /// Number of non-volatile storage items.
1119 ///
1121
1122 ///
1123 /// Width of non-volatile storage item in bytes. 0, 1, 2 or 4
1124 ///
1126
1127 ///
1128 /// Media header length. This is the typical media header length for
1129 /// this UNDI. This information is needed when allocating receive
1130 /// and transmit buffers.
1131 ///
1133
1134 ///
1135 /// Number of bytes in the NIC hardware (MAC) address.
1136 ///
1138
1139 ///
1140 /// Maximum number of multicast MAC addresses in the multicast
1141 /// MAC address filter list.
1142 ///
1144
1145 ///
1146 /// Default number and size of transmit and receive buffers that will
1147 /// be allocated by the UNDI. If MemoryRequired is non-zero, this
1148 /// allocation will come out of the memory buffer given to the Initialize
1149 /// command. If MemoryRequired is zero, this allocation will come out of
1150 /// memory on the NIC.
1151 ///
1156
1157 ///
1158 /// Hardware interface types defined in the Assigned Numbers RFC
1159 /// and used in DHCP and ARP packets.
1160 /// See the PXE_IFTYPE typedef and PXE_IFTYPE_xxx macros.
1161 ///
1163
1164 ///
1165 /// Supported duplex. See PXE_DUPLEX_xxxxx #defines below.
1166 ///
1168
1169 ///
1170 /// Supported loopback options. See PXE_LOOPBACK_xxxxx #defines below.
1171 ///
1174
1175#define PXE_MAX_TXRX_UNIT_ETHER 1500
1176
1177#define PXE_HWADDR_LEN_ETHER 0x0006
1178#define PXE_MAC_HEADER_LEN_ETHER 0x000E
1179
1180#define PXE_DUPLEX_ENABLE_FULL_SUPPORTED 1
1181#define PXE_DUPLEX_FORCE_FULL_SUPPORTED 2
1182
1183#define PXE_LOOPBACK_INTERNAL_SUPPORTED 1
1184#define PXE_LOOPBACK_EXTERNAL_SUPPORTED 2
1185
1187 ///
1188 /// This is the flag field for the PXE_DB_GET_CONFIG_INFO union.
1189 /// For PCI bus devices, this field is set to PXE_BUSTYPE_PCI.
1190 ///
1192
1193 ///
1194 /// This identifies the PCI network device that this UNDI interface.
1195 /// is bound to.
1196 ///
1200
1201 ///
1202 /// This is a copy of the PCI configuration space for this
1203 /// network device.
1204 ///
1205 union {
1211
1213 ///
1214 /// This is the flag field for the PXE_DB_GET_CONFIG_INFO union.
1215 /// For PCC bus devices, this field is set to PXE_BUSTYPE_PCC.
1216 ///
1218
1219 ///
1220 /// This identifies the PCC network device that this UNDI interface
1221 /// is bound to.
1222 ///
1226
1227 ///
1228 /// This is a copy of the PCC configuration space for this
1229 /// network device.
1230 ///
1231 union {
1237
1242
1243typedef struct s_pxe_cpb_initialize {
1244 ///
1245 /// Address of first (lowest) byte of the memory buffer. This buffer must
1246 /// be in contiguous physical memory and cannot be swapped out. The UNDI
1247 /// will be using this for transmit and receive buffering.
1248 ///
1250
1251 ///
1252 /// MemoryLength must be greater than or equal to MemoryRequired
1253 /// returned by the Get Init Info command.
1254 ///
1256
1257 ///
1258 /// Desired link speed in Mbit/sec. Common ethernet values are 10, 100
1259 /// and 1000. Setting a value of zero will auto-detect and/or use the
1260 /// default link speed (operation depends on UNDI/NIC functionality).
1261 ///
1263
1264 ///
1265 /// Suggested number and size of receive and transmit buffers to
1266 /// allocate. If MemoryAddr and MemoryLength are non-zero, this
1267 /// allocation comes out of the supplied memory buffer. If MemoryAddr
1268 /// and MemoryLength are zero, this allocation comes out of memory
1269 /// on the NIC.
1270 ///
1271 /// If these fields are set to zero, the UNDI will allocate buffer
1272 /// counts and sizes as it sees fit.
1273 ///
1278
1279 ///
1280 /// The following configuration parameters are optional and must be zero
1281 /// to use the default values.
1282 ///
1284
1287
1288#define PXE_DUPLEX_DEFAULT 0x00
1289#define PXE_FORCE_FULL_DUPLEX 0x01
1290#define PXE_ENABLE_FULL_DUPLEX 0x02
1291#define PXE_FORCE_HALF_DUPLEX 0x04
1292#define PXE_DISABLE_FULL_DUPLEX 0x08
1293
1294#define LOOPBACK_NORMAL 0
1295#define LOOPBACK_INTERNAL 1
1296#define LOOPBACK_EXTERNAL 2
1297
1298typedef struct s_pxe_db_initialize {
1299 ///
1300 /// Actual amount of memory used from the supplied memory buffer. This
1301 /// may be less that the amount of memory suppllied and may be zero if
1302 /// the UNDI and network device do not use external memory buffers.
1303 ///
1304 /// Memory used by the UNDI and network device is allocated from the
1305 /// lowest memory buffer address.
1306 ///
1308
1309 ///
1310 /// Actual number and size of receive and transmit buffers that were
1311 /// allocated.
1312 ///
1318
1320 ///
1321 /// List of multicast MAC addresses. This list, if present, will
1322 /// replace the existing multicast MAC address filter list.
1323 ///
1326
1328 ///
1329 /// Filtered multicast MAC address list.
1330 ///
1333
1335 ///
1336 /// If supplied and supported, the current station MAC address
1337 /// will be changed.
1338 ///
1341
1343 ///
1344 /// Current station MAC address.
1345 ///
1347
1348 ///
1349 /// Station broadcast MAC address.
1350 ///
1352
1353 ///
1354 /// Permanent station MAC address.
1355 ///
1358
1359typedef struct s_pxe_db_statistics {
1360 ///
1361 /// Bit field identifying what statistic data is collected by the
1362 /// UNDI/NIC.
1363 /// If bit 0x00 is set, Data[0x00] is collected.
1364 /// If bit 0x01 is set, Data[0x01] is collected.
1365 /// If bit 0x20 is set, Data[0x20] is collected.
1366 /// If bit 0x21 is set, Data[0x21] is collected.
1367 /// Etc.
1368 ///
1370
1371 ///
1372 /// Statistic data.
1373 ///
1376
1377///
1378/// Total number of frames received. Includes frames with errors and
1379/// dropped frames.
1380///
1381#define PXE_STATISTICS_RX_TOTAL_FRAMES 0x00
1382
1383///
1384/// Number of valid frames received and copied into receive buffers.
1385///
1386#define PXE_STATISTICS_RX_GOOD_FRAMES 0x01
1387
1388///
1389/// Number of frames below the minimum length for the media.
1390/// This would be <64 for ethernet.
1391///
1392#define PXE_STATISTICS_RX_UNDERSIZE_FRAMES 0x02
1393
1394///
1395/// Number of frames longer than the maxminum length for the
1396/// media. This would be >1500 for ethernet.
1397///
1398#define PXE_STATISTICS_RX_OVERSIZE_FRAMES 0x03
1399
1400///
1401/// Valid frames that were dropped because receive buffers were full.
1402///
1403#define PXE_STATISTICS_RX_DROPPED_FRAMES 0x04
1404
1405///
1406/// Number of valid unicast frames received and not dropped.
1407///
1408#define PXE_STATISTICS_RX_UNICAST_FRAMES 0x05
1409
1410///
1411/// Number of valid broadcast frames received and not dropped.
1412///
1413#define PXE_STATISTICS_RX_BROADCAST_FRAMES 0x06
1414
1415///
1416/// Number of valid mutlicast frames received and not dropped.
1417///
1418#define PXE_STATISTICS_RX_MULTICAST_FRAMES 0x07
1419
1420///
1421/// Number of frames w/ CRC or alignment errors.
1422///
1423#define PXE_STATISTICS_RX_CRC_ERROR_FRAMES 0x08
1424
1425///
1426/// Total number of bytes received. Includes frames with errors
1427/// and dropped frames.
1428///
1429#define PXE_STATISTICS_RX_TOTAL_BYTES 0x09
1430
1431///
1432/// Transmit statistics.
1433///
1434#define PXE_STATISTICS_TX_TOTAL_FRAMES 0x0A
1435#define PXE_STATISTICS_TX_GOOD_FRAMES 0x0B
1436#define PXE_STATISTICS_TX_UNDERSIZE_FRAMES 0x0C
1437#define PXE_STATISTICS_TX_OVERSIZE_FRAMES 0x0D
1438#define PXE_STATISTICS_TX_DROPPED_FRAMES 0x0E
1439#define PXE_STATISTICS_TX_UNICAST_FRAMES 0x0F
1440#define PXE_STATISTICS_TX_BROADCAST_FRAMES 0x10
1441#define PXE_STATISTICS_TX_MULTICAST_FRAMES 0x11
1442#define PXE_STATISTICS_TX_CRC_ERROR_FRAMES 0x12
1443#define PXE_STATISTICS_TX_TOTAL_BYTES 0x13
1444
1445///
1446/// Number of collisions detection on this subnet.
1447///
1448#define PXE_STATISTICS_COLLISIONS 0x14
1449
1450///
1451/// Number of frames destined for unsupported protocol.
1452///
1453#define PXE_STATISTICS_UNSUPPORTED_PROTOCOL 0x15
1454
1455///
1456/// Number of valid frames received that were duplicated.
1457///
1458#define PXE_STATISTICS_RX_DUPLICATED_FRAMES 0x16
1459
1460///
1461/// Number of encrypted frames received that failed to decrypt.
1462///
1463#define PXE_STATISTICS_RX_DECRYPT_ERROR_FRAMES 0x17
1464
1465///
1466/// Number of frames that failed to transmit after exceeding the retry limit.
1467///
1468#define PXE_STATISTICS_TX_ERROR_FRAMES 0x18
1469
1470///
1471/// Number of frames transmitted successfully after more than one attempt.
1472///
1473#define PXE_STATISTICS_TX_RETRY_FRAMES 0x19
1474
1476 ///
1477 /// Multicast IP address to be converted to multicast MAC address.
1478 ///
1481
1483 ///
1484 /// Multicast MAC address.
1485 ///
1488
1490 ///
1491 /// NvData item list. Only items in this list will be updated.
1492 ///
1493 struct {
1494 ///
1495 /// Non-volatile storage address to be changed.
1496 ///
1498
1499 ///
1500 /// Data item to write into above storage address.
1501 ///
1502 union {
1509
1510///
1511/// When using bulk update, the size of the CPB structure must be
1512/// the same size as the non-volatile NIC storage.
1513///
1515 ///
1516 /// Array of byte-wide data items.
1517 ///
1519
1520 ///
1521 /// Array of word-wide data items.
1522 ///
1524
1525 ///
1526 /// Array of dword-wide data items.
1527 ///
1530
1531typedef struct s_pxe_db_nvdata {
1532 ///
1533 /// Arrays of data items from non-volatile storage.
1534 ///
1535 union {
1536 ///
1537 /// Array of byte-wide data items.
1538 ///
1540
1541 ///
1542 /// Array of word-wide data items.
1543 ///
1545
1546 ///
1547 /// Array of dword-wide data items.
1548 ///
1552
1553typedef struct s_pxe_db_get_status {
1554 ///
1555 /// Length of next receive frame (header + data). If this is zero,
1556 /// there is no next receive frame available.
1557 ///
1559
1560 ///
1561 /// Reserved, set to zero.
1562 ///
1564
1565 ///
1566 /// Addresses of transmitted buffers that need to be recycled.
1567 ///
1570
1572 ///
1573 /// Source and destination MAC addresses. These will be copied into
1574 /// the media header without doing byte swapping.
1575 ///
1578
1579 ///
1580 /// Address of first byte of media header. The first byte of packet data
1581 /// follows the last byte of the media header.
1582 ///
1584
1585 ///
1586 /// Length of packet data in bytes (not including the media header).
1587 ///
1589
1590 ///
1591 /// Protocol type. This will be copied into the media header without
1592 /// doing byte swapping. Protocol type numbers can be obtained from
1593 /// the Assigned Numbers RFC 1700.
1594 ///
1596
1597 ///
1598 /// Length of the media header in bytes.
1599 ///
1602
1603#define PXE_PROTOCOL_ETHERNET_IP 0x0800
1604#define PXE_PROTOCOL_ETHERNET_ARP 0x0806
1605#define MAX_XMIT_FRAGMENTS 16
1606
1608 ///
1609 /// Source and destination MAC addresses. These will be copied into
1610 /// the media header without doing byte swapping.
1611 ///
1614
1615 ///
1616 /// Length of packet data in bytes (not including the media header).
1617 ///
1619
1620 ///
1621 /// Protocol type. This will be copied into the media header without
1622 /// doing byte swapping. Protocol type numbers can be obtained from
1623 /// the Assigned Numbers RFC 1700.
1624 ///
1626
1627 ///
1628 /// Length of the media header in bytes.
1629 ///
1631
1632 ///
1633 /// Number of packet fragment descriptors.
1634 ///
1636
1637 ///
1638 /// Reserved, must be set to zero.
1639 ///
1641
1642 ///
1643 /// Array of packet fragment descriptors. The first byte of the media
1644 /// header is the first byte of the first fragment.
1645 ///
1646 struct {
1647 ///
1648 /// Address of this packet fragment.
1649 ///
1651
1652 ///
1653 /// Length of this packet fragment.
1654 ///
1656
1657 ///
1658 /// Reserved, must be set to zero.
1659 ///
1663
1664typedef struct s_pxe_cpb_transmit {
1665 ///
1666 /// Address of first byte of frame buffer. This is also the first byte
1667 /// of the media header.
1668 ///
1670
1671 ///
1672 /// Length of the data portion of the frame buffer in bytes. Do not
1673 /// include the length of the media header.
1674 ///
1676
1677 ///
1678 /// Length of the media header in bytes.
1679 ///
1681
1682 ///
1683 /// Reserved, must be zero.
1684 ///
1687
1689 ///
1690 /// Length of packet data in bytes (not including the media header).
1691 ///
1693
1694 ///
1695 /// Length of the media header in bytes.
1696 ///
1698
1699 ///
1700 /// Number of packet fragment descriptors.
1701 ///
1703
1704 ///
1705 /// Array of frame fragment descriptors. The first byte of the first
1706 /// fragment is also the first byte of the media header.
1707 ///
1708 struct {
1709 ///
1710 /// Address of this frame fragment.
1711 ///
1713
1714 ///
1715 /// Length of this frame fragment.
1716 ///
1718
1719 ///
1720 /// Reserved, must be set to zero.
1721 ///
1725
1726typedef struct s_pxe_cpb_receive {
1727 ///
1728 /// Address of first byte of receive buffer. This is also the first byte
1729 /// of the frame header.
1730 ///
1732
1733 ///
1734 /// Length of receive buffer. This must be large enough to hold the
1735 /// received frame (media header + data). If the length of smaller than
1736 /// the received frame, data will be lost.
1737 ///
1739
1740 ///
1741 /// Reserved, must be set to zero.
1742 ///
1745
1746typedef struct s_pxe_db_receive {
1747 ///
1748 /// Source and destination MAC addresses from media header.
1749 ///
1752
1753 ///
1754 /// Length of received frame. May be larger than receive buffer size.
1755 /// The receive buffer will not be overwritten. This is how to tell
1756 /// if data was lost because the receive buffer was too small.
1757 ///
1759
1760 ///
1761 /// Protocol type from media header.
1762 ///
1764
1765 ///
1766 /// Length of media header in received frame.
1767 ///
1769
1770 ///
1771 /// Type of receive frame.
1772 ///
1774
1775 ///
1776 /// Reserved, must be zero.
1777 ///
1780
1781#pragma pack()
1782
1783#endif
unsigned short UINT16
2-byte unsigned value.
UINT64 UINTN
Unsigned value of native width.
unsigned long long UINT64
8-byte unsigned value.
unsigned char UINT8
1-byte unsigned value.
unsigned int UINT32
4-byte unsigned value.
#define VOID
Undeclared type.
Definition Base.h:272
PXE_UINT8 PXE_MAC_ADDR[PXE_MAC_LENGTH]
Definition UefiPxe.h:677
struct s_pxe_db_initialize PXE_DB_INITIALIZE
PXE_UINT16 PXE_STATFLAGS
UNDI Receive.
Definition UefiPxe.h:404
#define PXE_MAC_LENGTH
Definition UefiPxe.h:675
PXE_UINT16 PXE_OPFLAGS
Definition UefiPxe.h:180
struct s_pxe_db_mcast_ip_to_mac PXE_DB_MCAST_IP_TO_MAC
union u_pxe_ip_addr PXE_IP_ADDR
struct s_pxe_dpb_station_address PXE_DB_STATION_ADDRESS
struct s_pxe_hw_undi PXE_HW_UNDI
PXE_UINT16 PXE_CONTROL
Definition UefiPxe.h:640
PXE_UINT16 PXE_OPCODE
Definition UefiPxe.h:83
UINT8 PXE_UINT8
Definition UefiPxe.h:69
UINT16 PXE_MEDIA_PROTOCOL
Definition UefiPxe.h:680
PXE_UINT8 PXE_FRAME_TYPE
Definition UefiPxe.h:661
union u_pxe_db_get_config_info PXE_DB_GET_CONFIG_INFO
struct s_pxe_cpb_station_address PXE_CPB_STATION_ADDRESS
struct s_pxe_db_statistics PXE_DB_STATISTICS
struct s_pxe_cpb_mcast_ip_to_mac PXE_CPB_MCAST_IP_TO_MAC
struct s_pxe_cpb_fill_header PXE_CPB_FILL_HEADER
PXE_UINT8 PXE_BOOL
Definition UefiPxe.h:79
UINT64 PXE_UINT64
Typedef unsigned long PXE_UINT64.
Definition UefiPxe.h:77
struct s_pxe_sw_undi PXE_SW_UNDI
struct s_pxe_cdb PXE_CDB
PXE_UINT32 PXE_IPV6[4]
Definition UefiPxe.h:674
struct s_pxe_cpb_transmit PXE_CPB_TRANSMIT
union u_pxe_undi PXE_UNDI
struct s_pxe_db_nvdata PXE_DB_NVDATA
struct s_pxe_db_get_init_info PXE_DB_GET_INIT_INFO
struct s_pxe_cpb_start_31 PXE_CPB_START_31
struct s_pxe_pci_config_info PXE_PCI_CONFIG_INFO
UINT32 PXE_UINT32
Definition UefiPxe.h:71
struct s_pxe_cpb_nvdata_sparse PXE_CPB_NVDATA_SPARSE
#define MAX_XMIT_BUFFERS
recycling Q length for xmit_done.
Definition UefiPxe.h:922
struct s_pxe_cpb_fill_header_fragmented PXE_CPB_FILL_HEADER_FRAGMENTED
#define MAX_EEPROM_LEN
Definition UefiPxe.h:921
struct s_pxe_cpb_start_30 PXE_CPB_START_30
struct s_pxe_db_get_status PXE_DB_GET_STATUS
VOID PXE_VOID
Definition UefiPxe.h:68
struct s_pxe_cpb_receive_filters PXE_CPB_RECEIVE_FILTERS
struct s_pxe_db_receive PXE_DB_RECEIVE
PXE_UINT16 PXE_IFNUM
Definition UefiPxe.h:627
UINTN PXE_UINTN
Definition UefiPxe.h:72
struct s_pxe_db_receive_filters PXE_DB_RECEIVE_FILTERS
PXE_UINT8 PXE_IFTYPE
Definition UefiPxe.h:679
struct s_pxe_cpb_initialize PXE_CPB_INITIALIZE
struct s_pxe_cpb_transmit_fragments PXE_CPB_TRANSMIT_FRAGMENTS
UINT16 PXE_UINT16
Definition UefiPxe.h:70
#define MAX_XMIT_FRAGMENTS
Definition UefiPxe.h:1605
#define MAX_MCAST_ADDRESS_CNT
Definition UefiPxe.h:923
struct s_pxe_pcc_config_info PXE_PCC_CONFIG_INFO
PXE_UINT16 PXE_STATCODE
UNDI Fill Header.
Definition UefiPxe.h:597
union u_pxe_cpb_nvdata_bulk PXE_CPB_NVDATA_BULK
When using bulk update, the size of the CPB structure must be the same size as the non-volatile NIC s...
union pxe_device PXE_DEVICE
struct s_pxe_cpb_receive PXE_CPB_RECEIVE
PXE_UINT32 PXE_IPV4
Definition UefiPxe.h:672
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
PXE_UINT64 CPBaddr
Definition UefiPxe.h:881
PXE_STATCODE StatCode
Definition UefiPxe.h:883
PXE_CONTROL Control
Definition UefiPxe.h:886
PXE_UINT16 DBsize
Definition UefiPxe.h:880
PXE_STATFLAGS StatFlags
Definition UefiPxe.h:884
PXE_UINT16 IFnum
Definition UefiPxe.h:885
PXE_OPFLAGS OpFlags
Definition UefiPxe.h:878
PXE_UINT64 DBaddr
Definition UefiPxe.h:882
PXE_OPCODE OpCode
Definition UefiPxe.h:877
PXE_UINT16 CPBsize
Definition UefiPxe.h:879
PXE_UINT16 MediaHeaderLen
Length of the media header in bytes.
Definition UefiPxe.h:1630
PXE_UINT32 FragLen
Length of this packet fragment.
Definition UefiPxe.h:1655
PXE_UINT16 FragCnt
Number of packet fragment descriptors.
Definition UefiPxe.h:1635
PXE_UINT64 FragAddr
Address of this packet fragment.
Definition UefiPxe.h:1650
PXE_MEDIA_PROTOCOL Protocol
Protocol type.
Definition UefiPxe.h:1625
struct s_pxe_cpb_fill_header_fragmented::@146373153332152126301350117074014067050140014012 FragDesc[MAX_XMIT_FRAGMENTS]
Array of packet fragment descriptors.
PXE_UINT32 PacketLen
Length of packet data in bytes (not including the media header).
Definition UefiPxe.h:1618
PXE_MAC_ADDR SrcAddr
Source and destination MAC addresses.
Definition UefiPxe.h:1612
PXE_UINT16 reserved
Reserved, must be set to zero.
Definition UefiPxe.h:1640
PXE_MAC_ADDR DestAddr
Definition UefiPxe.h:1577
PXE_UINT64 MediaHeader
Address of first byte of media header.
Definition UefiPxe.h:1583
PXE_UINT16 Protocol
Protocol type.
Definition UefiPxe.h:1595
PXE_UINT32 PacketLen
Length of packet data in bytes (not including the media header).
Definition UefiPxe.h:1588
PXE_MAC_ADDR SrcAddr
Source and destination MAC addresses.
Definition UefiPxe.h:1576
PXE_UINT16 MediaHeaderLen
Length of the media header in bytes.
Definition UefiPxe.h:1600
PXE_UINT16 RxBufCnt
Definition UefiPxe.h:1276
PXE_UINT32 MemoryLength
MemoryLength must be greater than or equal to MemoryRequired returned by the Get Init Info command.
Definition UefiPxe.h:1255
PXE_UINT64 MemoryAddr
Address of first (lowest) byte of the memory buffer.
Definition UefiPxe.h:1249
PXE_UINT16 TxBufCnt
Suggested number and size of receive and transmit buffers to allocate.
Definition UefiPxe.h:1274
PXE_UINT8 DuplexMode
The following configuration parameters are optional and must be zero to use the default values.
Definition UefiPxe.h:1283
PXE_UINT16 TxBufSize
Definition UefiPxe.h:1275
PXE_UINT8 LoopBackMode
Definition UefiPxe.h:1285
PXE_UINT16 RxBufSize
Definition UefiPxe.h:1277
PXE_UINT32 LinkSpeed
Desired link speed in Mbit/sec.
Definition UefiPxe.h:1262
PXE_IP_ADDR IP
Multicast IP address to be converted to multicast MAC address.
Definition UefiPxe.h:1479
union s_pxe_cpb_nvdata_sparse::@046112243103130216035205344031156370160240224015::@244007073304336006374131261336354115112221102343 Data
Data item to write into above storage address.
struct s_pxe_cpb_nvdata_sparse::@046112243103130216035205344031156370160240224015 Item[MAX_EEPROM_LEN]
NvData item list.
PXE_UINT32 Addr
Non-volatile storage address to be changed.
Definition UefiPxe.h:1497
PXE_MAC_ADDR MCastList[MAX_MCAST_ADDRESS_CNT]
List of multicast MAC addresses.
Definition UefiPxe.h:1324
PXE_UINT32 reserved
Reserved, must be set to zero.
Definition UefiPxe.h:1743
PXE_UINT32 BufferLen
Length of receive buffer.
Definition UefiPxe.h:1738
PXE_UINT64 BufferAddr
Address of first byte of receive buffer.
Definition UefiPxe.h:1731
UINT64 Mem_IO
PXE_VOID Mem_IO(UINT8 read_write, UINT8 len, UINT64 port, UINT64 buf_addr);.
Definition UefiPxe.h:977
UINT64 Virt2Phys
PXE_VOID Virt2Phys(UINT64 virtual, UINT64 physical_ptr);.
Definition UefiPxe.h:966
UINT64 Block
PXE_VOID Block(UINT32 enable);.
Definition UefiPxe.h:952
UINT64 Delay
PXE_VOID Delay(UINTN microseconds);.
Definition UefiPxe.h:936
UINT64 UnMap_Mem
PXE_VOID UnMap_Mem(UINT64 unq_id, UINT64 virtual_addr, UINT32 size, UINT32 Direction,...
Definition UefiPxe.h:1060
UINT64 Sync_Mem
PXE_VOID Sync_Mem(UINT64 unq_id, UINT64 virtual, UINT32 size, UINT32 Direction,...
Definition UefiPxe.h:1072
UINT64 Unique_ID
protocol driver can provide anything for this Unique_ID, UNDI remembers that as just a 64bit value as...
Definition UefiPxe.h:1080
UINT64 Delay
PXE_VOID Delay(UINT64 UnqId, UINTN microseconds);.
Definition UefiPxe.h:991
UINT64 Virt2Phys
PXE_VOID Virt2Phys(UINT64 UnqId, UINT64 virtual, UINT64 physical_ptr);.
Definition UefiPxe.h:1021
UINT64 Map_Mem
PXE_VOID Map_Mem(UINT64 unq_id, UINT64 virtual_addr, UINT32 size, UINT32 Direction,...
Definition UefiPxe.h:1049
UINT64 Mem_IO
PXE_VOID Mem_IO(UINT64 UnqId, UINT8 read_write, UINT8 len, UINT64 port, UINT64 buf_addr);...
Definition UefiPxe.h:1032
UINT64 Block
PXE_VOID Block(UINT64 unq_id, UINT32 enable);.
Definition UefiPxe.h:1007
PXE_MAC_ADDR StationAddr
If supplied and supported, the current station MAC address will be changed.
Definition UefiPxe.h:1339
PXE_UINT32 reserved
Reserved, must be set to zero.
Definition UefiPxe.h:1722
PXE_UINT16 MediaheaderLen
Length of the media header in bytes.
Definition UefiPxe.h:1697
PXE_UINT32 FrameLen
Length of packet data in bytes (not including the media header).
Definition UefiPxe.h:1692
PXE_UINT16 FragCnt
Number of packet fragment descriptors.
Definition UefiPxe.h:1702
PXE_UINT32 FragLen
Length of this frame fragment.
Definition UefiPxe.h:1717
PXE_UINT64 FragAddr
Address of this frame fragment.
Definition UefiPxe.h:1712
struct s_pxe_cpb_transmit_fragments::@211244027343363103354124370224034045264052011246 FragDesc[MAX_XMIT_FRAGMENTS]
Array of frame fragment descriptors.
PXE_UINT16 MediaheaderLen
Length of the media header in bytes.
Definition UefiPxe.h:1680
PXE_UINT32 DataLen
Length of the data portion of the frame buffer in bytes.
Definition UefiPxe.h:1675
PXE_UINT64 FrameAddr
Address of first byte of frame buffer.
Definition UefiPxe.h:1669
PXE_UINT16 reserved
Reserved, must be zero.
Definition UefiPxe.h:1685
PXE_UINT8 IFtype
Hardware interface types defined in the Assigned Numbers RFC and used in DHCP and ARP packets.
Definition UefiPxe.h:1162
PXE_UINT16 NvWidth
Width of non-volatile storage item in bytes.
Definition UefiPxe.h:1125
PXE_UINT8 SupportedLoopBackModes
Supported loopback options.
Definition UefiPxe.h:1172
PXE_UINT32 MemoryRequired
Minimum length of locked memory buffer that must be given to the Initialize command.
Definition UefiPxe.h:1103
PXE_UINT32 FrameDataLen
Maximum frame data length for Tx/Rx excluding the media header.
Definition UefiPxe.h:1108
PXE_UINT32 NvCount
Number of non-volatile storage items.
Definition UefiPxe.h:1120
PXE_UINT16 HWaddrLen
Number of bytes in the NIC hardware (MAC) address.
Definition UefiPxe.h:1137
PXE_UINT16 TxBufCnt
Default number and size of transmit and receive buffers that will be allocated by the UNDI.
Definition UefiPxe.h:1152
PXE_UINT16 MCastFilterCnt
Maximum number of multicast MAC addresses in the multicast MAC address filter list.
Definition UefiPxe.h:1143
PXE_UINT8 SupportedDuplexModes
Supported duplex.
Definition UefiPxe.h:1167
PXE_UINT32 LinkSpeeds[4]
Supported link speeds are in units of mega bits.
Definition UefiPxe.h:1115
PXE_UINT16 MediaHeaderLen
Media header length.
Definition UefiPxe.h:1132
PXE_UINT64 TxBuffer[MAX_XMIT_BUFFERS]
Addresses of transmitted buffers that need to be recycled.
Definition UefiPxe.h:1568
PXE_UINT32 RxFrameLen
Length of next receive frame (header + data).
Definition UefiPxe.h:1558
PXE_UINT32 reserved
Reserved, set to zero.
Definition UefiPxe.h:1563
PXE_UINT16 TxBufSize
Definition UefiPxe.h:1314
PXE_UINT16 TxBufCnt
Actual number and size of receive and transmit buffers that were allocated.
Definition UefiPxe.h:1313
PXE_UINT32 MemoryUsed
Actual amount of memory used from the supplied memory buffer.
Definition UefiPxe.h:1307
PXE_UINT16 RxBufCnt
Definition UefiPxe.h:1315
PXE_UINT16 RxBufSize
Definition UefiPxe.h:1316
PXE_MAC_ADDR MAC
Multicast MAC address.
Definition UefiPxe.h:1486
PXE_UINT32 Dword[MAX_EEPROM_LEN]
Array of dword-wide data items.
Definition UefiPxe.h:1549
PXE_UINT8 Byte[MAX_EEPROM_LEN<< 2]
Array of byte-wide data items.
Definition UefiPxe.h:1539
PXE_UINT16 Word[MAX_EEPROM_LEN<< 1]
Array of word-wide data items.
Definition UefiPxe.h:1544
union s_pxe_db_nvdata::@012034067374273101265274026127337362335221231302 Data
Arrays of data items from non-volatile storage.
PXE_MAC_ADDR MCastList[MAX_MCAST_ADDRESS_CNT]
Filtered multicast MAC address list.
Definition UefiPxe.h:1331
PXE_MAC_ADDR SrcAddr
Source and destination MAC addresses from media header.
Definition UefiPxe.h:1750
PXE_UINT32 FrameLen
Length of received frame.
Definition UefiPxe.h:1758
PXE_UINT8 reserved[7]
Reserved, must be zero.
Definition UefiPxe.h:1778
PXE_FRAME_TYPE Type
Type of receive frame.
Definition UefiPxe.h:1773
PXE_UINT16 MediaHeaderLen
Length of media header in received frame.
Definition UefiPxe.h:1768
PXE_MEDIA_PROTOCOL Protocol
Protocol type from media header.
Definition UefiPxe.h:1763
PXE_MAC_ADDR DestAddr
Definition UefiPxe.h:1751
PXE_UINT64 Supported
Bit field identifying what statistic data is collected by the UNDI/NIC.
Definition UefiPxe.h:1369
PXE_UINT64 Data[64]
Statistic data.
Definition UefiPxe.h:1374
PXE_MAC_ADDR PermanentAddr
Permanent station MAC address.
Definition UefiPxe.h:1356
PXE_MAC_ADDR StationAddr
Current station MAC address.
Definition UefiPxe.h:1346
PXE_MAC_ADDR BroadcastAddr
Station broadcast MAC address.
Definition UefiPxe.h:1351
PXE_UINT32 Implementation
implementation flags.
Definition UefiPxe.h:723
PXE_UINT8 Len
sizeof(PXE_HW_UNDI).
Definition UefiPxe.h:715
PXE_UINT8 reserved
zero, not used.
Definition UefiPxe.h:722
PXE_UINT32 Signature
PXE_ROMID_SIGNATURE.
Definition UefiPxe.h:714
PXE_UINT8 Rev
PXE_ROMID_REV.
Definition UefiPxe.h:717
PXE_UINT8 Fudge
makes 8-bit cksum equal zero.
Definition UefiPxe.h:716
PXE_UINT8 MinorVer
PXE_ROMID_MINORVER.
Definition UefiPxe.h:720
PXE_UINT8 IFcnt
physical connector count lower byte.
Definition UefiPxe.h:718
PXE_UINT8 MajorVer
PXE_ROMID_MAJORVER.
Definition UefiPxe.h:719
PXE_UINT8 IFcntExt
physical connector count upper byte.
Definition UefiPxe.h:721
PXE_UINT16 Word[128]
Definition UefiPxe.h:1233
PXE_UINT8 Byte[256]
Definition UefiPxe.h:1232
PXE_UINT16 Bus
This identifies the PCC network device that this UNDI interface is bound to.
Definition UefiPxe.h:1223
PXE_UINT32 Dword[64]
Definition UefiPxe.h:1234
PXE_UINT32 BusType
This is the flag field for the PXE_DB_GET_CONFIG_INFO union.
Definition UefiPxe.h:1217
union s_pxe_pcc_config_info::@222041100170237174261356212373132266101367342231 Config
This is a copy of the PCC configuration space for this network device.
union s_pxe_pci_config_info::@077167201146072172025243364044264120376153316274 Config
This is a copy of the PCI configuration space for this network device.
UINT32 BusType
This is the flag field for the PXE_DB_GET_CONFIG_INFO union.
Definition UefiPxe.h:1191
UINT16 Bus
This identifies the PCI network device that this UNDI interface.
Definition UefiPxe.h:1197
PXE_UINT32 Implementation
Implementation flags.
Definition UefiPxe.h:820
PXE_UINT8 reserved1
zero, not used.
Definition UefiPxe.h:819
PXE_UINT8 Rev
PXE_ROMID_REV.
Definition UefiPxe.h:814
PXE_UINT64 EntryPoint
API entry point.
Definition UefiPxe.h:821
PXE_UINT8 MajorVer
PXE_ROMID_MAJORVER.
Definition UefiPxe.h:816
PXE_UINT8 MinorVer
PXE_ROMID_MINORVER.
Definition UefiPxe.h:817
PXE_UINT32 Signature
PXE_ROMID_SIGNATURE.
Definition UefiPxe.h:811
PXE_UINT8 IFcnt
physical connector count lower byte.
Definition UefiPxe.h:815
PXE_UINT8 reserved2[3]
zero, not used.
Definition UefiPxe.h:822
PXE_UINT8 IFcntExt
physical connector count upper byte.
Definition UefiPxe.h:818
PXE_UINT8 Len
sizeof(PXE_SW_UNDI).
Definition UefiPxe.h:812
PXE_UINT32 BusType[1]
list of supported bustypes.
Definition UefiPxe.h:824
PXE_UINT8 BusCnt
number of bustypes supported.
Definition UefiPxe.h:823
PXE_UINT8 Fudge
makes 8-bit cksum zero.
Definition UefiPxe.h:813
PXE_UINT8 Function
Definition UefiPxe.h:913
struct pxe_device::@104126337362011051256350060340324304105154302337 PCI
PCI and PC Card NICs are both identified using bus, device and function numbers.
PXE_UINT8 Device
Definition UefiPxe.h:912
PXE_UINT32 BusType
See S/W UNDI ROMID structure definition for PCI and PCC BusType definitions.
Definition UefiPxe.h:906
PXE_UINT16 Bus
Bus, device & function numbers that locate this device.
Definition UefiPxe.h:911
struct pxe_device::@104126337362011051256350060340324304105154302337 PCC
When using bulk update, the size of the CPB structure must be the same size as the non-volatile NIC s...
Definition UefiPxe.h:1514
PXE_UINT32 Dword[MAX_EEPROM_LEN]
Array of dword-wide data items.
Definition UefiPxe.h:1528
PXE_UINT8 Byte[MAX_EEPROM_LEN<< 2]
Array of byte-wide data items.
Definition UefiPxe.h:1518
PXE_UINT16 Word[MAX_EEPROM_LEN<< 1]
Array of word-wide data items.
Definition UefiPxe.h:1523
PXE_PCC_CONFIG_INFO pcc
Definition UefiPxe.h:1240
PXE_PCI_CONFIG_INFO pci
Definition UefiPxe.h:1239
PXE_IPV6 IPv6
Definition UefiPxe.h:890
PXE_IPV4 IPv4
Definition UefiPxe.h:891
PXE_SW_UNDI sw
Definition UefiPxe.h:829
PXE_HW_UNDI hw
Definition UefiPxe.h:828