LF OS
Hobby operating system for amd64 with high ambitions
|
Go to the source code of this file.
Functions | |
void | fbconsole_init (int width, int height, int stride, uint8_t *fb) |
void | fbconsole_init_backbuffer (void) |
void | fbconsole_back_to_kernel (void) |
void | fbconsole_clear (int r, int g, int b) |
int | fbconsole_write (char *string,...) |
void | fbconsole_blt (const uint8_t *image, uint16_t width, uint16_t height, int16_t x, int16_t y) |
Variables | |
bool | fbconsole_active |
void fbconsole_back_to_kernel | ( | void | ) |
Definition at line 348 of file fbconsole.c.
References fbconsole_active.
Definition at line 123 of file fbconsole.c.
References fbconsole_data::backbuffer, fbconsole_data::fb, fbconsole, height, fbconsole_data::height, memcpy(), fbconsole_data::stride, width, and fbconsole_data::width.
void fbconsole_clear | ( | int | r, |
int | g, | ||
int | b | ||
) |
Definition at line 103 of file fbconsole.c.
References fbconsole_data::backbuffer, fbconsole_data::current_col, fbconsole_data::current_row, fbconsole_data::fb, fbconsole, fbconsole_active, fbconsole_data::height, logd, memset32(), and fbconsole_data::stride.
void fbconsole_init | ( | int | width, |
int | height, | ||
int | stride, | ||
uint8_t * | fb | ||
) |
Definition at line 31 of file fbconsole.c.
References fbconsole_data::backbuffer, fbconsole_data::background_b, fbconsole_data::background_g, fbconsole_data::background_r, fbconsole_data::cols, fbconsole_data::current_col, fbconsole_data::current_row, fbconsole_data::fb, fbconsole, FONT_HEIGHT, FONT_WIDTH, fbconsole_data::foreground_b, fbconsole_data::foreground_g, fbconsole_data::foreground_r, height, fbconsole_data::height, memcpy(), fbconsole_data::palette, fbconsole_data::rows, stride, fbconsole_data::stride, width, and fbconsole_data::width.
void fbconsole_init_backbuffer | ( | void | ) |
Definition at line 85 of file fbconsole.c.
References ALLOCATOR_REGION_KERNEL_HEAP, fbconsole_data::backbuffer, fbconsole_data::fb, fbconsole, fbconsole_data::height, memcpy(), fbconsole_data::stride, vm_context_alloc_pages(), vm_context_get_physical_for_virtual(), vm_context_map(), and VM_KERNEL_CONTEXT.
int fbconsole_write | ( | char * | string, |
... | |||
) |
Definition at line 223 of file fbconsole.c.
References fbconsole_data::background_b, fbconsole_data::background_g, fbconsole_data::background_r, fbconsole_data::cols, fbconsole_data::current_col, fbconsole_data::current_row, fbconsole_data::fb, fbconsole, fbconsole_draw_char(), fbconsole_next_line(), FONT_HEIGHT, FONT_WIDTH, fbconsole_data::foreground_b, fbconsole_data::foreground_g, fbconsole_data::foreground_r, kvsnprintf(), memset(), fbconsole_data::palette, va_end, and va_start.
|
extern |
Definition at line 13 of file fbconsole.c.