þa‹RþwLþ mP9þhý oKþ nSystem-wide/************************************************************************** * * COMPASS CENTRAL DATA LINK CONTROL * * IncludeFile: DataCommDefines.Inc 6/8/83 * * Contains: Definitions which are common for most * Compass Central modules. * * **************************************************************************/ DECLARE /* value used by state machine handlers to represent no state change and no event specified */ nsc LIT '0', noEv LIT '0'; DECLARE /* values used in o.s. message passing calls */ anyProcess LIT 'null', anyClass LIT 'null', waitForever LIT 'null', dontWait LIT '0'; DECLARE /* common defines used in state machine definition */ noStateChange LIT '0', noCausedEvent LIT '0'; DECLARE /* class and subclass defines for message passing */ msgClassMask LIT '0F000h', /* defines class range */ /* operating system range 0000h to 0FFFh */ classOs LIT '0000h', /* media access control/physical class range is 01000h to 01FFFh */ classMac LIT '1000h', /* data link control class range is 02000h to 02FFFh */ classDlc LIT '2000h', /* inter-process communication class range is 05000h to 05FFFh, uses only one now */ msgClassIpc LIT '05000h', classIpc LIT '05000h', /* timer class range is 0C000h to 0CFFFh, defined in dlcmsg */ classTimer LIT '0C000h', /* Netork Mgmt class range is 0E000h to 0EFFFh */ classNM LIT '0E000h', /* Network Test class range is 0D000h to 0DFFFh */ classTest LIT '0D000h'; DECLARE /* protocol identifiers */ dlcPrimaryProtocol LIT '1', dlcSecondaryProtocol LIT '2', dlcPhoneLinkProtocol LIT '3', dlcOriginateProtocol LIT '4', dlcAnswerProtocol LIT '5', dlcOrigAndAnsProtocol LIT '6', minimumProtocolNumber LIT '1', maximumProtocolNumber LIT '6'; DECLARE /* general operating constants for link configuration */ maxnumberOfLinks LIT '4', maxNumberOfStations LIT '9', baseLinkAddress LIT '128', linkAddressRange LIT '64', noStationAddress LIT '0FFh', newStationAddress LIT '0C0h', anyLinkNumber LIT '0FFh', anyStationNumber LIT '0FFh', dlcBufferSize LIT '550'; DECLARE /* stack size definitions */ macStackSize LIT '1000', modemStackSize LIT '1500', dlcStackSize LIT '1000', pdlStackSize LIT '1000', timerStackSize LIT '1000'; DECLARE /* line declarations */ noModem LIT '0', smartModem1200 LIT '1', smartModem2400 LIT '2', originateOnly LIT '0', answerOnly LIT '1', originateAndAnswer LIT '2', touchToneType LIT '0', pulseDialType LIT '1', maxPhoneNumberLen LIT '40', maxCommandLen LIT '40'; DECLARE eCcInternalError LIT '1250'; DECLARE /* dlc system failure codes */ tooManyCausedEvents LIT '1', eNoCbsAvailable LIT '21', eInvalidCB LIT '22', tooManyActiveMachines LIT '3', invalidIoState LIT '4', invalidParseEvent LIT '5', cantCreateTimerProcess LIT '6', cantCreateDlcProcess LIT '7', dlcConnectFailure LIT '8', invalidClass LIT '9', invalidAction LIT '10', tooManyUserTimers LIT '11', noUserTimer LIT '12', invalidInternalStatus LIT '13', noBuffersAvailable LIT '14', invalidTraceCondition LIT '15', invalidReceive LIT '16', invalidMailBox LIT '17', invalidFlushCondition LIT '18', eQueueError LIT '19'; DECLARE /* baud rate generator patterns */ baud250kbs LIT '14h', baud56Kbs LIT '89'; DECLARE timerAdjustValue LIT '1'; /* constant for now, later will be set according to link speed */ DECLARE /* O.S. error codes */ osOutOfMem LIT '2', osTimeOut LIT '253'; DECLARE debugAll LIT '0FFFFh', debugErrors LIT '8000h', debugTimer LIT '4000h', debugDefer LIT '4000h', debugMacIo LIT '2000h', debugMacCompletions LIT '1000h', debugDlcRequests LIT '0800h', debugDlcCompletions LIT '0400h', debugDlcMachine LIT '0200h', debugDlcFrames LIT '0100h', debugInit LIT '0080h', debugMain LIT '0040h', debugParse LIT '0040h', debugQueue LIT '0020h', debugPerformance LIT '0010h', debugIh LIT '0008h', debugPhyShort LIT '0008h', debugFi LIT '0004h', debugFo LIT '0002h', debugNewRecv LIT '0001h'; /* performance logging constants */ DECLARE logDlcPerf LIT '2200', recvQueued LIT '257', recvCmpd LIT '258', xmitQueued LIT '259', xmitStarted LIT '260', xmitCmpd LIT '261', dlcErr LIT '262', pollIdle LIT '263';