home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lansystk.zip / INCLUDE / IBMCOM / LAN_3_A.INC < prev    next >
Text File  |  1998-05-08  |  54KB  |  658 lines

  1. ;--------------------------------------------------------------------           
  2. ;*                GENERAL 802.2 DATA DECLARATIONS                   *           
  3. ;--------------------------------------------------------------------           
  4.                                                                                 
  5. ;--------------------------------------------------------------------           
  6. ;*                COMMAND_CONTROL_BLOCK                             *           
  7. ;*                                                                  *           
  8. ;*  THIS DATA DECLARATION MAY BE USED FOR ALL 802.2 COMMANDS.       *           
  9. ;--------------------------------------------------------------------           
  10. COMMAND_CONTROL_BLOCK     STRUC                                                 
  11. ;                                                                               
  12.  CCB_ADAPTER               DB    ?        ; Adapter number                      
  13.  CCB_COMMAND               DB    ?        ; Command code                        
  14.  CCB_RETCODE               DB    ?        ; Return code                         
  15.  CCB_WORK                  DB    ?        ; Reserved work area                  
  16.  CCB_POINTER               DD    ?        ; CCB chain pointer                   
  17.  CCB_CMPL_FLAG             DD    ?        ; Completion flag                     
  18.  CCB_PARM_OFFSET           DW    ?        ; Parameter table offset              
  19.  CCB_PARAMETER_1           DW    ?        ; Parameter 1                         
  20.  CCB_SEMAPHORE             DD    ?        ; System Semaphore handle             
  21.  CCB_APPL_ID               DB    ?        ; Application ID                      
  22.  CCB_READ_FLAG             DB    ?        ; READ attached indicator             
  23.  CCB_APPL_KEY              DW    ?        ; Application key                     
  24.  CCB_PARAMETER_2           DW    ?        ; Parameter 2                         
  25. ;                                                                               
  26. COMMAND_CONTROL_BLOCK     ENDS                                                  
  27.                                                                                 
  28.                                                                                 
  29. ;--------------------------------------------------------------------           
  30. ;*  THE FIELD LOCATED AT CCB_CMPL_FLAG IS USED FOR TWO REASONS.     *           
  31. ;*  BELOW IS ANOTHER NAME THAT CAN BE USED TO ACCESS THE FIELD      *           
  32. ;*  FOR VARIOUS COMMANDS.                                           *           
  33. ;--------------------------------------------------------------------           
  34.  CCB_CMPL_APPNDG           EQU   CCB_CMPL_FLAG                                  
  35.                                                                                 
  36.                                                                                 
  37. ;--------------------------------------------------------------------           
  38. ;*  THE FIELD LOCATED AT CCB_PARM_OFFSET IS USED FOR MANY REASONS.  *           
  39. ;*  BELOW ARE THE DIFFERENT NAMES THAT CAN BE USED TO ACCESS        *           
  40. ;*  THE FIELD FOR VARIOUS COMMANDS.                                 *           
  41. ;--------------------------------------------------------------------           
  42.  FUNCTIONAL_ADDRESS        EQU   CCB_PARM_OFFSET                                
  43.  GROUP_ADDRESS             EQU   CCB_PARM_OFFSET                                
  44.  READ_CCB_ADDR             EQU   CCB_PARM_OFFSET                                
  45.  TIMER_CCB                 EQU   CCB_PARM_OFFSET                                
  46.  TIMER_CMPL_FLAG           EQU   CCB_PARM_OFFSET                                
  47.  STATION_ID                EQU   CCB_PARM_OFFSET                                
  48.  TIMER_CMPL_APPNDG         EQU   CCB_PARM_OFFSET                                
  49.  TIMER_VALUE               EQU   CCB_PARM_OFFSET                                
  50.                                                                                 
  51.                                                                                 
  52. ;--------------------------------------------------------------------           
  53. ;*  THE FIELD LOCATED AT CCB_PARAMETER_1 IS USED FOR MANY REASONS.  *           
  54. ;*  BELOW ARE THE DIFFERENT NAMES THAT CAN BE USED TO ACCESS        *           
  55. ;*  THE FIELD FOR VARIOUS COMMANDS.                                 *           
  56. ;--------------------------------------------------------------------           
  57.  OPEN_STATION_ID           EQU   CCB_PARAMETER_1                                
  58.  RESET_ALL_SAPS            EQU   CCB_PARAMETER_1                                
  59.  FLOW_CONTROL              EQU   CCB_PARAMETER_1                                
  60.                                                                                 
  61.                                                                                 
  62. ;--------------------------------------------------------------------           
  63. ;*  THE FIELD LOCATED AT CCB_SEMAPHORE IS USED FOR TWO REASONS.     *           
  64. ;*  BELOW IS ANOTHER NAME THAT CAN BE USED TO ACCESS THE FIELD      *           
  65. ;*  FOR VARIOUS COMMANDS.                                           *           
  66. ;--------------------------------------------------------------------           
  67.  CCB_RESOURCE_ID           EQU   CCB_SEMAPHORE                                  
  68.                                                                                 
  69.                                                                                 
  70. ;--------------------------------------------------------------------           
  71. ;*  THE FIELD LOCATED AT CCB_PARAMETER_2 IS USED FOR MANY REASONS.  *           
  72. ;*  BELOW ARE THE DIFFERENT NAMES THAT CAN BE USED TO ACCESS        *           
  73. ;*  THE FIELD FOR VARIOUS COMMAND REQUESTS.                         *           
  74. ;--------------------------------------------------------------------           
  75.  SYSTEM_KEY                EQU   CCB_PARAMETER_2                                
  76.  PURGE_RESOURCE_ID         EQU   CCB_PARAMETER_2                                
  77.                                                                                 
  78.                                                                                 
  79. ;--------------------------------------------------------------------           
  80. ;*  COMMAND COMPLETION INFORMATION TABLE IS RETURNED FOR            *           
  81. ;*  COMMANDS USING APPENDAGES TO POST COMPLETION OF COMMANDS.       *           
  82. ;--------------------------------------------------------------------           
  83. COMMAND_COMPLETION_INFO   STRUC                                                 
  84. ;                                                                               
  85.  CCB_COUNT                 DW    ?        ; Count of CCBs chained               
  86.  EVENT_CCB_POINTER         DD    ?        ; Pointer to chain of CCBs            
  87.  BUFFER_COUNT              DW    ?        ; Count of buffers chained            
  88.  FIRST_BUFFER_ADDR         DD    ?        ; Pointer to buffers chained          
  89. ;                                                                               
  90. COMMAND_COMPLETION_INFO   ENDS                                                  
  91.                                                                                 
  92.                                                                                 
  93. BUFFER_FREE_PARMS         STRUC                                                 
  94. ;                                                                               
  95.  STATION_ID_BF             DW    ?        ; Station ID                          
  96.  BUFFER_LEFT_BF            DW    ?        ; Number of buffers left              
  97.                            DB  4 DUP(?)   ; RESERVED                            
  98.  FIRST_BUFFER_BF           DD    ?        ; Address of first buffer             
  99. ;                                                                               
  100. BUFFER_FREE_PARMS         ENDS                                                  
  101.                                                                                 
  102.                                                                                 
  103. BUFFER_GET_PARMS          STRUC                                                 
  104. ;                                                                               
  105.  STATION_ID_BG             DW    ?        ; Station ID                          
  106.  BUFFER_LEFT_BG            DW    ?        ; Number of buffers left              
  107.  BUFFER_GET_BG             DB    ?        ; Number of buffers to get            
  108.                            DB  3 DUP(?)   ; RESERVED                            
  109.  FIRST_BUFFER_BG           DD    ?        ; Address of first buffer             
  110. ;                                                                               
  111. BUFFER_GET_PARMS          ENDS                                                  
  112.                                                                                 
  113. READ_PARMS                STRUC                                                 
  114. ;                                                                               
  115.  STATION_ID_RP             DW    ?        ; Station ID                          
  116.  OPTION_INDICATOR_RP       DB    ?        ; Read option indicator               
  117.  EVENT_SET_RP              DB    ?        ; notification event set              
  118.  EVENT_RP                  DB    ?        ; Posting event                       
  119.  CRITICAL_SUBSET_RP        DB    ?        ; Event subset identifier             
  120.  NOTIFICATION_FLAG_RP      DD    ?        ; User notification flag              
  121.  CCB_COUNT_RP              DW    ?        ; Count of CCBs attached              
  122.  EVENT_CCB_POINTER_RP      DD    ?        ; Pointer to CCB chain                
  123.  BUFFER_COUNT_RP           DW    ?        ; Count of buffers attached           
  124.  FIRST_BUFFER_ADDR_RP      DD    ?        ; Pointer to buffer chain             
  125.  RCV_FRAME_COUNT_RP        DW    ?        ; Count of frames attached            
  126.  RCV_FRAME_ADDR_RP         DD    ?        ; pointer to frame chain              
  127.  EVENT_ERROR_CODE_RP       DW    ?        ; Exception error code                
  128.  EVENT_ERROR_DATA1_RP      DW    ?        ; Exception error data                
  129.  EVENT_ERROR_DATA2_RP      DW    ?        ; Exception error data                
  130.  EVENT_ERROR_DATA3_RP      DW    ?        ; Exception error data                
  131. ;                                                                               
  132. READ_PARMS                ENDS                                                  
  133.                                                                                 
  134.                                                                                 
  135. RECEIVE_PARMS             STRUC                                                 
  136. ;                                                                               
  137.  STATION_ID_RCVP           DW    ?        ; Station ID                          
  138.  USER_LENGTH_RCVP          DW    ?        ; Length of user space                
  139.  RECEIVE_FLAG_RCVP         DB  4 DUP(?)   ; Receive user flag                   
  140.  FIRST_BUFFER_RCVP         DD    ?        ; Address of first buffer             
  141.  OPTIONS_RCVP              DB    ?        ; Receive options                     
  142.                            DB  3 DUP(?)   ; RESERVED                            
  143.  RCV_READ_OPTION_RCVP      DB    ?        ; READ posting option                 
  144. ;                                                                               
  145. RECEIVE_PARMS             ENDS                                                  
  146.                                                                                 
  147.                                                                                 
  148. ;--------------------------------------------------------------------           
  149. ;*  THE FIELD LOCATED AT RECEIVE_FLAG_RCVP IS USED FOR TWO REASONS. *           
  150. ;*  BELOW IS ANOTHER NAME THAT CAN BE USED TO ACCESS THE FIELD      *           
  151. ;*  FOR THE RECEIVE COMMAND.                                        *           
  152. ;--------------------------------------------------------------------           
  153.  RCV_DATA_APPNDG_RCVP      EQU   RECEIVE_FLAG_RCVP                              
  154.                                                                                 
  155. RECEIVE_NOT_CONTIGUOUS    STRUC                                                 
  156. ;                                                                               
  157.  BUF_POINTER_RNC           DD    ?        ; Pointer to next buffer              
  158.  RCV_LEN_RNC               DW    ?        ; length of entire frame              
  159.  LENGTH_IN_BUFFER_RNC      DW    ?        ; length of data in buffer            
  160.  USER_OFFSET_RNC           DW    ?        ; offset to user space                
  161.  USER_LENGTH_RNC           DW    ?        ; Length of user space                
  162.  STATION_ID_RNC            DW    ?        ; Receiving station ID                
  163.  OPTIONS_RNC               DB    ?        ; Receive option                      
  164.  MESSAGE_TYPE_RNC          DB    ?        ; Type of message received            
  165.  BUFFERS_LEFT_RNC          DW    ?        ; Number of buffers left              
  166.  RCV_PCFE_RNC              DB    ?        ; Rcv physical control field          
  167.  ADAPTER_NUM_RNC           DB    ?        ; Adapter number                      
  168.  NEXT_FRAME_RNC            DD    ?        ; Pointer to next rcv frame           
  169.  LAN_HEADER_LENGTH_RNC     DB    ?        ; Length of LAN header                
  170.  DLC_HEADER_LENGTH_RNC     DB    ?        ; Length of DLC header                
  171.  LAN_HEADER_RNC            DB 32 DUP(?)   ; LAN header of rcv frame             
  172.  DLC_HEADER_RNC            DB  4 DUP(?)   ; DLC header of rcv frame             
  173. ;                                                                               
  174. RECEIVE_NOT_CONTIGUOUS    ENDS                                                  
  175.                                                                                 
  176.                                                                                 
  177. RECEIVE_CONTIGUOUS        STRUC                                                 
  178. ;                                                                               
  179.  BUF_POINTER_RC            DD    ?        ; Pointer to next buffer              
  180.  RCV_LEN_RC                DW    ?        ; length of entire frame              
  181.  LENGTH_IN_BUFFER_RC       DW    ?        ; length of data in buffer            
  182.  USER_OFFSET_RC            DW    ?        ; offset to user space                
  183.  USER_LENGTH_RC            DW    ?        ; Length of user space                
  184.  STATION_ID_RC             DW    ?        ; Receiving station ID                
  185.  OPTIONS_RC                DB    ?        ; Receive option                      
  186.  MESSAGE_TYPE_RC           DB    ?        ; Type of message received            
  187.  BUFFERS_LEFT_RC           DW    ?        ; Number of buffers left              
  188.  RCV_PCFE_RC               DB    ?        ; Rcv physical control field          
  189.  ADAPTER_NUM_RC            DB    ?        ; Adapter number                      
  190.  NEXT_FRAME_RC             DD    ?        ; Pointer to next rcv frame           
  191. ;                                                                               
  192. RECEIVE_CONTIGUOUS        ENDS                                                  
  193.                                                                                 
  194.                                                                                 
  195. RECEIVE_BUFFER_TWO        STRUC                                                 
  196. ;                                                                               
  197.  BUF_POINTER_RB2           DD    ?        ; Pointer to next buffer              
  198.  RCV_LEN_RB2               DW    ?        ; length of entire frame              
  199.  LENGTH_IN_BUFFER_RB2      DW    ?        ; length of data in buffer            
  200.  USER_OFFSET_RB2           DW    ?        ; offset to user space                
  201.  USER_LENGTH_RB2           DW    ?        ; Length of user space                
  202. ;                                                                               
  203. RECEIVE_BUFFER_TWO        ENDS                                                  
  204.                                                                                 
  205.                                                                                 
  206. RECEIVE_MODIFY_PARMS      STRUC                                                 
  207. ;                                                                               
  208.  STATION_ID_RMP            DW    ?        ; Station ID                          
  209.  USER_LENGTH_RMP           DW    ?        ; Length of user data                 
  210.  RCV_DATA_APPNDG_RMP       DW    ?        ; Receive data appendage offse t      
  211.  RESERVED1_RMP             DW    ?        ; Reserved for application            
  212.  FIRST_BUFFER_RMP          DD    ?        ; Address of first buffer             
  213.  SUBROUTINE_ADDR           DW    ?        ; Subroutine offset                   
  214.  RESERVED2_RMP             DW    ?        ; Reserved for application            
  215. ;                                                                               
  216. RECEIVE_MODIFY_PARMS      ENDS                                                  
  217.                                                                                 
  218.                                                                                 
  219. TRANSMIT_PARMS            STRUC                                                 
  220. ;                                                                               
  221.  STATION_ID_TP             DW    ?        ; Station ID                          
  222.  TRANSMIT_PCFE_TP          DB    ?        ; Transmit PCFE information           
  223.  RSAP_TP                   DB    ?        ; Remote SAP value                    
  224.  XMIT_QUEUE_ONE_TP         DD    ?        ; Address of transmit queue           
  225.  XMIT_QUEUE_TWO_TP         DD    ?        ; Address of transmit queue           
  226.  BUFFER_LEN_ONE_TP         DW    ?        ; Length of buffer one                
  227.  BUFFER_LEN_TWO_TP         DW    ?        ; Length of buffer two                
  228.  BUFFER_ONE_TP             DD    ?        ; Transmit buffer one                 
  229.  BUFFER_TWO_TP             DD    ?        ; Transmit buffer two                 
  230.  XMIT_READ_OPTION_TP       DB    ?        ; READ posting option                 
  231. ;                                                                               
  232. TRANSMIT_PARMS            ENDS                                                  
  233.                                                                                 
  234.                                                                                 
  235. TRANSMIT_BUFFER           STRUC                                                 
  236. ;                                                                               
  237.  NEXT_BUF_POINTER_TB       DD    ?        ; Pointer to next buffer              
  238.                            DB  2 DUP(?)   ;                                     
  239.  LENGTH_IN_BUFFER_TB       DW    ?        ; Length of data in buffer            
  240.  USER_DATA_TB              DW    ?        ; User data                           
  241.  USER_LENGTH_TB            DW    ?        ; Length of user space                
  242. ;                                                                               
  243. TRANSMIT_BUFFER           ENDS                                                  
  244.                                                                                 
  245.                                                                                 
  246. DIR_INITIALIZE_PARMS      STRUC                                                 
  247. ;                                                                               
  248.  BRING_UPS_IP              DW    ?        ; Bring-up error code                 
  249.  SRAM_ADDRESS_IP           DW    ?        ; Configured addr of SRAM             
  250.  SRAM_PAGE_IP              DB    ?        ; Configured SRAM meg page            
  251.                            DB 15 DUP(?)   ; RESERVED                            
  252.  SHARED_RAM_ADDRESS_IP     DD    ?        ; Virtual address of SRAM             
  253.  MMIO_ADDRESS_IP           DD    ?        ; Virtual address of MMIO             
  254.  DATA_SEG_ADDRESS_IP       DD    ?        ; Virtual address of DS               
  255. ;                                                                               
  256. DIR_INITIALIZE_PARMS      ENDS                                                  
  257.                                                                                 
  258.                                                                                 
  259. DIR_OPEN_ADAPTER_PARMS    STRUC                                                 
  260. ;                                                                               
  261.  ADAPTER_PARMS_OFFSET_OA   DW    ?        ; Offset to adapter parms             
  262.  RESERVED1_OA              DW    ?        ; Reserved for application            
  263.                            DB  4 DUP(?)   ; RESERVED                            
  264.  DLC_PARMS_OFFSET_OA       DW    ?        ; Offset to DLC parms                 
  265.  RESERVED3_OA              DW    ?        ; Reserved for application            
  266.                            DB  4 DUP(?)   ; RESERVED                            
  267. ;                                                                               
  268. DIR_OPEN_ADAPTER_PARMS    ENDS                                                  
  269.                                                                                 
  270.                                                                                 
  271. DIR_OPEN_AD_PARMS         STRUC                                                 
  272. ;                                                                               
  273.  OPEN_ERROR_CODE_AP        DW    ?        ; Open adapter errors                 
  274.  OPEN_OPTIONS_AP           DW    ?        ; Open options                        
  275.  NODE_ADDRESS_AP           DB  6 DUP(?)   ; Station's Node address              
  276.  GROUP_ADDRESS_AP          DD    ?        ; Station's Group address             
  277.  FUNCTIONAL_ADDRESS_AP     DB  4 DUP(?)   ; Station's Functional addr           
  278.  NUM_RCV_BUFFERS_AP        DW    ?        ; Number of receive buffers           
  279.  RCV_BUFFER_LEN_AP         DW    ?        ; Length of receive buffers           
  280.  DHB_BUFFER_LEN_AP         DW    ?        ; Length of DHB buffers               
  281.  DATA_HOLD_BUFFERS_AP      DB    ?        ; Number of DHB buffers               
  282.                            DB  3 DUP(?)   ; RESERVED                            
  283.  PRODUCT_ID_OFFSET_AP      DW    ?        ; Offset to product ID                
  284.  RESERVED_AP               DW    ?        ; Reserved for application            
  285.  BRING_UPS_AP              DW    ?        ; Bring-up errors                     
  286.  INIT_WARNINGS_AP          DW    ?        ; Initialization warnings             
  287.  SEMAPHORE_COUNT_AP        DW    ?        ; Number of semaphores                
  288.  SYS_SEMAPHORE_TABLE_AP    DD    ?        ; Addr to semaphore table             
  289.  DDNAME                    DB  8 DUP(?)   ; Application's device driver         
  290. ;                                                                               
  291. DIR_OPEN_AD_PARMS         ENDS                                                  
  292.                                                                                 
  293.                                                                                 
  294. DIR_OPEN_DLC_PARMS        STRUC                                                 
  295. ;                                                                               
  296.  DLC_MAX_SAP_DP            DB    ?        ; Maximum SAPs                        
  297.  DLC_MAX_STATION_DP        DB    ?        ; Maximum link stations               
  298.  DLC_MAX_GSAP_DP           DB    ?        ; Maximum group SAPs                  
  299.  DLC_MAX_GSAP_MEM_DP       DB    ?        ; Maximum Group SAP members           
  300.  DLC_T1_TICK_ONE_DP        DB    ?        ; T1 timer interval, group1           
  301.  DLC_T2_TICK_ONE_DP        DB    ?        ; T2 timer interval, group1           
  302.  DLC_TI_TICK_ONE_DP        DB    ?        ; TI timer interval, group1           
  303.  DLC_T1_TICK_TWO_DP        DB    ?        ; T1 timer interval, group2           
  304.  DLC_T2_TICK_TWO_DP        DB    ?        ; T2 timer interval, group2           
  305.  DLC_TI_TICK_TWO_DP        DB    ?        ; Ti timer interval, group2           
  306. ;                                                                               
  307. DIR_OPEN_DLC_PARMS        ENDS                                                  
  308.                                                                                 
  309.                                                                                 
  310. DIR_OPEN_DIRECT_PARMS     STRUC                                                 
  311. ;                                                                               
  312.  DIR_BUF_SIZE_ODP          DW    ?        ; Size of buffers in pool             
  313.  DIR_POOL_LENGTH_ODP       DW    ?        ; Length of buffer pool               
  314.  DIR_POOL_ADDRESS_ODP      DD    ?        ; Address of buffer pool              
  315.  OPEN_OPTIONS_ODP          DW    ?        ; Open options                        
  316. ;                                                                               
  317. DIR_OPEN_DIRECT_PARMS     ENDS                                                  
  318.                                                                                 
  319.                                                                                 
  320. DIR_READ_LOG_PARMS        STRUC                                                 
  321. ;                                                                               
  322.  LOG_ID_RLP                DW    ?        ; Identify log to read                
  323.  LOG_BUF_LENGTH_RLP        DW    ?        ; Size of log buffer                  
  324.  LOG_BUF_OFFSET_RLP        DW    ?        ; Offset of log buffer                
  325.  RESERVED_RLP              DW    ?        ; Reserved for application            
  326.  LOG_ACT_LENGTH_RLP        DW    ?        ; Actual length of log                
  327. ;                                                                               
  328. DIR_READ_LOG_PARMS        ENDS                                                  
  329.                                                                                 
  330. DIR_READ_LOG_TOKENRING    STRUC                                                 
  331. ;                                                                               
  332.  LINE_ERRORS_RLT           DB    ?        ; Line error count                    
  333.  INTERNAL_ERRORS_RLT       DB    ?        ; Internal error count                
  334.  BURST_ERRORS_RLT          DB    ?        ; Burst error count                   
  335.  ARI_FCI_DELIMITER_RLT     DB    ?        ; ARI/FCI delimiter                   
  336.  ABORT_DELIMITER_RLT       DB    ?        ; Abort delimiter                     
  337.                            DB    ?        ; RESERVED                            
  338.  LOST_FRAMES_RLT           DB    ?        ; Lost frame count                    
  339.  RECEIVE_CONGESTION_RLT    DB    ?        ; Receive congestion count            
  340.  FRAME_COPIED_ERRORS_RLT   DB    ?        ; Frame copied error count            
  341.  FREQUENCY_ERRORS_RLT      DB    ?        ; Frequency error count               
  342.  TOKEN_ERRORS_RLT          DB    ?        ; Token-Ring error count              
  343.                            DB  3 DUP(?)   ; RESERVED                            
  344. ;                                                                               
  345. DIR_READ_LOG_TOKENRING    ENDS                                                  
  346.                                                                                 
  347.                                                                                 
  348. DIR_READ_LOG_PCNETWORK    STRUC                                                 
  349. ;                                                                               
  350.  CRC_ERRORS_RLP            DB    ?        ; CRC error count                     
  351.                            DB    ?        ; RESERVED                            
  352.  ALIGNMENT_ERRORS_RLP      DB    ?        ; Alignment error count               
  353.                            DB    ?        ; RESERVED                            
  354.  TRANSMIT_ERRORS_RLP       DB    ?        ; Transmit error count                
  355.                            DB    ?        ; RESERVED                            
  356.  COLLISION_ERRORS_RLP      DB    ?        ; Collision error count               
  357.  RCV_CONGESTION_ERRORS     DB    ?        ; Receive congestion count            
  358.                            DB  6 DUP(?)   ; RESERVED                            
  359. ;                                                                               
  360. DIR_READ_LOG_PCNETWORK    ENDS                                                  
  361.                                                                                 
  362.                                                                                 
  363. DIR_SET_EXCEPTION_PARMS   STRUC                                                 
  364. ;                                                                               
  365.  ADAPTER_CHECK_FLAG        DD    ?        ; Adapter check flag                  
  366.  RING_NETWORK_STATUS_FLAG  DD    ?        ; Ring/Network status flag            
  367.  PC_ERROR_FLAG             DD    ?        ; PC-detected error flag              
  368.  SYSTEM_ACTION_FLAG        DD    ?        ; System action flag                  
  369. ;                                                                               
  370. DIR_SET_EXCEPTION_PARMS   ENDS                                                  
  371.                                                                                 
  372.                                                                                 
  373. ;--------------------------------------------------------------------           
  374. ;*  THE FIELDS USED FOR THE EXCEPTION FLAGS                         *           
  375. ;*   -ADAPTER_CHECK_FLAG          -PC_ERROR_FLAG                    *           
  376. ;*   -RING_NETWORK_STATUS_FLAG    -SYSTEM_ACTION_FLAG               *           
  377. ;*  ARE USED FOR TWO REASONS.  BELOW ARE OTHER NAMES                *           
  378. ;*  THAT CAN BE USED TO ACCESS THE FIELDS FOR THE                   *           
  379. ;*  DIR.SET.EXCEPTION_FLAGS command.                                *           
  380. ;--------------------------------------------------------------------           
  381.  ADAPTER_CHECK_APPNDG      EQU   ADAPTER_CHECK_FLAG                             
  382.  NETWORK_STATUS_APPNDG     EQU   RING_NETWORK_STATUS_FLAG                       
  383.  PC_ERROR_APPNDG           EQU   PC_ERROR_FLAG                                  
  384.  SYSTEM_ACTION_APPNDG      EQU   SYSTEM_ACTION_FLAG                             
  385.                                                                                 
  386.                                                                                 
  387. DIR_STATUS_PARMS          STRUC                                                 
  388. ;                                                                               
  389.  BURNED_IN_ADDR_SP         DB  6 DUP(?)   ; Adapter's burned in addr            
  390.  NODE_ADDRESS_SP           DB  6 DUP(?)   ; Station's Node address              
  391.  GROUP_ADDRESS_SP          DB  4 DUP(?)   ; Station's Group address             
  392.  FUNCTION_ADDRESS_SP       DB  4 DUP(?)   ; Station's Functional addr           
  393.  MAX_SAP_SP                DB    ?        ; Maximum SAPs                        
  394.  OPEN_SAP_SP               DB    ?        ; Number of opened SAPs               
  395.  MAX_STATION_SP            DB    ?        ; Maximum link stations               
  396.  OPEN_STATION_SP           DB    ?        ; Number of opened link stn           
  397.  AVAIL_STATION_SP          DB    ?        ; Available link stations             
  398.  ADAPTER_CONFIG_SP         DB    ?        ; Adapter configuration               
  399.  MICROCODE_LEVEL_SP        DB 10 DUP(?)   ; Microcode level                     
  400.  ADAPTER_PARMS_ADDR_SP     DD    ?        ; Address of adapter parms            
  401.  ADAPTER_MAC_ADDR_SP       DD    ?        ; Address of adapter MAC              
  402.  TICK_COUNTER_ADDR_SP      DD    ?        ; Address of tick counter             
  403.  LAST_RING_STATUS_SP       DW    ?        ; Last Ring/Network status            
  404.  ADAPTER_TYPE_SP           DW    ?        ; Adapter type                        
  405. ;                                                                               
  406. DIR_STATUS_PARMS          ENDS                                                  
  407.                                                                                 
  408.                                                                                 
  409. DIR_STATUS_TOKENRING      STRUC                                                 
  410. ;                                                                               
  411.  PHYS_ADDR_ST              DB  4 DUP(?)   ; Adapter physical address            
  412.  UP_NODE_ADDR_ST           DB  6 DUP(?)   ; Upstream node address               
  413.  UP_PHYS_ADDR_ST           DB  4 DUP(?)   ; Upstream physical address           
  414.  POLL_ADDR_ST              DB  6 DUP(?)   ; Last poll address                   
  415.  AUTH_ENV_ST               DB  2 DUP(?)   ; Authorized environment              
  416.  ACC_PRIORITY_ST           DB  2 DUP(?)   ; Transmit access priority            
  417.  SOURCE_CLASS_ST           DB  2 DUP(?)   ; Source class authorization          
  418.  ATT_CODE_ST               DB  2 DUP(?)   ; Last attention code                 
  419.  SOURCE_ADDR_ST            DB  6 DUP(?)   ; Last source address                 
  420.  BEACON_TYPE_ST            DB  2 DUP(?)   ; Last beacon type                    
  421.  MAJOR_VECTOR_ST           DB  2 DUP(?)   ; Last major vector                   
  422.  RING_STATUS_ST            DB  2 DUP(?)   ; Ring status                         
  423.  SOFT_ERROR_ST             DB  2 DUP(?)   ; Soft error timer value              
  424.  FE_ERROR_ST               DB  2 DUP(?)   ; Front End error count               
  425.  LOCAL_RING_ST             DB  2 DUP(?)   ; Local ring number                   
  426.  MON_ERROR_ST              DB  2 DUP(?)   ; Monitor error code                  
  427.  BEACON_TRANSMIT_ST        DB  2 DUP(?)   ; Beacon transmit type                
  428.  BEACON_RECEIVE_ST         DB  2 DUP(?)   ; Beacon receive type                 
  429.  FRAME_CORREL_ST           DB  2 DUP(?)   ; Frame correlation save              
  430.  BEACON_NAUN_ST            DB  6 DUP(?)   ; Beaconing station NAUN              
  431.                            DB  4 DUP(?)   ; RESERVED                            
  432.  BEACON_PHYS_ST            DB  4 DUP(?)   ; Beaconing stn's phys addr           
  433. ;                                                                               
  434. DIR_STATUS_TOKENRING      ENDS                                                  
  435.                                                                                 
  436.                                                                                 
  437. DIR_STATUS_PCNETWORK      STRUC                                                 
  438. ;                                                                               
  439.                            DB 28 DUP(?)   ; RESERVED                            
  440.  SOURCE_ADDR_SP            DB  6 DUP(?)   ; Last source address                 
  441.                            DB  2 DUP(?)   ; RESERVED                            
  442.  MAJOR_VECTOR_SP           DB  2 DUP(?)   ; Last major vector                   
  443.  NETWORK_STATUS_SP         DB  2 DUP(?)   ; Network status                      
  444.  REPORT_ERROR_SP           DB  2 DUP(?)   ; Error report timer value            
  445.  REPORT_ERROR_TICK_SP      DB  2 DUP(?)   ; Error timer tick counter            
  446.  LOCAL_BUS_NUMBER_SP       DB  2 DUP(?)   ; Local bus number                    
  447.                            DB  6 DUP(?)   ; RESERVED                            
  448.  FRAME_CORREL_SP           DB  2 DUP(?)   ; Frame correlation save              
  449.                            DB  6 DUP(?)   ; RESERVED                            
  450.  NETWORK_SAMPLES_SP        DW    ?        ; Number of samples                   
  451.  NETWORK_BUSY_SP           DW    ?        ; Number of busy samples              
  452.                            DB  4 DUP(?)   ; RESERVED                            
  453. ;                                                                               
  454. DIR_STATUS_PCNETWORK      ENDS                                                  
  455.                                                                                 
  456.                                                                                 
  457. DLC_CONNECT_STATION_PARMS STRUC                                                 
  458. ;                                                                               
  459.  STATION_ID_CSP            DW    ?        ; Station ID                          
  460.                            DB  2 DUP(?)   ; RESERVED                            
  461.  ROUTING_OFFSET_CSP        DW    ?        ; Offset to routing info              
  462.  RESERVED_CSP              DW    ?        ; Reserved for application            
  463. ;                                                                               
  464. DLC_CONNECT_STATION_PARMS ENDS                                                  
  465.                                                                                 
  466.                                                                                 
  467. DLC_MODIFY_PARMS          STRUC                                                 
  468. ;                                                                               
  469.                            DB  2 DUP(?)   ; RESERVED                            
  470.  STATION_ID_MP             DW    ?        ; SAP or Link Station ID              
  471.  TIMER_T1_MP               DB    ?        ; T1 timer value                      
  472.  TIMER_T2_MP               DB    ?        ; T2 timer value                      
  473.  TIMER_TI_MP               DB    ?        ; Ti timer value                      
  474.  MAXOUT_MP                 DB    ?        ; Max transmits without ACK           
  475.  MAXIN_MP                  DB    ?        ; Max receives without ACK            
  476.  MAXOUT_INCR_MP            DB    ?        ; Dynamic window increment            
  477.  MAX_RETRY_COUNT_MP        DB    ?        ; Maximum retry count                 
  478.                            DB  3 DUP(?)   ; RESERVED                            
  479.  ACCESS_PRIORITY_MP        DB    ?        ; Ring access priority                
  480.                            DB  4 DUP(?)   ; RESERVED                            
  481.  GROUP_COUNT_MP            DB    ?        ; Length of group list data           
  482.  GROUP_LIST_OFFSET_MP      DW    ?        ; Offset to group list                
  483.  RESERVED_MP               DW    ?        ; Reserved for application            
  484. ;                                                                               
  485. DLC_MODIFY_PARMS          ENDS                                                  
  486.                                                                                 
  487.                                                                                 
  488. DLC_OPEN_SAP_PARMS        STRUC                                                 
  489. ;                                                                               
  490.  SAP_STATION_ID            DW    ?        ; SAP station ID                      
  491.  USER_STAT_VALUE           DW    ?        ; User value for DLC Status           
  492.  TIMER_T1                  DB    ?        ; Ti timer value                      
  493.  TIMER_T2                  DB    ?        ; T2 timer value                      
  494.  TIMER_TI                  DB    ?        ; Ti timer value                      
  495.  MAXOUT                    DB    ?        ; Max transmits without ACK           
  496.  MAXIN                     DB    ?        ; Max receives without ACK            
  497.  MAXOUT_INCR               DB    ?        ; Dynamic window increment            
  498.  MAX_RETRY_COUNT           DB    ?        ; Maximum retry count                 
  499.  MAX_MEMBERS               DB    ?        ; Max SAPs for group list             
  500.  MAX_I_FIELD               DW    ?        ; Max rcv data for I frames           
  501.  SAP_VALUE                 DB    ?        ; SAP value to be assigned            
  502.  OPTIONS_PRIORITY          DB    ?        ; SAP options/ring priority           
  503.  SAP_STATION_COUNT         DB    ?        ; Requested number of stns            
  504.                            DB  2 DUP(?)   ; RESERVED                            
  505.  GROUP_COUNT               DB    ?        ; Length of group list data           
  506.  GROUP_LIST_OFFSET         DW    ?        ; Offset of group list                
  507.  RESERVED_OSAPP            DW    ?        ; Reserved for application            
  508.  DLC_STATUS_FLAG           DD    ?        ; DLC status user flag                
  509.  DLC_BUF_SIZE              DW    ?        ; Size of buffers in pool             
  510.  DLC_POOL_LEN              DW    ?        ; Length of buffer pool               
  511.  DLC_POOL_ADDRESS          DD    ?        ; Address of buffer pool              
  512.  ADAPTER_AVAILABLE_STNS    DB    ?        ; Number of stns available            
  513. ;                                                                               
  514. DLC_OPEN_SAP_PARMS        ENDS                                                  
  515.                                                                                 
  516.                                                                                 
  517. ;--------------------------------------------------------------------           
  518. ;*  THE FIELD LOCATED AT DLC_STATUS_FLAG IS USED FOR TWO REASONS.   *           
  519. ;*  BELOW IS ANOTHER NAME THAT CAN BE USED TO ACCESS THE FIELD      *           
  520. ;*  FOR THE DLC_OPEN_SAP COMMAND.                                   *           
  521. ;--------------------------------------------------------------------           
  522.  DLC_STATUS_APPNDG         EQU   DLC_STATUS_FLAG                                
  523.                                                                                 
  524.                                                                                 
  525. DLC_OPEN_STATION_PARMS    STRUC                                                 
  526. ;                                                                               
  527.  STATION_ID_OSP            DW    ?        ; SAP station ID                      
  528.  LINK_STATION_ID_OSP       DW    ?        ; Link station ID assigned            
  529.  TIMER_T1_OSP              DB    ?        ; Ti timer value                      
  530.  TIMER_T2_OSP              DB    ?        ; T2 timer value                      
  531.  TIMER_TI_OSP              DB    ?        ; Ti timer value                      
  532.  MAXOUT_OSP                DB    ?        ; Max transmits without ACK           
  533.  MAXIN_OSP                 DB    ?        ; Max receives without ACK            
  534.  MAXOUT_INCR_OSP           DB    ?        ; Dynamic window increment            
  535.  MAX_RETRY_CNT_OSP         DB    ?        ; Maximum retry count                 
  536.  RSAP_VALUE_OSP            DB    ?        ; Remote SAP value                    
  537.  MAX_I_FIELD_OSP           DW    ?        ; Max rcv data for I frames           
  538.  ACCESS_PRIORITY_OSP       DB    ?        ; Ring access priority                
  539.                            DB    ?        ; RESERVED                            
  540.  DESTINATION_OFFSET_OSP    DW    ?        ; Offset to remote dest add           
  541.  RESERVED_OSP              DW    ?        ; Reserved for application            
  542. DLC_OPEN_STATION_PARMS    ENDS                                                  
  543.                                                                                 
  544.                                                                                 
  545. DLC_REALLOCATE_STNS_PARMS STRUC                                                 
  546. ;                                                                               
  547.  STATION_ID_R              DW    ?        ; SAP station ID                      
  548.  OPTION_BYTE_R             DB    ?        ; Increase/decrease flag              
  549.  STATION_COUNT_R           DB    ?        ; Number of link stations             
  550.  ADAPTER_AVAILABLE_STNS_R  DB    ?        ; Adapter: available stns             
  551.  SAP_AVAILABLE_STNS_R      DB    ?        ; SAP: available stns                 
  552.  ADAPTER_STATION_COUNT_R   DB    ?        ; Adapter: configured stns            
  553.  SAP_STATION_COUNT_R       DB    ?        ; SAP: configured stns                
  554. ;                                                                               
  555. DLC_REALLOCATE_STNS_PARMS ENDS                                                  
  556.                                                                                 
  557.                                                                                 
  558. DLC_SET_THRESHOLD_PARMS   STRUC                                                 
  559. ;                                                                               
  560.  STATION_ID_ST             DW    ?        ; SAP station ID                      
  561.  BUFFER_THRESHOLD_ST       DW    ?        ; Buffer threshold number             
  562.  ALERT_SEMAPHORE_ST        DD    ?        ; System semaphore handle             
  563. ;                                                                               
  564. DLC_SET_THRESHOLD_PARMS   ENDS                                                  
  565.                                                                                 
  566.                                                                                 
  567. DLC_STATISTICS_PARMS      STRUC                                                 
  568. ;                                                                               
  569.  STATION_ID_STATP          DW    ?        ; Identify log to read                
  570.  LOG_BUF_LENGTH_STATP      DW    ?        ; Size of log buffer                  
  571.  LOG_BUF_OFFSET_STATP      DW    ?        ; Offset to log buffer                
  572.  RESERVED_STATP            DW    ?        ; Reserved for application            
  573.  LOG_ACT_LENGTH_STATP      DW    ?        ; Actual length of log                
  574.  OPTIONS_STATP             DB    ?        ; Command options                     
  575. ;                                                                               
  576. DLC_STATISTICS_PARMS      ENDS                                                  
  577.                                                                                 
  578.                                                                                 
  579. SAP_STATION_LOG           STRUC                                                 
  580. ;                                                                               
  581.  FRAMES_TRANSMITTED_SSL    DD    ?        ; Frames transmitted count            
  582.  FRAMES_RECEIVED_SSL       DD    ?        ; Frames received count               
  583.  FRAMES_DISCARDED_SSL      DD    ?        ; Frames discarded count              
  584.  LOST_DATA_SSL             DD    ?        ; Lost data count                     
  585.  AVAILABLE_BUFFERS_SSL     DW    ?        ; Number of buffers left              
  586. ;                                                                               
  587. SAP_STATION_LOG           ENDS                                                  
  588.                                                                                 
  589.                                                                                 
  590. LINK_STATION_LOG          STRUC                                                 
  591. ;                                                                               
  592.  IFRAMES_TRANSMITTED       DW    ?        ; Iframes transmit count              
  593.  IFRAMES_RECEIVED          DW    ?        ; Iframes received count              
  594.  IFRAMES_RECEIVE_ERRORS    DB    ?        ; Iframes received error              
  595.  IFRAMES_TRANSMIT_ERRORS   DB    ?        ; Iframes transmit errors             
  596.  TI_EXPIRED_COUNT          DW    ?        ; Ti expiration counts                
  597.  LAST_CMND_RESP_RCVED      DB    ?        ; Last command received               
  598.  LAST_CMND_RESP_SENT       DB    ?        ; Last command sent                   
  599.  LINK_PRIMARY_STATE        DB    ?        ; Link primary state                  
  600.  LINK_SECONDARY_STATE      DB    ?        ; Link secondary state                
  601.  SEND_STATE_VARIABLE       DB    ?        ; Send state variable                 
  602.  RECEIVE_STATE_VARIABLE    DB    ?        ; Receive state variable              
  603.  LAST_RECEIVED_NR          DB    ?        ; Last Received NR value              
  604.  LAN_HEADER_LENGTH         DB    ?        ; Length of LAN header                
  605. ;                                                                               
  606. LINK_STATION_LOG          ENDS                                                  
  607.                                                                                 
  608.                                                                                 
  609. DLC_HEADER_IFRAME         STRUC                                                 
  610. ;                                                                               
  611.  DSAP                      DB    ?        ; Destination SAP                     
  612.  SSAP                      DB    ?        ; Source SAP                          
  613.  CONTROL                   DB  2 DUP(?)   ; Control information                 
  614. ;                                                                               
  615. DLC_HEADER_IFRAME         ENDS                                                  
  616.                                                                                 
  617.                                                                                 
  618. DLC_HEADER_NON_IFRAME     STRUC                                                 
  619. ;                                                                               
  620.  DSAP_NI                   DB    ?        ; Destination SAP                     
  621.  SSAP_NI                   DB    ?        ; Source SAP                          
  622.  CONTROL_NI                DB  1 DUP(?)   ; Control information                 
  623. ;                                                                               
  624. DLC_HEADER_NON_IFRAME     ENDS                                                  
  625.                                                                                 
  626.                                                                                 
  627. LAN_HEADER_STR            STRUC                                                 
  628. ;                                                                               
  629.  PCF0                      DB    ?        ; Physical control field 0            
  630.  PCF1                      DB    ?        ; Physical control field 1            
  631.  DEST_ADDR                 DB  6 DUP(?)   ; Destination address                 
  632.  SOURCE_ADDR               DB  6 DUP(?)   ; Source address                      
  633.  ROUTING_INFO_HEADER       DB  2 DUP(?)   ; Routing information hdr             
  634. ;                                                                               
  635. LAN_HEADER_STR            ENDS                                                  
  636.                                                                                 
  637.                                                                                 
  638. LAN_ENVELOPE_START        STRUC                                                 
  639. ;                                                                               
  640.  S_DEL_EST                 DB    ?        ; Starting delimiter                  
  641.  PCF0_EST                  DB    ?        ; Physical control field 0            
  642.  PCF1_EST                  DB    ?        ; Physical control field 1            
  643.  DEST_ADDR_EST             DB  6 DUP(?)   ; Destination address                 
  644.  SOURCE_ADDR_EST           DB  6 DUP(?)   ; Source address                      
  645.  ROUTING_INFO_HEADER_EST   DB  2 DUP(?)   ; Routing information hdr             
  646. ;                                                                               
  647. LAN_ENVELOPE_START        ENDS                                                  
  648.                                                                                 
  649.                                                                                 
  650. LAN_ENVELOPE_END          STRUC                                                 
  651. ;                                                                               
  652.  FCS                       DB  4 DUP(?)   ; Frame Check Sequence                
  653.  E_DEL                     DB    ?        ; End delimiter                       
  654.  PCF_E                     DB    ?        ; PCF extension                       
  655. ;                                                                               
  656. LAN_ENVELOPE_END          ENDS                                                  
  657.                                                                                 
  658.