home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD2.1 / includes / exec / alerts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-11  |  9.2 KB  |  263 lines

  1. #ifndef EXEC_ALERTS_H
  2. #define EXEC_ALERTS_H
  3. /*
  4. **    $VER: alerts.h 36.18 (12.01.91)
  5. **    Includes Release 38.56
  6. **
  7. **    Alert numbers, as displayed by system crashes.
  8. **
  9. **    (C) Copyright 1985-1992 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. /*********************************************************************
  14. *
  15. *  Format of the alert error number:
  16. *
  17. *    +-+-------------+----------------+--------------------------------+
  18. *    |D|  SubSysId   |    General Error |    SubSystem Specific Error    |
  19. *    +-+-------------+----------------+--------------------------------+
  20. *     1    7 bits       8 bits           16 bits
  21. *
  22. *             D:  DeadEnd alert
  23. *          SubSysId:  indicates ROM subsystem number.
  24. *     General Error:  roughly indicates what the error was
  25. *    Specific Error:  indicates more detail
  26. **********************************************************************/
  27.  
  28. /*********************************************************************
  29. *
  30. *  General Alerts
  31. *
  32. *  For example: timer.device cannot open math.library would be 0x05038015
  33. *
  34. *    Alert(AN_TimerDev|AG_OpenLib|AO_MathLib);
  35. *
  36. *********************************************************************/
  37.  
  38. /*------ alert types */
  39. #define AT_DeadEnd    0x80000000
  40. #define AT_Recovery    0x00000000
  41.  
  42.  
  43. /*------ general purpose alert codes */
  44. #define AG_NoMemory    0x00010000
  45. #define AG_MakeLib    0x00020000
  46. #define AG_OpenLib    0x00030000
  47. #define AG_OpenDev    0x00040000
  48. #define AG_OpenRes    0x00050000
  49. #define AG_IOError    0x00060000
  50. #define AG_NoSignal    0x00070000
  51. #define AG_BadParm    0x00080000
  52. #define AG_CloseLib    0x00090000    /* usually too many closes */
  53. #define AG_CloseDev    0x000A0000    /* or a mismatched close */
  54. #define AG_ProcCreate    0x000B0000    /* Process creation failed */
  55.  
  56.  
  57. /*------ alert objects: */
  58. #define AO_ExecLib    0x00008001
  59. #define AO_GraphicsLib    0x00008002
  60. #define AO_LayersLib    0x00008003
  61. #define AO_Intuition    0x00008004
  62. #define AO_MathLib    0x00008005
  63. #define AO_DOSLib    0x00008007
  64. #define AO_RAMLib    0x00008008
  65. #define AO_IconLib    0x00008009
  66. #define AO_ExpansionLib 0x0000800A
  67. #define AO_DiskfontLib    0x0000800B
  68. #define AO_UtilityLib    0x0000800C
  69.  
  70. #define AO_AudioDev    0x00008010
  71. #define AO_ConsoleDev    0x00008011
  72. #define AO_GamePortDev    0x00008012
  73. #define AO_KeyboardDev    0x00008013
  74. #define AO_TrackDiskDev 0x00008014
  75. #define AO_TimerDev    0x00008015
  76.  
  77. #define AO_CIARsrc    0x00008020
  78. #define AO_DiskRsrc    0x00008021
  79. #define AO_MiscRsrc    0x00008022
  80.  
  81. #define AO_BootStrap    0x00008030
  82. #define AO_Workbench    0x00008031
  83. #define AO_DiskCopy    0x00008032
  84. #define AO_GadTools    0x00008033
  85. #define AO_Unknown    0x00008035
  86.  
  87.  
  88.  
  89. /*********************************************************************
  90. *
  91. *   Specific Alerts:
  92. *
  93. *********************************************************************/
  94.  
  95. /*------ exec.library */
  96. #define AN_ExecLib    0x01000000
  97. #define AN_ExcptVect    0x01000001 /* 68000 exception vector checksum (obs.) */
  98. #define AN_BaseChkSum    0x01000002 /* Execbase checksum (obs.) */
  99. #define AN_LibChkSum    0x01000003 /* Library checksum failure */
  100.  
  101. #define AN_MemCorrupt    0x81000005 /* Corrupt memory list detected in FreeMem */
  102. #define AN_IntrMem    0x81000006 /* No memory for interrupt servers */
  103. #define AN_InitAPtr    0x01000007 /* InitStruct() of an APTR source (obs.) */
  104. #define AN_SemCorrupt    0x01000008 /* A semaphore is in an illegal state
  105.                       at ReleaseSempahore() */
  106. #define AN_FreeTwice    0x01000009 /* Freeing memory already freed */
  107. #define AN_BogusExcpt    0x8100000A /* illegal 68k exception taken (obs.) */
  108. #define AN_IOUsedTwice    0x0100000B /* Attempt to reuse active IORequest */
  109. #define AN_MemoryInsane 0x0100000C /* Sanity check on memory list failed
  110.                       during AvailMem(MEMF_LARGEST) */
  111. #define AN_IOAfterClose 0x0100000D /* IO attempted on closed IORequest */
  112. #define AN_StackProbe    0x0100000E /* Stack appears to extend out of range */
  113. #define AN_BadFreeAddr    0x0100000F /* Memory header not located. [ Usually an
  114.                       invalid address passed to FreeMem() ] */
  115.  
  116. /*------ graphics.library */
  117. #define AN_GraphicsLib    0x02000000
  118. #define AN_GfxNoMem    0x82010000    /* graphics out of memory */
  119. #define AN_GfxNoMemMspc 0x82010001    /* MonitorSpec alloc, no memory */
  120. #define AN_LongFrame    0x82010006    /* long frame, no memory */
  121. #define AN_ShortFrame    0x82010007    /* short frame, no memory */
  122. #define AN_TextTmpRas    0x02010009    /* text, no memory for TmpRas */
  123. #define AN_BltBitMap    0x8201000A    /* BltBitMap, no memory */
  124. #define AN_RegionMemory 0x8201000B    /* regions, memory not available */
  125. #define AN_MakeVPort    0x82010030    /* MakeVPort, no memory */
  126. #define AN_GfxNewError    0x0200000C
  127. #define AN_GfxFreeError 0x0200000D
  128.  
  129. #define AN_GfxNoLCM    0x82011234    /* emergency memory not available */
  130.  
  131. #define AN_ObsoleteFont 0x02000401    /* unsupported font description used */
  132.  
  133. /*------ layers.library */
  134. #define AN_LayersLib    0x03000000
  135. #define AN_LayersNoMem    0x83010000    /* layers out of memory */
  136.  
  137. /*------ intuition.library */
  138. #define AN_Intuition    0x04000000
  139. #define AN_GadgetType    0x84000001    /* unknown gadget type */
  140. #define AN_BadGadget    0x04000001    /* Recovery form of AN_GadgetType */
  141. #define AN_CreatePort    0x84010002    /* create port, no memory */
  142. #define AN_ItemAlloc    0x04010003    /* item plane alloc, no memory */
  143. #define AN_SubAlloc    0x04010004    /* sub alloc, no memory */
  144. #define AN_PlaneAlloc    0x84010005    /* plane alloc, no memory */
  145. #define AN_ItemBoxTop    0x84000006    /* item box top < RelZero */
  146. #define AN_OpenScreen    0x84010007    /* open screen, no memory */
  147. #define AN_OpenScrnRast 0x84010008    /* open screen, raster alloc, no memory */
  148. #define AN_SysScrnType    0x84000009    /* open sys screen, unknown type */
  149. #define AN_AddSWGadget    0x8401000A    /* add SW gadgets, no memory */
  150. #define AN_OpenWindow    0x8401000B    /* open window, no memory */
  151. #define AN_BadState    0x8400000C    /* Bad State Return entering Intuition */
  152. #define AN_BadMessage    0x8400000D    /* Bad Message received by IDCMP */
  153. #define AN_WeirdEcho    0x8400000E    /* Weird echo causing incomprehension */
  154. #define AN_NoConsole    0x8400000F    /* couldn't open the Console Device */
  155.  
  156. /*------ math.library */
  157. #define AN_MathLib    0x05000000
  158.  
  159. /*------ dos.library */
  160. #define AN_DOSLib    0x07000000
  161. #define AN_StartMem    0x07010001 /* no memory at startup */
  162. #define AN_EndTask    0x07000002 /* EndTask didn't */
  163. #define AN_QPktFail    0x07000003 /* Qpkt failure */
  164. #define AN_AsyncPkt    0x07000004 /* Unexpected packet received */
  165. #define AN_FreeVec    0x07000005 /* Freevec failed */
  166. #define AN_DiskBlkSeq    0x07000006 /* Disk block sequence error */
  167. #define AN_BitMap    0x07000007 /* Bitmap corrupt */
  168. #define AN_KeyFree    0x07000008 /* Key already free */
  169. #define AN_BadChkSum    0x07000009 /* Invalid checksum */
  170. #define AN_DiskError    0x0700000A /* Disk Error */
  171. #define AN_KeyRange    0x0700000B /* Key out of range */
  172. #define AN_BadOverlay    0x0700000C /* Bad overlay */
  173. #define AN_BadInitFunc    0x0700000D /* Invalid init packet for cli/shell */
  174. #define AN_FileReclosed 0x0700000E /* A filehandle was closed more than once */
  175.  
  176. /*------ ramlib.library */
  177. #define AN_RAMLib    0x08000000
  178. #define AN_BadSegList    0x08000001    /* no overlays in library seglists */
  179.  
  180. /*------ icon.library */
  181. #define AN_IconLib    0x09000000
  182.  
  183. /*------ expansion.library */
  184. #define AN_ExpansionLib 0x0A000000
  185. #define AN_BadExpansionFree    0x0A000001 /* freeed free region */
  186.  
  187. /*------ diskfont.library */
  188. #define AN_DiskfontLib    0x0B000000
  189.  
  190. /*------ audio.device */
  191. #define AN_AudioDev    0x10000000
  192.  
  193. /*------ console.device */
  194. #define AN_ConsoleDev    0x11000000
  195. #define AN_NoWindow    0x11000001    /* Console can't open initial window */
  196.  
  197. /*------ gameport.device */
  198. #define AN_GamePortDev    0x12000000
  199.  
  200. /*------ keyboard.device */
  201. #define AN_KeyboardDev    0x13000000
  202.  
  203. /*------ trackdisk.device */
  204. #define AN_TrackDiskDev 0x14000000
  205. #define AN_TDCalibSeek    0x14000001    /* calibrate: seek error */
  206. #define AN_TDDelay    0x14000002    /* delay: error on timer wait */
  207.  
  208. /*------ timer.device */
  209. #define AN_TimerDev    0x15000000
  210. #define AN_TMBadReq    0x15000001 /* bad request */
  211. #define AN_TMBadSupply    0x15000002 /* power supply -- no 50/60Hz ticks */
  212.  
  213. /*------ cia.resource */
  214. #define AN_CIARsrc    0x20000000
  215.  
  216. /*------ disk.resource */
  217. #define AN_DiskRsrc    0x21000000
  218. #define AN_DRHasDisk    0x21000001    /* get unit: already has disk */
  219. #define AN_DRIntNoAct    0x21000002    /* interrupt: no active unit */
  220.  
  221. /*------ misc.resource */
  222. #define AN_MiscRsrc    0x22000000
  223.  
  224. /*------ bootstrap */
  225. #define AN_BootStrap    0x30000000
  226. #define AN_BootError    0x30000001    /* boot code returned an error */
  227.  
  228. /*------ Workbench */
  229. #define AN_Workbench            0x31000000
  230. #define AN_NoFonts            0xB1000001
  231. #define AN_WBBadStartupMsg1        0x31000001
  232. #define AN_WBBadStartupMsg2        0x31000002
  233. #define AN_WBBadIOMsg            0x31000003
  234.  
  235. #define AN_WBInitPotionAllocDrawer    0xB1010004
  236. #define AN_WBCreateWBMenusCreateMenus1    0xB1010005
  237. #define AN_WBCreateWBMenusCreateMenus2    0xB1010006
  238. #define AN_WBLayoutWBMenusLayoutMenus    0xB1010007
  239. #define AN_WBAddToolMenuItem        0xB1010008
  240. #define AN_WBReLayoutToolMenu        0xB1010009
  241. #define AN_WBinitTimer            0xB101000A
  242. #define AN_WBInitLayerDemon        0xB101000B
  243. #define AN_WBinitWbGels            0xB101000C
  244. #define AN_WBInitScreenAndWindows1    0xB101000D
  245. #define AN_WBInitScreenAndWindows2    0xB101000E
  246. #define AN_WBInitScreenAndWindows3    0xB101000F
  247. #define AN_WBMAlloc            0xB1010010
  248.  
  249. /*------ DiskCopy */
  250. #define AN_DiskCopy    0x32000000
  251.  
  252. /*------ toolkit for Intuition */
  253. #define AN_GadTools    0x33000000
  254.  
  255. /*------ System utility library */
  256. #define AN_UtilityLib    0x34000000
  257.  
  258. /*------ For use by any application that needs it */
  259. #define AN_Unknown    0x35000000
  260.  
  261.  
  262. #endif /* EXEC_ALERTS_H */
  263.