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
10
typedef
struct
fb
fb_t
;
11
27
typedef
void
* (*fb_mmap_t)(
fb_t
*,
void
*,
uint64_t
,
uint64_t
*,
pml_flags_t
);
28
33
typedef
struct
fb
34
{
35
fb_info_t
info
;
36
fb_mmap_t
mmap
;
37
dentry_t
*
dir
;
38
dentry_t
*
bufferFile
;
39
dentry_t
*
infoFile
;
40
}
fb_t
;
41
51
fb_t
*
fb_new
(
const
fb_info_t
*
info
,
fb_mmap_t
mmap
);
52
60
void
fb_free
(
fb_t
*
fb
);
61
fb_free
void fb_free(fb_t *fb)
Free and deinitialize a framebuffer structure.
Definition
fb.c:111
fb_mmap_t
void *(* fb_mmap_t)(fb_t *, void *, uint64_t, uint64_t *, pml_flags_t)
Framebuffer mmap callback type.
Definition
fb.h:27
fb_new
fb_t * fb_new(const fb_info_t *info, fb_mmap_t mmap)
Allocate and initialize a framebuffer structure.
Definition
fb.c:56
mmap
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
fb
static fb_t * fb
Definition
gop.c:17
info
static fb_info_t info
Definition
gop.c:41
fb.h
proc.h
stdint.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
dentry_t
Directory entry structure.
Definition
dentry.h:83
fb_info_t
Framebuffer info struct.
Definition
fb.h:39
fb_t
Framebuffer structure.
Definition
fb.h:34
fb_t::mmap
fb_mmap_t mmap
Definition
fb.h:36
fb_t::infoFile
dentry_t * infoFile
Definition
fb.h:39
fb_t::dir
dentry_t * dir
Definition
fb.h:37
fb_t::bufferFile
dentry_t * bufferFile
Definition
fb.h:38
fb_t::info
fb_info_t info
Definition
fb.h:35
pml_flags_t
A entry in a page table without a specified address or callback ID.
sysfs.h
vmm.h
include
kernel
drivers
abstractions
fb.h
Generated by
1.9.8