#include <uart.h>
#include <kernel.h>
#include <platform.h>
#include <interrupt.h>
#include <device.h>
#include <mips.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
void | uartIntr (void) |
devcall | uartInit (device *pdev) |
Variables | |
struct uart | uarttab [NUART] |
long | cpuid |
Definition in file uartInit.c.
devcall uartInit | ( | device * | pdev | ) |
Initialize UART control and status registers and buffers.
pdev | pointer to a uart device |
Definition at line 25 of file uartInit.c.
References bzero(), dentry::controlblk, dentry::csr, enable_irq(), uart_csreg::ier, dentry::inintr, dentry::inmask, interruptVector, IRQ_UART, uart_csreg::lcr, uart_csreg::mcr, dentry::minor, newsem(), OK, UART_FCR_EFIFO, UART_FCR_RRESET, UART_FCR_TRESET, UART_FCR_TRIG2, UART_IER_ELSI, UART_IER_ERBFI, UART_IER_ETBEI, UART_LCR_8N1, UART_LCR_DLAB, UART_MCR_OUT2, UART_OBLEN, and uarttab.
void uartIntr | ( | void | ) |
Decode hardware interrupt request from UART device.
Definition at line 17 of file uartIntr.c.
References uart_csreg::buffer, uart::cin, uart::cout, uart::csr, uart::icount, uart_csreg::iir, uart::iirq, uart::in, uart::isema, uart::istart, uart::lserr, uart_csreg::lsr, NUART, NULL, uart::ocount, uart::oidle, uart::oirq, uart::osema, uart::ostart, uart::out, uart::ovrrn, signaln(), UART_FIFO_LEN, UART_IBLEN, UART_IIR_IDMASK, UART_IIR_IRQ, UART_IIR_MSC, UART_IIR_RDA, UART_IIR_RLSI, UART_IIR_RTO, UART_IIR_THRE, UART_LSR_DR, UART_OBLEN, and uarttab.
long cpuid |
Definition at line 17 of file uartInit.c.
Referenced by kputc(), uartInit(), uartIntr(), and uartStat().