Turnstone Operating System
|
video operations More...
#include <video.h>
#include <memory.h>
#include <ports.h>
#include <strings.h>
#include <utils.h>
#include <systeminfo.h>
#include <cpu.h>
#include <cpu/sync.h>
#include <list.h>
#include <pci.h>
#include <driver/video_virtio.h>
#include <driver/video_vmwaresvga.h>
#include <logging.h>
#include <apic.h>
Macros | |
#define | VIDEO_TAB_STOP 8 |
Functions | |
MODULE ("turnstone.kernel.hw.video") | |
void | video_graphics_scroll (void) |
scrolls video up for one line | |
wchar_t | video_get_wc (const char_t *string, int64_t *idx) |
void | video_text_print (const char_t *string) |
void | video_graphics_print (const char_t *string) |
void | video_display_flush_dummy (uint32_t scanout, uint64_t offset, uint32_t x, uint32_t y, uint32_t width, uint32_t height) |
void | video_set_color (uint32_t foreground, uint32_t background) |
void | video_refresh_frame_buffer_address (void) |
updates frame buffer address for page mapping changes | |
void | video_init (void) |
initialize video support on kernel | |
static void | video_print_glyph (wchar_t wc) |
static void | video_text_cursor_toggle (boolean_t flush) |
void | video_clear_screen (void) |
clears screen aka write space to all buffer | |
void | video_print (const char_t *string) |
int8_t | video_copy_contents_to_frame_buffer (uint8_t *buffer, uint64_t new_width, uint64_t new_height, uint64_t new_pixels_per_scanline) |
int8_t | video_move_text_cursor (int32_t x, int32_t y) |
Variables | |
uint16_t | cursor_graphics_x = 0 |
cursor postion for column | |
uint16_t | cursor_graphics_y = 0 |
cursor porsition for row | |
video_psf2_font_t | font_data_start |
video_psf2_font_t | font_data_end |
uint32_t * | VIDEO_BASE_ADDRESS = NULL |
uint32_t | VIDEO_PIXELS_PER_SCANLINE = 0 |
video_display_flush_f | VIDEO_DISPLAY_FLUSH = NULL |
video_move_cursor_f | VIDEO_MOVE_CURSOR = NULL |
uint8_t * | FONT_ADDRESS = NULL |
int32_t | FONT_WIDTH = 0 |
int32_t | FONT_HEIGHT = 0 |
int32_t | FONT_BYTES_PER_GLYPH = 0 |
int32_t | FONT_CHARS_PER_LINE = 0 |
int32_t | FONT_LINES_ON_SCREEN = 0 |
uint32_t | FONT_MASK = 0 |
uint32_t | FONT_BYTES_PERLINE = 0 |
boolean_t | GRAPHICS_MODE = 0 |
int32_t | VIDEO_GRAPHICS_WIDTH = 0 |
int32_t | VIDEO_GRAPHICS_HEIGHT = 0 |
uint32_t | VIDEO_GRAPHICS_FOREGROUND = 0xFFFFFF |
uint32_t | VIDEO_GRAPHICS_BACKGROUND = 0x000000 |
lock_t * | video_lock = NULL |
wchar_t * | video_font_unicode_table = NULL |
static const int32_t | serial_ports [] = {0x3F8, 0x2F8, 0x3E8, 0x2E8} |
video operations
prints string to video buffer and moves cursor
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.