|
XenevaOS
|
#include <stdint.h>#include <aucon.h>#include <_null.h>#include "font.h"#include <Mm\vmmngr.h>#include <Mm\pmmngr.h>#include <Mm\kmalloc.h>#include <string.h>#include <va_list.h>#include <stdio.h>#include <Hal/AA64/sched.h>#include <process.h>#include <Fs/vfs.h>#include <Drivers/uart.h>#include <Hal/AA64/aa64cpu.h>#include <Hal/AA64/aa64lowlevel.h>#include <Ipc/postbox.h>
Macros | |
| #define | CONSOLE_BACKGROUND 0x00000000 |
| #define | CONSOLE_FOREGROUND 0xFFFFFFFF |
| #define | RGB(r, g, b) ((r & 0xFF) | ((g << 8)&0xFF00) | ((b << 16)&0xFF0000)) |
| #define | RED(col) (col & 0xFF) |
| #define | GREEN(col) ((col>>8) & 0xFF) |
| #define | BLUE(col) ((col>>16) & 0xFF) |
Functions | |
| void | AuUartPutString (const char *s) |
| LBUartPutString – print a string to UART. | |
| void | AuTestPrint () |
| void | AuConsoleInitialize (PKERNEL_BOOT_INFO info, bool early) |
| AuConsoleInitialize – initialize kernel direct screen console. | |
| int | AuConsoleIoControl (AuVFSNode *file, int code, void *arg) |
| AuConsoleIoControl – iocontrol implementation for au console, called from user space. | |
| void | AuConsolePostInitialise (PKERNEL_BOOT_INFO info) |
| AuConsolePostInitialise – initialise the post console process. | |
| int_fast8_t | high_set_bit (size_t sz) |
| int_fast8_t | low_set_bit (size_t sz) |
| void | AuPutPixel (size_t x, size_t y, uint32_t col) |
| AuPutPixel – puts a pixel on the screen. | |
| void | AuPutC (char c) |
| Put a character to console output. | |
| void | AuPutS (char *str) |
| Prints string to console output. | |
| void | AuTextOut (const char *format,...) |
| AuTextOut – standard text printing function for entire kernel. | |
| void | AuConsoleEarlyEnable (bool value) |
| AuConsoleEarlyEnable – enables or disable early mode text output. | |
| uint32_t | AuConsoleGetScreenWidth () |
| AuConsoleGetScreenWidth – return the screen width. | |
| uint32_t | AuConsoleGetScreenHeight () |
| AuConsoleGetScreenHeight – return the screen height. | |
| void | AuConsoleFlushFramebuffer () |
Variables | |
| uint8_t * | font_data |
| uint32_t | console_x |
| uint32_t | console_y |
| uint32_t * | __framebuffer |
| AuConsole * | aucon |
| uint32_t | redmask |
| uint32_t | bluemask |
| uint32_t | greenmask |
| uint32_t | resvmask |
| size_t | h_res |
| size_t | v_res |
| BOOL | early_ |
| void(* | _print_func )(const char *text,...) |
BSD 2-Clause License
Copyright (c) 2022-2025, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define BLUE | ( | col | ) | ((col>>16) & 0xFF) |
| #define CONSOLE_BACKGROUND 0x00000000 |
| #define CONSOLE_FOREGROUND 0xFFFFFFFF |
| #define GREEN | ( | col | ) | ((col>>8) & 0xFF) |
| #define RED | ( | col | ) | (col & 0xFF) |
| #define RGB | ( | r, | |
| g, | |||
| b | |||
| ) | ((r & 0xFF) | ((g << 8)&0xFF00) | ((b << 16)&0xFF0000)) |
| void AuConsoleEarlyEnable | ( | bool | value | ) |
AuConsoleEarlyEnable – enables or disable early mode text output.
| value | – boolean value |
| void AuConsoleFlushFramebuffer | ( | ) |
| uint32_t AuConsoleGetScreenHeight | ( | ) |
AuConsoleGetScreenHeight – return the screen height.
| uint32_t AuConsoleGetScreenWidth | ( | ) |
AuConsoleGetScreenWidth – return the screen width.
| void AuConsoleInitialize | ( | PKERNEL_BOOT_INFO | info, |
| bool | early | ||
| ) |
AuConsoleInitialize – initialize kernel direct screen console.
| info | – Pointer to kernel boot info structure |
| int AuConsoleIoControl | ( | AuVFSNode * | file, |
| int | code, | ||
| void * | arg | ||
| ) |
AuConsoleIoControl – iocontrol implementation for au console, called from user space.
| file | – Pointer to console file |
| code | – control code number |
| arg | – Pointer to any user data |
| void AuConsolePostInitialise | ( | PKERNEL_BOOT_INFO | info | ) |
AuConsolePostInitialise – initialise the post console process.
| info | – pointer to kernel boot info structure |
| void AuPutC | ( | char | c | ) |
Put a character to console output.
| c | – character to print |
AuPutPixel – puts a pixel on the screen.
| x | – x location of the screen |
| y | – y location of the screen |
| col | – color of the pixel |
| void AuPutS | ( | char * | str | ) |
Prints string to console output.
| str | – string to print |
| void AuTestPrint | ( | ) |
| void AuTextOut | ( | const char * | format, |
| ... | |||
| ) |
AuTextOut – standard text printing function for entire kernel.
| text | – text to output |
|
extern |
LBUartPutString – print a string to UART.
| s | – String to print |
| int_fast8_t high_set_bit | ( | size_t | sz | ) |
| int_fast8_t low_set_bit | ( | size_t | sz | ) |
| uint32_t* __framebuffer |
| void(* _print_func) (const char *text,...) | ( | const char * | text, |
| ... | |||
| ) |
| AuConsole* aucon |
| uint32_t bluemask |
| uint32_t console_x |
| uint32_t console_y |
| BOOL early_ |
| uint8_t* font_data |
| uint32_t greenmask |
| size_t h_res |
| uint32_t redmask |
| uint32_t resvmask |
| size_t v_res |