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
55extern void virt_gpu_release_fb(void);
56
57
64extern void virt_gpu_set_scanout(VirtioCommonCfg* cfg, int resource_id, int scanout_id);
65
76extern void virt_gpu_transfer_to_host2d(VirtioCommonCfg* cfg, int resource_id, int x, int y, int w, int h);
77
83extern void virt_gpu_flush(VirtioCommonCfg* cfg, int resource_id);
84
91extern void virt_gpu_fill_screen(uint32_t width, uint32_t height, uint32_t color);
92
93
94#endif
unsigned int uint32_t
Definition acefiex.h:163
int h
Definition layout.c:118
Definition virtio.h:44
Definition i_video.h:141
void virt_gpu_release_fb(void)
Definition virtscreen.cpp:118
int virt_gpu_screen_init(VirtioCommonCfg *cfg, uint32_t width, uint32_t height)
virt_gpu_screen_init – initialize screen
Definition virtscreen.cpp:55
void virt_gpu_flush(VirtioCommonCfg *cfg, int resource_id)
virt_gpu_flush – flush graphics from guest to host
Definition virtscreen.cpp:178
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:134
void virt_gpu_alloc_fb(VirtioCommonCfg *cfg, int resource_id)
virt_gpu_alloc_fb – allocate framebuffer for scanout
Definition virtscreen.cpp:82
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:161
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:260