#include <Drivers/virtio.h>
#include <stdint.h>
Go to the source code of this file.
|
| int | virt_gpu_screen_init (VirtioCommonCfg *cfg, uint32_t width, uint32_t height) |
| | virt_gpu_screen_init – initialize screen
|
| |
| void | virt_gpu_alloc_fb (VirtioCommonCfg *cfg, int resource_id) |
| | virt_gpu_alloc_fb – allocate framebuffer for scanout
|
| |
| void | virt_gpu_set_scanout (VirtioCommonCfg *cfg, int resource_id, int scanout_id) |
| | virt_gpu_set_scanout – initialize the scanout to the given screen
|
| |
| void | virt_gpu_transfer_to_host2d (VirtioCommonCfg *cfg, int resource_id, int x, int y, int w, int h) |
| | virt_gpu_transfer_to_host2d – transfer buffers from guest to host
|
| |
| void | virt_gpu_flush (VirtioCommonCfg *cfg, int resource_id) |
| | virt_gpu_flush – flush graphics from guest to host
|
| |
| void | virt_gpu_fill_screen (uint32_t width, uint32_t height, uint32_t color) |
| | virt_gpu_fill_screen – fill the screen with specific color
|
| |
◆ virt_gpu_alloc_fb()
virt_gpu_alloc_fb – allocate framebuffer for scanout
- Parameters
-
| cfg | – pointer to virtio common config |
| resource_id | – resource id number |
◆ virt_gpu_fill_screen()
virt_gpu_fill_screen – fill the screen with specific color
- Parameters
-
| width | – width of the screen |
| height | – height of the screen |
| color | – color to fill with |
◆ virt_gpu_flush()
virt_gpu_flush – flush graphics from guest to host
- Parameters
-
| cfg | – pointer to virtio common config |
| resource_id | – screen resource id |
◆ virt_gpu_screen_init()
virt_gpu_screen_init – initialize screen
- Parameters
-
| cfg | – pointer to virtio common config |
| width | – width of the screen |
| height | – height of the screen |
- Returns
- resource id allocated for this screen
◆ virt_gpu_set_scanout()
| void virt_gpu_set_scanout |
( |
VirtioCommonCfg * |
cfg, |
|
|
int |
resource_id, |
|
|
int |
scanout_id |
|
) |
| |
|
extern |
virt_gpu_set_scanout – initialize the scanout to the given screen
- Parameters
-
| cfg | – Pointer to virtio common config |
| resource_id | – screen resource id |
◆ virt_gpu_transfer_to_host2d()
| void virt_gpu_transfer_to_host2d |
( |
VirtioCommonCfg * |
cfg, |
|
|
int |
resource_id, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
extern |
virt_gpu_transfer_to_host2d – transfer buffers from guest to host
- Parameters
-
| cfg | – Pointer to virtio common config |
| resource_id | – screen resource id |
| x | – X coord of the rect |
| y | – Y coord of the rect |
| w | – Width of the rect |
| h | – Height of the rect |