OvmfPkg/Virtio: Removed VirtioReadDevice() / VirtIoWriteDevice() functions
These functions did not provide much more than the new protocol functions VIRTIO_DEVICE_PROTOCOL.ReadDevice() / VIRTIO_DEVICE_PROTOCOL.WriteDevice(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14968 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -107,19 +107,19 @@ typedef struct {
|
||||
#define VIRTIO_NET_FROM_SNP(SnpPointer) \
|
||||
CR (SnpPointer, VNET_DEV, Snp, VNET_SIG)
|
||||
|
||||
#define VIRTIO_CFG_WRITE(Dev, Field, Value) (VirtioWriteDevice ( \
|
||||
(Dev)->VirtIo, \
|
||||
OFFSET_OF_VNET (Field), \
|
||||
SIZE_OF_VNET (Field), \
|
||||
(Value) \
|
||||
#define VIRTIO_CFG_WRITE(Dev, Field, Value) ((Dev)->VirtIo->WriteDevice ( \
|
||||
(Dev)->VirtIo, \
|
||||
OFFSET_OF_VNET (Field), \
|
||||
SIZE_OF_VNET (Field), \
|
||||
(Value) \
|
||||
))
|
||||
|
||||
#define VIRTIO_CFG_READ(Dev, Field, Pointer) (VirtioReadDevice ( \
|
||||
(Dev)->VirtIo, \
|
||||
OFFSET_OF_VNET (Field), \
|
||||
SIZE_OF_VNET (Field), \
|
||||
sizeof *(Pointer), \
|
||||
(Pointer) \
|
||||
#define VIRTIO_CFG_READ(Dev, Field, Pointer) ((Dev)->VirtIo->ReadDevice ( \
|
||||
(Dev)->VirtIo, \
|
||||
OFFSET_OF_VNET (Field), \
|
||||
SIZE_OF_VNET (Field), \
|
||||
sizeof *(Pointer), \
|
||||
(Pointer) \
|
||||
))
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user