;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 
;  Name:  CPU.DEF
; 
;  Description:
;      Module definition file for the CPU Server.
; 
;  Status:  PRELIMINARY
; 
;  $Log:   S:/tbird/mt2_186/cpu/cpu.dev  $
; ** 
; **    Rev 1.1   24 Mar 1998 11:31:16   Eric
; ** Add timer function for ACTOR, but not used now.
; ** 
; **    Rev 1.0   16 Dec 1996 16:02:00   Judy
; ** Initial revision.
; ** 
; **    Rev 1.26   26 Sep 1994 14:37:46   ernie
; ** Added CpuCliConfig, PROC.ProcReturnSpecificProcessor to support config cmd
; ** 
; **    Rev 1.25   19 Aug 1994 16:55:38   dennis
; ** Added call to get segment information from ADDR.
; ** 
; **    Rev 1.24   08 Jun 1994 08:39:32   dennis
; ** Added ADDR.AdrGetAddrSegmentSelector, ADDR.AdrSetAddrSegmentSelector,
; ** ADDR.AdrGetPmode and PROC.ProcReturnProcFamily to the import list. These
; ** were needed by cpu.c (SetRegAddr and GetRegAddr routines).
; ** 
; **    Rev 1.23   02 Jun 1994 14:08:20   dennis
; ** Added CpuGetFatalFlag to Export list.
; ** 
; **    Rev 1.22   18 May 1994 08:48:04   dennis
; ** Added CpuConvTextToValue @31 to Export list.
; ** 
; **    Rev 1.21   06 Apr 1994 16:42:38   nghia
; ** Added AdrSetCurrentAddrSpace() to import list.
; ** 
; **    Rev 1.20   03 Mar 1994 15:48:26   john
; ** Added GetSignalName, and GetNumberOfSignals
; ** 
; **    Rev 1.19   14 Jun 1993 12:22:18   MINDY
; ** Added two new routines: CpuSetFramePtrRegister and
; ** CpuRegisterMultipleRegisters
; ** 
; **    Rev 1.18   08 Apr 1993 14:39:28   doug
; ** signal command gives error if PowerScope in use
; ** 
; **    Rev 1.17   31 Mar 1993 13:39:30   ernie
; ** Added ProcInsertCpu() and ErrDisplayString() imports
; ** 
; **    Rev 1.16   30 Mar 1993 08:31:46   ernie
; ** Added CpuGetNumRegs and CpuGetRegisterInfo entry points
; ** 
; **    Rev 1.15   09 Oct 1992 14:56:14   doug
; ** add reset of cpu only
; ** 
; **    Rev 1.14   10 Sep 1992 11:46:14   doug
; ** support cpu.c
; ** 
; **    Rev 1.13   02 Sep 1992 11:39:56   doug
; ** added routine needed for symbolic entry in CLI
; ** 
; **    Rev 1.12   02 Sep 1992 10:44:14   doug
; ** emulation is now checked when setting registers
; ** 
; **    Rev 1.11   02 Sep 1992 10:18:56   doug
; ** the callback function is not used anymore
; ** 
; **    Rev 1.10   29 Aug 1992 07:23:42   doug
; ** emulation is not being checked anymore (see cpu.c)
; ** 
; **    Rev 1.9   31 Jul 1992 12:30:24   doug
; ** call init server from LibMain now so inited at load time
; ** 
; **    Rev 1.8   21 Jul 1992 12:36:42   doug
; ** using new routine to register cpu registers and signals
; ** 
; **    Rev 1.7   25 Jun 1992 09:09:22   courtney
; ** Updated import.
; ** 
; **    Rev 1.6   22 Jun 1992 11:21:12   courtney
; ** Revised to import from new BKROOT.dll.
; ** 
; **    Rev 1.5   14 May 1992 14:47:08   nghia
; ** Revised for new ErrorText interface.
; ** 
; **    Rev 1.4   13 May 1992 09:05:52   nghia
; ** Added CpuGetErrorText() to EXPORT, and added ErrGetErrorText() and
; ** CliGetActive() to IMPORT.
; ** 
; **    Rev 1.3   11 May 1992 12:55:56   nghia
; ** Renamed ProcessorMustBeHalted to BxProcessorMustBeHalted.
; ** 
; **    Rev 1.2   23 Apr 1992 12:14:40   nghia
; ** Changed BxGetEmulationStatus() to ProcessorMustBeHalted().
; ** 
; **    Rev 1.1   17 Apr 1992 16:20:12   nghia
; ** Added IMPORT from BKPTEXEC library & EXPORTS CpuCliFindRegName().
; ** 
; **    Rev 1.0   28 Feb 1992 11:57:36   nghia
; ** Initial revision.
;  
;  $Header:   S:/tbird/mt2_186/cpu/cpu.dev   1.1   24 Mar 1998 11:31:16   Eric  $
; 
;  Copyright (C) 1991-2 Microtek International.  All rights reserved.
; 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
LIBRARY      CPU

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

EXPORTS
    WEP                          @1
    InitCServer                  @2
    TerminateServer              @3
    CpuGetRegister               @4
    CpuSetRegister               @5
    CpuGetFpRegister             @6
    CpuSetFpRegister             @7
    CpuGetPC                     @8
    CpuSetPC                     @9 
    CpuGetSP                     @10
    CpuSetSP                     @11
    CpuGetFramePtr               @12
    CpuResetCPU                  @13
    CpuGetSignal                 @14
    CpuSetSignal                 @15
    CpuFindRegisterName          @16
    CpuFindRegisterId            @17
    CpuGetRegisterWidth          @18
    CpuCliRegister               @19
    CpuCliSignal                 @20
    CpuCliResetCPU               @21
    CpuCliFindRegName            @22
    LibMain                      @23
    CpuResetCPUOnly              @24
    CpuSetFramePtrRegister       @25
    CpuRegisterMultipleRegisters @26
    CpuGetNumRegs                @27
    CpuGetRegisterInfo           @28
    CpuGetNumberOfSignals        @29
    CpuGetSignalName             @30
	 CpuConvTextToValue           @31
	 CpuGetFatalFlag              @32
	 CpuCliConfig                 @33
    CliPause                     @34
    CpuGetTimer                  @35
    CpuSetTimer                  @36

IMPORTS
    SDSERVER.SdUnRegister
    SDSERVER.SdWriteMember
    SDSERVER.SdnWriteMember
    SDSERVER.SdRegister
    SDSERVER.SdnRegister
    SDSERVER.SdGetMemberIndex
    SDSERVER.SdReadMember
    SDSERVER.SdnReadMember
    SDSERVER.SdWriteCmdReadResponse
    ENLIB.EnlEventNotify
    ENLIB.EnlRegister
    ENLIB.EnlUnRegister
    MALLOC.TMalloc
    MALLOC.TFree
    ADDR.AdrCreateAddress
    ADDR.AdrDestroyAddress
    ADDR.AdrSetAddrOffset
    ADDR.AdrGetAddrOffset
    ADDR.AdrConvTextToAddress
    ADDR.AdrSetCurrentAddrSpace
    ADDR.AdrGetPmode
	 ADDR.AdrSetAddrSegmentSelector
	 ADDR.AdrGetAddrSegmentSelector
    ADDR.AdrGetSegmentDescCopy
    ERRTEXT.ErrDisplayError
    ERRTEXT.ErrDisplayString
    ERRTEXT.ErrInitDLL
    CLIULIB.CliGetActive
    BKROOT.BkProcessorMustBeHaltedAbsolute
    PROC.ProcReturnCpu
    PROC.ProcInsertCpu
    PROC.ProcReturnSystemType
    PROC.ProcInsertSpecificProcessor
    PROC.ProcReturnProcFamily
    PROC.ProcReturnSpecificProcessor
    SDS2ABI.Sds2AbiSetReg
    SDS2ABI.Sds2AbiGetControl
    SDS2ABI.Sds2AbiSetControl
