|
PatchworkOS
966e257
A non-POSIX operating system.
|
Framebuffer driver abstraction. More...
Framebuffer driver abstraction.
Framebuffer devices are exposed as a /dev/fb/[id]/ directory, containing the following files:
buffer: A file that can be mmaped to access the framebuffer memory.info: A read-only file that contains the fb_info_t struct for the framebuffer. Data Structures | |
| struct | fb_t |
| Framebuffer structure. More... | |
Typedefs | |
| typedef void *(* | fb_mmap_t) (fb_t *, void *, uint64_t, uint64_t *, pml_flags_t) |
| Framebuffer mmap callback type. | |
Functions | |
| fb_t * | fb_new (const fb_info_t *info, fb_mmap_t mmap) |
| Allocate and initialize a framebuffer structure. | |
| void | fb_free (fb_t *fb) |
| Free and deinitialize a framebuffer structure. | |
| typedef void *(* fb_mmap_t) (fb_t *, void *, uint64_t, uint64_t *, pml_flags_t) |
Allocate and initialize a framebuffer structure.
Will make the framebuffer available under /dev/fb/[id].
| info | Pointer to the framebuffer information. |
| mmap | Function that user space will invoke to mmap the framebuffer. |
NULL and errno is set. Definition at line 56 of file fb.c.