MOS Source Code
Loading...
Searching...
No Matches
serial_console.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
6#include "mos/device/serial.h"
7
8#include <ansi_colors.h>
9#include <stddef.h>
10
17
18MOS_STATIC_ASSERT(offsetof(serial_console_t, con) == 0, "console must be the first field in serial_console_t");
19
20bool serial_console_setup(console_t *console);
21
22bool serial_console_irq_handler(u32 irq, void *data);
standard_color_t
Definition ansi_colors.h:18
#define MOS_STATIC_ASSERT
Definition mos_global.h:14
#define offsetof(st, m)
Definition pb_syshdr.h:43
bool serial_console_setup(console_t *console)
bool serial_console_irq_handler(u32 irq, void *data)
standard_color_t bg
serial_device_t device
unsigned int u32
Definition types.h:21