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
5
#include "
mos/device/console.h
"
6
#include "
mos/device/serial.h
"
7
8
#include <
ansi_colors.h
>
9
#include <stddef.h>
10
11
typedef
struct
12
{
13
console_t
con
;
14
serial_device_t
device
;
15
standard_color_t
fg,
bg
;
16
}
serial_console_t
;
17
18
MOS_STATIC_ASSERT
(
offsetof
(
serial_console_t
, con) == 0,
"console must be the first field in serial_console_t"
);
19
20
bool
serial_console_setup
(
console_t
*console);
21
22
bool
serial_console_irq_handler
(
u32
irq,
void
*data);
ansi_colors.h
console.h
standard_color_t
standard_color_t
Definition
ansi_colors.h:18
MOS_STATIC_ASSERT
#define MOS_STATIC_ASSERT
Definition
mos_global.h:14
offsetof
#define offsetof(st, m)
Definition
pb_syshdr.h:43
serial.h
serial_console_setup
bool serial_console_setup(console_t *console)
Definition
serial_console.c:44
serial_console_irq_handler
bool serial_console_irq_handler(u32 irq, void *data)
Definition
serial_console.c:67
console_t
Definition
console.h:27
serial_console_t
Definition
serial_console.h:12
serial_console_t::bg
standard_color_t bg
Definition
serial_console.h:15
serial_console_t::device
serial_device_t device
Definition
serial_console.h:14
serial_console_t::con
console_t con
Definition
serial_console.h:13
serial_device_t
Definition
serial.h:81
u32
unsigned int u32
Definition
types.h:21
kernel
include
private
mos
device
serial_console.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0