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>
This commit is contained in:
parent
ecc79b092e
commit
182122914c
|
@ -37,6 +37,7 @@ typedef enum {
|
||||||
//
|
//
|
||||||
// - create/release a host-side 2D resource,
|
// - create/release a host-side 2D resource,
|
||||||
//
|
//
|
||||||
|
VirtioGpuCmdGetDisplayInfo = 0x0100,
|
||||||
VirtioGpuCmdResourceCreate2d = 0x0101,
|
VirtioGpuCmdResourceCreate2d = 0x0101,
|
||||||
VirtioGpuCmdResourceUnref = 0x0102,
|
VirtioGpuCmdResourceUnref = 0x0102,
|
||||||
//
|
//
|
||||||
|
@ -65,6 +66,7 @@ typedef enum {
|
||||||
// Success code for all of the above commands.
|
// Success code for all of the above commands.
|
||||||
//
|
//
|
||||||
VirtioGpuRespOkNodata = 0x1100,
|
VirtioGpuRespOkNodata = 0x1100,
|
||||||
|
VirtioGpuRespOkDisplayInfo = 0x1101,
|
||||||
} VIRTIO_GPU_CONTROL_TYPE;
|
} VIRTIO_GPU_CONTROL_TYPE;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -207,4 +209,19 @@ typedef struct {
|
||||||
} VIRTIO_GPU_RESOURCE_FLUSH;
|
} VIRTIO_GPU_RESOURCE_FLUSH;
|
||||||
#pragma pack ()
|
#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_
|
#endif // _VIRTIO_GPU_H_
|
||||||
|
|
Loading…
Reference in New Issue