NAME
uartp8250 – portable 8250–style uarts |
SYNOPSIS
#include "../port/uartp8250.h" typedef struct Ctlr Ctlr; struct Ctlr {
PhysUart p8250physuart;
void i8250interrupt(Ureg*, void*); |
DESCRIPTION
P8250 provides a portable interface for 8250–style uarts. All necessary
functions are provided except for get, set, and itr. These functions
get or set an 8250 register or enable or disable the interrupt,
respectively. Since the PhysUart structure is required for device
discovery, a dummy version needs to be
provided
|
SOURCE
/sys/src/9/port/uartp8250.h /sys/src/9/port/uartp8250.c |
SEE ALSO
uart(3). |
BUGS
The PhysUart is uncomfortable to use for device discovery. |