XenevaOS
Loading...
Searching...
No Matches
virtscreen.h
Go to the documentation of this file.
1
32#ifndef __VIRT_SCREEN_H__
33#define __VIRT_SCREEN_H__
34
35#include <Drivers/virtio.h>
36#include <stdint.h>
37
45extern int virt_gpu_screen_init(VirtioCommonCfg* cfg, uint32_t width, uint32_t height);
46
52extern void virt_gpu_alloc_fb(VirtioCommonCfg* cfg, int resource_id);
53
54
61extern void virt_gpu_set_scanout(VirtioCommonCfg* cfg, int resource_id, int scanout_id);
62
73extern void virt_gpu_transfer_to_host2d(VirtioCommonCfg* cfg, int resource_id, int x, int y, int w, int h);
74
80extern void virt_gpu_flush(VirtioCommonCfg* cfg, int resource_id);
81
88extern void virt_gpu_fill_screen(uint32_t width, uint32_t height, uint32_t color);
89
90
91#endif
unsigned int uint32_t
Definition acefiex.h:163
Definition virtio.h:37
int virt_gpu_screen_init(VirtioCommonCfg *cfg, uint32_t width, uint32_t height)
virt_gpu_screen_init – initialize screen
Definition virtscreen.cpp:53
void virt_gpu_flush(VirtioCommonCfg *cfg, int resource_id)
virt_gpu_flush – flush graphics from guest to host
Definition virtscreen.cpp:158
void virt_gpu_set_scanout(VirtioCommonCfg *cfg, int resource_id, int scanout_id)
virt_gpu_set_scanout – initialize the scanout to the given screen
Definition virtscreen.cpp:114
void virt_gpu_alloc_fb(VirtioCommonCfg *cfg, int resource_id)
virt_gpu_alloc_fb – allocate framebuffer for scanout
Definition virtscreen.cpp:80
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
Definition virtscreen.cpp:141
void virt_gpu_fill_screen(uint32_t width, uint32_t height, uint32_t color)
virt_gpu_fill_screen – fill the screen with specific color
Definition virtscreen.cpp:198