/****************************************************************************
**
** Name: trclib.h
**
** Description:
**   Header file for services of MTAT
**
** Status: PRELIMINARY
**
** $Log:   S:/tbird/arcppc/fw/860/trclib.h_v  $
** 
**    Rev 1.0   18 Jul 1997 15:12:58   cjchen
** Initial revision.
** 
**    Rev 1.0   11 Feb 1997 16:17:04   kevin
** Initial revision.
** 
**    Rev 1.0   03 Jun 1996 14:19:22   gene
** Initial revision.
**
** Copyright (C) 1992 Microtek International. All rights reserved.
**
****************************************************************************/

#define _TRCLIB_
#define MAIN_BIN
//#define DIAG_BIN

                       /****************************
                        *                          *
                        *      INCLUDE FILES       *
                        *                          *
                        ****************************/

#ifdef MAIN_BIN
   #ifndef _EMU_BASE_TYPES_
   #include "emutypes.h"
   #endif
#endif

#ifdef DIAG_BIN
   #ifndef _DGT_BASE_TYPES_
   #include "dgttypes.h"
   #endif
#endif

                       /****************************
                        *                          *
                        *        DEFINITIONS       *
                        *                          *
                        ****************************/

#define SEQ_RAM_SIZE 0x2000

#define TMAN_SEG 0xB000
#define SEQ_RAM0_OFFSET 0x2000
#define SEQ_RAM1_OFFSET 0xA000

#define pNXCONFIG 0xF128

#define pEPCONTROL 0xF140
#define bitISOEP   0x40  // New machine, Allen 9/14/94

#define pTM8255B  0xF161
#define bitRSTCNT  0x01
#define bitSELTR   0x02
#define bitENPROGX 0x10

#define pBANKWR     0xF344
#define pSEQENBWR   0xF346
#define bitSEQENB   0x01
#define bitACTDIS   0x02

                       /****************************
                        *                          *
                        *         PROTOTYPES       *
                        *                          *
                        ****************************/

VOID CheckExist(BOOLEAN *traceExist, U16 *xilinxExist);
VOID Delay(U16 more);
RETCODE TestAddrOfVRAMs(VOID);
RETCODE TestSeqRAMs(VOID);
RETCODE fmemcmp(U8 _far *s, U8 _far *ct, U16 n);
VOID fmemcpy(U8 _far *s, U8 _far *ct, U16 n);

/********************************* EOF *************************************/
