- this routine calls undi to receive a packet and fills in the data in the\r
- input pointers!\r
-\r
- @param Snp pointer to snp driver structure\r
- @param Buffer pointer to the memory for the received data\r
- @param BufferSize is a pointer to the length of the buffer on entry and\r
- contains the length of the received data on return\r
- @param HeaderSize pointer to the header portion of the data received.\r
- @param SrcAddr optional parameter, is a pointer to contain the\r
- source ethernet address on return\r
- @param DestAddr optional parameter, is a pointer to contain the\r
- destination ethernet address on return\r
- @param Protocol optional parameter, is a pointer to contain the\r
- protocol type from the ethernet header on return\r
-\r
+ Call UNDI to receive a packet and fills in the data in the input pointers.\r
+\r
+ @param Snp Pointer to snp driver structure\r
+ @param Buffer Pointer to the memory for the received data\r
+ @param BufferSize Pointer to the length of the buffer on entry and contains\r
+ the length of the received data on return\r
+ @param HeaderSize Pointer to the header portion of the data received.\r
+ @param SrcAddr Pointer to contain the source ethernet address on return\r
+ @param DestAddr Pointer to contain the destination ethernet address on\r
+ return\r
+ @param Protocol Pointer to contain the protocol type from the ethernet\r
+ header on return\r
+\r
+\r
+ @retval EFI_SUCCESS The received data was stored in Buffer, and\r
+ BufferSize has been updated to the number of\r
+ bytes received.\r
+ @retval EFI_DEVICE_ERROR Fail to execute UNDI command.\r
+ @retval EFI_NOT_READY No packets have been received on the network\r
+ interface.\r
+ @retval EFI_BUFFER_TOO_SMALL BufferSize is too small for the received\r
+ packets. BufferSize has been updated to the\r
+ required size.\r