home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / pcrte224.zip / SOURCE.ZIP / AT.INC < prev    next >
Text File  |  1992-06-09  |  8KB  |  357 lines

  1. ;;****************************************************************************
  2. ;; at.inc
  3.  
  4. ;; This file contains definitions for calling the appletalk driver that
  5. ;; comes with a TOPS flashcard
  6.  
  7. AsyncMask = 8000H
  8.  
  9. PapQuantum = 200H
  10.  
  11. EOMbit = 10H
  12. XObit = 20H
  13. STSbit = 8H
  14. ChkSum = 1H
  15. InfiniteRetry = 0
  16.  
  17. ATInit = 1H
  18. ATKill = 2H
  19. ATGetNetInfo = 3H
  20. ATGetClockTicks = 4H
  21. ATStartTimer = 5H
  22. ATResetTimer = 6H
  23. ATCancelTimer = 7H
  24.  
  25. LAPInstall = 10H
  26. LAPRemove = 11H
  27. LAPWrite = 12H
  28. LAPRead = 13H
  29. LAPCancel = 14H
  30.  
  31. DDPOpenSocket = 20H
  32. DDPCloseSocket = 21H
  33. DDPWrite = 22H
  34. DDPRead = 23H
  35. DDPCancel = 24H
  36.  
  37. NBPRegister = 30H
  38. NBPRemove = 31H
  39. NBPLookup = 32H
  40. NBPConfirm = 33H
  41. NBPCancel = 34H
  42.  
  43. ZIPGetZoneList = 35H
  44. ZIPGetMyZOne = 36H
  45. ZIPTakedown = 37H
  46. ZIPBringup = 38H
  47.  
  48. ATPOpenSocket = 40H
  49. ATPCloseSocket = 41H
  50. ATPSendRequest = 42H
  51. ATPGetRequest = 43H
  52. ATPSendResponse = 44H
  53. ATPAddResponse = 45H
  54. ATPCancelTrans = 46H
  55. ATPCancelResponse = 47H
  56. ATPCancelRequest = 48H
  57.  
  58. ASPGetParms = 50H
  59. ASPCloseSession = 51H
  60. ASPCancel = 52H
  61. ASPInit = 53H
  62. ASPKill = 54H
  63. ASPGetSession = 55H
  64. ASPGetRequest = 56H
  65. ASPCmdReply = 57H
  66. ASPWrtContinue = 58H
  67. ASPWrtReply = 59H
  68. ASPCloseReply = 5aH
  69. ASPNewStatus = 5bH
  70. ASPAttention = 5cH
  71. ASPGetStatus = 5dH
  72. ASPOpenSession = 5eH
  73. ASPCommand = 5fH
  74. ASPWrite = 60H
  75. ASPGetAttention = 61H
  76.  
  77. PAPOpen = 70H
  78. PAPClose = 71H
  79. PAPRead = 72H
  80. PAPWrite = 73H
  81. PAPStatus = 74H
  82. PAPRegName = 75H
  83. PAPRemName = 76H
  84. PAPInit = 77H
  85. PAPNewStatus = 78H
  86. PAPGetNextJob = 79H
  87. PAPKill = 7aH
  88. PAPCancel = 7bH
  89.  
  90. NoErr = 0
  91.  
  92. MAXCOLISERR = -1
  93. MAXDEFERERR = -2
  94.  
  95. LAP_LENERR = -30
  96. LAP_TYPERR = -31
  97. TABFULLERR = -32
  98. LAP_NOTFND = -33
  99. LAP_CANCELLED = -34
  100.  
  101. DDP_SKTERR = -40
  102. DDP_LENERR = -41
  103. NOBRDGERR = -42
  104. DDP_CANCELLED = -43
  105.  
  106. ATP_REQFAILED = -100
  107. ATP_NOSENDRESP = -101
  108. ATP_BADSOCKET = -102
  109. ATP_NORELEASE = -103
  110. ATP_OVERFLOW = -104
  111. ATP_CANCELLED = -105
  112.  
  113. NO_MEM_ERROR = -120
  114. BAD_PARAMETER = -121
  115. STACKERROR = -122
  116. ATNOTINITIALIZED = -123
  117. CALLNOTSUPPORTED = -124
  118. HARDW = -125
  119.  
  120. NBP_NEWSOCKET = -200
  121. NBP_NOCONFIRM = -201
  122. NAME_IN_USE = -202
  123. NBP_NO_ROOM = -203
  124. BAD_NAME = -204
  125. NBP_NOTFOUND = -205
  126. NBP_CANCELLED = -206
  127. TMR_NOTFOUND = -215
  128. TMR_CANCELLED = -216
  129.  
  130. PAP_BADCONNID = -300
  131. PAP_NOCONNIDS = -301
  132. PAP_DIED = -302
  133. PAP_LENERR = -303
  134. PAP_CANCELLED = -304
  135. PAP_WRITE_ACTIVE = -310
  136. PAP_READ_ACTIVE = -311
  137.  
  138. BuffPtr STRUC
  139.     buff_off        DW 0
  140.     buff_seg        DW 0
  141. BuffPtr ENDS
  142.  
  143. FuncPtr STRUC
  144.     func_off        DW 0
  145.     func_seg        DW 0
  146. FuncPtr ENDS
  147.  
  148.  
  149. InfoParams STRUC
  150.     inf_command     DW 0
  151.     inf_status      DW 0
  152.     inf_compfun     FuncPtr <>
  153.     inf_network     DW 0
  154.     inf_nodeid      DB 0
  155.     inf_abridge     DB 0
  156.     inf_config      DW 0
  157.     inf_buffptr     BuffPtr <>
  158.     inf_buffsize    DW 0
  159. InfoParams  ENDS
  160.  
  161.  
  162. ;; bits in inf_config 
  163. TimerMask = 1H
  164. LAPMask = 2H
  165. DDPMask = 4H
  166. NBPMask = 8H
  167. ATPMask = 10H
  168. ZIPMask = 20H
  169. PAPWksMask = 40H
  170. PAPSrvrMask = 80H
  171. ASPWksMask = 100H
  172. ASPSrvrMask = 200H
  173.  
  174. ATErrorStatus   STRUC
  175.     bufflen         DD 0
  176.     packets         DD 0
  177.     crcerrs         DD 0
  178.     overruns        DD 0
  179.     deferrals       DD 0
  180.     collisions      DD 0
  181.     timeouts        DD 0
  182.     totalsent       DD 0
  183.     goodrecptns     DD 0
  184.     pktlenerrs      DW 0
  185.     badlappkt       DW 0
  186.     buffoverflow    DW 0
  187. ATErrorStatus   ENDS
  188.  
  189. AddrBlk STRUC
  190.     network     DW 0
  191.     nodeid      DB 0
  192.     socket      DB 0
  193. AddrBlk ENDS
  194.  
  195. NBPTuple    STRUC
  196.     ent_address AddrBlk <>
  197.     ent_enum    DB 0
  198.     ent_name    DB 64 DUP (0)
  199. NBPTuple    ENDS
  200.  
  201. NBPTabEntry STRUC
  202.     tab_next        BuffPtr <>
  203.     tab_tuple       NBPTuple <>
  204. NBPTabEntry ENDS
  205.  
  206. NBPParams   STRUC
  207.     nbp_command     DW 0
  208.     nbp_status      DW 0
  209.     nbp_compfun     FuncPtr <>
  210.     nbp_addr        AddrBlk <>
  211.     nbp_toget       DW 0
  212.     nbp_buffptr     BuffPtr <>
  213.     nbp_buffsize        DW 0
  214.     nbp_interval        DB 0
  215.     nbp_retry       DB 0
  216.     nbp_entptr      BuffPtr <>
  217. NBPParams   ENDS
  218.  
  219. BDSElement  STRUC
  220.     bds_buffptr     BuffPtr <>
  221.     bds_buffsize        DW 0
  222.     bds_datasize        DW 0
  223.     bds_usrs        DB 4 DUP (0)
  224. BDSElement  ENDS
  225.  
  226. ATPParams   STRUC
  227.     atp_command     DW 0
  228.     atp_status      DW 0
  229.     atp_compfun     FuncPtr <>
  230.     atp_addrblk     AddrBlk <>
  231.     atp_socket      DB 0
  232.     atp_fill        DB 0
  233.     atp_buffptr     BuffPtr <>
  234.     atp_buffsize        DW 0
  235.     atp_interval        DB 0
  236.     atp_retry       DB 0
  237.     atp_flags       DB 0
  238.     atp_seqbit      DB 0
  239.     atp_tranid      DW 0
  240.     atp_users       DB 4 DUP (0)
  241.     atp_bdsbuffs        DB 0
  242.     atp_bdsresps        DB 0
  243.     atp_bdsptr      BuffPtr <>
  244. ATPParams   ENDS
  245.  
  246. LAPParams   STRUC
  247.     lap_command     DW 0
  248.     lap_status      DW 0
  249.     lap_compfun     FuncPtr <>
  250.     lap_fill1       DW 0
  251.     lap_destnode        DB 0
  252.     lap_fill2       DW 0
  253.     lap_type        DB 0
  254.     lap_buffptr     BuffPtr <>
  255.     lap_buffsize        DW 0
  256. LAPParams   ENDS
  257.  
  258. DDPParams   STRUC
  259.     ddp_command     DW 0
  260.     ddp_status      DW 0
  261.     ddp_compfun     FuncPtr <>
  262.     ddp_addr        AddrBlk <>
  263.     ddp_socket      DB 0
  264.     ddp_type        DB 0
  265.     ddp_buffptr     BuffPtr <>
  266.     ddp_buffsize        DW 0
  267.     ddp_chksum      DB 0
  268. DDPParams   ENDS
  269.  
  270. ZIPParams   STRUC
  271.     zip_command     DW 0
  272.     zip_status      DW 0
  273.     zip_compfun     FuncPtr <>
  274.     zip_fill        DD 0
  275.     zip_zones       DW 0
  276.     zip_buffptr     BuffPtr <>
  277.     zip_buffsize        DW 0
  278. ZIPParams   ENDS
  279.  
  280. ASPParams   STRUC
  281.     asp_command     DW 0
  282.     asp_status      DW 0
  283.     asp_compfun     FuncPtr <>
  284.     asp_maxcmdsize      DW 0
  285.     asp_quantum     DW 0
  286. ASPParams   ENDS
  287.  
  288. ASPSrvrParams   STRUC
  289.     asps_command        DW 0
  290.     asps_status     DW 0
  291.     asps_compfun        FuncPtr <>
  292.     asps_u          AddrBlk <>
  293.     asps_sesrefnum      DW 0
  294.     asps_buffptr        BuffPtr <>
  295.     asps_buffsize       DW 0
  296.     asps_reqrefnum      DW 0
  297. ASPSrvrParams   ENDS
  298.  
  299. ASPWksParams    STRUC
  300.     aspw_command        DW 0
  301.     aspw_status     DW 0
  302.     aspw_compfun        FuncPtr <>
  303.     aspw_u          AddrBlk <>
  304.     aspw_sesrefnum      DW 0
  305.     aspw_cmdblock       BuffPtr <>
  306.     aspw_cmdblocksize   DW 0
  307.     aspw_replybuff      BuffPtr <>
  308.     aspw_replysize      DW 0
  309.     aspw_actreply       DW 0
  310.     aspw_writebuff      BuffPtr <>
  311.     aspw_writesize      DW 0
  312.     aspw_actwritten     DW 0
  313. ASPWksParams    ENDS
  314.  
  315. TimerParams STRUC
  316.     tmr_command     DW 0
  317.     tmr_status      DW 0
  318.     tmr_compfun     FuncPtr <>
  319.     tmr_ticks       DD 0
  320.     tmr_time        DW 0
  321.     tmr_params      BuffPtr <>
  322. TimerParams ENDS
  323.  
  324. PAPStatusRec    STRUC
  325.     pap_system      DD 0
  326.     pap_reply       DB 256 DUP (0)
  327. PAPStatusRec    ENDS
  328.  
  329. PAPParams   STRUC
  330.     pap_command     DW 0
  331.     pap_status      DW 0
  332.     pap_compfun     FuncPtr <>
  333.     pap_addr        AddrBlk <>
  334.     pap_refnum      DW 0
  335.     pap_buffptr     BuffPtr <>
  336.     pap_buffsize        DW 0
  337.     pap_eof         DB 0
  338.     pap_srefnum     DB 0
  339.     pap_entptr      BuffPtr <>
  340. PAPParams   ENDS
  341.  
  342. ipgpAssign = (1 SHL 24)
  343. ipgpName = (2 SHL 24)
  344. ipgpServer = (3 SHL 24)
  345. ipgpError = -1
  346.  
  347. IPGP    STRUC
  348.     opcode      DD 0
  349.     ipaddress   DD 0      ;; me 
  350.     ipname      DD 0      ;; name server
  351.     ipbroad     DD 0      ;; broadcast address
  352.     ipfile      DD 0      ;; file server
  353.     ipother     DD 4 DUP (0)
  354.     stringe     DB 128 DUP(0)   ;; error message
  355. IPGP    ENDS
  356.  
  357.