Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/drivers/tty/io_sci.c File Reference

#include <stddef.h>
#include <cubeos.h>
#include <sys_var.h>
#include <iobuf.h>
#include <kerror.h>
#include <ttyio.h>
#include <mc68332.h>
#include <ivtab.h>
#include <qsm.h>
#include <softreset.h>

Include dependency graph for io_sci.c:

Go to the source code of this file.

Functions

void QSM_sci_int (void)
char QSM_sci_rxchar ()
void _QSM_sci_dis_tx ()
void _QSM_sci_en_tx ()
void _QSM_sci_dis_rx ()
void _QSM_sci_en_rx ()
void _QSM_sci_txbyte (char byte)
int _QSM_sci_sethandshake (char handshake)
int _QSM_sci_setbps (int bpsrate)
void _QSM_sci_setrts (int how)
void QSM_sciinit (struct TTY_tty_dev *TTY_tty)

Variables

TTY_tty_dev_QSM_sci_tty
int _QSM_sci_int_count


Function Documentation

void _QSM_sci_dis_rx  
 

Definition at line 139 of file io_sci.c.

References readshort, SCI_SCCR1, and writeshort.

Referenced by QSM_sciinit.

void _QSM_sci_dis_tx  
 

Definition at line 129 of file io_sci.c.

References readshort, SCI_SCCR1, and writeshort.

Referenced by QSM_sciinit.

void _QSM_sci_en_rx  
 

Definition at line 144 of file io_sci.c.

References readshort, SCI_SCCR1, and writeshort.

Referenced by QSM_sciinit.

void _QSM_sci_en_tx  
 

Definition at line 134 of file io_sci.c.

References readshort, SCI_SCCR1, and writeshort.

Referenced by QSM_sciinit.

int _QSM_sci_setbps int    bpsrate
 

Definition at line 167 of file io_sci.c.

References SCI_SCCR0, and writeshort.

Referenced by QSM_sciinit.

int _QSM_sci_sethandshake char    handshake
 

Definition at line 154 of file io_sci.c.

References TTY_tty_dev::hsmode, TTY_HS_NONE, TTY_HS_RTSCTS, and TTY_HS_XONXOFF.

Referenced by QSM_sciinit.

void _QSM_sci_setrts int    how
 

Definition at line 237 of file io_sci.c.

Referenced by QSM_sciinit.

void _QSM_sci_txbyte char    byte
 

Definition at line 148 of file io_sci.c.

References readshort, SCI_SCDR, SCI_SCSR, and writeshort.

Referenced by QSM_sciinit.

void QSM_sci_int void   
 

Definition at line 31 of file io_sci.c.

References _QSM_sci_int_count, TTY_tty_dev::break_process, iobuf::buflen, TTY_tty_dev::char_process, iobuf::cnt, iobuf::data, iobuf::head, TTY_tty_dev::inq, KERN_softreset, TTY_tty_dev::outq, readshort, RESET_CHAR, SCI_SCCR1, SCI_SCDR, SCI_SCSR, SYS_ERR_SCIBUF_OVF, iobuf::tail, and writeshort.

char QSM_sci_rxchar  
 

Definition at line 89 of file io_sci.c.

References readshort, SCI_SCDR, and SCI_SCSR.

void QSM_sciinit struct TTY_tty_dev   TTY_tty
 

Definition at line 282 of file io_sci.c.

References _QSM_sci_dis_rx, _QSM_sci_dis_tx, _QSM_sci_en_rx, _QSM_sci_en_tx, _QSM_sci_int_count, _QSM_sci_setbps, _QSM_sci_sethandshake, _QSM_sci_setrts, _QSM_sci_txbyte, TTY_tty_dev::break_process, BUFLEN, TTY_tty_dev::char_process, TTY_tty_dev::dis_rx_irq, TTY_tty_dev::dis_tx_irq, TTY_tty_dev::en_rx_irq, TTY_tty_dev::en_tx_irq, TTY_tty_dev::hsmode, TTY_tty_dev::inq, iobuf_init, TTY_tty_dev::mode, TTY_tty_dev::outq, QSM_init, SCI_SCCR0, SCI_SCCR1, TTY_tty_dev::setbps, TTY_tty_dev::sethandshake, TTY_tty_dev::setrts, TTY_tty_dev::state, TTY_HS_NONE, TTY_tty_dev::txchar, and writeshort.


Variable Documentation

int _QSM_sci_int_count
 

Definition at line 29 of file io_sci.c.

Referenced by QSM_sci_int, and QSM_sciinit.

struct TTY_tty_dev* _QSM_sci_tty
 

Definition at line 27 of file io_sci.c.


Generated on Thu Feb 20 15:38:50 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002