Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/altera/jtag_uart/altera_jtag_uart_cons.c
Show All 12 Lines | |||||
#include <sys/tty.h> | #include <sys/tty.h> | ||||
#include <ddb/ddb.h> | #include <ddb/ddb.h> | ||||
#include <dev/altera/jtag_uart/altera_jtag_uart.h> | #include <dev/altera/jtag_uart/altera_jtag_uart.h> | ||||
devclass_t altera_jtag_uart_devclass; | devclass_t altera_jtag_uart_devclass; | ||||
static SYSCTL_NODE(_hw, OID_AUTO, altera_jtag_uart, CTLFLAG_RW, 0, | static SYSCTL_NODE(_hw, OID_AUTO, altera_jtag_uart, | ||||
CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | |||||
"Altera JTAG UART configuration knobs"); | "Altera JTAG UART configuration knobs"); | ||||
/* | /* | ||||
* One-byte buffer as we can't check whether the UART is readable without | * One-byte buffer as we can't check whether the UART is readable without | ||||
* actually reading from it, synchronised by a spinlock; this lock also | * actually reading from it, synchronised by a spinlock; this lock also | ||||
* synchronises access to the I/O ports for non-atomic sequences. These | * synchronises access to the I/O ports for non-atomic sequences. These | ||||
* symbols are public so that the TTY layer can use them when working on an | * symbols are public so that the TTY layer can use them when working on an | ||||
* instance of the UART that is also a low-level console. | * instance of the UART that is also a low-level console. | ||||
Show All 12 Lines |