//\r
// - create/release a host-side 2D resource,\r
//\r
+ VirtioGpuCmdGetDisplayInfo = 0x0100,\r
VirtioGpuCmdResourceCreate2d = 0x0101,\r
VirtioGpuCmdResourceUnref = 0x0102,\r
//\r
//\r
// Success code for all of the above commands.\r
//\r
- VirtioGpuRespOkNodata = 0x1100,\r
+ VirtioGpuRespOkNodata = 0x1100,\r
+ VirtioGpuRespOkDisplayInfo = 0x1101,\r
} VIRTIO_GPU_CONTROL_TYPE;\r
\r
//\r
} VIRTIO_GPU_RESOURCE_FLUSH;\r
#pragma pack ()\r
\r
+//\r
+// Response structure for VirtioGpuCmdGetDisplayInfo\r
+//\r
+#define VIRTIO_GPU_MAX_SCANOUTS 16\r
+#pragma pack (1)\r
+typedef struct {\r
+ VIRTIO_GPU_CONTROL_HEADER Header;\r
+ struct {\r
+ VIRTIO_GPU_RECTANGLE Rectangle;\r
+ UINT32 Enabled;\r
+ UINT32 Flags;\r
+ } Pmodes[VIRTIO_GPU_MAX_SCANOUTS];\r
+} VIRTIO_GPU_RESP_DISPLAY_INFO;\r
+#pragma pack ()\r
+\r
#endif // _VIRTIO_GPU_H_\r