|
XenevaOS
|

Go to the source code of this file.
Classes | |
| struct | fdt_header_t |
| struct | memory_region_t |
Macros | |
| #define | RASPBERRY_PI 1 |
| #define | true 1 |
| #define | false 0 |
| #define | bool char |
| #define | NULL 0 |
| #define | MMIO_BASE 0x3F000000 |
| #define | UART_BASE (0x3F000000 + 0x201000) |
| #define | UART0_DR ((volatile uint32_t*)(UART_BASE + 0x00)) |
| #define | UART0_FR ((volatile uint32_t*)(UART_BASE + 0x18)) |
| #define | UART0_IBRD ((volatile uint32_t*)(UART_BASE + 0x24)) |
| #define | UART0_FBRD ((volatile uint32_t*)(UART_BASE + 0x28)) |
| #define | UART0_LCRH ((volatile uint32_t*)(UART_BASE + 0x2C)) |
| #define | UART0_CR ((volatile uint32_t*)(UART_BASE + 0x30)) |
| #define | UART0_IMSC ((volatile uint32_t*)(UART_BASE + 0x38)) |
| #define | UART0_ICR ((volatile uint32_t*)(UART_BASE + 0x44)) |
| #define | UARTFR (UART_BASE + 0x18) |
| #define | UARTDR (UART_BASE + 0x00) |
| #define | MAX_MEMORY_REGN 8 |
| #define | RAW_OFFSET(type, x, offset) (type)((size_t)x + offset) |
Typedefs | |
| typedef unsigned long long | uint64_t |
| typedef unsigned long long | uintptr_t |
| typedef unsigned char | uint8_t |
| typedef unsigned short | uint16_t |
| typedef unsigned int | uint32_t |
| typedef uint64_t | size_t |
Functions | |
| void | LBUartPutc (char c) |
| void | LBUartPutString (const char *s) |
| void | LBUartPrintHex (uint64_t val) |
| void | LBUartPrintInt (uint64_t value) |
| void | LBExceptionSetup () |
| #define bool char |
| #define false 0 |
| #define MAX_MEMORY_REGN 8 |
| #define MMIO_BASE 0x3F000000 |
| #define NULL 0 |
| #define RASPBERRY_PI 1 |
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 RAW_OFFSET | ( | type, | |
| x, | |||
| offset | |||
| ) | (type)((size_t)x + offset) |
| #define true 1 |
| #define UART_BASE (0x3F000000 + 0x201000) |
| #define UARTDR (UART_BASE + 0x00) |
| #define UARTFR (UART_BASE + 0x18) |
| typedef unsigned short uint16_t |
| typedef unsigned int uint32_t |
| typedef unsigned long long uint64_t |
| typedef unsigned char uint8_t |
| typedef unsigned long long uintptr_t |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |