PatchworkOS
Loading...
Searching...
No Matches
fb.h
Go to the documentation of this file.
1#pragma once
2
3#include <kernel/fs/sysfs.h>
4#include <kernel/mem/vmm.h>
5
6#include <stdint.h>
7#include <sys/fb.h>
8#include <sys/proc.h>
9
10typedef struct fb fb_t;
11
27typedef void* (*fb_mmap_t)(fb_t*, void*, uint64_t, uint64_t*, pml_flags_t);
28
41
52
60void fb_free(fb_t* fb);
61
void fb_free(fb_t *fb)
Free and deinitialize a framebuffer structure.
Definition fb.c:111
void *(* fb_mmap_t)(fb_t *, void *, uint64_t, uint64_t *, pml_flags_t)
Framebuffer mmap callback type.
Definition fb.h:27
fb_t * fb_new(const fb_info_t *info, fb_mmap_t mmap)
Allocate and initialize a framebuffer structure.
Definition fb.c:56
void * mmap(fd_t fd, void *address, uint64_t length, prot_t prot)
System call to map memory from a file.
Definition mmap.c:6
static fb_t * fb
Definition gop.c:17
static fb_info_t info
Definition gop.c:41
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
Directory entry structure.
Definition dentry.h:83
Framebuffer info struct.
Definition fb.h:39
Framebuffer structure.
Definition fb.h:34
fb_mmap_t mmap
Definition fb.h:36
dentry_t * infoFile
Definition fb.h:39
dentry_t * dir
Definition fb.h:37
dentry_t * bufferFile
Definition fb.h:38
fb_info_t info
Definition fb.h:35
A entry in a page table without a specified address or callback ID.