mirror of
https://github.com/tailix/libkernaux.git
synced 2024-12-04 11:25:18 -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;
|
break;
|
||||||
case KERNAUX_MULTIBOOT2_TAGTYPE_VBE_INFO:
|
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;
|
break;
|
||||||
case KERNAUX_MULTIBOOT2_TAGTYPE_FRAMEBUFFER_INFO:
|
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;
|
break;
|
||||||
case KERNAUX_MULTIBOOT2_TAGTYPE_ELF_SYMBOLS:
|
case KERNAUX_MULTIBOOT2_TAGTYPE_ELF_SYMBOLS:
|
||||||
|
|
|
@ -54,6 +54,12 @@ static const char output[] =
|
||||||
"Multiboot 2 tag\n"
|
"Multiboot 2 tag\n"
|
||||||
" type: 8 (framebuffer info)\n"
|
" type: 8 (framebuffer info)\n"
|
||||||
" size: 32\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"
|
"Multiboot 2 tag\n"
|
||||||
" type: 14 (ACPI old RSDP)\n"
|
" type: 14 (ACPI old RSDP)\n"
|
||||||
" size: 28\n"
|
" size: 28\n"
|
||||||
|
|
Loading…
Reference in a new issue