The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
video_modes.h
Go to the documentation of this file.
1#pragma once
2
3/**
4 * @file video_modes.h
5 * @brief the video modes the firmware offers, as the bootloader reports them.
6 *
7 * the limine boot code fills the list (from the framebuffer response,
8 * revision 1 and later); other boot paths leave it empty. the fb driver
9 * shows it to user space (FBIOGET_MODE).
10 */
11
12#include "common/stdint.h"
13
14#define BOOT_VIDEO_MODES_MAX 64
15
22
23/**
24 * the list of modes.
25 * @param modes receives a pointer to the first mode.
26 * @return the number of modes (0 if the bootloader gave none).
27 */
unsigned int uint32_t
Definition fb.h:17
uint32_t boot_video_modes(const boot_video_mode_t **modes)
the x86_64 boot: read the limine boot protocol responses into a boot_info_t, then call kernel_main.
Definition limine_boot.c:421
Definition video_modes.h:17
uint32_t height
Definition video_modes.h:19
uint32_t bpp
Definition video_modes.h:20
uint32_t width
Definition video_modes.h:18