Changes in kernel/genarch/src/multiboot/multiboot.c [6404aca:8781e9d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/multiboot/multiboot.c
r6404aca r8781e9d 35 35 #include <typedefs.h> 36 36 #include <genarch/multiboot/multiboot.h> 37 #include <genarch/fb/bfb.h> 37 38 #include <config.h> 38 39 #include <stddef.h> … … 168 169 multiboot_memmap(info->mmap_length, 169 170 (multiboot_memmap_t *) MULTIBOOT_PTR(info->mmap_addr)); 171 172 #ifdef CONFIG_FB 173 174 /* Initialize framebuffer. */ 175 if ((info->flags & MULTIBOOT_INFO_FLAGS_FB) != 0) { 176 if (info->framebuffer_type != 1) { 177 /* Can't use this framebuffer. */ 178 // FIXME: framebuffer_type == 2 is EGA mode, we should be able to use that. 179 return; 180 } 181 182 bfb_addr = info->framebuffer_addr; 183 bfb_width = info->framebuffer_width; 184 bfb_height = info->framebuffer_height; 185 bfb_bpp = info->framebuffer_bpp; 186 bfb_scanline = info->framebuffer_pitch; 187 bfb_red_pos = info->framebuffer_red_field_position; 188 bfb_red_size = info->framebuffer_red_mask_size; 189 bfb_green_pos = info->framebuffer_green_field_position; 190 bfb_green_size = info->framebuffer_green_mask_size; 191 bfb_blue_pos = info->framebuffer_blue_field_position; 192 bfb_blue_size = info->framebuffer_blue_mask_size; 193 } 194 195 #endif 170 196 } 171 197
Note:
See TracChangeset
for help on using the changeset viewer.