The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
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
16
typedef
struct
17
{
18
uint32_t
width
;
19
uint32_t
height
;
20
uint32_t
bpp
;
21
}
boot_video_mode_t
;
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
*/
28
uint32_t
boot_video_modes
(
const
boot_video_mode_t
**modes);
stdint.h
uint32_t
unsigned int uint32_t
Definition
fb.h:17
boot_video_modes
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
boot_video_mode_t
Definition
video_modes.h:17
boot_video_mode_t::height
uint32_t height
Definition
video_modes.h:19
boot_video_mode_t::bpp
uint32_t bpp
Definition
video_modes.h:20
boot_video_mode_t::width
uint32_t width
Definition
video_modes.h:18
src
common
boot
video_modes.h
Generated by
1.18.0