Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/uart/uartRead.c File Reference

#include <kernel.h>
#include <uart.h>
#include <device.h>

Include dependency graph for uartRead.c:

Go to the source code of this file.

Functions

devcall uartRead (device *pdev, unsigned char *buf, int len)


Detailed Description

uartRead

Id
uartRead.c 241 2007-07-13 22:24:20Z agember

Definition in file uartRead.c.


Function Documentation

devcall uartRead ( device pdev,
unsigned char *  buf,
int  len 
)

Read into a buffer from the UART.

Parameters:
pdev UART device table entry
buf buffer to read bytes into
len size of the buffer
Returns:
count of bytes read

Definition at line 20 of file uartRead.c.

References ASSERT, dentry::controlblk, uart::dev, disable(), uart::icount, uart::iflags, uart::in, uart::isema, uart::istart, NULL, restore(), scount(), SYSERR, UART_IBLEN, UART_IFLAG_ECHO, UART_IFLAG_NOBLOCK, uartPutChar(), and wait().

Referenced by uartGetChar().


Generated on Thu Oct 9 22:35:27 2008 for xinu by  doxygen 1.5.5