LF OS
Hobby operating system for amd64 with high ambitions
Loading...
Searching...
No Matches
fbconsole.h File Reference

(7c4d7d1 userspace/term: change eyecandy inclusion to use objcopy instead of xxd)

#include <stdint.h>
#include <stdbool.h>
+ Include dependency graph for fbconsole.h:
+ This graph shows which files directly or indirectly include this file:

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
 

Function Documentation

◆ fbconsole_back_to_kernel()

void fbconsole_back_to_kernel ( void  )

Definition at line 348 of file fbconsole.c.

References fbconsole_active.

◆ fbconsole_blt()

void fbconsole_blt ( const uint8_t image,
uint16_t  width,
uint16_t  height,
int16_t  x,
int16_t  y 
)

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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fbconsole_clear()

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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fbconsole_init()

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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fbconsole_init_backbuffer()

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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fbconsole_write()

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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ fbconsole_active

bool fbconsole_active
extern

Definition at line 13 of file fbconsole.c.