home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / INC / GAS.INC < prev    next >
Text File  |  1995-08-24  |  11KB  |  268 lines

  1. ;       SCCSID = @(#)gas.inc    6.1 91/12/19
  2. ;**************************************************************************
  3. ;
  4. ;
  5. ;                   Copyright  IBM Corp 1992.
  6. ;***************************************************************************
  7. ;***    GAS.INC
  8. ;
  9. ;       DESCRIPTION
  10. ;
  11. ;
  12. ;
  13.  
  14. ;
  15. ;
  16. ;   logging facility devhlp call equate
  17. ;
  18. LOGERROR             EQU    0001H    ; Log data in 16 bit format(LOGHEAD)
  19. LOGERROR32           EQU    0090H    ; Log data in 32 bit format(LOGHEAD32)
  20.  
  21. ;
  22. ;   packet ids
  23. ;
  24. STDERROR             EQU    0001H    ; Packet id - OS/2 Standard Error
  25. SNAGENALERT          EQU    0002H    ; Packet id - SNA Generic Alert Subvector
  26.  
  27. ;
  28. ;   Status Field Definitions
  29. ;
  30. PROCLOGNOTIFY        EQU    00000001h ; Room for Proc Name, Log and Alert
  31.  
  32. ;
  33. ;   logging facility structure for 16 bit log packets
  34. ;
  35.  
  36. LOGHEAD STRUC
  37.         dw      1                    ; Number of log packets
  38.         dw      ?                    ; Length of log packet
  39.         dw      ?                    ; Packet id -  sna gen alert
  40.         db      'OS/2    '           ; Originator name
  41.         db      'GA  '               ; Ascii selector
  42.         dd      0                    ; Reserved
  43.         dd      PROCLOGNOTIFY        ; Status (Process Name, Log, Notify)
  44.         dd      0                    ; Time field
  45.         dd      0                    ; Date field
  46.         db      260 dup(0)           ; Process Name Field
  47. LOGHEAD ENDS
  48.  
  49. ;
  50. ;   logging facility structure for 32 bit log packets(CP20 DCR 1152)
  51. ;
  52.  
  53. LOGHEAD32 STRUC
  54.         dw      1                    ; Packet version number(1 is for 32 bit)
  55.         dw      1                    ; Number of log packets
  56.         dw      ?                    ; Length of log packet
  57.         dw      ?                    ; Packet id -  sna gen alert
  58.         dd      0                    ; Status (No Process Name)
  59.         db      'GA  '               ; Qualifier name
  60.         dd      0                    ; Reserved
  61.         dd      0                    ; Time field
  62.         dd      0                    ; Date field
  63.         db      'OS/2    '           ; Originator name
  64.         db      12 dup(0)            ; Formatting DLL name(none)
  65. LOGHEAD32 ENDS
  66.  
  67. ;
  68. ;   generic alert subvectors
  69. ;
  70. ;
  71.  
  72. ;   vector/subvector keys
  73. ;
  74. GAS_GEN_ALERT         EQU   92H      ; Generic Alert
  75. GAS_PROB_CAUSE        EQU   93H      ; Probable Causes
  76. GAS_USER_CAUSE        EQU   94H      ; User Caused
  77. GAS_INST_CAUSE        EQU   95H      ; Install Caused
  78. GAS_FAIL_CAUSE        EQU   96H      ; Failure Caused
  79. ;
  80. ;   alert types
  81. ;
  82. GAS_PERM_LOSS         EQU   01H      ; Permanent loss of availability
  83. GAS_TEMP_LOSS         EQU   02H      ; Temporary loss of avaibability
  84. GAS_PERF_LOSS         EQU   03H      ; Performance < acceptable level
  85. GAS_IMPENDING         EQU   11H      ; Impending problem
  86. GAS_UNKNOWN           EQU   12H      ; Unknown severity
  87. ;
  88. ;   alert description codes
  89. ;
  90. GAS_ADC_DEVOUTERROR   EQU   0012H    ; JT output device error
  91. GAS_ADC_PRINTER       EQU   0112H    ; Output device error (printer)
  92. GAS_ADC_DSKFAIL       EQU   1113H    ; I/O device error (disk failure)
  93. GAS_ADC_DSKOPER       EQU   1213H    ; I/O device error (operation error)
  94. GAS_ADC_DEVCOMERROR   EQU   0233H    ; JT unable to communicate with device
  95. GAS_ADC_DEVNOTREADY   EQU   1090H    ; JT device not ready
  96. GAS_ADC_PRTNOTREADY   EQU   1190H    ; operatore intervention required (printer)
  97. GAS_ADC_PRTOUTOFPAPER EQU   0292H    ; stock exhausted (printer)
  98. ;
  99. ;   probable causes description codes
  100. ;
  101. GAS_PCD_COMSTARTSTOP  EQU   0120H    ; JT Start/Stop Communications
  102. GAS_PCD_DEVOUTERROR   EQU   0062H    ; JT Output Device
  103. GAS_PCD_PRINTER       EQU   1062H    ; Output device (printer)
  104. GAS_PCD_DASD          EQU   1063H    ; I/O device (dasd device)
  105. ;
  106. ;   user causes subfields
  107. ;
  108. GAS_UC_USER           EQU   01H      ; User causes
  109. GAS_UC_RECACT         EQU   81H      ; Recommended action
  110. ;
  111. ;   user cause codes
  112. ;
  113. GAS_UCC_PRTPOWEROFF   EQU   0E02H    ; Printer powered off
  114. GAS_UCC_OUTOFPAPER    EQU   0353H    ; Printer out of paper
  115. GAS_UCC_PRTNOTREADY   EQU   1360H    ; Printer not ready
  116. ;
  117. ;   failure causes subfields
  118. ;
  119. GAS_FC_FAILURE        EQU   01H      ; Failure causes
  120. GAS_FC_RECACT         EQU   81H      ; Recommended action
  121. ;
  122. ;   failure cause codes
  123. ;
  124. GAS_FCC_DASD          EQU   0150H    ; DASD media
  125. GAS_FCC_DEVOUT        EQU   0062H    ; JT Output Device
  126. GAS_FCC_PRINTER       EQU   1062H    ; printer
  127. GAS_FCC_DISKDRV       EQU   1063H    ; Disk drive
  128. ;
  129. ;   recommended action codes
  130. ;
  131. GAS_RAC_ONLINEPD      EQU   0100H    ; Run online problem determination
  132. GAS_RAC_REF_GUIDE     EQU   0110H    ; Refer to operator's guide
  133. GAS_RAC_READY_DEVICE  EQU   0113H    ; Ready the device then retry
  134. GAS_RAC_ADD_PAPER     EQU   0616H    ; Add paper
  135. GAS_RAC_REVIEW_LOG    EQU   0122H    ; Review remote device logs
  136. GAS_RAC_CNTCT_SERV    EQU   0030H    ; Contact service representative
  137.  
  138.  
  139.  
  140. ;
  141. ;   Description of Product Set ID subvector follows
  142. ;
  143.  
  144. PSID_KEY        EQU     10H             ; Product Set ID Key
  145. SW_PID_KEY      EQU     11H             ; Software Product ID Key
  146. SWCLASS_IBM     EQU     04H             ; IBM Software Classification
  147. COMPID_KEY      EQU     02H             ; Component ID Subfield Key
  148. SW_CN_KEY       EQU     06H             ; Software Common Name key
  149.  
  150. PSID_MAJOR      EQU     0F2H            ; '2' Major version
  151. PSID_MINOR      EQU     0F0H            ; '0' Minor version
  152. PSID_RELEASE    EQU     0F0H            ; '0' Version release
  153.  
  154. ; --------------------------------------------------------------------
  155. ;
  156. ;   Product Set ID subvector
  157. ;
  158. ; --------------------------------------------------------------------
  159.  
  160. PSIDS           STRUC
  161. PSIDS_LEN       DB      52              ; Product Set ID length
  162. PSIDS_KEY       DB      PSID_KEY        ; Product Set ID key
  163. PSIDS_RETIRED   DB      0               ; Retired field
  164. PSIDS_SW_LEN    DB      49              ; Software Subvector length
  165. PSIDS_SW_KEY    DB      SW_PID_KEY      ; Software Subvector key
  166. PSIDS_CLASS     DB      SWCLASS_IBM     ; Software class
  167. PSIDS_COMP_LEN  DB      14              ; Component ID Subfield length
  168. PSIDS_COMP_KEY  DB      COMPID_KEY      ; Component ID Subfield key
  169. PSIDS_COMPID    DB      0F5H            ; '5'   Component ID
  170.                 DB      0F6H            ; '6'
  171.                 DB      0F6H            ; '6'
  172.                 DB      0F9H            ; '9'
  173.                 DB      0F3H            ; '3'
  174.                 DB      0F3H            ; '3'
  175.                 DB      0F6H            ; '6'
  176.                 DB      0F0H            ; '0'
  177.                 DB      0F1H            ; '1'
  178. PSIDS_COMPREL   DB      PSID_MAJOR      ; '2'   Release level, major version
  179.                 DB      PSID_MINOR      ; '0'   minor version
  180.                 DB      PSID_RELEASE    ; '0'   version release
  181. PSIDS_CN_LEN    DB      32              ; Software Common Name length
  182. PSIDS_SWCN_KEY  DB      SW_CN_KEY       ; Software Common Name key
  183. PSIDS_SW_CN     DB      0D6H            ; 'O'
  184.                 DB      0E2H            ; 'S'
  185.                 DB      061H            ; '/'
  186.                 DB      0F2H            ; '2'
  187.                 DB      040H            ; ' '
  188.                 DB      0C2H            ; 'B'
  189.                 DB      0C1H            ; 'A'
  190.                 DB      0E2H            ; 'S'
  191.                 DB      0C5H            ; 'E'
  192.                 DB      040H            ; ' '
  193.                 DB      0D6H            ; 'O'
  194.                 DB      0D7H            ; 'P'
  195.                 DB      0C5H            ; 'E'
  196.                 DB      0D9H            ; 'R'
  197.                 DB      0C1H            ; 'A'
  198.                 DB      0E3H            ; 'T'
  199.                 DB      0C9H            ; 'I'
  200.                 DB      0D5H            ; 'N'
  201.                 DB      0C7H            ; 'G'
  202.                 DB      040H            ; ' '
  203.                 DB      0E2H            ; 'S'
  204.                 DB      0E8H            ; 'Y'
  205.                 DB      0E2H            ; 'S'
  206.                 DB      0E3H            ; 'T'
  207.                 DB      0C5H            ; 'E'
  208.                 DB      0D4H            ; 'M'
  209.                 DB      040H            ; ' '
  210.                 DB      040H            ; ' '
  211.                 DB      040H            ; ' '
  212.                 DB      040H            ; ' '
  213. PSIDS   ENDS
  214.  
  215. ; --------------------------------------------------------------------
  216. ;
  217. ;   generic alert subvector
  218. ;
  219. ; --------------------------------------------------------------------
  220. GAS         STRUC
  221. GAS_LEN     DB      0BH                 ; length of G.A. Subvector
  222. GAS_KEY     DB      GAS_GEN_ALERT       ; Generic Alert
  223. GAS_FLAGS   DW      0                   ; Flags = !initiated, !held, !delayed
  224. GAS_TYPE    DB      ?                   ; Alert type
  225. GAS_DESC    DW      ?                   ; Alert description
  226. GAS_ALERTID DD      ?                   ; Alert ID number
  227. GAS         ENDS
  228. ; --------------------------------------------------------------------
  229. ;
  230. ;   probable cause subvector
  231. ;
  232. ; --------------------------------------------------------------------
  233. GAS_PCS         STRUC
  234. GAS_PCS_LEN     DB      4               ; length of P.C. Subvector
  235. GAS_PCS_KEY     DB      GAS_PROB_CAUSE  ; Probable causes
  236. GAS_PCS_DESC    DW      ?               ; Description code
  237. GAS_PCS         ENDS
  238. ; --------------------------------------------------------------------
  239. ;
  240. ;   user cause subvector
  241. ;
  242. ; --------------------------------------------------------------------
  243. GAS_UCS         STRUC
  244. GAS_UCS_LEN     DB      0AH             ; length of U.C. Subvector
  245. GAS_UCS_KEY     DB      GAS_USER_CAUSE  ; User causes
  246. GAS_UCS_SFLEN1  DB      4               ; length of U.C. Subvector
  247. GAS_UCS_SFKEY1  DB      GAS_UC_USER     ; User causes
  248. GAS_UCS_CAUSECD DW      ?               ; Cause code
  249. GAS_UCS_SFLEN2  DB      4               ; length of R.A. Subvector
  250. GAS_UCS_SFKEY2  DB      GAS_UC_RECACT   ; Recommended actions
  251. GAS_UCS_RECACT  DW      ?               ; Recommended action code
  252. GAS_UCS         ENDS
  253. ; --------------------------------------------------------------------
  254. ;
  255. ;   failure causes subvector
  256. ;
  257. ; --------------------------------------------------------------------
  258. GAS_FCS         STRUC
  259. GAS_FCS_LEN     DB      0AH             ; length of F.C. Subvector
  260. GAS_FCS_KEY     DB      GAS_FAIL_CAUSE  ; Failure causes
  261. GAS_FCS_SFLEN1  DB      4               ; length of F.C. Subvector
  262. GAS_FCS_SFKEY1  DB      GAS_FC_FAILURE  ; Failure causes
  263. GAS_FCS_CAUSECD DW      ?               ; Cause code
  264. GAS_FCS_SFLEN2  DB      4               ; length of R.A. Subvector
  265. GAS_FCS_SFKEY2  DB      GAS_FC_RECACT   ; Recommended actions
  266. GAS_FCS_RECACT  DW      ?               ; Recommended action code
  267. GAS_FCS         ENDS
  268.