summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Include/IndustryStandard
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2022-04-08 10:23:29 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-04-25 21:01:13 +0000
commit182122914ccb0f3ac268de3d0e863cdc77420f08 (patch)
tree742a0f62893ae6e1e219e53455ac18db3a652b41 /OvmfPkg/Include/IndustryStandard
parentecc79b092ee5ddd02df6a07c4d4c0ed72c219097 (diff)
downloadedk2-182122914ccb0f3ac268de3d0e863cdc77420f08.tar.gz
edk2-182122914ccb0f3ac268de3d0e863cdc77420f08.tar.bz2
edk2-182122914ccb0f3ac268de3d0e863cdc77420f08.zip
OvmfPkg/VirtioGpuDxe: add GetDisplayInfo to virtio-gpu spec header.
Add GetDisplayInfo command, reply and data struct to the virtio-gpu specification header file. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'OvmfPkg/Include/IndustryStandard')
-rw-r--r--OvmfPkg/Include/IndustryStandard/VirtioGpu.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/OvmfPkg/Include/IndustryStandard/VirtioGpu.h b/OvmfPkg/Include/IndustryStandard/VirtioGpu.h
index 12559ccef5..13f719d4c0 100644
--- a/OvmfPkg/Include/IndustryStandard/VirtioGpu.h
+++ b/OvmfPkg/Include/IndustryStandard/VirtioGpu.h
@@ -37,6 +37,7 @@ typedef enum {
//
// - create/release a host-side 2D resource,
//
+ VirtioGpuCmdGetDisplayInfo = 0x0100,
VirtioGpuCmdResourceCreate2d = 0x0101,
VirtioGpuCmdResourceUnref = 0x0102,
//
@@ -64,7 +65,8 @@ typedef enum {
//
// Success code for all of the above commands.
//
- VirtioGpuRespOkNodata = 0x1100,
+ VirtioGpuRespOkNodata = 0x1100,
+ VirtioGpuRespOkDisplayInfo = 0x1101,
} VIRTIO_GPU_CONTROL_TYPE;
//
@@ -207,4 +209,19 @@ typedef struct {
} VIRTIO_GPU_RESOURCE_FLUSH;
#pragma pack ()
+//
+// Response structure for VirtioGpuCmdGetDisplayInfo
+//
+#define VIRTIO_GPU_MAX_SCANOUTS 16
+#pragma pack (1)
+typedef struct {
+ VIRTIO_GPU_CONTROL_HEADER Header;
+ struct {
+ VIRTIO_GPU_RECTANGLE Rectangle;
+ UINT32 Enabled;
+ UINT32 Flags;
+ } Pmodes[VIRTIO_GPU_MAX_SCANOUTS];
+} VIRTIO_GPU_RESP_DISPLAY_INFO;
+#pragma pack ()
+
#endif // _VIRTIO_GPU_H_