/*********************************************************************** 
* 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_tm.h
 * definitions for the TM 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_L	0x0800		/* last in frame */

#define	TM_T_ERROR	0x000f
#define	T_UN	0x0002		/* error: underrun */

/*
 * receive BD's
 */
#define	R_E	0x8000		/* buffer empty */
#define	R_W	0x2000		/* wrap bit */
#define	R_I	0x1000		/* interrupt on reception */

#define	R_ERROR	0x00ff
#define	R_OV	0x0002		/* receive overrun */


/*
 * SMC tm interrupts
 */
#define	TM_TXE	0x0010	/* transmit error */
#define	TM_BSY	0x0004	/* busy condition */
#define	TM_TBD	0x0002	/* transmit buffer */
#define	TM_RBD	0x0001	/* receive buffer */



/*
 * SMC Transparent Mode Register (SMCMR)
 */
#define	SMCMR_CLEN	0x7000	/* Character Len */
#define	SMCMR_TEN	0x0002	/* Tx Enable */
#define	SMCMR_REN	0x0001	/* Rx Enable */
