|
XenevaOS
|


Go to the source code of this file.
Classes | |
| struct | virtio_gpu_ctrl_hdr |
| struct | virtio_gpu_resource_create_2d |
| struct | virtio_gpu_resource_attach_backing |
| struct | virtio_gpu_rect |
| struct | virtio_gpu_set_scanout |
| struct | virtio_gpu_transfer_to_host_2d |
| struct | virtio_gpu_resource_flush |
| struct | virtio_gpu_config |
| struct | virtio_gpu_mem_entry |
Macros | |
| #define | VIRTIO_GPU_FLAG_FENCE (1<<0) |
| #define | VIRTIO_GPU_FLAG_INFO_RING_IDX (1<<1) |
| #define | VIRTIO_GPU_CREATE_RESOURCE_2D 0x200 |
| #define | VIRTIO_GPU_ATTACH_BACKING 0x201 |
| #define | VIRTIO_GPU_TRANSFER_TO_HOST2D 0x202 |
| #define | VIRTIO_GPU_FLUSH 0x203 |
| #define | VIRTIO_GPU_GET_SCREEN_RSRC_ID 0x204 |
Functions | |
| bool | gpu_is_virgl_supported () |
| gpu_is_virgl_supported – returns if virgl is supported by host | |
| bool | gpu_is_edid_supported () |
| gpu_is_edid_supported – returns if edid blob is supported by host | |
| void | gpu_execute_command (VirtioCommonCfg *cfg, void *cmd, size_t len) |
| gpu_execute_command – submit a command to gpu | |
| int | gpu_allocate_resource_id () |
| gpu_allocate_resource_id – allocates resource for commands | |
| void | gpu_attach_back_cmd (VirtioCommonCfg *cfg, void *req, uint32_t len1, void *req2, uint32_t len2) |
| gpu_attach_back_cmd – attach backing stroe command needs two descriptor previous gpu_execute_command won't satisfy this | |
| VirtioCommonCfg * | gpu_get_config_pointer () |
| gpu_get_config_pointer – return the pointer virtio common config descriptor from pcie | |
| #define VIRTIO_GPU_ATTACH_BACKING 0x201 |
| #define VIRTIO_GPU_CREATE_RESOURCE_2D 0x200 |
| #define VIRTIO_GPU_FLAG_FENCE (1<<0) |
| #define VIRTIO_GPU_FLAG_INFO_RING_IDX (1<<1) |
| #define VIRTIO_GPU_FLUSH 0x203 |
| #define VIRTIO_GPU_GET_SCREEN_RSRC_ID 0x204 |
| #define VIRTIO_GPU_TRANSFER_TO_HOST2D 0x202 |
| enum virtio_gpu_ctrl_type |
| enum virtio_gpu_formats |
|
extern |
gpu_allocate_resource_id – allocates resource for commands
|
extern |
gpu_attach_back_cmd – attach backing stroe command needs two descriptor previous gpu_execute_command won't satisfy this
| cfg | – pointer to virtio common config |
| req | – pointer to request command one |
| len1 | – request command one length |
| req2 | – pointer to request command two |
| len2 | – request command two length |
|
extern |
gpu_execute_command – submit a command to gpu
| cfg | – pointer to virtio common config |
| cmd | – Pointer to command struct |
| len | – total length of the command |
|
extern |
gpu_get_config_pointer – return the pointer virtio common config descriptor from pcie
|
extern |
gpu_is_edid_supported – returns if edid blob is supported by host
|
extern |
gpu_is_virgl_supported – returns if virgl is supported by host