|
IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
|
VGA memory low-level operations. More...
#include <algorithm>#include <bit>#include <span>#include <string_view>#include <arch/io.hpp>#include <drivers/vga/vmem.hpp>#include <klib/kString.hpp>#include <platform/platform.hpp>
Go to the source code of this file.
Namespaces | |
| namespace | igros |
| IgrOS kernel: common types and literals. | |
| namespace | igros::arch |
| Architecture-independent interface: drivers and aliases of current architecture types. | |
Functions | |
| static auto | igros::arch::vmemScreen () noexcept -> std::span< vmemSymbol, VIDEO_MEM_SIZE > |
| VGA text buffer (low memory is mapped at kernel virtual offset). | |
| static auto | igros::arch::vmemBlank () noexcept -> vmemSymbol |
| Blank symbol (space with current background). | |
| void | igros::arch::vmemCursorSet (const igros_byte_t x, const igros_byte_t y) noexcept |
| Set VGA memory cursor position. | |
| void | igros::arch::vmemCursorSet (const vmemCursor cursor) noexcept |
| Set VGA memory cursor position. | |
| auto | igros::arch::vmemCursorGet () noexcept -> vmemCursor |
| Get VGA memory cursor position. | |
| void | igros::arch::vmemCursorDisable () noexcept |
| Disable VGA memory cursor. | |
| void | igros::arch::vmemCursorEnable () noexcept |
| Enable VGA memory cursor. | |
| void | igros::arch::vmemSetColor (const igros_byte_t background, const igros_byte_t foreground) noexcept |
| Set VGA memory color. | |
| void | igros::arch::vmemWrite (const char symbol) noexcept |
| Write symbol to VGA memory. | |
| void | igros::arch::vmemWrite (const char *const message) noexcept |
| Write string to VGA memory. | |
| void | igros::arch::vmemWrite (const std::string_view message) noexcept |
| Write fixed-width string to VGA memory. | |
| void | igros::arch::vmemClear () noexcept |
| Clear VGA console. | |
| auto | igros::arch::vmemInit () noexcept -> bool |
| Init VGA console. | |
Variables | |
| constexpr auto | igros::arch::VGA_CURSOR_CONTROL {static_cast<port_t>(0x03D4_u16)} |
| CRT controller register select port. | |
| constexpr auto | igros::arch::VGA_CURSOR_DATA {static_cast<port_t>(VGA_CURSOR_CONTROL + 1_u16)} |
| CRT controller data port. | |
| constexpr auto | igros::arch::VIDEO_MEM_PHYS {0x000B8000_usize} |
| VGA text buffer physical address. | |
| static constinit auto | igros::arch::vmemBkgColor {vmemColor::Green} |
| VGA memory background symbol. | |
| static constinit vmemCursor | igros::arch::cursorPos {} |
| Current cursor coordinates. | |
VGA memory low-level operations.
Definition in file vmem.cpp.