home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / lan_2_c.h < prev    next >
Text File  |  1998-10-01  |  11KB  |  206 lines

  1. /*----------------------------------------------------------------*/
  2. /*                   ADAPTER CHECK CODES                          */
  3. /*----------------------------------------------------------------*/
  4.  
  5.      #define   LLC_ADAPTER_INOPERATIVE                      0x8000
  6.      #define   LLC_ILLEGAL_OP_CODE                          0x1000
  7.      #define   LLC_LOCAL_BUS_PARITY_ERROR                   0x0800
  8.      #define   LLC_EXTERNAL_PARITY_ERROR                    0x0400
  9.      #define   LLC_PH_LOCAL_PARITY_ERROR                    0x0100
  10.      #define   LLC_PH_XMIT_PARITY_ERROR                     0x0080
  11.      #define   LLC_PH_RCV_PARITY_ERROR                      0x0040
  12.      #define   LLC_PH_TRANSMIT_UNDERRUN                     0x0020
  13.      #define   LLC_PH_RECEIVE_OVERRUN                       0x0010
  14.      #define   LLC_INVALID_INTERRUPT                        0x0008
  15.  
  16.  
  17.      #define   LLC_INVALID_ERROR_INTERRUPT                  0x0004
  18.      #define   LLC_PC_INOPERATIVE                           0x0003
  19.      #define   LLC_INVALID_SUP_REQUEST                      0x0002
  20.      #define   LLC_PROGRAM_CHECK                            0x0001
  21.  
  22.      #define   LLC_PROGRAM_DETECTED_ERROR                   0x0100
  23.      #define   LLC_SUP_REQUEST_INVALID                      0x0300
  24.      #define   LLC_INVALID_TASK_ID                          0x0400
  25.      #define   LLC_READY_TASK_REQUEST                       0x0500
  26.      #define   LLC_INVALID_ADAPTER_NUMBER                   0x0600
  27.      #define   LLC_INVALID_ES_VALUE                         0x0700
  28.  
  29. /*----------------------------------------------------------------*/
  30. /*                   RING STATUS CODES                            */
  31. /*----------------------------------------------------------------*/
  32.  
  33.      #define   LLC_SIGNAL_LOST                              0x8000
  34.      #define   LLC_HARD_ERROR                               0x4000
  35.      #define   LLC_SOFT_ERROR                               0x2000
  36.      #define   LLC_TRANSMIT_BEACON                          0x1000
  37.      #define   LLC_LOBE_WIRE_FAULT                          0x0800
  38.      #define   LLC_AUTO_REMOVAL_ERROR                       0x0400
  39.      #define   LLC_REMOVE_RECEIVED                          0x0100
  40.      #define   LLC_COUNTER_OVERFLOW                         0x0080
  41.      #define   LLC_SINGLE_STATION                           0x0040
  42.      #define   LLC_RING_RECOVERY                            0x0020
  43.  
  44.      #define   LLC_NO_CARRIER_DETECTED                      0x8000
  45.      #define   LLC_HOT_CARRIER_DETECTED                     0x1000
  46.      #define   LLC_HOT_CARRIER_GENERATED                    0x0400
  47.  
  48. /*----------------------------------------------------------------*/
  49. /*                   BRING-UP CODES                               */
  50. /*----------------------------------------------------------------*/
  51.  
  52.      #define   LLC_TEST_COULD_NOT_RUN                       0x0020
  53.      #define   LLC_ROM_TEST_FAILED                          0x0022
  54.      #define   LLC_SRAM_TEST_FAILED                         0x0024
  55.      #define   LLC_PROC_INST_TEST_FAILED                    0x0026
  56.      #define   LLC_PROC_INTERRUPT_FAILED                    0x0028
  57.      #define   LLC_SRAM_REG_TEST_FAILED                     0x002A
  58.      #define   LLC_PROTOCOL_TEST_FAILED                     0x002C
  59.  
  60.      #define   LLC_PC_TIMER_FAILED                          0x0040
  61.      #define   LLC_SRAM_WRITE_ERROR                         0x0042
  62.      #define   LLC_SRAM_READONLY_ERROR                      0x0044
  63.      #define   LLC_SRAM_WRITEONLY_ERROR                     0x0046
  64.      #define   LLC_INITIALIZATION_TIMEOUT                   0x0048
  65.  
  66. /*----------------------------------------------------------------*/
  67. /*                   OPEN ERROR CODES - TOKEN-RING                */
  68.  
  69.  
  70. /*                   OPEN ERROR PHASES                            */
  71. /*----------------------------------------------------------------*/
  72.  
  73.      #define   LLC_LOBE_MEDIA_TEST                          0x10
  74.      #define   LLC_PHYSICAL_INSERTION                       0x20
  75.      #define   LLC_ADDRESS_VERIFICATION                     0x30
  76.      #define   LLC_ROLL_CALL_POLL                           0x40
  77.      #define   LLC_REQUEST_PARAMETERS                       0x50
  78.  
  79. /*----------------------------------------------------------------*/
  80. /*                   OPEN ERROR CODES - TOKEN-RING                */
  81. /*                   OPEN ERROR CONDITIONS                        */
  82. /*----------------------------------------------------------------*/
  83.  
  84.      #define   LLC_FUNCTION_FAILURE                         0x01
  85.      #define   LLC_SIGNAL_LOSS                              0x02
  86.      #define   LLC_WIRE_FAULT                               0x03
  87.      #define   LLC_FREQUENCY_ERROR                          0x04
  88.      #define   LLC_TIMEOUT                                  0x05
  89.      #define   LLC_RING_FAILURE                             0x06
  90.      #define   LLC_RING_BEACONING                           0x07
  91.      #define   LLC_DUPLICATE_NODE_ADDRESS                   0x08
  92.      #define   LLC_PARAMETER_REQUEST                        0x09
  93.      #define   LLC_RECEIVED_REMOVE                          0x0A
  94.      #define   LLC_IMPL_FORCE_RECEIVED                      0x0B
  95.      #define   LLC_NO_MONITOR_DETECTED                      0x0D
  96.      #define   LLC_MONITOR_CONTENTION_FAILED                0x0E
  97.  
  98. /*----------------------------------------------------------------*/
  99. /*                   OPEN ERROR CODES - PC NETWORK                */
  100. /*----------------------------------------------------------------*/
  101.  
  102.      #define   LLC_NO_CARRIER                               0x0022
  103.      #define   LLC_HOT_CARRIER                              0x0023
  104.      #define   LLC_UNABLE_TO_TRANSMIT                       0x0033
  105.      #define   LLC_DUPLICATE_NODE_ADDR                      0x0038
  106.      #define   LLC_REMOVE_FRAME_RECEIVED                    0x003A
  107.  
  108. /*----------------------------------------------------------------*/
  109. /*                   PC DETECTED ERROR CODE/DATA                  */
  110. /*----------------------------------------------------------------*/
  111.  
  112.      #define   LLC_UNEXPECTED_INTERRUPT                     0x0000
  113.      #define   LLC_ACCESS_VIOLATION                         0x0001
  114.      #define   LLC_ARB_COMMAND_ERROR                        0x01
  115.      #define   LLC_ASB_RETURN_CODE_ERROR                    0x02
  116.      #define   LLC_SRB_SSB_COMMAND_ERROR                    0x03
  117.      #define   LLC_ARB_TRANSMIT_ERROR                       0x04
  118.      #define   LLC_UNACCEPTABLE_OS_VALUE                    0x05
  119.      #define   LLC_INTERNAL_ERROR                           0x06
  120.  
  121.  
  122.  
  123. /*----------------------------------------------------------------*/
  124. /*                   SYSTEM ACTION IDS                            */
  125. /*----------------------------------------------------------------*/
  126.  
  127.      #define   LLC_CLOSED_ADAPTER                           0x01
  128.      #define   LLC_ADAPTER_INITIALIZED                      0x02
  129.      #define   LLC_LOGS_READ                                0x03
  130.      #define   LLC_FUNCTIONAL_ADDR_CHANGE                   0x04
  131.      #define   LLC_GROUP_ADDR_CHANGE                        0x05
  132.      #define   LLC_SAP_RESET                                0x06
  133.      #define   LLC_ALL_SAPS_RESET                           0x07
  134.      #define   LLC_ALL_DIRECT_STATIONS_CLOSED               0x08
  135.  
  136. /*----------------------------------------------------------------*/
  137. /*                   DLC STATUS BITS                              */
  138. /*----------------------------------------------------------------*/
  139.  
  140.      #define   LLC_LINK_LOST                                0x8000
  141.      #define   LLC_DM_DISC_RECEIVED                         0x4000
  142.      #define   LLC_FRMR_RECEIVED                            0x2000
  143.      #define   LLC_FRMR_SENT                                0x1000
  144.      #define   LLC_SABME_FOR_OPENED_STN                     0x0800
  145.      #define   LLC_SABME_RCV_STN_OPENED                     0x0400
  146.      #define   LLC_REMOTE_STN_LOCAL_BUSY                    0x0200
  147.      #define   LLC_REMOTE_STN_READY                         0x0100
  148.      #define   LLC_TI_TIMER_EXPIRED                         0x0080
  149.      #define   LLC_DLC_COUNTER_OVERFLOW                     0x0040
  150.      #define   LLC_ACCESS_PRIORITY_LOWERED                  0x0020
  151.      #define   LLC_LOCAL_STN_LOCAL_BUSY                     0x0001
  152.  
  153. /*----------------------------------------------------------------*/
  154. /*                   READ EVENT BIT CODES                         */
  155. /*----------------------------------------------------------------*/
  156.  
  157.      #define   LLC_SYSTEM_ACTION_OCCURRED                   0x40
  158.      #define   LLC_RING_NETWORK_STATUS                      0x20
  159.      #define   LLC_CRITICAL_EXCEPTION                       0x10
  160.      #define   LLC_DLC_STATUS_CHANGE                        0x08
  161.      #define   LLC_RECEIVE_DATA                             0x04
  162.      #define   LLC_TRANSMIT_COMPLETION                      0x02
  163.      #define   LLC_COMMAND_COMPLETION                       0x01
  164.  
  165. /*----------------------------------------------------------------*/
  166. /*                   LINK PRIMARY STATE                           */
  167. /*----------------------------------------------------------------*/
  168.  
  169.      #define   LLC_PS_LINK_CLOSED                           0x80
  170.      #define   LLC_PS_DISCONNECTED                          0x40
  171.      #define   LLC_PS_DISCONNECTING                         0x20
  172.      #define   LLC_PS_LINK_OPENING                          0x10
  173.      #define   LLC_PS_RESETTING                             0x08
  174.      #define   LLC_PS_FRMR_SENT                             0x04
  175.  
  176.  
  177.      #define   LLC_PS_FRMR_RECEIVED                         0x02
  178.      #define   LLC_PS_LINK_OPENED                           0x01
  179.  
  180. /*----------------------------------------------------------------*/
  181. /*                   LINK SECONDARY STATE                         */
  182. /*----------------------------------------------------------------*/
  183.  
  184.      #define   LLC_SS_CHECK_POINTING                        0x80
  185.      #define   LLC_SS_LOCAL_BUSY_USER_SET                   0x40
  186.      #define   LLC_SS_LOCAL_BUSY_BUFFER_SET                 0x20
  187.      #define   LLC_SS_REMOTE_BUSY                           0x10
  188.      #define   LLC_SS_REJECTION                             0x08
  189.      #define   LLC_SS_CLEARING                              0x04
  190.      #define   LLC_SS_DYNAMIC_WINDOW_ACTIVE                 0x02
  191.  
  192. /*----------------------------------------------------------------*/
  193. /*                   OPEN OPTIONS BIT CODE                        */
  194. /*----------------------------------------------------------------*/
  195.  
  196.      #define   LLC_WRAP_INTERFACE                           0x8000
  197.      #define   LLC_DISABLE_HARD_ERRORS                      0x4000
  198.      #define   LLC_DISABLE_SOFT_ERRORS                      0x2000
  199.      #define   LLC_PASS_ADAPTER_MAC_FRAMES                  0x1000
  200.      #define   LLC_PASS_ATTENTION_FRAMES                    0x0800
  201.      #define   LLC_CONTENDER                                0x0100
  202.      #define   LLC_PASS_BEACON_FRAMES                       0x0080
  203.      #define   LLC_REMOTE_PROGRAM_LOAD                      0x0020
  204.      #define   LLC_TOKEN_RELEASE                            0x0010
  205.  
  206.