mirror of
https://github.com/tailix/libkernaux.git
synced 2024-11-27 11:14:42 -05:00
Print Multiboot 2 VBE info & framebuffer tag
This commit is contained in:
parent
47cf118fef
commit
87503099d8
2 changed files with 22 additions and 0 deletions
|
@ -153,10 +153,26 @@ void KernAux_Multiboot2_TagBase_print(
|
|||
break;
|
||||
case KERNAUX_MULTIBOOT2_TAGTYPE_VBE_INFO:
|
||||
{
|
||||
const struct KernAux_Multiboot2_Tag_VBEInfo *const tag_vbe =
|
||||
(struct KernAux_Multiboot2_Tag_VBEInfo*)tag_base;
|
||||
|
||||
print(" VBE mode: %hu\n", tag_vbe->vbe_mode);
|
||||
print(" VBE interface seg: %hu\n", tag_vbe->vbe_interface_seg);
|
||||
print(" VBE interface off: %hu\n", tag_vbe->vbe_interface_off);
|
||||
print(" VBE interface len: %hu\n", tag_vbe->vbe_interface_len);
|
||||
}
|
||||
break;
|
||||
case KERNAUX_MULTIBOOT2_TAGTYPE_FRAMEBUFFER_INFO:
|
||||
{
|
||||
const struct KernAux_Multiboot2_Tag_FramebufferInfo *const tag_fb =
|
||||
(struct KernAux_Multiboot2_Tag_FramebufferInfo*)tag_base;
|
||||
|
||||
print(" framebuffer addr: %llu\n", tag_fb->framebuffer_addr);
|
||||
print(" framebuffer pitch: %u\n", tag_fb->framebuffer_pitch);
|
||||
print(" framebuffer width: %u\n", tag_fb->framebuffer_width);
|
||||
print(" framebuffer height: %u\n", tag_fb->framebuffer_height);
|
||||
print(" framebuffer bpp: %u\n", tag_fb->framebuffer_bpp);
|
||||
print(" framebuffer type: %u\n", tag_fb->framebuffer_type);
|
||||
}
|
||||
break;
|
||||
case KERNAUX_MULTIBOOT2_TAGTYPE_ELF_SYMBOLS:
|
||||
|
|
|
@ -54,6 +54,12 @@ static const char output[] =
|
|||
"Multiboot 2 tag\n"
|
||||
" type: 8 (framebuffer info)\n"
|
||||
" size: 32\n"
|
||||
" framebuffer addr: 753664\n"
|
||||
" framebuffer pitch: 160\n"
|
||||
" framebuffer width: 80\n"
|
||||
" framebuffer height: 25\n"
|
||||
" framebuffer bpp: 16\n"
|
||||
" framebuffer type: 2\n"
|
||||
"Multiboot 2 tag\n"
|
||||
" type: 14 (ACPI old RSDP)\n"
|
||||
" size: 28\n"
|
||||
|
|
Loading…
Reference in a new issue