From ece77e4047c36ddd177949e81d548bda244ea8a7 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Wed, 11 Dec 2013 16:58:39 +0000 Subject: 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 Reviewed-by: Jordan Justen Signed-off-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14968 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/Library/VirtioLib/VirtioLib.c | 69 ----------------------------------- 1 file changed, 69 deletions(-) (limited to 'OvmfPkg/Library/VirtioLib') diff --git a/OvmfPkg/Library/VirtioLib/VirtioLib.c b/OvmfPkg/Library/VirtioLib/VirtioLib.c index 503d4adffc..54cf225c98 100644 --- a/OvmfPkg/Library/VirtioLib/VirtioLib.c +++ b/OvmfPkg/Library/VirtioLib/VirtioLib.c @@ -24,75 +24,6 @@ #include -/** - - Write a word into Region 0 of the device specified by VirtIo. - - Region 0 must be an iomem region. This is an internal function for the - driver-specific VIRTIO_CFG_WRITE() macros. - - @param[in] VirtIo Target VirtIo device. - - @param[in] FieldOffset Destination offset. - - @param[in] FieldSize Destination field size, must be in { 1, 2, 4, 8 }. - - @param[in] Value Little endian value to write, converted to UINT64. - The least significant FieldSize bytes will be used. - - - @return Status code returned by VirtIo->Io.Write(). - -**/ -EFI_STATUS -EFIAPI -VirtioWriteDevice ( - IN VIRTIO_DEVICE_PROTOCOL *VirtIo, - IN UINTN FieldOffset, - IN UINTN FieldSize, - IN UINT64 Value - ) -{ - return VirtIo->WriteDevice (VirtIo, FieldOffset, FieldSize, Value); -} - - -/** - - Read a word from Region 0 of the device specified by VirtIo. - - Region 0 must be an iomem region. This is an internal function for the - driver-specific VIRTIO_CFG_READ() macros. - - @param[in] VirtIo Source VirtIo device. - - @param[in] FieldOffset Source offset. - - @param[in] FieldSize Source field size, must be in { 1, 2, 4, 8 }. - - @param[in] BufferSize Number of bytes available in the target buffer. Must - equal FieldSize. - - @param[out] Buffer Target buffer. - - - @return Status code returned by VirtIo->Io.Read(). - -**/ -EFI_STATUS -EFIAPI -VirtioReadDevice ( - IN VIRTIO_DEVICE_PROTOCOL *VirtIo, - IN UINTN FieldOffset, - IN UINTN FieldSize, - IN UINTN BufferSize, - OUT VOID *Buffer - ) -{ - return VirtIo->ReadDevice (VirtIo, FieldOffset, FieldSize, BufferSize, Buffer); -} - - /** Configure a virtio ring. -- cgit v1.2.3