From a136bc3ccfa479ec8a3fc9afcbd00283339101fa Mon Sep 17 00:00:00 2001 From: Brijesh Singh Date: Mon, 14 Aug 2017 07:36:27 -0400 Subject: [PATCH] OvmfPkg/Protocol/VirtioDevice: fix comment style Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Tom Lendacky Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Brijesh Singh [lersek@redhat.com: clarify subject line] [lersek@redhat.com: adjust the set of comments updated by the patch] Reviewed-by: Laszlo Ersek Regression-tested-by: Laszlo Ersek --- OvmfPkg/Include/Protocol/VirtioDevice.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/Include/Protocol/VirtioDevice.h b/OvmfPkg/Include/Protocol/VirtioDevice.h index 910a4866e7..fc166bd1a2 100644 --- a/OvmfPkg/Include/Protocol/VirtioDevice.h +++ b/OvmfPkg/Include/Protocol/VirtioDevice.h @@ -21,7 +21,9 @@ #include -// VirtIo Specification Revision: Major[31:24].Minor[23:16].Revision[15:0 +// +// VirtIo Specification Revision: Major[31:24].Minor[23:16].Revision[15:0] +// #define VIRTIO_SPEC_REVISION(major,minor,revision) \ ((((major) & 0xFF) << 24) | (((minor) & 0xFF) << 16) | ((revision) & 0xFFFF)) @@ -327,9 +329,13 @@ EFI_STATUS /// outside of the EDK II tree. /// struct _VIRTIO_DEVICE_PROTOCOL { - /// VirtIo Specification Revision encoded with VIRTIO_SPEC_REVISION() + // + // VirtIo Specification Revision encoded with VIRTIO_SPEC_REVISION() + // UINT32 Revision; - /// From the Virtio Spec + // + // From the Virtio Spec + // INT32 SubSystemDeviceId; VIRTIO_GET_DEVICE_FEATURES GetDeviceFeatures; @@ -350,7 +356,9 @@ struct _VIRTIO_DEVICE_PROTOCOL { VIRTIO_GET_DEVICE_STATUS GetDeviceStatus; VIRTIO_SET_DEVICE_STATUS SetDeviceStatus; + // // Functions to read/write Device Specific headers + // VIRTIO_DEVICE_WRITE WriteDevice; VIRTIO_DEVICE_READ ReadDevice; }; -- 2.39.2