OvmfPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
VirtioGpu.h File Reference

Data Structures

struct  VIRTIO_GPU_CONTROL_HEADER
 
struct  VIRTIO_GPU_RECTANGLE
 
struct  VIRTIO_GPU_RESOURCE_CREATE_2D
 
struct  VIRTIO_GPU_RESOURCE_UNREF
 
struct  VIRTIO_GPU_MEM_ENTRY
 
struct  VIRTIO_GPU_RESOURCE_ATTACH_BACKING
 
struct  VIRTIO_GPU_RESOURCE_DETACH_BACKING
 
struct  VIRTIO_GPU_SET_SCANOUT
 
struct  VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D
 
struct  VIRTIO_GPU_RESOURCE_FLUSH
 

Macros

#define VIRTIO_GPU_CONTROL_QUEUE   0
 
#define VIRTIO_GPU_FLAG_FENCE   BIT0
 

Enumerations

enum  VIRTIO_GPU_CONTROL_TYPE {
  VirtioGpuCmdResourceCreate2d = 0x0101, VirtioGpuCmdResourceUnref = 0x0102, VirtioGpuCmdResourceAttachBacking = 0x0106, VirtioGpuCmdResourceDetachBacking = 0x0107,
  VirtioGpuCmdSetScanout = 0x0103, VirtioGpuCmdTransferToHost2d = 0x0105, VirtioGpuCmdResourceFlush = 0x0104, VirtioGpuRespOkNodata = 0x1100
}
 
enum  VIRTIO_GPU_FORMATS { VirtioGpuFormatB8G8R8X8Unorm = 2 }
 

Detailed Description

Virtio GPU Device specific type and macro definitions.

At the time of this writing, the Virtio 1.0 specification has not incorporated the GPU device yet. The following work-in-progress specification is used as basis for the implementation:

This header file is minimal, and only defines the types and macros that are necessary for the OvmfPkg implementation.

Copyright (C) 2016, Red Hat, Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Macro Definition Documentation

#define VIRTIO_GPU_CONTROL_QUEUE   0
#define VIRTIO_GPU_FLAG_FENCE   BIT0

Enumeration Type Documentation

Enumerator
VirtioGpuCmdResourceCreate2d 
VirtioGpuCmdResourceUnref 
VirtioGpuCmdResourceAttachBacking 
VirtioGpuCmdResourceDetachBacking 
VirtioGpuCmdSetScanout 
VirtioGpuCmdTransferToHost2d 
VirtioGpuCmdResourceFlush 
VirtioGpuRespOkNodata 
Enumerator
VirtioGpuFormatB8G8R8X8Unorm