]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/Include/Protocol/SimpleNetwork.h
Remove the dependence to MdePkg
[mirror_edk2.git] / Tools / Source / TianoTools / Include / Protocol / SimpleNetwork.h
1 /** @file
2 Simple Network protocol as defined in the EFI 1.0 specification.
3
4 Basic network device abstraction.
5
6 Rx - Received
7 Tx - Transmit
8 MCast - MultiCast
9 ...
10
11 Copyright (c) 2006, Intel Corporation
12 All rights reserved. This program and the accompanying materials
13 are licensed and made available under the terms and conditions of the BSD License
14 which accompanies this distribution. The full text of the license may be found at
15 http://opensource.org/licenses/bsd-license.php
16
17 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
18 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19
20 Module Name: SimpleNetwork.h
21
22 **/
23
24 #ifndef __SIMPLE_NETWORK_H__
25 #define __SIMPLE_NETWORK_H__
26
27 #define EFI_SIMPLE_NETWORK_PROTOCOL_GUID \
28 { \
29 0xA19832B9, 0xAC25, 0x11D3, {0x9A, 0x2D, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D } \
30 }
31
32 typedef struct _EFI_SIMPLE_NETWORK_PROTOCOL EFI_SIMPLE_NETWORK_PROTOCOL;
33
34 //
35 // Simple Network Protocol data structures
36 //
37 typedef struct {
38 //
39 // Total number of frames received. Includes frames with errors and
40 // dropped frames.
41 //
42 UINT64 RxTotalFrames;
43
44 //
45 // Number of valid frames received and copied into receive buffers.
46 //
47 UINT64 RxGoodFrames;
48
49 //
50 // Number of frames below the minimum length for the media.
51 // This would be <64 for ethernet.
52 //
53 UINT64 RxUndersizeFrames;
54
55 //
56 // Number of frames longer than the maxminum length for the
57 // media. This would be >1500 for ethernet.
58 //
59 UINT64 RxOversizeFrames;
60
61 //
62 // Valid frames that were dropped because receive buffers were full.
63 //
64 UINT64 RxDroppedFrames;
65
66 //
67 // Number of valid unicast frames received and not dropped.
68 //
69 UINT64 RxUnicastFrames;
70
71 //
72 // Number of valid broadcast frames received and not dropped.
73 //
74 UINT64 RxBroadcastFrames;
75
76 //
77 // Number of valid mutlicast frames received and not dropped.
78 //
79 UINT64 RxMulticastFrames;
80
81 //
82 // Number of frames w/ CRC or alignment errors.
83 //
84 UINT64 RxCrcErrorFrames;
85
86 //
87 // Total number of bytes received. Includes frames with errors
88 // and dropped frames.
89 //
90 UINT64 RxTotalBytes;
91
92 //
93 // Transmit statistics.
94 //
95 UINT64 TxTotalFrames;
96 UINT64 TxGoodFrames;
97 UINT64 TxUndersizeFrames;
98 UINT64 TxOversizeFrames;
99 UINT64 TxDroppedFrames;
100 UINT64 TxUnicastFrames;
101 UINT64 TxBroadcastFrames;
102 UINT64 TxMulticastFrames;
103 UINT64 TxCrcErrorFrames;
104 UINT64 TxTotalBytes;
105
106 //
107 // Number of collisions detection on this subnet.
108 //
109 UINT64 Collisions;
110
111 //
112 // Number of frames destined for unsupported protocol.
113 //
114 UINT64 UnsupportedProtocol;
115
116 } EFI_NETWORK_STATISTICS;
117
118 typedef enum {
119 EfiSimpleNetworkStopped,
120 EfiSimpleNetworkStarted,
121 EfiSimpleNetworkInitialized,
122 EfiSimpleNetworkMaxState
123 } EFI_SIMPLE_NETWORK_STATE;
124
125 #define EFI_SIMPLE_NETWORK_RECEIVE_UNICAST 0x01
126 #define EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST 0x02
127 #define EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST 0x04
128 #define EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS 0x08
129 #define EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST 0x10
130
131 #define EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT 0x01
132 #define EFI_SIMPLE_NETWORK_TRANSMIT_INTERRUPT 0x02
133 #define EFI_SIMPLE_NETWORK_COMMAND_INTERRUPT 0x04
134 #define EFI_SIMPLE_NETWORK_SOFTWARE_INTERRUPT 0x08
135
136 #define MAX_MCAST_FILTER_CNT 16
137 typedef struct {
138 UINT32 State;
139 UINT32 HwAddressSize;
140 UINT32 MediaHeaderSize;
141 UINT32 MaxPacketSize;
142 UINT32 NvRamSize;
143 UINT32 NvRamAccessSize;
144 UINT32 ReceiveFilterMask;
145 UINT32 ReceiveFilterSetting;
146 UINT32 MaxMCastFilterCount;
147 UINT32 MCastFilterCount;
148 EFI_MAC_ADDRESS MCastFilter[MAX_MCAST_FILTER_CNT];
149 EFI_MAC_ADDRESS CurrentAddress;
150 EFI_MAC_ADDRESS BroadcastAddress;
151 EFI_MAC_ADDRESS PermanentAddress;
152 UINT8 IfType;
153 BOOLEAN MacAddressChangeable;
154 BOOLEAN MultipleTxSupported;
155 BOOLEAN MediaPresentSupported;
156 BOOLEAN MediaPresent;
157 } EFI_SIMPLE_NETWORK_MODE;
158
159 //
160 // Protocol Member Functions
161 //
162 /**
163 Changes the state of a network interface from "stopped" to "started".
164
165 @param This Protocol instance pointer.
166
167 @retval EFI_SUCCESS The network interface was started.
168 @retval EFI_ALREADY_STARTED The network interface is already in the started state.
169 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
170 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
171 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
172
173 **/
174 typedef
175 EFI_STATUS
176 (EFIAPI *EFI_SIMPLE_NETWORK_START) (
177 IN EFI_SIMPLE_NETWORK_PROTOCOL *This
178 )
179 ;
180
181 /**
182 Changes the state of a network interface from "started" to "stopped".
183
184 @param This Protocol instance pointer.
185
186 @retval EFI_SUCCESS The network interface was stopped.
187 @retval EFI_ALREADY_STARTED The network interface is already in the stopped state.
188 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
189 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
190 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
191
192 **/
193 typedef
194 EFI_STATUS
195 (EFIAPI *EFI_SIMPLE_NETWORK_STOP) (
196 IN EFI_SIMPLE_NETWORK_PROTOCOL *This
197 )
198 ;
199
200 /**
201 Resets a network adapter and allocates the transmit and receive buffers
202 required by the network interface; optionally, also requests allocation
203 of additional transmit and receive buffers.
204
205 @param This Protocol instance pointer.
206 @param ExtraRxBufferSize The size, in bytes, of the extra receive buffer space
207 that the driver should allocate for the network interface.
208 Some network interfaces will not be able to use the extra
209 buffer, and the caller will not know if it is actually
210 being used.
211 @param ExtraTxBufferSize The size, in bytes, of the extra transmit buffer space
212 that the driver should allocate for the network interface.
213 Some network interfaces will not be able to use the extra
214 buffer, and the caller will not know if it is actually
215 being used.
216
217 @retval EFI_SUCCESS The network interface was initialized.
218 @retval EFI_NOT_STARTED The network interface has not been started
219 @retval EFI_OUT_OF_RESOURCES There was not enough memory for the transmit and
220 receive buffers. .
221 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
222 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
223 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
224
225 **/
226 typedef
227 EFI_STATUS
228 (EFIAPI *EFI_SIMPLE_NETWORK_INITIALIZE) (
229 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
230 IN UINTN ExtraRxBufferSize OPTIONAL,
231 IN UINTN ExtraTxBufferSize OPTIONAL
232 )
233 ;
234
235 /**
236 Resets a network adapter and re-initializes it with the parameters that were
237 provided in the previous call to Initialize().
238
239 @param This Protocol instance pointer.
240 @param ExtendedVerification Indicates that the driver may perform a more
241 exhaustive verification operation of the device
242 during reset.
243
244 @retval EFI_SUCCESS The network interface was reset.
245 @retval EFI_NOT_STARTED The network interface has not been started
246 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
247 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
248 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
249
250 **/
251 typedef
252 EFI_STATUS
253 (EFIAPI *EFI_SIMPLE_NETWORK_RESET) (
254 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
255 IN BOOLEAN ExtendedVerification
256 )
257 ;
258
259 /**
260 Resets a network adapter and leaves it in a state that is safe for
261 another driver to initialize.
262
263 @param This Protocol instance pointer.
264
265 @retval EFI_SUCCESS The network interface was shutdown.
266 @retval EFI_NOT_STARTED The network interface has not been started
267 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
268 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
269 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
270
271 **/
272 typedef
273 EFI_STATUS
274 (EFIAPI *EFI_SIMPLE_NETWORK_SHUTDOWN) (
275 IN EFI_SIMPLE_NETWORK_PROTOCOL *This
276 )
277 ;
278
279 /**
280 Manages the multicast receive filters of a network interface.
281
282 @param This Protocol instance pointer.
283 @param Enable A bit mask of receive filters to enable on the network interface.
284 @param Disable A bit mask of receive filters to disable on the network interface.
285 @param ResetMCastFilter Set to TRUE to reset the contents of the multicast receive
286 filters on the network interface to their default values.
287 @param McastFilterCnt Number of multicast HW MAC addresses in the new
288 MCastFilter list. This value must be less than or equal to
289 the MCastFilterCnt field of EFI_SIMPLE_NETWORK_MODE. This
290 field is optional if ResetMCastFilter is TRUE.
291 @param MCastFilter A pointer to a list of new multicast receive filter HW MAC
292 addresses. This list will replace any existing multicast
293 HW MAC address list. This field is optional if
294 ResetMCastFilter is TRUE.
295
296 @retval EFI_SUCCESS The multicast receive filter list was updated.
297 @retval EFI_NOT_STARTED The network interface has not been started
298 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
299 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
300 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
301
302 **/
303 typedef
304 EFI_STATUS
305 (EFIAPI *EFI_SIMPLE_NETWORK_RECEIVE_FILTERS) (
306 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
307 IN UINT32 Enable,
308 IN UINT32 Disable,
309 IN BOOLEAN ResetMCastFilter,
310 IN UINTN MCastFilterCnt OPTIONAL,
311 IN EFI_MAC_ADDRESS *MCastFilter OPTIONAL
312 )
313 ;
314
315 /**
316 Modifies or resets the current station address, if supported.
317
318 @param This Protocol instance pointer.
319 @param Reset Flag used to reset the station address to the network interfaces
320 permanent address.
321 @param New New station address to be used for the network interface.
322
323 @retval EFI_SUCCESS The network interfaces station address was updated.
324 @retval EFI_NOT_STARTED The network interface has not been started
325 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
326 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
327 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
328
329 **/
330 typedef
331 EFI_STATUS
332 (EFIAPI *EFI_SIMPLE_NETWORK_STATION_ADDRESS) (
333 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
334 IN BOOLEAN Reset,
335 IN EFI_MAC_ADDRESS *New OPTIONAL
336 )
337 ;
338
339 /**
340 Resets or collects the statistics on a network interface.
341
342 @param This Protocol instance pointer.
343 @param Reset Set to TRUE to reset the statistics for the network interface.
344 @param StatisticsSize On input the size, in bytes, of StatisticsTable. On
345 output the size, in bytes, of the resulting table of
346 statistics.
347 @param StatisticsTable A pointer to the EFI_NETWORK_STATISTICS structure that
348 contains the statistics.
349
350 @retval EFI_SUCCESS The statistics were collected from the network interface.
351 @retval EFI_NOT_STARTED The network interface has not been started.
352 @retval EFI_BUFFER_TOO_SMALL The Statistics buffer was too small. The current buffer
353 size needed to hold the statistics is returned in
354 StatisticsSize.
355 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
356 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
357 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
358
359 **/
360 typedef
361 EFI_STATUS
362 (EFIAPI *EFI_SIMPLE_NETWORK_STATISTICS) (
363 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
364 IN BOOLEAN Reset,
365 IN OUT UINTN *StatisticsSize OPTIONAL,
366 OUT EFI_NETWORK_STATISTICS *StatisticsTable OPTIONAL
367 )
368 ;
369
370 /**
371 Converts a multicast IP address to a multicast HW MAC address.
372
373 @param This Protocol instance pointer.
374 @param IPv6 Set to TRUE if the multicast IP address is IPv6 [RFC 2460]. Set
375 to FALSE if the multicast IP address is IPv4 [RFC 791].
376 @param IP The multicast IP address that is to be converted to a multicast
377 HW MAC address.
378 @param MAC The multicast HW MAC address that is to be generated from IP.
379
380 @retval EFI_SUCCESS The multicast IP address was mapped to the multicast
381 HW MAC address.
382 @retval EFI_NOT_STARTED The network interface has not been started.
383 @retval EFI_BUFFER_TOO_SMALL The Statistics buffer was too small. The current buffer
384 size needed to hold the statistics is returned in
385 StatisticsSize.
386 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
387 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
388 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
389
390 **/
391 typedef
392 EFI_STATUS
393 (EFIAPI *EFI_SIMPLE_NETWORK_MCAST_IP_TO_MAC) (
394 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
395 IN BOOLEAN IPv6,
396 IN EFI_IP_ADDRESS *IP,
397 OUT EFI_MAC_ADDRESS *MAC
398 )
399 ;
400
401 /**
402 Performs read and write operations on the NVRAM device attached to a
403 network interface.
404
405 @param This Protocol instance pointer.
406 @param ReadWrite TRUE for read operations, FALSE for write operations.
407 @param Offset Byte offset in the NVRAM device at which to start the read or
408 write operation. This must be a multiple of NvRamAccessSize and
409 less than NvRamSize.
410 @param BufferSize The number of bytes to read or write from the NVRAM device.
411 This must also be a multiple of NvramAccessSize.
412 @param Buffer A pointer to the data buffer.
413
414 @retval EFI_SUCCESS The NVRAM access was performed.
415 @retval EFI_NOT_STARTED The network interface has not been started.
416 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
417 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
418 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
419
420 **/
421 typedef
422 EFI_STATUS
423 (EFIAPI *EFI_SIMPLE_NETWORK_NVDATA) (
424 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
425 IN BOOLEAN ReadWrite,
426 IN UINTN Offset,
427 IN UINTN BufferSize,
428 IN OUT VOID *Buffer
429 )
430 ;
431
432 /**
433 Reads the current interrupt status and recycled transmit buffer status from
434 a network interface.
435
436 @param This Protocol instance pointer.
437 @param InterruptStatus A pointer to the bit mask of the currently active interrupts
438 If this is NULL, the interrupt status will not be read from
439 the device. If this is not NULL, the interrupt status will
440 be read from the device. When the interrupt status is read,
441 it will also be cleared. Clearing the transmit interrupt
442 does not empty the recycled transmit buffer array.
443 @param TxBuf Recycled transmit buffer address. The network interface will
444 not transmit if its internal recycled transmit buffer array
445 is full. Reading the transmit buffer does not clear the
446 transmit interrupt. If this is NULL, then the transmit buffer
447 status will not be read. If there are no transmit buffers to
448 recycle and TxBuf is not NULL, * TxBuf will be set to NULL.
449
450 @retval EFI_SUCCESS The status of the network interface was retrieved.
451 @retval EFI_NOT_STARTED The network interface has not been started.
452 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
453 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
454 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
455
456 **/
457 typedef
458 EFI_STATUS
459 (EFIAPI *EFI_SIMPLE_NETWORK_GET_STATUS) (
460 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
461 OUT UINT32 *InterruptStatus OPTIONAL,
462 OUT VOID **TxBuf OPTIONAL
463 )
464 ;
465
466 /**
467 Places a packet in the transmit queue of a network interface.
468
469 @param This Protocol instance pointer.
470 @param HeaderSize The size, in bytes, of the media header to be filled in by
471 the Transmit() function. If HeaderSize is non-zero, then it
472 must be equal to This->Mode->MediaHeaderSize and the DestAddr
473 and Protocol parameters must not be NULL.
474 @param BufferSize The size, in bytes, of the entire packet (media header and
475 data) to be transmitted through the network interface.
476 @param Buffer A pointer to the packet (media header followed by data) to be
477 transmitted. This parameter cannot be NULL. If HeaderSize is zero,
478 then the media header in Buffer must already be filled in by the
479 caller. If HeaderSize is non-zero, then the media header will be
480 filled in by the Transmit() function.
481 @param SrcAddr The source HW MAC address. If HeaderSize is zero, then this parameter
482 is ignored. If HeaderSize is non-zero and SrcAddr is NULL, then
483 This->Mode->CurrentAddress is used for the source HW MAC address.
484 @param DsetAddr The destination HW MAC address. If HeaderSize is zero, then this
485 parameter is ignored.
486 @param Protocol The type of header to build. If HeaderSize is zero, then this
487 parameter is ignored. See RFC 1700, section "Ether Types", for
488 examples.
489
490 @retval EFI_SUCCESS The packet was placed on the transmit queue.
491 @retval EFI_NOT_STARTED The network interface has not been started.
492 @retval EFI_NOT_READY The network interface is too busy to accept this transmit request.
493 @retval EFI_BUFFER_TOO_SMALL The BufferSize parameter is too small.
494 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
495 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
496 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
497
498 **/
499 typedef
500 EFI_STATUS
501 (EFIAPI *EFI_SIMPLE_NETWORK_TRANSMIT) (
502 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
503 IN UINTN HeaderSize,
504 IN UINTN BufferSize,
505 IN VOID *Buffer,
506 IN EFI_MAC_ADDRESS *SrcAddr OPTIONAL,
507 IN EFI_MAC_ADDRESS *DestAddr OPTIONAL,
508 IN UINT16 *Protocol OPTIONAL
509 )
510 ;
511
512 /**
513 Receives a packet from a network interface.
514
515 @param This Protocol instance pointer.
516 @param HeaderSize The size, in bytes, of the media header received on the network
517 interface. If this parameter is NULL, then the media header size
518 will not be returned.
519 @param BufferSize On entry, the size, in bytes, of Buffer. On exit, the size, in
520 bytes, of the packet that was received on the network interface.
521 @param Buffer A pointer to the data buffer to receive both the media header and
522 the data.
523 @param SrcAddr The source HW MAC address. If this parameter is NULL, the
524 HW MAC source address will not be extracted from the media
525 header.
526 @param DsetAddr The destination HW MAC address. If this parameter is NULL,
527 the HW MAC destination address will not be extracted from the
528 media header.
529 @param Protocol The media header type. If this parameter is NULL, then the
530 protocol will not be extracted from the media header. See
531 RFC 1700 section "Ether Types" for examples.
532
533 @retval EFI_SUCCESS The received data was stored in Buffer, and BufferSize has
534 been updated to the number of bytes received.
535 @retval EFI_NOT_STARTED The network interface has not been started.
536 @retval EFI_NOT_READY The network interface is too busy to accept this transmit
537 request.
538 @retval EFI_BUFFER_TOO_SMALL The BufferSize parameter is too small.
539 @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.
540 @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
541 @retval EFI_UNSUPPORTED This function is not supported by the network interface.
542
543 **/
544 typedef
545 EFI_STATUS
546 (EFIAPI *EFI_SIMPLE_NETWORK_RECEIVE) (
547 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
548 OUT UINTN *HeaderSize OPTIONAL,
549 IN OUT UINTN *BufferSize,
550 OUT VOID *Buffer,
551 OUT EFI_MAC_ADDRESS *SrcAddr OPTIONAL,
552 OUT EFI_MAC_ADDRESS *DestAddr OPTIONAL,
553 OUT UINT16 *Protocol OPTIONAL
554 )
555 ;
556
557 #define EFI_SIMPLE_NETWORK_PROTOCOL_REVISION 0x00010000
558
559 struct _EFI_SIMPLE_NETWORK_PROTOCOL {
560 UINT64 Revision;
561 EFI_SIMPLE_NETWORK_START Start;
562 EFI_SIMPLE_NETWORK_STOP Stop;
563 EFI_SIMPLE_NETWORK_INITIALIZE Initialize;
564 EFI_SIMPLE_NETWORK_RESET Reset;
565 EFI_SIMPLE_NETWORK_SHUTDOWN Shutdown;
566 EFI_SIMPLE_NETWORK_RECEIVE_FILTERS ReceiveFilters;
567 EFI_SIMPLE_NETWORK_STATION_ADDRESS StationAddress;
568 EFI_SIMPLE_NETWORK_STATISTICS Statistics;
569 EFI_SIMPLE_NETWORK_MCAST_IP_TO_MAC MCastIpToMac;
570 EFI_SIMPLE_NETWORK_NVDATA NvData;
571 EFI_SIMPLE_NETWORK_GET_STATUS GetStatus;
572 EFI_SIMPLE_NETWORK_TRANSMIT Transmit;
573 EFI_SIMPLE_NETWORK_RECEIVE Receive;
574 EFI_EVENT WaitForPacket;
575 EFI_SIMPLE_NETWORK_MODE *Mode;
576 };
577
578 extern EFI_GUID gEfiSimpleNetworkProtocolGuid;
579
580 #endif