Skip to content
Snippets Groups Projects
Commit eabdacd4 authored by adrian.spycher's avatar adrian.spycher
Browse files

feat: complete emulated guess' function to init gfx

parent 60882b11
No related branches found
No related tags found
No related merge requests found
#include "gfx.h"
#include "guest/utils.h"
#include "guest/pmio.h"
#include <stdint.h>
#include "shared/hypercall_params.h"
// --- DEFINE ---
......@@ -12,5 +11,9 @@
void gfx_phys_init(uint32_t width, uint32_t height) {
// TODO:
while (*(uint32_t *)REG_GFX_INIT_ST == 42);
*(uint32_t *)REG_GFX_INIT_CMD = 5;
*(uint32_t *)REG_GFX_INIT_DATA = width;
*(uint32_t *)REG_GFX_INIT_DATA = height;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment