/*********************************************************************** 
* NOTICE
* All files contained on this disk are subject to the licensing conditions
* issued by MOTOROLA Inc.
*
* All files are copyright 1993 by MOTOROLA Inc. 
************************************************************************/

/*
 * smc_uart.h
 * definitions for the SMC UART controllers
 */

/*
 * transmit BD's
 */
#define	T_R	0x8000		/* ready bit */
#define	T_W	0x2000		/* wrap bit */
#define	T_I	0x1000		/* interrupt on completion */
#define	T_CM	0x0200		/* continuous mode */
#define	T_P	0x0100		/* send preamble before data */

#define	SMC_UART_T_ERROR	0x000f

/*
 * receive BD's
 */
#define	R_E	0x8000		/* buffer empty */
#define	R_W	0x2000		/* wrap bit */
#define	R_I	0x1000		/* interrupt on reception */
#define	R_CM	0x0200		/* continuous mode */
#define	R_ID	0x0100		/* buffer closed due to idles */

#define	R_ERROR	0x00ff
#define	R_BRK	0x0020		/* break character received */
#define	R_FR	0x0010		/* framing error */
#define	R_PR	0x0008		/* parity error */
#define	R_OV	0x0002		/* receive overrun */
#define	R_CD	0x0001		/* carrier detect lost */

/*
 * SMC uart interrupts
 */
#define	SMC_UART_BRK	0x0010	/* break start */
#define	SMC_UART_BUSY	0x0004	/* busy */
#define	SMC_UART_TX	0x0002	/* transmit buffer */
#define	SMC_UART_RX	0x0001	/* receive buffer */
