AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
uart Struct Reference

A serial port. More...

#include <uart.h>

Data Fields

char * name
struct ringbuf * in
struct ringbuf * out
struct tty * tty
struct vnode * vnode
struct waitq read_queue
struct waitq write_queue
void(*) init (struct uart *u)
ssize_t(*) transmit (struct uart *u, char c)
char(*) receive (struct uart *u)

Detailed Description

A serial port.

Definition at line 17 of file uart.h.

Field Documentation

◆ in

struct ringbuf* uart::in

Definition at line 20 of file uart.h.

Referenced by uart_can_read(), uart_input_flush(), uart_read(), uart_setup(), and uart_slave_write().

◆ init

void(*) uart::init(struct uart *u)

Definition at line 31 of file uart.h.

Referenced by uart_8250_attach(), and uart_setup().

◆ name

char* uart::name

Definition at line 18 of file uart.h.

Referenced by uart_8250_attach(), and uart_register().

◆ out

struct ringbuf* uart::out

Definition at line 21 of file uart.h.

Referenced by uart_master_write(), uart_setup(), and uart_transmit_handler().

◆ read_queue

struct waitq uart::read_queue

Definition at line 28 of file uart.h.

Referenced by uart_file_open(), and uart_receive_handler().

◆ receive

char(*) uart::receive(struct uart *u)

Definition at line 33 of file uart.h.

Referenced by uart_8250_attach(), and uart_receive_handler().

◆ transmit

ssize_t(*) uart::transmit(struct uart *u, char c)

Definition at line 32 of file uart.h.

Referenced by uart_8250_attach(), and uart_transmit_handler().

◆ tty

◆ vnode

struct vnode* uart::vnode

Definition at line 24 of file uart.h.

Referenced by uart_setup().

◆ write_queue

struct waitq uart::write_queue

Definition at line 29 of file uart.h.

Referenced by uart_file_open(), and uart_transmit_handler().


The documentation for this struct was generated from the following file: