mirror of https://github.com/acidanthera/audk.git
OvmfPkg: rename AppendDesc to VirtioAppendDesc
AppendDesc() should have a prefix implying its containing library, VirtioLib. Update its sole client VirtioBlkDxe. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13843 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
263559b872
commit
7fcacd6c92
|
@ -175,7 +175,7 @@ VirtioRingUninit (
|
|||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
AppendDesc (
|
||||
VirtioAppendDesc (
|
||||
IN OUT VRING *Ring,
|
||||
IN UINTN BufferPhysAddr,
|
||||
IN UINT32 BufferSize,
|
||||
|
|
|
@ -314,7 +314,7 @@ VirtioRingUninit (
|
|||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
AppendDesc (
|
||||
VirtioAppendDesc (
|
||||
IN OUT VRING *Ring,
|
||||
IN UINTN BufferPhysAddr,
|
||||
IN UINT32 BufferSize,
|
||||
|
|
|
@ -301,8 +301,8 @@ SynchronousRequest (
|
|||
//
|
||||
// virtio-blk header in first desc
|
||||
//
|
||||
AppendDesc (&Dev->Ring, (UINTN) &Request, sizeof Request, VRING_DESC_F_NEXT,
|
||||
FirstAvailIdx, &NextAvailIdx);
|
||||
VirtioAppendDesc (&Dev->Ring, (UINTN) &Request, sizeof Request,
|
||||
VRING_DESC_F_NEXT, FirstAvailIdx, &NextAvailIdx);
|
||||
|
||||
//
|
||||
// data buffer for read/write in second desc
|
||||
|
@ -321,7 +321,7 @@ SynchronousRequest (
|
|||
//
|
||||
// VRING_DESC_F_WRITE is interpreted from the host's point of view.
|
||||
//
|
||||
AppendDesc (&Dev->Ring, (UINTN) Buffer, (UINT32) BufferSize,
|
||||
VirtioAppendDesc (&Dev->Ring, (UINTN) Buffer, (UINT32) BufferSize,
|
||||
VRING_DESC_F_NEXT | (RequestIsWrite ? 0 : VRING_DESC_F_WRITE),
|
||||
FirstAvailIdx, &NextAvailIdx);
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ SynchronousRequest (
|
|||
//
|
||||
// host status in last (second or third) desc
|
||||
//
|
||||
AppendDesc (&Dev->Ring, (UINTN) &HostStatus, sizeof HostStatus,
|
||||
VirtioAppendDesc (&Dev->Ring, (UINTN) &HostStatus, sizeof HostStatus,
|
||||
VRING_DESC_F_WRITE, FirstAvailIdx, &NextAvailIdx);
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue