PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
log_screen.c File Reference
#include <kernel/log/log_screen.h>
#include <kernel/drivers/com.h>
#include <kernel/log/glyphs.h>
#include <kernel/sync/lock.h>
#include <string.h>
#include <sys/math.h>
Include dependency graph for log_screen.c:

Go to the source code of this file.

Functions

static log_screen_line_tlog_screen_get_line (uint64_t y)
 
static void log_screen_invalidate (const log_screen_pos_t *pos)
 
static void log_screen_put (char chr)
 
static void log_screen_flush (void)
 
void log_screen_init (const boot_gop_t *bootGop)
 Initialize the screen logging.
 
static void log_screen_scroll (void)
 
static void log_screen_advance_cursor (char chr)
 
void log_screen_clear (void)
 Clear the screen.
 
uint64_t log_screen_get_width (void)
 Get screen width in characters.
 
uint64_t log_screen_get_height (void)
 Get screen height in characters.
 
void log_screen_write (const char *string, uint64_t length)
 Write a string to the screen.
 

Variables

static boot_gop_t gop = {0}
 
static log_screen_pos_t cursor = {0, 0}
 
static log_screen_t screen = {0}
 
static lock_t lock = LOCK_CREATE()
 

Function Documentation

◆ log_screen_get_line()

static log_screen_line_t * log_screen_get_line ( uint64_t  y)
static

Definition at line 16 of file log_screen.c.

Here is the caller graph for this function:

◆ log_screen_invalidate()

static void log_screen_invalidate ( const log_screen_pos_t pos)
static

Definition at line 22 of file log_screen.c.

Here is the caller graph for this function:

◆ log_screen_put()

static void log_screen_put ( char  chr)
static

Definition at line 42 of file log_screen.c.

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

◆ log_screen_flush()

static void log_screen_flush ( void  )
static

Definition at line 65 of file log_screen.c.

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

◆ log_screen_scroll()

static void log_screen_scroll ( void  )
static

Definition at line 98 of file log_screen.c.

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

◆ log_screen_advance_cursor()

static void log_screen_advance_cursor ( char  chr)
static

Definition at line 138 of file log_screen.c.

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

Variable Documentation

◆ gop

boot_gop_t gop = {0}
static

Definition at line 10 of file log_screen.c.

◆ cursor

log_screen_pos_t cursor = {0, 0}
static

Definition at line 11 of file log_screen.c.

◆ screen

log_screen_t screen = {0}
static

Definition at line 12 of file log_screen.c.

◆ lock

lock_t lock = LOCK_CREATE()
static

Definition at line 14 of file log_screen.c.