TianoCore EDK2 master
Loading...
Searching...
No Matches
VirtioGpu.h File Reference

Go to the source code of this file.

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
 
struct  VIRTIO_GPU_RESP_DISPLAY_INFO
 

Macros

#define VIRTIO_GPU_CONTROL_QUEUE   0
 
#define VIRTIO_GPU_FLAG_FENCE   BIT0
 
#define VIRTIO_GPU_MAX_SCANOUTS   16
 

Enumerations

enum  VIRTIO_GPU_CONTROL_TYPE {
  VirtioGpuCmdGetDisplayInfo = 0x0100 , VirtioGpuCmdResourceCreate2d = 0x0101 , VirtioGpuCmdResourceUnref = 0x0102 , VirtioGpuCmdResourceAttachBacking = 0x0106 ,
  VirtioGpuCmdResourceDetachBacking = 0x0107 , VirtioGpuCmdSetScanout = 0x0103 , VirtioGpuCmdTransferToHost2d = 0x0105 , VirtioGpuCmdResourceFlush = 0x0104 ,
  VirtioGpuRespOkNodata = 0x1100 , VirtioGpuRespOkDisplayInfo = 0x1101
}
 
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

Definition in file VirtioGpu.h.

Macro Definition Documentation

◆ VIRTIO_GPU_CONTROL_QUEUE

#define VIRTIO_GPU_CONTROL_QUEUE   0

Definition at line 29 of file VirtioGpu.h.

◆ VIRTIO_GPU_FLAG_FENCE

#define VIRTIO_GPU_FLAG_FENCE   BIT0

Definition at line 75 of file VirtioGpu.h.

◆ VIRTIO_GPU_MAX_SCANOUTS

#define VIRTIO_GPU_MAX_SCANOUTS   16

Definition at line 215 of file VirtioGpu.h.

Enumeration Type Documentation

◆ VIRTIO_GPU_CONTROL_TYPE

enum VIRTIO_GPU_CONTROL_TYPE

Definition at line 34 of file VirtioGpu.h.

◆ VIRTIO_GPU_FORMATS

enum VIRTIO_GPU_FORMATS

Definition at line 115 of file VirtioGpu.h.