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