50 if (!console->
ops->write)
54 if (!console->
ops->set_color)
57 if (!console->
ops->get_color)
61 if (!console->
ops->clear)
void console_putc(console_t *con, u8 c)
should_inline void get_ansi_color(char *buf, standard_color_t fg, standard_color_t bg)
MOSAPI void linked_list_init(list_node_t *head_node)
Initialise a circular double linked list.
#define list_node(element)
Get the ‘list_node’ of a list element. This is exactly the reverse of ‘list_entry’ above.
#define container_of(ptr, type, member)
static size_t strlen(const char *s)
int serial_device_read(serial_device_t *device, char *data, size_t length)
bool serial_dev_get_data_ready(serial_device_t *device)
bool serial_device_setup(serial_device_t *device)
int serial_device_write(serial_device_t *device, const char *data, size_t length)
static bool serial_console_clear(console_t *console)
static size_t serial_console_write(console_t *console, const char *str, size_t len)
static bool serial_console_get_color(console_t *console, standard_color_t *fg, standard_color_t *bg)
static bool serial_console_set_color(console_t *console, standard_color_t fg, standard_color_t bg)
bool serial_console_setup(console_t *console)
bool serial_console_irq_handler(u32 irq, void *data)