Implementation of the SNP.Transmit() function and its private helpers if any.\r
\r
Copyright (C) 2013, Red Hat, Inc.\r
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
goto Exit;\r
}\r
Ptr = Buffer;\r
- ASSERT (SIZE_OF_VNET (VhdrMac) <= sizeof (EFI_MAC_ADDRESS));\r
+ ASSERT (SIZE_OF_VNET (Mac) <= sizeof (EFI_MAC_ADDRESS));\r
\r
- CopyMem (Ptr, DestAddr, SIZE_OF_VNET (VhdrMac));\r
- Ptr += SIZE_OF_VNET (VhdrMac);\r
+ CopyMem (Ptr, DestAddr, SIZE_OF_VNET (Mac));\r
+ Ptr += SIZE_OF_VNET (Mac);\r
\r
CopyMem (Ptr,\r
(SrcAddr == NULL) ? &Dev->Snm.CurrentAddress : SrcAddr,\r
- SIZE_OF_VNET (VhdrMac));\r
- Ptr += SIZE_OF_VNET (VhdrMac);\r
+ SIZE_OF_VNET (Mac));\r
+ Ptr += SIZE_OF_VNET (Mac);\r
\r
*Ptr++ = (UINT8) (*Protocol >> 8);\r
*Ptr++ = (UINT8) *Protocol;\r
\r
- ASSERT (Ptr - (UINT8 *) Buffer == Dev->Snm.MediaHeaderSize);\r
+ ASSERT ((UINTN) (Ptr - (UINT8 *) Buffer) == Dev->Snm.MediaHeaderSize);\r
}\r
\r
//\r
*Dev->TxRing.Avail.Idx = AvailIdx;\r
\r
MemoryFence ();\r
- Status = VIRTIO_CFG_WRITE (Dev, Generic.VhdrQueueNotify, VIRTIO_NET_Q_TX);\r
+ Status = Dev->VirtIo->SetQueueNotify (Dev->VirtIo, VIRTIO_NET_Q_TX);\r
\r
Exit:\r
gBS->RestoreTPL (OldTpl);\r