; **  Name:  trace.def
; **
; **  Description:
; **     Contains the information about the module definition of the
; **     TRACE.DLL
; **
; **  Status:  PRELIMINARY
; **
; **  $Log:   S:/tbird/mt2_68k/trace/trace.dev  $
; ** 
; **    Rev 1.6   03 Apr 1998 18:06:44   Gene
; ** added MapGetCSBaseAddr
; ** 
; **    Rev 1.5   20 Feb 1998 16:20:14   Eric
; ** 
; **    Rev 1.4   19 Aug 1997 09:32:32   gene
; ** 
; **    Rev 1.3   22 Apr 1997 13:42:50   gene
; ** 
; **    Rev 1.2   18 Mar 1997 09:06:08   gene
; ** 
; **    Rev 1.1   04 Mar 1997 13:04:34   gene
; ** 
; **    Rev 1.0   13 Feb 1997 09:07:24   gene
; ** Initial revision.
; ** 
; **    Rev 1.2   19 Jan 1996 09:44:28   kevin
; ** added TrcDlgQTrace and imported sds2abisetqualtrace and sds2abidisablequal
; ** 
; **    Rev 1.1   22 Dec 1995 09:36:36   kevin
; ** added TrcGetCounters
; ** 
; **    Rev 1.0   07 Sep 1995 11:22:26   gene
; ** Initial revision.
; ** 
; **    Rev 1.39   08 Nov 1993 20:55:16   mindy
; ** add max trace buffer support
; ** 
; **    Rev 1.38   26 Jul 1993 12:27:44   paul
; ** Add TskCheckAbort for esc key support
; ** 
; **    Rev 1.37   22 Jul 1993 10:39:24   ernie
; ** Added support for timestamp.
; ** 
; **    Rev 1.36   28 Jun 1993 09:28:30   ron
; ** added import for ErrMessageBox
; ** 
; **    Rev 1.35   07 Apr 1993 17:11:06   mindy
; ** routine names changed/ calling different routines
; ** 
; **    Rev 1.34   16 Dec 1992 16:10:52   john
; ** added entry to get processor
; ** 
; **    Rev 1.33   16 Dec 1992 15:34:20   mindy
; ** moved trace to fw
; ** 
; **    Rev 1.32   16 Sep 1992 19:24:12   mindy
; ** use sdn calls instead of sd
; ** 
; **    Rev 1.31   16 Sep 1992 10:09:00   mindy
; ** a) added callback routines for when tracing goes on and off.
; ** b) since evttmplt stuff no longer user need DisplayAddrSpace
; ** 
; **    Rev 1.30   27 Aug 1992 15:32:48   mindy
; ** need to destroy event id
; ** 
; **    Rev 1.29   27 Aug 1992 06:49:30   mindy
; ** added import readmember without input check
; ** 
; **    Rev 1.28   22 Aug 1992 11:15:36   mindy
; ** added trace clear callback
; ** 
; **    Rev 1.27   21 Aug 1992 07:23:38   mindy
; ** added callback routines to export list
; ** 
; **    Rev 1.26   19 Aug 1992 08:02:22   mindy
; ** a) removed force status routines
; ** b) added needed imports
; ** 
; **    Rev 1.25   11 Aug 1992 10:02:02   mindy
; ** added ReadNumber import for reading trace configuration
; ** 
; **    Rev 1.24   17 Jul 1992 14:11:32   mindy
; ** added VISIBLE_TYPE routine
; ** 
; **    Rev 1.23   25 Jun 1992 12:42:46   mindy
; ** removed swat dependencies
; ** 
; **    Rev 1.22   22 Jun 1992 07:59:26   mindy
; ** added get sub buffer size routine
; ** 
; **    Rev 1.21   15 Jun 1992 10:05:36   mindy
; ** setting tracing now calls TrigTriggerProgram
; ** 
; **    Rev 1.20   15 May 1992 06:12:34   mindy
; ** misspelled errtext as errortext
; ** 
; **    Rev 1.19   14 May 1992 11:36:38   mindy
; ** added ErrInitDLL
; ** 
; **    Rev 1.18   01 May 1992 11:30:58   mindy
; ** added needed event routines needed to support trace search for EMON active
; ** frame.
; ** 
; **    Rev 1.17   28 Apr 1992 08:16:14   mindy
; ** added TrcGetCliId
; ** 
; **    Rev 1.16   23 Apr 1992 11:22:42   mindy
; ** now need TMalloc/TFree and a local parse routine
; ** 
; **    Rev 1.15   03 Apr 1992 12:12:54   mindy
; ** added new exports and imports.
; ** 
; **    Rev 1.14   18 Feb 1992 14:16:22   mindy
; ** changed traceread routines also added to import list
; ** 
; **    Rev 1.13   27 Jan 1992 11:32:20   mindy
; ** removed dummy dq server routines
; ** 
; **    Rev 1.12   22 Jan 1992 13:28:14   doug
; ** Added LibMain to exports, took stacksize statement out.
; ** 
; **    Rev 1.11   07 Jan 1992 10:10:00   mindy
; ** added a temp. go and halt for debugging.
; ** 
; **    Rev 1.10   11 Dec 1991 14:45:44   mindy
; ** added local.h routines to export list
; ** 
; **    Rev 1.9   11 Dec 1991 12:50:00   mindy
; ** only trace server in trace.dll now
; ** 
; **    Rev 1.8   06 Dec 1991 10:35:50   mindy
; ** added swat stuff
; ** 
; **    Rev 1.7   02 Dec 1991 11:04:32   mindy
; ** added tracing set routine.  Also Export swat routines now.
; ** 
; **    Rev 1.6   20 Nov 1991 11:15:18   mindy
; ** added trace search cli routines and re-numbered.
; ** 
; **    Rev 1.5   15 Nov 1991 15:00:52   mindy
; ** added the cli commands
; ** 
; **    Rev 1.4   07 Nov 1991 14:28:48   mindy
; ** added get header and set frame display mode routines
; ** 
; **    Rev 1.3   01 Nov 1991 09:17:54   mindy
; ** added all the new routines
; ** 
; **    Rev 1.2   06 Sep 1991 09:20:20   ernie
; ** added set event function and more import functions
; ** 
; **    Rev 1.1   28 Aug 1991 07:17:16   ernie
; ** Added external functions for trigger server
; ** 
; **    Rev 1.0   01 Aug 1991 16:33:52   jim
; ** Initial revision.
; **   
; **  $Header:   S:/tbird/mt2_68k/trace/trace.dev   1.6   03 Apr 1998 18:06:44   Gene  $
; **
; **
; **  Copyright (C) 1991 Microtek International.  All rights reserved.
; **
; **************************************************************************/

LIBRARY      TRACE

DESCRIPTION  'MICEPack TRACE Dynamic Link Library'
EXETYPE      WINDOWS
STUB 'WINSTUB.EXE'
CODE         PRELOAD MOVEABLE DISCARDABLE
DATA         PRELOAD MOVEABLE SINGLE
HEAPSIZE     1024

EXPORTS      WEP                          @1
             TrcTraceOpen                 @2
             TrcTraceClose                @3
             TrcTraceReadRaw              @4
             TrcForwardRead               @5
             TrcBackwardRead              @6
             TrcTraceTemplateGet          @7 
             TrcTraceTemplateSet          @8
             TrcTraceBufferInfoGet        @9 
             TrcFrameNumberAreaSizeGet    @10
             TrcSubBufferSizeGet          @11
             TrcReadFrameGet              @12
             TrcReadFrameSet              @13
             TrcReadBufferGet             @14
             TrcReadBufferSet             @15
             TrcTracingGet                @16
             TrcTracingSet                @17
             TrcMaxValidTraceBuffers      @18
             TrcTraceCycleGet             @19
             TrcTraceCycleSet             @20
             TrcTraceBufferClear          @21
             TrcFrameDisplayModeSet       @22
             TrcFrameDisplayModeGet       @23
             TrcGetHeader                 @24
             TrcNumFramesGet              @25
             TrcSearchBufferGet           @26
             TrcSearchBufferSet           @27
             TrcSearchEventGet            @28
             TrcSearchEventSet            @29
             TrcSearchFrameGet            @30
             TrcSearchFrameSet            @31
             TrcTraceSearch               @32
             TrcUpdateTrace               @33
             TrcCollectingBufferGet       @34
             TrcGetFrameInstAddress       @35
             TrcCliForwardRead            @36
             TrcCliBackwardRead           @37
             TrcCliReadRaw                @38  
             TrcCliBufferInfo             @39
             TrcCliFrameMode              @40
             TrcCliTraceCycle             @41
             TrcCliReadBuffer             @42
             TrcCliSearchBuffer           @43 
             TrcCliGetCollectingBuffer    @44
             TrcCliNumFrames              @45
             TrcCliReadFrame              @46
             TrcCliSearchFrame            @47
             TrcCliSearchEvent            @48
             TrcCliTraceSearch            @49
             TrcCliDebugEmon              @50
             TrcCliTracing                @51
             TrcCliTraceTemplate          @52
             TrcCliGetHeader              @53
             TrcCliOpen                   @54
             TrcCliClose                  @55
             TrcCliClearTrace             @56
             TrcCliGetFrameInstAddress    @57
             TrcCliUpdateTrace            @58
             TrcCliFrameNumberAreaSizeGet @59
             TrcGetCliId                  @60
             SubBufferUpdate              @61
             TracingStateChange           @62
             TraceClearCallback           @63
             TrcTimestampGet              @64
             TrcTimestampSet              @65
             TrcTimestampModeGet          @66
             TrcTimestampModeSet          @67
             TrcTimestampZeroFrameGet     @68
             TrcTimestampZeroFrameSet     @69
             TrcSystemCrystalGet          @70
             TrcSystemCrystalSet          @71
             TrcGetTimestampText          @72
             TrcCliGetfrequency           @73
             TrcCliGetZeroFrame           @74
             TrcCliTimestampMode          @75
             TrcCliGetTimestamp           @76
             InitCServer                  @77 
             LibMain                      @78 
             TrcGetCounters               @79
             TrcDlgQTrace                 @80
             TrcGetQTraceActive           @81
             TrcOptionFlagSet             @82
             TrcOptionFlagGet             @83
             TrcInit                      @84
;            TrcNewestTimestampGet        @85
             CliFlashRom                  @86
             TrcPreFrameTSSet             @87

IMPORTS     addr.AdrGetAddrOffset
            addr.AdrCreateAddress
            addr.AdrCreateAddressWithType
            addr.AdrDestroyAddress
            addr.AdrSetAddrSpace
            addr.AdrSetAddrOffset

            dasm.DadFrameIsCodeRead
            dasm.DadGetFrameAddress

            enlib.EnlEventNotify
            enlib.EnlRegister

            errtext.ErrDisplayError
            errtext.ErrInitDLL
            errtext.ErrMessageBox

            event.EvtOpenEvent
            event.EvtCloseEvent
            event.EvtDeleteEvent
            event.EvtGetEventGroupInfo
            event.EvtSetActiveEvent
            event.EvtSetActiveField
            event.EvtSetStartAndMask
            event.EvtDoesEventExist
            event.ParseBoolean
            event.ReadNumber

            evttmplt.SendCliResults
            evttmplt.DisplayAddrSpace
            evttmplt.TmpltOpenTemplate
            evttmplt.TmpltTemplateClose
            evttmplt.TmpltSetTemplateName
            evttmplt.TmpltGetTemplateName
            evttmplt.TmpltGetNumOfEntries
            evttmplt.TmpltGetNameGivenFieldNumber
            evttmplt.TmpltGetVisible
            evttmplt.TmpltGetDisplayLength
            evttmplt.TmpltGetTrailingBlanks
            evttmplt.TmpltGetTitle
            evttmplt.TmpltGetFormattedTrace
            evttmplt.TmpltGetFormattedFields

            malloc.TMalloc
            malloc.TFree

            mem.MemReadSized

            sdserver.SdRegisterSemaphore
            sdserver.SdGetMemberIndex
            sdserver.SdGetMemberSize
            sdserver.SdRegister
            sdserver.SdUnRegister
            sdserver.SdUnRegisterSemaphore
            sdserver.SdReadMember
            sdserver.SdWriteMember
            sdserver.SdWriteCmdReadResponse
            sdserver.SdReadMemberNoInputCheck
            sdserver.SdReadPartialMember
            sdserver.SdnReadMember
            sdserver.SdnReadPartialMember
            sdserver.SdnRegister
            sdserver.SdnWriteMember
            sdserver.SdnWriteCmdReadResponse
            sdserver.SdWriteMemberIfChanged
            sdserver.SdWriteMemberNoCallback
            sdserver.SdWritePartialMember

            sds2abi.Sds2AbiGetTraceBufferInfo ;add by Eric
            sds2abi.Sds2AbiGetTraceInfo
            sds2abi.Sds2AbiGetTraceBufferLogicInfo
            sds2abi.Sds2AbiSetNumTraceBuffers
            sds2abi.Sds2AbiGetTraceFrames
            sds2abi.Sds2AbiSetBreakOnFull
            sds2abi.Sds2AbiSetQualTrace
            sds2abi.Sds2AbiDisableQual
            sds2abi.Sds2AbiReadFRom
            sds2abi.Sds2AbiWriteFRom
            sds2abi.Sds2AbiReadFrameStamp
            sds2abi.Sds2AbiSetTracing

            strlib.lmemcpy

            proc.ProcReturnSpecificProcessor
            proc.ProcReturnMaxInputAddress

; EscKey processing routines
             PVTASK.TskCheckAbort

            trig.TrigTriggerProgram
            trig.TraceIsEmpty
            trig.GetNumFramesAfterTrigger
            trig.GetNumFramesBeforeTrigger
            trig.GetNumFramesInTraceBuffer
            trig.ClearTriggerPositions
            trig.TriggerProgramTask
            trig.TrcCounterFunctionGet
            trig.TrcActionGet
            trig.TrigTriggerOpen
            trig.TrigEventEnableGet
            trig.TrigSeqLevelSet
            trig.TrigEventSet

            map.MapGetCSBaseAddr


; /******************************** E O F ***********************************/
