|
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 | |
| int | virt_gpu_default_resource_id () |
| virt_gpu_default_resource_id – resource id of the scanout created at driver init (the one the console mirror presents to) | |
| AU_EXTERN AU_EXPORT void | VirtGpuConsolePresent (uint32_t *src, uint32_t src_pitch, int x, int y, int w, int h) |
| VirtGpuConsolePresent – copy a console damage rect into the scanout backing and transfer+flush exactly that rect. Installed as the kernel console present hook; aucon only calls it while no compositor owns the display. Exported: under this toolchain AU_EXPORT is the only thing lld honors for COFF exports, and the kernel resolves the hook by plain name from our export table – an unexported symbol silently never matches (C linkage alone is not enough). –axiss. | |
| #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
|
extern |
virt_gpu_default_resource_id – resource id of the scanout created at driver init (the one the console mirror presents to)
| AU_EXTERN AU_EXPORT void VirtGpuConsolePresent | ( | uint32_t * | src, |
| uint32_t | src_pitch, | ||
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
VirtGpuConsolePresent – copy a console damage rect into the scanout backing and transfer+flush exactly that rect. Installed as the kernel console present hook; aucon only calls it while no compositor owns the display. Exported: under this toolchain AU_EXPORT is the only thing lld honors for COFF exports, and the kernel resolves the hook by plain name from our export table – an unexported symbol silently never matches (C linkage alone is not enough). –axiss.
VirtGpuConsolePresent – copy a console damage rect into the scanout backing and transfer+flush exactly that rect. Installed as the kernel console present hook; aucon only calls it while no compositor owns the display. Exported: under this toolchain AU_EXPORT is the only thing lld honors for COFF exports, and the kernel resolves the hook by plain name from our export table – an unexported symbol silently never matches (C linkage alone is not enough). –axiss.