X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=OvmfPkg%2FInclude%2FLibrary%2FVirtioLib.h;h=36527a523f28814b4e0ce0c0b5f53f12ca7da3d9;hb=ece77e4047c36ddd177949e81d548bda244ea8a7;hp=8c043369c3642b62091aa133254297183daf22b9;hpb=64106abf4b702f1fb583740ecaa0885a31b18b0e;p=mirror_edk2.git diff --git a/OvmfPkg/Include/Library/VirtioLib.h b/OvmfPkg/Include/Library/VirtioLib.h index 8c043369c3..36527a523f 100644 --- a/OvmfPkg/Include/Library/VirtioLib.h +++ b/OvmfPkg/Include/Library/VirtioLib.h @@ -21,70 +21,6 @@ #include -/** - - Write a word into VirtIo Device Specific Region - - The VirtIo Device Specific Region 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->WriteDevice(). - -**/ -EFI_STATUS -EFIAPI -VirtioWriteDevice ( - IN VIRTIO_DEVICE_PROTOCOL *VirtIo, - IN UINTN FieldOffset, - IN UINTN FieldSize, - IN UINT64 Value - ); - - -/** - - Read a word from VirtIo Device Specific Region - - The VirtIo Device Specific Region 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->ReadDevice(). - -**/ -EFI_STATUS -EFIAPI -VirtioReadDevice ( - IN VIRTIO_DEVICE_PROTOCOL *VirtIo, - IN UINTN FieldOffset, - IN UINTN FieldSize, - IN UINTN BufferSize, - OUT VOID *Buffer - ); - /**