summaryrefslogtreecommitdiff
path: root/OvmfPkg/VirtioBlkDxe
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-12 18:53:20 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-12 18:53:20 +0000
commita9624f945e37047196e825fcbe170772373fdae9 (patch)
tree82d1a4b15a2266814ca292f7346efd40a3232ff8 /OvmfPkg/VirtioBlkDxe
parent55c3443a4f9a7bba34f1c60c6121c6b73dd05241 (diff)
downloadedk2-platforms-a9624f945e37047196e825fcbe170772373fdae9.tar.xz
OvmfPkg: rename OFFSET_OF_VHDR() / SIZE_OF_VHDR() to *_OF_VBLK()
since they are in fact virtio-blk specific. 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@13840 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/VirtioBlkDxe')
-rw-r--r--OvmfPkg/VirtioBlkDxe/VirtioBlk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OvmfPkg/VirtioBlkDxe/VirtioBlk.c b/OvmfPkg/VirtioBlkDxe/VirtioBlk.c
index 178fe331a4..01a562d165 100644
--- a/OvmfPkg/VirtioBlkDxe/VirtioBlk.c
+++ b/OvmfPkg/VirtioBlkDxe/VirtioBlk.c
@@ -197,15 +197,15 @@ VirtioRead (
#define VIRTIO_CFG_WRITE(Dev, Field, Value) (VirtioWrite ( \
(Dev)->PciIo, \
- OFFSET_OF_VHDR (Field), \
- SIZE_OF_VHDR (Field), \
+ OFFSET_OF_VBLK (Field), \
+ SIZE_OF_VBLK (Field), \
(Value) \
))
#define VIRTIO_CFG_READ(Dev, Field, Pointer) (VirtioRead ( \
(Dev)->PciIo, \
- OFFSET_OF_VHDR (Field), \
- SIZE_OF_VHDR (Field), \
+ OFFSET_OF_VBLK (Field), \
+ SIZE_OF_VBLK (Field), \
sizeof *(Pointer), \
(Pointer) \
))