User Tools

Site Tools


cdc:nos2.source:nam5871:textcs

TEXTCS

Table Of Contents

  • [00002] PROC TEXTCS
  • [00003] TEXTCS - SYMPL TEXT FOR CS.
  • [00007] SYMPL TEXT FOR CS.
  • [00053] CSWDF - WORKLIST DEFINITIONS.
  • [00086] CSODF - OVERLAY DEFINITIONS.
  • [00185] SMID - SUPERVISORY MESSAGE IDENTIFICATION LIST.
  • [00377] OVLST - STATES ALLOWED FOR THE DIAGNOSTIC PROGRAM IN NPU.
  • [00386] ACNST - STATES ALLOWED FOR AN ACN ENTRY.
  • [00403] HCNST - STATES ALLOWED FOR THE HOP ACN ENTRY.
  • [00427] OPTYP - OPERATOR TYPES.
  • [00441] CSINTR - MONITOR ROUTINE INTERRUPT LOCATIONS.
  • [00468] CSCB - CS PROGRAM CONTROL BLOCK.
  • [00501] TABLES - MEMORY MANAGEMENT COMMON BLOCK.
  • [00517] LRI - LINE RECORD INDEX.
  • [00565] OCB - OPERATOR CONTROL BLOCK.
  • [00625] ACN - APPLICATION CONNECTION NUMBER LIST.
  • [00698] PLXREFS - PHYSICAL LINK CROSS REFERENCE TABLE.
  • [00714] LIXS - LINE CROSS REFERENCE TABLE .
  • [00731] DEXS - DEVICE CROSS REFERENCE TABLE.
  • [00752] NPUCB - NPU CONTROL BLOCK ARRAY.
  • [00824] NPXREF - NPU CROSS REFERENCE TABLE.
  • [00845] TRQ - TIMER REQUEST QUEUE.
  • [00864] EVQ - EVENT QUEUE.
  • [00884] CNQ - CONNECTION TRAFFIC QUEUE.
  • [00905] OPTQ - OPERATOR TYPEIN QUEUE
  • [00926] VCQ - VALID COMMAND QUEUE.
  • [00941] HRQ - HISTORY REQUEST QUEUE
  • [00961] ORQ - OPERATOR RESPONSE QUEUE.
  • [00980] RCQ - ROUTED COMMAND QUEUE.
  • [00999] PEQ - PROTOCOL EVENT QUEUE
  • [01024] OSQ - OPERATOR SUPERVISIOM SM QUEUE.
  • [01044] SSQ - SOLICITED STATUS QUEUE.
  • [01066] CTQ - CONFIGURE TERMINAL REQUEST QUEUE.
  • [01090] NRQ - NCF READ REQUESTS QUEUE.
  • [01115] NDQ - NCF DATA QUEUE.
  • [01160] NPUQ - NPU SUPERVISION SM QUEUE.
  • [01179] OTQ - OUTGOING TRAFFIC QUEUE.
  • [01199] WBQ - WAITING BLOCK QUEUE.
  • [01229] ODEQ - OPERATOR DIRECTED EVENT QUEUE.
  • [01244] HBFQ - HISTORY BUFFER QUEUE.
  • [01265] TEND - DUMMY LAST TABLE.

Source Code

TEXTCS.txt
  1. *DECK TEXTCS
  2. PROC TEXTCS;
  3. # TITLE TEXTCS - SYMPL TEXT FOR CS. #
  4.  
  5. BEGIN # TEXTCS #
  6. #
  7. ** TEXTCS - SYMPL TEXT FOR CS.
  8. *
  9. * D. G. DEPEW 81/08/12.
  10. * C. J. BRION 82/04/23.
  11. * A. LIM 82/06/10.
  12. *
  13. * THIS PROC GENERATES A SYMPL TEXT FOR COMPILING CS.
  14. * IT CONTAINS DEFINITIONS OF SYMBOLS, PARAMETERS, COMMON BLOCKS ETC.
  15. * USED THROUGHOUT THE PROGRAM.
  16. #
  17.  
  18.  
  19. CONTROL STEXT ;
  20.  
  21. #
  22. ** GLOBAL DEFINITIONS FOR THE CS PROGRAM
  23. #
  24.  
  25. DEF OCBSIZ$ # 10 #; # NUMBER OF WORDS IN OCB #
  26. DEF ACNESIZ$ # 2 #; # NUMBER WORDS PER ACN ENTRY #
  27. DEF HBFESIZ$ # 9 #; # HISTORY BUFFER ENTRY SIZE #
  28. DEF MINACN$ # 2 #; # MINIMUM ACN ALLOWED TO CS #
  29. DEF MAXACN$ # 11 #; # MAXIMUM NUMBER CONNECTIONS #
  30. DEF MXHSBLCNT$ # 90 #; # MAX NUM LINES IN HIS BUF#
  31. DEF HOPORD$ # 1 #; # HOP OCB ORDINAL #
  32. DEF DEFPL$ # 22 #; # DEFAULT HIST TERM PL #
  33. DEF HOPIPL$ # 30 #; # INTERNAL HOP PL #
  34. DEF HOPTPL$ # 32 #; # HOP TURN PAGE LENGTH #
  35. DEF NPCBSZ$ # 8 #; # NUMBER OF WORDS IN NPUCB #
  36. DEF AUDGR1$ # 1 #; # AUDIENCE GROUP 1 #
  37. DEF AUDGR2$ # 2 #; # AUDIENCE GROUP 2 #
  38. DEF AUDGR3$ # 3 #; # AUDIENCE GROUP 3 #
  39. DEF AUDGR4$ # 4 #; # AUDIENCE GROUP 4 #
  40. DEF AUDGR6$ # 6 #; # AUDIENCE GROUP 6 #
  41. DEF CSPID$ # 03 #; # CS PROGRAM I.D. FOR DUMPS #
  42. DEF DTIME$ # 30 #; # DELAY TIME FOR NEED GO MSG #
  43. DEF DEFCP$ # 100 #; # DEFAULT CP VALUE #
  44. DEF DEFBU$ # 0 #; # DEFAULT BU VALUE #
  45. DEF MINCP$ # 50 #; # MINIMUM CP VALUE #
  46. DEF MAXCP$ # 100 #; # MAXIMUM CP VALUE #
  47. DEF MINBU$ # 0 #; # MINIMUM BU VALUE #
  48. DEF MAXBU$ # 500 #; # MAXIMUM BU VALUE #
  49.  
  50.  
  51.  
  52. #
  53. ** CSWDF - WORKLIST DEFINITIONS.
  54. *
  55. * THIS STATUS LIST DEFINES THE SYMBOLS TO BE USED IN MAKING
  56. * WORKLIST REQUESTS.
  57. * THE ORDER IN THE STATUS LIST SETS THE PRIORITY OF THE WORKLIST
  58. * REQUEST, FIRST IS HIGHEST PRIORITY, LAST IS LOWEST PRIORITY.
  59. * THE ORDER CAN BE CHANGED (REARRIANGE PRIORITIES) AND THE PROGRAM
  60. * RECOMPILIED WITHOUT ANY OTHER CHANGES.
  61. #
  62.  
  63. STATUS CSWDF
  64. SCRTR, #RETURN TIMER REQUEST #
  65. SACNI, #CONTROL NETWORK INTERFACE #
  66. SOEOP, #EXECUTE OVERLAY PROGRAM #
  67. CTDNQ,
  68. CTSNR, #START NCF READ REQUEST #
  69. CSDNS, #DISPATCH NPU SUPERVISION #
  70. CSDOS, # DISPATCH OPERATOR SUPERVISION#
  71. CCDQE, # DISPATCH CONN TRAFFIC #
  72. CEDEQ, # IDENTIFY EVENT ENTRY #
  73. CSDPE, # DISPATCH PROTOCOL EVENT #
  74. CSDNR, # DETERMINE NPU REQUIREMENT #
  75. CSDRC, # DISPATCH ROUTED COMMAND #
  76. CSROC, # RECOGNIZE OPERATOR COMMAND #
  77. CSRSS, # ROUTE SOLICITED STATUS #
  78. COBOE, # BROADCAST OP EVENT #
  79. COROO, # ROUTE OP OUTPUT #
  80. COGHL, # GET HISTORY LINES #
  81. DUMMY, # DUMMY ENTRY FOR DISABLING #
  82. ;
  83.  
  84.  
  85. #
  86. ** CSODF - OVERLAY DEFINITIONS.
  87. *
  88. * THIS STATUS LIST DEFINES THE SYMBOLS TO BE USED AS OVERLAY NUMBERS
  89. * IN MAKING A TYPE 2 (OVERLAY ENTRY POINT CALL) WORKLIST REQUEST.
  90. * THE ORDER IN THE STATUS LIST SETS THE OVERLAY NUMBER, WITH THE
  91. * FIRST ONE BEING OVERLAY 0,0, SECOND 1,0 ETC...
  92. * THE ORDER CAN BE CHANGED IF SO DECIDED TO CHANGE THE OVERLAY
  93. * NUMBERS, AND THE PROGRAM RECOMPILED WITHOUT ANY OTHER CHANGES.
  94. #
  95.  
  96. STATUS CSODF
  97. CLMAN, # 0,0- MAIN OVERLAY #
  98. CLEVT, # 1,0- EVENT PROCESSING OVERLAY #
  99. CLOIO, # 2,0- OPERATOR I/O PROCESSING OVERLAY #
  100. CLCMR, # 3,0- COMMAND RECOGNITION OVERLAY #
  101. CLCMP, # 4,0- COMMAND PREPROCESSING OVERLAY #
  102. CLOSS, # 5,0- OPERATOR SUPERVISION SM OVERLAY #
  103. ;
  104.  
  105.  
  106. #
  107. * THE FOLLOWING STATUS LISTS ARE ENTRY POINT DEFINITIONS FOR THE
  108. * VARIOUS OVERLAYS WE DEFINED IN THE ABOVE LIST (CSODF).
  109. * EACH STATUS LIST DEFINES THE SYMBOLS TO BE USED AS ENTRY POINT
  110. * NUMBERS WITHIN THE OVERLAY IN MAKING A WORKLIST REQUEST.
  111. * THE ORDER IN THE LIST SETS THE ENTRY POINT NUMBER, AND THE
  112. * ORDER CAN BE CHANGED, AND THE PROGRAM RECOMPILED WITHOUT
  113. * ANY OTHER CHANGES.
  114. #
  115.  
  116.  
  117. #
  118. * EPEVT - ENTRY POINT DEFINITIONS FOR EVENT PROCESSING OVERLAY.
  119. #
  120.  
  121. STATUS EPEVT
  122. CSRSS, # ROUTE SOLICITED STATUS #
  123. CEDEQ, # IDENTIFY EVENT ENTRY #
  124. ;
  125.  
  126.  
  127. #
  128. * EPOIO - ENTRY POINT DEFINITIONS FOR OPERATOR I/O PROCESSING OVL.
  129. #
  130.  
  131. STATUS EPOIO
  132. CCDQE, # DISPATCH CONNECTION TRAFFIC #
  133. COBOE, # BROADCAST OPERATOR EVENT #
  134. COGHL, # GENERATE HISTORY LINE #
  135. COROO, # ROUTE OPERATOR OUTPUT #
  136. ;
  137.  
  138.  
  139. #
  140. * EPCMR - ENTRY POINT DEFINITIONS FOR COMMAND RECOGNITION OVL.
  141. #
  142.  
  143. STATUS EPCMR
  144. CSROC, # RECOGNIZE OPERATOR COMMAND #
  145. ;
  146.  
  147.  
  148. #
  149. * EPCMP - ENTRY POINT DEFINITIONS FOR COMMAND PREPROCESSOR OVL.
  150. #
  151.  
  152. STATUS EPCMP
  153. CSDNR, # DETERMINE NPU REQUIREMENT #
  154. CSDRC, # DISPATCH ROUTED COMMAND #
  155. ;
  156.  
  157.  
  158. #
  159. * EPOSS - ENTRY POINT DEFINITIONS FOR OPERATOR SUPERVISION SM OVL.
  160. #
  161.  
  162. STATUS EPOSS
  163. CSDPE, # DISPATCH PROTOCOL EVENT #
  164. CSDOS, # DISPATCH OPERATOR SUPERVISION #
  165. ;
  166.  
  167.  
  168.  
  169. #
  170. ** SUPSTAT -SUPERVISION STATES OF NPU.
  171. *
  172. * THIS STATUS LIST DEFINES THE SYMBOLS TO BE USED FOR SETTING THE
  173. * SUPERVISION STATE OF THE NPUCB.
  174. #
  175. STATUS SUPSTAT
  176. SUPLOST, # SUPERVISION LOST #
  177. SUP, # SUPERVISED #
  178. NCFMIS, # NCF MISMATCH #
  179. LEVMIS; # LEVEL MISMATCH #
  180.  
  181.  
  182.  
  183.  
  184. #
  185. ** SMID - SUPERVISORY MESSAGE IDENTIFICATION LIST.
  186. *
  187. * THIS LIST DICTATES THE INTERNAL IDENTIFICATION CODES FOR ALL
  188. * SUPERVISORY MESSAGE TRAFFIC, AS WELL AS VARIOUS INTERNAL TYPED
  189. * TRAFFIC FOR THE CS PROGRAM. THIS LIST MUST MATCH THE PSFCTBL
  190. * ARRAY DEFINITION IN THE PROC *CSDDNT*. ANY CHANGE TO THIS LIST
  191. * OR TO THE PSFCTBL ARRAY DEFINITION MUST CAUSE A COMPARABLE
  192. * CHANGE TO THE OTHER. SERIOUS CIRCUMSTANCES MAY OCCUR OTHERWISE.
  193. #
  194.  
  195. STATUS SMID
  196. CNFTE, # 0 #
  197. CNFRCTM, # 0.1#
  198. SUPCB, # 1 #
  199. SUPIN, # 2 #
  200.  
  201. # UNSOLICITED PFCSFCS #
  202. # ******************* #
  203.  
  204.  
  205. ALMOP, # 3 #
  206. LOGER, # 4 #
  207. CDILI, # 5 #
  208. CDILL, # 6 #
  209. CDITE, # 7 #
  210. CDITR, # 8 #
  211. MSGOP, # 9 #
  212. STILI, # 10 #
  213. STINP, # 11 #
  214. STITR, # 12 #
  215. STIAP, # 12.1 #
  216. STITE, # 12.2 #
  217. STUTE, # 13 #
  218. STULI, # 14 #
  219. STULL, # 15 #
  220. STUTR, # 16 #
  221. STUNP, # 17 #
  222. STUCP, # 18 #
  223. STUVC, # 19 #
  224. OLDDT, # 20 #
  225. SUPGO, # 21 #
  226.  
  227. # CONNECTION TRAFFIC PFCSFCS #
  228. # ************************** #
  229.  
  230. SHUINS, # 22 #
  231. CONREQ, # 23 #
  232. HOPSTRT, # 24 #
  233. CONCB, # 25 #
  234. FCACK, # 26 #
  235. INTRUSR, # 27 #
  236. FCINA, # 28 #
  237. FCINIT, # 29 #
  238. FCNAK, # 30 #
  239. TCHTCH, # 31 #
  240. HOPALT, # 32 #
  241. HOPBRK, # 33 #
  242. HOPCMD, # 34 #
  243. HOPENDD, # 35 #
  244. HOPIG, # 36 #
  245. HOPPAGE, # 37 #
  246. CONENDN, # 38 #
  247. BIMARK, # 38.1 #
  248.  
  249.  
  250. # OPERATOR SUPERVISION PFCSFCS #
  251. # **************************** #
  252.  
  253. HOPDU, # 39 #
  254. HOPTRCE, # 40 #
  255. HOPNOTR, # 41 #
  256. HOPREL, # 42 #
  257. HOPRS, # 43 #
  258. HOPDB, # 43.1 #
  259. HOPDE, # 43.2 #
  260. TRSNPN, # 44 #
  261. TRSTRN, # 45 #
  262. LISLIN, # 46 #
  263. LISNPN, # 47 #
  264. LLSLLN, # 48 #
  265. LLSNPN, # 49 #
  266. CPSCPN, # 50 #
  267. CPSNPN, # 51 #
  268. NPSNPN, # 52 #
  269. TESLIN, # 53 #
  270. TESLLN, # 54 #
  271. TESNPN, # 55 #
  272. TESTEN, # 56 #
  273. VCSLIN, # 57 #
  274. VCSNPN, # 58 #
  275. VCSVCN, # 59 #
  276. MSGLIN, # 60 #
  277. MSGLLN, # 61 #
  278. MSGNPN, # 62 #
  279. MSGTEN, # 63 #
  280. MSGLIA, # 64 #
  281. MSGLLA, # 65 #
  282. MSGTEA, # 66 #
  283. OLDINN, # 67 #
  284. OLDINA, # 68 #
  285.  
  286. # SOLICITED STATUS PFCSFCS #
  287. # ************************ #
  288.  
  289. STUTEN, # 69 #
  290. STULIN, # 70 #
  291. STULLN, # 71 #
  292. STUTRN, # 72 #
  293. STUNPN, # 73 #
  294. STUCPN, # 74 #
  295. STUVCN, # 74.1 #
  296.  
  297. # IGNORE THESE PFCSFCS #
  298. # ******************** #
  299. CTRTCD, # 75 #
  300. CTRCCD, # 75.1 #
  301. CTRCHRN, # 75.2 #
  302. CTRCHRA, # 75.3 #
  303. CTRCTDN, # 75.4 #
  304. CTRCTDA, # 75.5 #
  305. CTRRTCA, # 75.6 #
  306. CTRRCCA, # 75.7 #
  307.  
  308.  
  309. # OUTGOING TRAFFIC PFCSFCS #
  310. # ************************ #
  311.  
  312. CNFTEN, # 76 #
  313. CNFRCTN, # 76.1#
  314. CNFTEA, # 77 #
  315. CNFRCTA, # 77.1#
  316. SUPGON, # 78 #
  317. MSGLI, # 79 #
  318. MSGLL, # 80 #
  319. MSGNP, # 81 #
  320. MSGTE, # 82 #
  321. CPSCP, # 83 #
  322. CPSNP, # 84 #
  323. DIBLI, # 85 #
  324. DIBLL, # 86 #
  325. DIBTE, # 87 #
  326. DIBTR, # 88 #
  327. DIBVC, # 89 #
  328. ENBLI, # 90 #
  329. ENBLL, # 91 #
  330. ENBTE, # 92 #
  331. ENBTR, # 93 #
  332. ENBVC, # 94 #
  333. LISLI, # 95 #
  334. LISNP, # 96 #
  335. LLSLL, # 97 #
  336. LLSNP, # 98 #
  337. NPSNP, # 99 #
  338. OLDTM, # 100 #
  339. SUPINN, # 101 #
  340. SUPINA, # 102 #
  341. HOPDIS, # 103 #
  342. HOPLG, # 104 #
  343. TESLI, # 105 #
  344. TESLL, # 106 #
  345. TESNP, # 107 #
  346. TESTE, # 108 #
  347. TRSNP, # 109 #
  348. TRSTR, # 110 #
  349. VCSLI, # 111 #
  350. VCSNP, # 112 #
  351. VCSVC, # 113 #
  352. CONREQN, # 114 #
  353. CONENDR, # 115 #
  354. NPIIN, # 115.1 #
  355. OLDIN, # 115.2 #
  356.  
  357. # INTERNAL PFCSFCS #
  358. # ********************* #
  359.  
  360. STUFIN, # 115.3 #
  361. CMDTXT, # 116 #
  362. CTRLON, # 117 #
  363. CTRLOFF, # 118 #
  364. DATAIN, # 119 #
  365. HOPSRTN, # 120 #
  366. CONCBW, # 121 #
  367. TTEXT, # 122 #
  368. HIST, # 122.1 #
  369. SUPINUN, # 123 #
  370. SUPGOI, # 124 #
  371. ;
  372.  
  373.  
  374.  
  375.  
  376. #
  377. ** OVLST - STATES ALLOWED FOR THE DIAGNOSTIC PROGRAM IN NPU.
  378. #
  379.  
  380. STATUS OVLST
  381. IDLE, # IDLE, NO OPERATOR CONNECTED #
  382. BUSY, # OPERATOR CONNECTED #
  383. LOADING; # AWAITING RESPONSE TO CONNECT REQUEST #
  384.  
  385. #
  386. ** ACNST - STATES ALLOWED FOR AN ACN ENTRY.
  387. *
  388. * THIS STATUS LIST DEFINES THE ALLOWED STATES FOR AN ACN ENTRY.
  389. #
  390.  
  391. STATUS ACNST
  392. INACT, # INACTIVE #
  393. CREATE, # CREATE IN PROGRESS #
  394. ACTIVE, # BOTH INPUT AND OUTPUT OK #
  395. COMMAND, # COMMAND IN PROGRESS #
  396. BREAK, # BREAK OUTSTANDING #
  397. ENDED, # END IN PROGRESS #
  398. BROKEN, # CONNECTION BROKEN #
  399. CLEARI; # CLEAR INPUT #
  400.  
  401.  
  402. #
  403. ** HCNST - STATES ALLOWED FOR THE HOP ACN ENTRY.
  404. *
  405. * THIS STATUS LIST DEFINES THE ALLOWED STATES FOR THE ACN LIST
  406. * ENTRY FOR THE HOP. BECAUSE WE COMMUNICATE WITH THE HOP VIA A
  407. * TOTALLY DIFFERENT PROTOCOL THAN THAT FOR NOPS (WHO ARE TERMINAL
  408. * USERS), A DIFFERENT SET OF STATES ARE REQUIRED.
  409. #
  410.  
  411. STATUS HCNST
  412. INACT, # INACTICE, NOT ASSIGNED #
  413. CREATE, # HOP/START IN PROGRESS #
  414. ACTIVE, # BOTH INPUT AND OUTPUT ALLOWED #
  415. COMMAND, # COMMAND IN PROGRESS,ONLY OUTPUT ALLOWED #
  416. BREAK, # BREAK OUTSTANDING #
  417. ENDED, # HOP/END IN PROGRESS #
  418. RESTART, # START WHILE END IN PROGRESS #
  419. STARTEND, # END WHILE START IN PROGRESS #
  420. STARTBRK, # BREAK WHILE START IN PROGRESS #
  421. RESBREAK; # START + BREAK WHILE END IN PROGRESS #
  422.  
  423.  
  424.  
  425.  
  426. #
  427. ** OPTYP - OPERATOR TYPES.
  428. *
  429. * THIS STATUS LIST DEFINES THE TYPES OF OPERATORS SUPPORTED BY CS.
  430. #
  431.  
  432. STATUS OPTYP
  433. HOP, # HOST OPERATOR #
  434. NOP, # NPU OPERATOR #
  435. DOP; # DIAGNOSTIC OPERATOR #
  436.  
  437.  
  438.  
  439.  
  440. #
  441. ** CSINTR - MONITOR ROUTINE INTERRUPT LOCATIONS.
  442. *
  443. * CSINTR IS A COMMON BLOCK CONTAINING A GROUP OF WHOLE WORD ITEMS
  444. * THAT FUNCTION AS INTERRUPT CELLS FOR THE ROUTINES THAT ARE CALLED
  445. * BY THE STATUS WORKLIST PROCESSOR TO PROCESS ONE OR MORE QUEUES.
  446. * (SOME QUEUES ARE PROCESSED BY MONITOR TYPE ROUTINES AND OTHER
  447. * QUEUES (OF LOWER PRIORITY) ARE PROCESSED BY WORKLIST ROUTINES.)
  448. * THESE CELLS PROVIDE A LINKAGE BETWEEN ONE OR MORE QUEUES AND A
  449. * SINGLE, GIVEN MONITOR ROUTINE. THIS ASSOCIATION IS MADE AT
  450. * INITIALIZATION TIME WHEN TABLES *WDF* AND *QWD* (IN SSTEXT) ARE
  451. * BUILT BY PROC CSIBWD. WHENEVER THE STATUS WORKLIST PROCESSOR IS
  452. * WATCHING A GIVEN INTERRUPT CELL AND THAT CELL BECOMES OR IS NON-
  453. * ZERO, THE CORRESPONDING MONITOR ROUTINE IS CALLED. THE MONITORS
  454. * THEMSELVES DETERMINE WHEN A GIVEN CELL WILL BE WATCHED VIA THE
  455. * FORMAL RETURN PARAMETER ARRAY *SWTESS* (COMMOM DECK). WHENEVER AN
  456. * ENTRY IS PLACED IN A GIVEN QUEUE, THE ASSOCIATED INTERRUPT WORD
  457. * IS INCREMENTED. (NOT ALL MONITOR ROUTINES ARE TRIGGERRED BY THESE
  458. * INTERRUPT CELLS. OTHERS ARE TRIGGERRED BY ,E.G., THE NSUP WORD OR
  459. * THE FIRST WORD OR IN POINTER OF THE NCF FET.)
  460. #
  461.  
  462. COMMON CSINTR;
  463. BEGIN
  464. ITEM ICSTSNR I; # INTERRUPT FOR PROC CSTSNR #
  465. END
  466.  
  467. #
  468. ** CSCB - CS PROGRAM CONTROL BLOCK.
  469. *
  470. * THE CS CONTROL BLOCK IS A COMMON BLOCK THAT CONTAINS PROGRAM
  471. * WIDE INFORMATION.
  472. #
  473. COMMON CSCB;
  474. BEGIN
  475. #
  476. ****
  477. #
  478. ITEM CRNT$DPN I; #CURRENT DUMP NUMBER #
  479. ITEM CRNT$NIN I; #CURRENT INVOCATION NUR #
  480. ITEM CSACNOP U; #CONTROL NOP OCB ORDINAL #
  481. ITEM CSTRACE U; #COUNT OF TRACE MSGS #
  482. ITEM CSSTATE B; #STATE OF CS PROGRAM #
  483. ITEM CSNPCNT U; #COUNT OF NPUCBS DEFINED #
  484. ITEM CSNPSUP U; #COUNT OF NPUS SUPERVISED #
  485. ITEM CSNCFVER C(20); # NCF FILE VERSION #
  486. ITEM CSNCFLEV C(3); # NCF VERSION LEVEL #
  487. ITEM DBGFLAG B; # DEBUG FLAG #
  488. ITEM CSCP U; # CS CONTROL CARD CP VALUE #
  489. ITEM CSBU U; # CS CONTROL CARD BU VALUE #
  490. #
  491. ****
  492. #
  493. END
  494.  
  495.  
  496.  
  497.  
  498. #
  499. **
  500. *E
  501. ** TABLES - MEMORY MANAGEMENT COMMON BLOCK.
  502. *
  503. * A COMMON BLOCK OF BASED-ARRAY POINTER WORD AND LENGTH FOR TABLES/Q
  504. * USED BY THE TABLE-MANAGER.
  505.  #
  506.  
  507. COMMON TABLES;
  508. BEGIN # TABLES #
  509. ITEM MEMLOC I; # BEGINNING MEMORY LOC OF MANAGED AREA #
  510. ITEM FL I; # CURRENT TOTAL FIELD LENGTH #
  511.  
  512.  
  513.  
  514. #
  515. **
  516. *E
  517. ** LRI - LINE RECORD INDEX.
  518. *
  519. * THE LINE RECORD INDEX IS A TABLE THAT TRANSLATES AN NPU NODE ID
  520. * AND PORT NUMBER INTO THE RELATIVE PRU ADDRESS OF THE CORRESPONDING
  521. * LINE RECORD IN THE NCF. THE TABLE IS CREATED BY NDL AND USED BY
  522. * CS DURING TERMINAL CONFIGURATION, AND IS PASSED TO CS VIA THE NCF.
  523. * THE TABLE IS DESCRIBED IN APPENDIX F OF THE NDL ERS. THE ENTRY
  524. * SIZE IS FIXED AT ONE WORD PER ENTRY. THE TABLE HEADER IS NOT USED
  525. * AND IS DISCARDED BY CS. A DUMMY LAST ENTRY IS ADDED DURING
  526. * INITIALIZATION. THIS ENTRY CONTAINS AN NPU NODE ID OF 255 AND A
  527. * PORT NUMBER OF 255 (HIGHEST VALID PORT NUMBER IS 254). THIS
  528. * INSURES THAT THE SEARCH OF THE LINE RECORD INDEX ALWAYS GETS A HIT
  529. * (AT LEAST ON THE LAST ENTRY). A DUMMY FIRST ENTRY IS ALSO ADDED
  530. * DURING INITIALIZATION. THIS ENTRY IS ALL ZEROES AND ENSURES THAT
  531. * THE SEARCH OF THE LINE RECORD INDEX FOR A LARGER CONCATENATED
  532. * NPU/PORT IS NEVER SATISFIED BY THE FIRST ENTRY (ELIMINATES SOME
  533. * SPECIAL CASING).
  534. *
  535. *
  536. * THE FOLLOWING IS THE FORMAT OF A LINE RECORD INDEX ENTRY. EACH
  537. * ENTRY IS ONE WORD LONG.
  538. *
  539. *
  540. * 1 2 3 4 5
  541. * 012345678901234567890123456789012345678901234567890123456789
  542. *TEXT
  543. *T,8/LINID,8/LIPORT,8/LIGC,12/,24/LIRPA
  544. *ENDTEXT
  545. #
  546.  
  547. BASED ARRAY LRI [00:00] S(1);
  548. BEGIN
  549. #
  550. ****
  551. #
  552. *CALL LINCF
  553. #
  554. ****
  555. #
  556. END
  557.  
  558. ITEM LRIL; #LENGTH OF LINE RECORD INDEX #
  559.  
  560.  
  561.  
  562.  
  563. #
  564. **
  565. ** OCB - OPERATOR CONTROL BLOCK.
  566. *
  567. * THE OPERATOR CONTROL BLOCK MANAGED TABLE CONTAINS AN ENTRY FOR
  568. * EACH OPERATOR THAT IS TO BE CONNECTED TO THIS CS. INITIAL IM-
  569. * PLEMENTATION OF R7 CS WILL ALLOW TEN TERMINAL OPERATORS (NOPS)
  570. * AND ONE HOST OPERATOR (HOP).
  571. *
  572. * THE FOLLOWING IS THE FORMAT OF AN OPERATOR CONTROL BLOCK. EACH
  573. * ENTRY IS THREE WORDS LONG.
  574. *
  575. *
  576. * 1 2 3 4 5
  577. * 012345678901234567890123456789012345678901234567890123456789
  578. *TEXT
  579. *T,WORD0,42/TNAM,12/ACN,6/ORD
  580. *T,WORD1,42/UNAM,2/O,8/NCNT,1/C,1/N,6/
  581. *T,WORD2,18/VERB,8/CNP1,8/CNP2,8/PL,1/S,9/,8/SDCNT
  582. *ENDTEXT
  583. #
  584.  
  585. BASED ARRAY OCB [01:MAXACN$] S(OCBSIZ$);
  586. BEGIN
  587. #
  588. ****
  589. #
  590. ITEM OC$WORD U(00,00,60); #FULL WORD REFERENCE #
  591. ITEM OC$WORD1 U(01,00,60); #FULL WORD 1 REF #
  592. ITEM OC$WORD2 U(02,00,60); #FULL WORD 2 REF #
  593. ITEM OC$TNAM C(00,00,07); #TERMINAL NAME #
  594. ITEM OC$SVCNAM C(00,00,05); #SVC NAME #
  595. ITEM OC$ACN U(00,42,12); #APPL CONNECTION NUMBER #
  596. ITEM OC$ORD U(00,54,06); #OCB ORDINAL VALUE #
  597. ITEM OC$UNAM C(01,00,07); #USER NAME #
  598. ITEM OC$TYPE S:OPTYP(01,42,02); #OPERATOR TYPE #
  599. ITEM OC$NCNT U(01,44,08); #AFFECTED NPU COUNT #
  600. ITEM OC$PAGEC U(01,52,02); # RIGHT K-DISPLAY PAGE NUM #
  601. ITEM OC$RPL U(01,54,06); # RIGHT K-DISPLAY LENGTH #
  602. ITEM OC$VERB C(02,00,03); #CURRENT CMD VERB #
  603. ITEM OC$UVERB U(02,00,18);
  604. ITEM OC$CNPU U(02,18,08); #CURRENT CMD FOR NPU #
  605. ITEM OC$PL U(02,26,08); #PAGE LENGTH AT TERMINAL #
  606. ITEM OC$STATE B(02,34,01); #STATE OF THE OCB #
  607. ITEM OC$WC U(02,36,06); # SM CM WORD COUNT #
  608. ITEM OC$CBPD B(02,42,01); #CB PENDING FLAG #
  609. ITEM OC$NTO B(02,43,01); #NO TIMEOUT FLAG #
  610. ITEM OC$TLC U(02,48,12); # SM TLC VALUE #
  611. ITEM OC$SM I(03,00,60); # SM FIRST WORD #
  612. #
  613. ****
  614. #
  615. END
  616.  
  617. ITEM OCBL; #LENGTH OF OCB TABLE #
  618.  
  619.  
  620.  
  621.  
  622.  
  623. #
  624. **
  625. ** ACN - APPLICATION CONNECTION NUMBER LIST.
  626. *
  627. * THE ACN LIST CONTAINS AN ACN ENTRY FOR EACH OPERATOR CONNECTION
  628. * TO CS. EACH ENTRY CONTAINS INFORMATION REGARDING THE CONNECTION.
  629. *
  630. * THE FOLLOWING IS THE FORMAT OF AN ACN LIST ENTRY. EACH ENTRY
  631. * IS TWO WORDS LONG.
  632. *
  633. *
  634. * 1 2 3 4 5
  635. * 012345678901234567890123456789012345678901234567890123456789
  636. *TEXT
  637. *T,WORD0,1/I,4/CST,7/,18/ABN,12/DBZ,18/ACN
  638. *T,WORD1,3/,6/BKCNT,6/BLCNT,6/ABL,9/,6/PCHAR,3/,1/G,2/,9/WBCNT,9/PL
  639. *ENDTEXT
  640. *
  641. *
  642. #
  643.  
  644. BASED ARRAY ACN [01:MAXACN$] S(ACNESIZ$);
  645. BEGIN
  646. #
  647. ****
  648. #
  649. ITEM ACN$WORD0 U(00,00,60); # FULL WORD0 REFERENCE #
  650. ITEM ACN$INIT B(00,00,01); # INIT SEEN FLAG #
  651. ITEM ACN$HOPST S:HCNST(00,02,04); # HOP PSEUDO ACN STATE #
  652. ITEM ACN$NOPST S:ACNST(00,02,04); # NOP ACN STATE #
  653. ITEM ACN$ABN U(00,12,18); # APPL BLOCK NUMBER #
  654. ITEM ACN$DBZ U(00,30,12); # DOWNLINE BLK SIZE #
  655. ITEM ACN$ACN U(00,42,18); # CONNECTION NUMBER #
  656. ITEM ACN$WORD1 U(01,00,60); # FULL WORD1 REFERENCE #
  657. ITEM ACN$BKCNT U(01,03,06); # NUMBER OF BREAKS COUNT #
  658. ITEM ACN$BLCNT U(01,09,06); # OUTSTANDING BLK COUNT #
  659. ITEM ACN$ABL U(01,15,06); # APPL BLOCK LIMIT #
  660. ITEM ACN$PCHAR C(01,30,01); # HOP PAGE CHARACTER #
  661. ITEM ACN$PWAIT B(01,35,01); # PAGE WAIT FLAG #
  662. ITEM ACN$IGNOR B(01,39,01); # HOP IGNORE FLAG #
  663. ITEM ACN$WBCNT U(01,42,09); # WAITING BLK COUNT #
  664. ITEM ACN$PL U(01,51,09); # PAGE LENGTH #
  665. #
  666. ****
  667. #
  668. END
  669.  
  670. ITEM ACNL; # LENGTH OF ACN TABLE #
  671.  
  672.  
  673.  
  674.  
  675.  
  676. #
  677. **
  678. *
  679. * LLXREF - LOGICAL LINK XREF TABLE.
  680. *
  681. * THE LOGICAL LINK XREF TABLE WILL RESIDE INITIALLY IN A MANAGED
  682. * TABLE. IT CONTAINS A TWO WORD ENTRY FOR EACH LOGICAL LINK
  683. * DEFINED IN THE NCF. IT IS EVENTUALLY WRITTEN OUT TO THE OVERLAYS
  684. * THAT NEED IT.
  685. #
  686.  
  687. BASED ARRAY LLXRS [00:00] S(2);
  688. BEGIN
  689. ITEM LXS$WORD U(00,00,60); #FULL WORD REFERENCE #
  690. END
  691.  
  692. ITEM LLXREFLS; #LENGTH OF LLXREF TABLE #
  693.  
  694.  
  695.  
  696.  
  697. #
  698. ** PLXREFS - PHYSICAL LINK CROSS REFERENCE TABLE.
  699. *
  700. * THE PHYSICAL LINK XREF TABLE CONTAINS A TWO-WORD ENTRY FOR EACH
  701. * COUPLER OR TRUNK DEFINED FOR THE NETWORK. THIS TABLE WILL INITIAL-
  702. * LY RESIDE IN A MANAGED TABLE. IT IS INITIALIZED BY CSIBXT FROM THE
  703. * NCF. IT IS EVENTUALLY WRITTEN OUT TO THE OVERLAYS THAT NEED IT.
  704. #
  705. BASED ARRAY PLXREFS [00:00] S(2);
  706. BEGIN
  707. ITEM PXS$WORD U(00,00,60); #FULL WORD REFERENCE #
  708. END
  709.  
  710. ITEM PLXREFLS; #LENGTH OF PLXREF TABLE #
  711.  
  712.  
  713. #
  714. ** LIXS - LINE CROSS REFERENCE TABLE .
  715. *
  716. * THE LINE CROSS REFERENCE TABLE CONTAINS INFORMATION ABOUT EACH
  717. * LINE DEFINED IN THE NCF. THIS MANAGED TABLE IS BUILT AT INITIALI-
  718. * ZATION TIME BY THE CSIBXT PROC. IT IS EVENTUALLY MADE A PART OF
  719. * THE OVERLAYS WHICH REQUIRES THE INFORMATION IN THE TABLE.
  720. #
  721.  
  722. BASED ARRAY LIXS [00:00] S(1);
  723. BEGIN
  724. ITEM LIXS$WORD U(00,00,60); # FULL WORD REFERENCE #
  725. END
  726.  
  727. ITEM LIXLS; #LENGTH OF LIX TABLE #
  728.  
  729.  
  730. #
  731. ** DEXS - DEVICE CROSS REFERENCE TABLE.
  732. *
  733. * THE DEVICE CROSS REFERENCE TABLE CONTAINS AN ENTRY FOR EACH DEVICE
  734. * OR TERMDEV STATEMENT IN THE NDL SOURCE. THIS TABLE IS BUILT BY
  735. * PROC CSIBXT AT INITIALIZATION TIME. THE TABLE IS WRITTEN TO THE
  736. * OVERLAYS WHICH REQUIRES ITS INFORMATION.
  737. #
  738.  
  739. BASED ARRAY DEXS [00:00] S(1);
  740. BEGIN
  741. ITEM DXS$WORD U(00,00,60); # FULL WORD REFERENCE #
  742. END
  743.  
  744. ITEM DEXLS; # LENGTH OF DEX TABLE #
  745.  
  746.  
  747.  
  748.  
  749. #
  750. **
  751. *E
  752. ** NPUCB - NPU CONTROL BLOCK ARRAY.
  753. *
  754. * THE NPUCB ARRAY WILL RESIDE IN A MANAGED TABLE. THERE EXISTS AN
  755. * ENTRY FOR EACH NPU DEFINED IN THE NETWORK CONFIGURATION FILE.
  756. * THE MANAGED TABLE IS INITIAILIZED BY CSIBNP FROM INFORMATION
  757. * THAT IS READ FROM THE NPU CROSS REFERENCE TABLE ON THE NCF.
  758. *
  759. * THE FOLLOWING IS THE FORMAT OF AN NPU CONTROL BLOCK. EACH BLOCK
  760. * IS FOUR WORDS LONG.
  761. *
  762. *
  763. * 1 2 3 4 5
  764. * 012345678901234567890123456789012345678901234567890123456789
  765. *TEXT
  766. *T,WORD,42/NAME,8/NID,8/HID,1/R,1/D
  767. *T,WORD1,16/CSUM,12/OPSD,12/OPST,12/OPOV,8/STAT
  768. *T,WORD2,1/L,5/,36/VAR,18/DNID
  769. *T,WORD3,8/OVSTATE,52/
  770. *ENDTEXT
  771. #
  772. BASED ARRAY NPUCB [00:00] S(NPCBSZ$);
  773. BEGIN
  774. #
  775. ****
  776. #
  777. ITEM NPU$WORD U(00,00,60); #FULL WORD REFERENCE #
  778. ITEM NPU$WORD1 U(01,00,60); #FULL WORD 1 REF #
  779. ITEM NPU$WORD2 U(02,00,60); #FULL WORD 2 REF #
  780. ITEM NPU$WORD3 U(03,00,60); #FULL WORD 3 REF #
  781. ITEM NPU$WORD4 U(04,00,60);
  782. ITEM NPU$WORD5 U(05,00,60);
  783. ITEM NPU$WORD6 U(06,00,60);
  784. ITEM NPU$WORD7 U(07,00,60);
  785. ITEM NPU$NAME C(00,00,07); #NAME OF NPU #
  786. ITEM NPU$NID U(00,42,08); #NODE NUMBER OF NPU #
  787. ITEM NPU$HID U(00,50,08); #HOST NODE NUMBER #
  788. ITEM NPU$RIND B(00,58,01); #REMOTE INDICATOR,1=REMOTE #
  789. ITEM NPU$DMPF B(00,59,01); #LONG TERM DMP FLAG #
  790. ITEM NPU$CSUM U(01,00,16); #NPUCHECKSUM FOR SUPER- #
  791. #VISION COMPARE OF NCF #
  792. ITEM NPU$OPSD U(01,16,12); #CURRENT SEND OPERATOR OCB #
  793. #ORDINAL #
  794. ITEM NPU$OPST U(01,28,12); #CURRENT STATUS OPERATOR #
  795. #OCB ORDINAL #
  796. ITEM NPU$OPOV U(01,40,12); #CURRENT OVERLAY OPERATOR #
  797. #OCB ORDINAL #
  798. ITEM NPU$STAT U(01,52,08); #NPUSTATE #
  799. ITEM NPU$LRF B(02,00,01); #LOAD REQUEST FLAG #
  800. ITEM NPU$VAR C(02,06,06); # NPU VARIENT NAME #
  801. ITEM NPU$DNID C(02,42,03); # DISPLAY CODED NODE NUM #
  802. ITEM NPU$CNID U(02,42,18); # DCD INTEGER NID #
  803. ITEM NPU$OVSTATE U(03,00,08); # OVERLAY STATE #
  804. ITEM NPU$CP U(03,08,09); # CPU UTILIZATION #
  805. ITEM NPU$BU U(03,17,09); # BUFFER AVAILABILITY #
  806. ITEM NPU$GFLAG B(03,27,01); # NEED GO FLAG #
  807. ITEM NPU$CNUM U(03,30,18); # TIMER CANCEL NUMBER #
  808. ITEM NPU$CNOP U(03,48,12); # CONTROLLING NOP FOR NPU #
  809. ITEM NPU$RFLGS U(04,12,48); # REPORT BIT MAP #
  810. ITEM NPU$STFLGS U(05,12,48); # PENDING STATUS REQ BIT MAP#
  811. ITEM NPU$SDFLGS U(06,12,48); # PENDING SEND REQ BIT MAP #
  812. ITEM NPU$OVFLGS U(07,12,48); # DIAG OPERATOR BIT MAP #
  813. #
  814. ****
  815. #
  816. END
  817.  
  818. ITEM NPUCBL; #LENGTH OF NPUCB #
  819.  
  820.  
  821.  
  822.  
  823. #
  824. ** NPXREF - NPU CROSS REFERENCE TABLE.
  825. *
  826. * THE NPU XREF TABLE CONTAINS INFORMATION ABOUT EACH NPU DEFINED IN
  827. * THE NCF. THE TABLE IS READ INTO CS AT INITIALIZATION TIME AND
  828. * EACH ENTRY'S INFORMATION IS TRANSFERRED INTO THE APPROPRIATE
  829. * NPUCB MANAGED TABLE ENTRY.
  830. #
  831. BASED ARRAY NPXREF [00:00] S(2);
  832. BEGIN
  833. ITEM NPX$WORD U(00,00,60); #FULL WORD REFERENCE #
  834. ITEM NPX$NAME C(00,00,07); #NAME OF NPU #
  835. ITEM NPX$NID U(00,52,08); #NODE NUMBER OF NPU #
  836. ITEM NPX$VAR C(01,00,06); #NPU VARIENT NAME #
  837. ITEM NPX$CSUM U(01,44,16); #NPU SUPERVISION CHECKSUM #
  838. END
  839.  
  840. ITEM NPXREFL; #LENGTH OF NPXREF TABLE #
  841.  
  842.  
  843.  
  844. #
  845. ** TRQ - TIMER REQUEST QUEUE.
  846. *
  847. * THIS QUEUE IS USED FOR TIMER REQUEST BLOCKS. CURRENTLY THE ONLY
  848. * USE FOR THIS QUEUE IS THE REPETITION OF *GO NEEDED* MESSAGE.
  849. * IT IS ONLY USED BY THE EVENT PROCESSOR. (SEE SERVICES AND
  850. * SCHEDULING OVERVIEW FOR THE FORMAT OF THE TIMER REQUEST BLOCK.)
  851. *
  852. #
  853. BASED ARRAY TRQ [00:00] S(1);
  854. BEGIN
  855. ITEM TRQ$WORD I(00,00,60); # FULL WORD DEFINITION #
  856. END
  857.  
  858. ITEM TRQL; # NUMBER OF WORDS ALLOCATED TO TRQ #
  859.  
  860.  
  861.  
  862.  
  863. #
  864. ** EVQ - EVENT QUEUE.
  865. *
  866. * THE EVENT QUEUE IS THE MAIN INPUT QUEUE FOR THE EVENT PROCESSOR.
  867. * IT RESIDES IN A MANAGED TABLE. THIS QUEUE RECEIVES UNSOLICITED
  868. * STATUS SM-S, SUPERVISION EVENTS, AND ROUTED SOLICITED STATUS SM-S.
  869. #
  870.  
  871. BASED ARRAY EVQ[00:00] S(1);
  872. BEGIN
  873. ITEM EVQ$WORD U(00,00,60); # FULL WORD REFERENCE #
  874. ITEM EVQ$CODE U(00,00,12); # EVENT CODE, ALIAS SMID #
  875. ITEM EVQ$WC U(00,48,12); # WORD CNT OF ENTRY #
  876. END
  877.  
  878. ITEM EVQL; # LENGTH OF EVENT QUEUE #
  879.  
  880.  
  881.  
  882.  
  883. #
  884. ** CNQ - CONNECTION TRAFFIC QUEUE.
  885. *
  886. * THE CONNECTION TRAFFIC QUEUE IS THE MAIN INPUT QUEUE FOR THE
  887. * CONNECTION LAYER. IT CONTAINS CONNECTION SMS, FLOW CONTROL SMS,
  888. * SPECIAL HOP SMS, INBOUND DATA BLOCKS, OUTBOUND TERMINAL TEXT,
  889. * AND PROTOCOL RESPONSES.
  890. #
  891.  
  892. BASED ARRAY CNQ[00:00] S(1);
  893. BEGIN
  894. ITEM CNQ$WORD U(00,00,60); # FULL WORD REFERENCE #
  895. ITEM CNQ$ID U(00,00,12); # CONNECTION TRAFFIC ID #
  896. ITEM CNQ$WC U(00,48,12); # WORD CNT OF ENTRY #
  897. END
  898.  
  899. ITEM CNQL; # LENGTH OF CONN TRAFFIC Q #
  900.  
  901.  
  902.  
  903.  
  904. #
  905. ** OPTQ - OPERATOR TYPEIN QUEUE
  906. *
  907. * OPTQ RECEIVES ALL INCOMING COMMANDS (TYPEINS) FROM ALL OPERATORS
  908. * (REGARDLESS OF TYPE) THAT THIS CS IS CURRENTLY SUPPORTING. AN
  909. * ENTRY IN THIS CONTAINS THREE PARTS. THE FIRST PART IS THE ENTRY
  910. * SIZE WORD (AS PER ALL OTHER VARIABLE ENTRY SIZE QUEUES). THE
  911. * SECOND PART IS A SINGLE WORD CONTAINING THE ACN (EQUALS ACN LIST
  912. * ORDINAL, EQUALS OCB ORDINAL) OF THE OPERATOR, A BREAK OCCURRED
  913. * FLAG (INDICATES THIS TYPEIN IS A USER BREAK) AND THE COUNT OF
  914. * CHARACTERS IN THE TYPEIN (ZERO FOR A BREAK), ALL IN ABH FORMAT.
  915. * THE THIRD PART IS THE TEXT STRING OF THE TYPEIN IN DISPLAY CODE.
  916. #
  917.  
  918. BASED ARRAY OPTQ [00:00] S(1);
  919. BEGIN
  920. ITEM OPQ$WORD U(00,00,60); #WHOLE WORD REFERENCE #
  921. END
  922.  
  923. ITEM OPQL; #LENGTH OF OPERATOR TYPEIN QUEUE #
  924.  
  925. #
  926. ** VCQ - VALID COMMAND QUEUE.
  927. *
  928. * THE VALID COMMAND QUEUE CONTAINS THE VALIDATED COMMAND FROM THE
  929. * COMMAND RECOGNIZER. THE ORIGINAL OPERATOR TYPE-IN ALSO IS APPEND-
  930. * ED TO THE ENTRY.
  931. #
  932.  
  933. BASED ARRAY VCQ [00:00] S(1);
  934. BEGIN
  935. ITEM VCQ$WORD U(00,00,60);
  936. END
  937.  
  938. ITEM VCQL; # LENGTH OF VCQ TABLE #
  939.  
  940. #
  941. ** HRQ - HISTORY REQUEST QUEUE
  942. *
  943. * THE HISTORY REQUEST QUEUE CONTAINS REQUESTS MADE BY
  944. * OPERATORS TO SEE THE CS HISTORY BUFFER. EACH ENTRY HAS THE
  945. * SAME FORMAT AS THE VALID COMMAND QUEUE. IT HAS A WORD
  946. * COUNT WORD, A HEADER WORD WITH INFORMATION ABOUT THE
  947. * COMMAND, THE ORIGINAL OPERATOR TYPE-IN, AND A STRUCTURED
  948. * VERSION OF THE COMMAND AS GENERATED BY THE COMMAND RECOGNIZER.
  949. #
  950.  
  951. BASED ARRAY HRQ [00:00] S(1);
  952. BEGIN
  953. ITEM HRQ$WORD U(00,00,60);
  954. END
  955.  
  956. ITEM HRQL; # LENGTH ALLOCATED TO HRQ TABLE #
  957.  
  958.  
  959.  
  960. #
  961. ** ORQ - OPERATOR RESPONSE QUEUE.
  962. *
  963. * THE OPERATOR RESPONSE QUEUE RECEIVES ALL THE MESSAGES SENT TO A
  964. * GROUP OF OPERATORS. EACH ENTRY CONTAINS A WORD COUNT WORD, AN
  965. * ABH WORD WHICH CONTAINS THE AUDIENCE GROUP NUMBER IN THE ABH
  966. * ADDRESS FIELD AND THE TEXT LENGTH, AND THE ACTUAL TEXT TO BE SENT
  967. * TO THE OPERATORS IDENTIFIED BY THE GROUP NUMBER.
  968. #
  969. BASED ARRAY ORQ [00:00] S(1);
  970. BEGIN
  971. ITEM ORQ$WORD U(00,00,60);
  972. END
  973.  
  974. ITEM ORQL; # LENGTH ALLOCATED TO THE ORQ #
  975.  
  976.  
  977.  
  978.  
  979. #
  980. ** RCQ - ROUTED COMMAND QUEUE.
  981. *
  982. * THE ROUTED COMMAND QUEUE CONTAINS THE COMMANDS THAT HAVE HAD THE
  983. * PHYSICAL ADDRESSES RESOLVED FROM THE CROSS REFERENCE TABLES.
  984. *
  985. #
  986.  
  987. BASED ARRAY RCQ [00:00] S(1);
  988. BEGIN
  989. ITEM RCQ$WORD U(00,00,60);
  990. END
  991.  
  992. ITEM RCQL; # LENGTH OF RCQ TABLE #
  993.  
  994.  
  995.  
  996.  
  997.  
  998. #
  999. ** PEQ - PROTOCOL EVENT QUEUE
  1000. *
  1001. * PEQ RECEIVES ALL CONNECTION/OPERATOR RELATED ASYNCHRONOUS
  1002. * SUPERVISORY MESSAGES THAT MUST BE PROCESSED BY THE INNER LAYER
  1003. * EXCEPT FOR THE FC/BRK SM, WHICH IS PASSED TO THE INNER LAYER AS
  1004. * AN OPERATOR TYPEIN (THE FC/BRK IS USED AS A PIPE CLEANER BETWEEN
  1005. * THE CONNECTION AND INNER LAYERS AND HENCE MUST BE PROCESSED AFTER
  1006. * (SYNCHRONOUS WITH) ANY TYPEINS ALREADY QUEUED FOR THE INNER
  1007. * LAYER). AN ENTRY IN THIS QUEUE CONSISTS OF THREE PARTS (AS
  1008. * ALWAYS, A LA *CNQ*) - THE ENTRY SIZE WORD (ALSO CONTAINS A CS
  1009. * DEFINED SM DISPATCHING CODE), THE ABH OF THE INCOMING SM AND
  1010. * THE SM BODY.
  1011. #
  1012.  
  1013. BASED ARRAY PEQ [00:00] S(1);
  1014. BEGIN
  1015. ITEM PEQ$WORD U(00,00,60); #WHOLE WORD REFERENCE #
  1016. END
  1017.  
  1018. ITEM PEQL; #LENGTH OF PROTOCOL EVENT QUEUE #
  1019.  
  1020.  
  1021.  
  1022.  
  1023. #
  1024. ** OSQ - OPERATOR SUPERVISIOM SM QUEUE.
  1025. *
  1026. * THE OPERATOR SUPERVISION SM QUEUE IS AN INPUT QUEUE TO THE INNER
  1027. * LAYER (PROCESS 3) DISPATCHER. IT RESIDES IN A MANAGED TABLE.
  1028. *
  1029. #
  1030.  
  1031. BASED ARRAY OSQ[00:00] S(1);
  1032. BEGIN
  1033. ITEM OSQ$WORD U(00,00,60); #FULL WORD REFERENCE #
  1034. ITEM OSQ$ID U(00,00,12); # INTERNAL IDENTIFIER #
  1035. ITEM OSQ$WC U(00,48,12); # WORD CNT OF ENTRY #
  1036. END
  1037.  
  1038. ITEM OSQL; # LENGTH OF OP SUPERVISION Q #
  1039.  
  1040.  
  1041.  
  1042.  
  1043. #
  1044. ** SSQ - SOLICITED STATUS QUEUE.
  1045. *
  1046. * THE SOLICITED STATUS SM QUEUE IS AN INPUT QUEUE INTO THE INNER
  1047. * LAYER (PROCESS 3) FROM THE NETWORK DISPATCHER (CSDDNT). ALL
  1048. * SOLICITED STATUS SMS ARE QUEUED HERE.
  1049. #
  1050.  
  1051. BASED ARRAY SSQ[00:00] S(1);
  1052. BEGIN
  1053. ITEM SSQ$WORD U(00,00,60); # FULL WORD REFERENCE #
  1054. ITEM SSQ$ID U(00,00,12); # INTERNAL IDENTIFIER #
  1055. ITEM SSQ$WC U(00,48,12); # WORD CNT OF ENTRY #
  1056. END
  1057.  
  1058. ITEM SSQL; # SOL STATUS Q LENGTH #
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065. #
  1066. ** CTQ - CONFIGURE TERMINAL REQUEST QUEUE.
  1067. *
  1068. * CTQ CONTAINS ALL INCOMING CNF/TE/R SMS FROM NPUS THAT THIS CS IS
  1069. * SUPERVISING. AN ENTRY IN THIS QUEUE CONSISTS OF THREE PARTS. THE
  1070. * FIRST PART IS A SINGLE WORD CONTAINING THE SIZE OF THE ENTRY IN CM
  1071. * WORDS (THE SIZE WORD IS INCLUDED IN THE WORD COUNT). THE SECOND
  1072. * PART IS THE APPLICATION BLOCK HEADER OF THE CNF/TE/R SM. THE
  1073. * THIRD PART IS THE BODY OF THE CNF/TE/R SM BEGINNING WITH THE
  1074. * PFC/SFC. THE ARRAY ENTRY SIZE IS ONE WORD TO EASE STORAGE MOVING.
  1075. #
  1076.  
  1077. BASED ARRAY CTQ [00:00] S(1);
  1078. BEGIN
  1079. ITEM CTQ$WORD U(00,00,60); #WHOLE WORD FOR STORAGE MOVING #
  1080. ITEM CTQ$ESIZE U(00,48,12); #ENTRY SIZE IN CM WORDS #
  1081. ITEM CTQ$NPUID U(01,14,08); #SOURCE NODE IN ABH WORD #
  1082. ITEM CTQ$PORT U(02,16,08); #PORT NUMBER IN 1ST WD OF SM BODY#
  1083. END
  1084.  
  1085. ITEM CTQL; # LENGTH OF CONFIGURE TERMINAL REQ QUEUE #
  1086.  
  1087.  
  1088.  
  1089. #
  1090. ** NRQ - NCF READ REQUESTS QUEUE.
  1091. *
  1092. * NRQ CONTAINS ALL CNF/TE/R SMS FOR WHICH THE READING OF THE CORRECT
  1093. * LINE RECORD HAS BEEN INITIATED. AN ENTRY IN THIS QUEUE CONSISTS
  1094. * OF THREE PARTS. THE FIRST PART IS A SINGLE WORD CONTAINING THE
  1095. * SIZE OF THE ENTRY IN CM WORDS (THE SIZE WORD IS INCLUDED IN THE
  1096. * WORD COUNT) AND THE LINE RECORD INDEX ORDINAL OF THE LINE RECORD
  1097. * BEING READ. THE SECOND AND THIRD PARTS ARE THE ABH AND BODY OF
  1098. * THE CNF/TE/R SM EXACTLY AS FOR THE CONFIGURE TERMINAL REQUEST
  1099. * QUEUE. THE DEFINED ARRAY ENTRY SIZE IS ONE WORD TO FACILITATE
  1100. * STORAGE MOVING.
  1101. #
  1102.  
  1103. BASED ARRAY NRQ [00:00] S(1);
  1104. BEGIN
  1105. ITEM NRQ$WORD U(00,00,60); #WHOLE WORD FOR STORAGE MOVING #
  1106. ITEM NRQ$LRIORD U(00,12,12); #LINE RECORD INDEX ENTRY ORDINAL #
  1107. ITEM NRQ$ESIZE U(00,48,12); #ENTRY SIZE IN CM WORDS #
  1108. END
  1109.  
  1110. ITEM NRQL; #LENGTH OF NCF READ REQUESTS QUEUE #
  1111.  
  1112.  
  1113.  
  1114. #
  1115. ** NDQ - NCF DATA QUEUE.
  1116. *
  1117. * NDQ CONTAINS ALL CNF/TE/R SMS AND THEIR ASSOCIATED NCF LINE
  1118. * RECORDS. THE LAST ENTRY IN THIS QUEUE MAY CONTAIN ONLY PART OF
  1119. * ITS LINE RECORD IF THAT LINE RECORD HAS NOT YET BEEN COMPLETELY
  1120. * READ. AN ENTRY IN THIS QUEUE CONSISTS OF FOUR PARTS. THE FIRST
  1121. * PART IS A SINGLE WORD CONTAINING THE FOLLOWING FIELDS:
  1122. *
  1123. * - A FLAG TO INDICATE IF THE ENTRY IS COMPLETE (ENTIRE LINE
  1124. * RECORD HAS BEEN READ).
  1125. * - THE ORDINAL OF THE LINE RECORD INDEX ENTRY.
  1126. * - THE LENGTH OF THE LINE RECORD (OR OF THAT PORTION WHICH HAS
  1127. * BEEN READ SO FAR) IN CM WORDS.
  1128. * - THE SIZE OF THE ORIGINAL CONFIGURE TERMINAL REQUEST (INCLUDES
  1129. * THIS WORD PLUS THE ABH AND BODY OF THE CNF/TE/R SM) IN CM
  1130. * WORDS. I.E., THIS IS THE SAME SIZE AS THE ORIGINAL CONFIGURE
  1131. * TERMINAL REQUEST AND NCF READ REQUEST QUEUE ENTRIES.
  1132. * - THE TOTAL SIZE OF THIS ENTRY (INCLUDING THIS WORD) IN CM WDS.
  1133. *
  1134. * THE SECOND AND THIRD PARTS ARE THE ABH AND BODY OF THE CNF/TE/R SM
  1135. * EXACTLY AS FOR THE CONFIGURE TERMINAL REQUEST QUEUE. THE FOURTH
  1136. * PART IS THE NCF LINE RECORD (OR THAT PORTION WHICH HAS BEEN READ
  1137. * SO FAR). THE DEFINED ARRAY ENTRY SIZE IS ONE WORD TO FACILITATE
  1138. * STORAGE MOVING.
  1139. #
  1140.  
  1141. BASED ARRAY NDQ [00:00] S(1);
  1142.  
  1143. BEGIN
  1144. ITEM NDQ$WORD U(00,00,60); #WHOLE WORD FOR STORAGE MOVING #
  1145. ITEM NDQ$CFLAG B(00,00,12); #ENTRY COMPLETE FLAG (T=COMPLETE)#
  1146. ITEM NDQ$LRIORD U(00,12,12); #LINE RECORD INDEX ENTRY ORDINAL #
  1147. ITEM NDQ$LRSIZE U(00,24,12); #LENGTH OF LINE RECORD #
  1148. ITEM NDQ$TCSIZE U(00,36,12); #SIZE OF CONFIGURE TERMINAL REQ #
  1149. ITEM NDQ$ESIZE U(00,48,12); #ENTRY SIZE IN CM WORDS #
  1150. ITEM NDQ$PFSF U(0,0,16) ; # PFCSFC OF MESSAGE IN QUEUE #
  1151. END
  1152.  
  1153. ITEM NDQL; #LENGTH OF NCF DATA QUEUE #
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159. #
  1160. ** NPUQ - NPU SUPERVISION SM QUEUE.
  1161. *
  1162. * NPUQ CONTAINS SUPERVISORY MESSAGES PERTAINING TO THE COMING
  1163. * AND GOING OF NPUS.
  1164. #
  1165.  
  1166. BASED ARRAY NPUQ [00:00] S(1);
  1167.  
  1168. BEGIN
  1169. ITEM NP$WORD U(00,00,60); #WHOLE WORD FOR STORAGE MOVING #
  1170. END
  1171.  
  1172. ITEM NPUQL; #LENGTH OF THE NPU SUPERVISION SM QUEUE #
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178. #
  1179. ** OTQ - OUTGOING TRAFFIC QUEUE.
  1180. *
  1181. * A VARIABLE LENGTH ENTRY FIFO QUEUE CONTAINING SM-S AND DATA BLOCKS
  1182. * OUTGOING FROM CS TO NIP. EACH ENTRY FORMAT IS:
  1183. * 1) A ONE WORD WORD-COUNT FOR THE NUMBER OF WORDS IN THE ENTRY.
  1184. * 2) A ONE WORD ABH - APPLICATION BLOCK HEADER, AND
  1185. * 3) SM-TEXT OR DATA-BLOCK.
  1186. #
  1187.  
  1188. BASED ARRAY OTQ [00:00] S(1);
  1189. BEGIN
  1190. ITEM OTQ$WORD U(00,00,60);
  1191. END
  1192.  
  1193. ITEM OTQL I; # OTQ QUEUE LENGTH #
  1194.  
  1195.  
  1196.  
  1197.  
  1198. #
  1199. ** WBQ - WAITING BLOCK QUEUE.
  1200. *
  1201. * THIS QUEUE CONTAINS BLOCKS FOR ALL ACN-S THAT CANNOT BE SENT.
  1202. * THE CONNECTION MAY NOT HAVE BEEN INITIALIZED OR THE OUTSTANDING
  1203. * BLOCK COUNT MAY BE AT LIMIT OR IN AN INHIBITED OR WAITING STATE.
  1204. *
  1205. #
  1206. BASED ARRAY WBQ[00:00] S(1);
  1207. BEGIN
  1208. ITEM WBQ$WORD U(00,00,60); # FULL WORD REFERENCE #
  1209. ITEM WBQ$LICNT U(00,12,12); # HOP LINE COUNT #
  1210. ITEM WBQ$ESIZE U(00,48,12); # ENTRY SIZE IN CM WORDS #
  1211. ITEM WBQ$ABT U(01,00,06); # APP. BLOCK TYPE #
  1212. ITEM WBQ$ABHACN U(01,06,12); # ACN IN ABH #
  1213. ITEM WBQ$ABN U(01,18,18); # APPLICATION BLOCK NUMBER #
  1214. ITEM WBQ$ACT U(01,36,04); # APP. CHARACTER TYPE #
  1215. ITEM WBQ$NFE U(01,44,01); # NO FORMAT EFFECTOR #
  1216. ITEM WBQ$TLC U(01,48,12); # TEXT LENGTH #
  1217. ITEM WBQ$PSFC U(02,00,16); # PSC/SFC IN SM #
  1218. ITEM WBQ$SMACN U(02,24,12); # ACN IN SM BODY #
  1219. ITEM WBQ$HIAF B(02,59,01); # HOP INPUT ALLOWED FLAG #
  1220. END
  1221.  
  1222. ITEM WBQL; # LENGTH OF WAITING BLOCK QUEUE #
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228. #
  1229. ** ODEQ - OPERATOR DIRECTED EVENT QUEUE.
  1230. *
  1231. * THIS QUEUE CONTAINS ENTRIES THAT CONTAIN AN EVENT LINE THAT
  1232. * IS INTENDED TO A SPECIFIC OPERATOR.
  1233. #
  1234.  
  1235. BASED ARRAY ODEQ [00:00] S(1);
  1236. BEGIN
  1237. ITEM ODE$WORD U(00,00,60); # FULL WORD REF #
  1238. ITEM ODE$WC U(00,48,12); # NUM WORDS IN ENTRY #
  1239. END
  1240.  
  1241. ITEM ODEQL; # LENGTH OF ODEQ #
  1242.  
  1243. #
  1244. ** HBFQ - HISTORY BUFFER QUEUE.
  1245. *
  1246. * THIS QUEUE CONTAINS ONE ENTRY THAT HOLDS ALL THE TEXT LINES
  1247. * INTENDED TO COMPRISE THE HISTORY BUFFER. THE PROGRAM DEFINI-
  1248. * TION MXHSBLCNT$ IN TEXTCS DICTATES THE MAXIMUM NUMBER OF
  1249. * LINES THAT ARE ALLOWED TO BE IN THE HISTORY BUFFER.
  1250. #
  1251.  
  1252. BASED ARRAY HBFQ [01:01] S(HBFESIZ$);
  1253. BEGIN
  1254. ITEM HBF$WORD U(00,00,60); # FULL WORD REF #
  1255. ITEM HBF$AGRP U(08,00,03); # AUDIENCE GROUP OF MESSAGE #
  1256. ITEM HBF$NORD U(08,03,09); # ORDINAL OF NPU THAT SENT MSG#
  1257. ITEM HBF$LFLG B(08,53,01); # LIST FLAG #
  1258. ITEM HBF$WC U(08,54,06); # MESSAGE WORD COUNT #
  1259. END
  1260.  
  1261. ITEM HBFQL; # LENGTH OF HBFQ #
  1262.  
  1263.  
  1264. #
  1265. ** TEND - DUMMY LAST TABLE.
  1266. *
  1267. * SERVES NO PURPOSE EXCEPT TO TERMINATE THE VECTOR OF
  1268. * TABLE POINTERS USED BY MANAGER.
  1269. *
  1270. #
  1271. BASED ARRAY TEND [0:0] S(1); # DUMMY END ARRAY OF MANAGER #
  1272. BEGIN
  1273. ITEM TEN$WORD U(00,00,60); # CONTAINS ADDRESS AT END OF FL #
  1274. END
  1275.  
  1276. ITEM TENL; # CONTAINS TOTAL STORAGE USED #
  1277.  
  1278. ITEM V24FLAG B ; # CCP 2.4 FLAG #
  1279. ITEM CCPVERS U ; # CCP VERSION #
  1280.  
  1281. END # TABLES #
  1282. DEF PAGE1 #1# ;
  1283. DEF PAGE2 #2# ;
  1284. DEF PAGE3 #3# ;
  1285. DEF NPG #3# ; # CURRENT NUMBER OF PAGE FOR RIGHT #
  1286. # K DISPLAY SCREEN #
  1287.  
  1288. DEF RKPAGESZ #116#; # SIZE OF RIGHT K-DISPLAY IN WORD #
  1289.  
  1290.  
  1291. END #TEXTCS #
  1292. TERM
cdc/nos2.source/nam5871/textcs.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator