mirror of https://github.com/acidanthera/audk.git
OvmfPkg/Protocol/VirtioDevice: fix comment style
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> [lersek@redhat.com: clarify subject line] [lersek@redhat.com: adjust the set of comments updated by the patch] Reviewed-by: Laszlo Ersek <lersek@redhat.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
22701a3d4d
commit
a136bc3ccf
|
@ -21,7 +21,9 @@
|
||||||
|
|
||||||
#include <IndustryStandard/Virtio.h>
|
#include <IndustryStandard/Virtio.h>
|
||||||
|
|
||||||
// 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) \
|
#define VIRTIO_SPEC_REVISION(major,minor,revision) \
|
||||||
((((major) & 0xFF) << 24) | (((minor) & 0xFF) << 16) | ((revision) & 0xFFFF))
|
((((major) & 0xFF) << 24) | (((minor) & 0xFF) << 16) | ((revision) & 0xFFFF))
|
||||||
|
|
||||||
|
@ -327,9 +329,13 @@ EFI_STATUS
|
||||||
/// outside of the EDK II tree.
|
/// outside of the EDK II tree.
|
||||||
///
|
///
|
||||||
struct _VIRTIO_DEVICE_PROTOCOL {
|
struct _VIRTIO_DEVICE_PROTOCOL {
|
||||||
/// VirtIo Specification Revision encoded with VIRTIO_SPEC_REVISION()
|
//
|
||||||
|
// VirtIo Specification Revision encoded with VIRTIO_SPEC_REVISION()
|
||||||
|
//
|
||||||
UINT32 Revision;
|
UINT32 Revision;
|
||||||
/// From the Virtio Spec
|
//
|
||||||
|
// From the Virtio Spec
|
||||||
|
//
|
||||||
INT32 SubSystemDeviceId;
|
INT32 SubSystemDeviceId;
|
||||||
|
|
||||||
VIRTIO_GET_DEVICE_FEATURES GetDeviceFeatures;
|
VIRTIO_GET_DEVICE_FEATURES GetDeviceFeatures;
|
||||||
|
@ -350,7 +356,9 @@ struct _VIRTIO_DEVICE_PROTOCOL {
|
||||||
VIRTIO_GET_DEVICE_STATUS GetDeviceStatus;
|
VIRTIO_GET_DEVICE_STATUS GetDeviceStatus;
|
||||||
VIRTIO_SET_DEVICE_STATUS SetDeviceStatus;
|
VIRTIO_SET_DEVICE_STATUS SetDeviceStatus;
|
||||||
|
|
||||||
|
//
|
||||||
// Functions to read/write Device Specific headers
|
// Functions to read/write Device Specific headers
|
||||||
|
//
|
||||||
VIRTIO_DEVICE_WRITE WriteDevice;
|
VIRTIO_DEVICE_WRITE WriteDevice;
|
||||||
VIRTIO_DEVICE_READ ReadDevice;
|
VIRTIO_DEVICE_READ ReadDevice;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue