home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / exec / alerts.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  11KB  |  281 lines

  1. #ifndef EXEC_ALERTS_H
  2. #define EXEC_ALERTS_H
  3. /*
  4. **    $VER: alerts.h 39.3 (12.5.92)
  5. **    Includes Release 40.15
  6. **
  7. **    Alert numbers, as displayed by system crashes.
  8. **
  9. **    (C) Copyright 1985-1993 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. *  Hardware/CPU specific alerts:  They may show without the 8 at the
  31. *  front of the number.  These are CPU/68000 specific.    See 680x0
  32. *  programmer's manuals for more details.
  33. *
  34. **********************************************************************/
  35. #define    ACPU_BusErr    0x80000002    /* Hardware bus fault/access error */
  36. #define    ACPU_AddressErr    0x80000003    /* Illegal address access (ie: odd) */
  37. #define    ACPU_InstErr    0x80000004    /* Illegal instruction */
  38. #define    ACPU_DivZero    0x80000005    /* Divide by zero */
  39. #define    ACPU_CHK    0x80000006    /* Check instruction error */
  40. #define    ACPU_TRAPV    0x80000007    /* TrapV instruction error */
  41. #define    ACPU_PrivErr    0x80000008    /* Privilege violation error */
  42. #define    ACPU_Trace    0x80000009    /* Trace error */
  43. #define    ACPU_LineA    0x8000000A    /* Line 1010 Emulator error */
  44. #define    ACPU_LineF    0x8000000B    /* Line 1111 Emulator error */
  45. #define    ACPU_Format    0x8000000E    /* Stack frame format error */
  46. #define    ACPU_Spurious    0x80000018    /* Spurious interrupt error */
  47. #define    ACPU_AutoVec1    0x80000019    /* AutoVector Level 1 interrupt error */
  48. #define    ACPU_AutoVec2    0x8000001A    /* AutoVector Level 2 interrupt error */
  49. #define    ACPU_AutoVec3    0x8000001B    /* AutoVector Level 3 interrupt error */
  50. #define    ACPU_AutoVec4    0x8000001C    /* AutoVector Level 4 interrupt error */
  51. #define    ACPU_AutoVec5    0x8000001D    /* AutoVector Level 5 interrupt error */
  52. #define    ACPU_AutoVec6    0x8000001E    /* AutoVector Level 6 interrupt error */
  53. #define    ACPU_AutoVec7    0x8000001F    /* AutoVector Level 7 interrupt error */
  54.  
  55. /*********************************************************************
  56. *
  57. *  General Alerts
  58. *
  59. *  For example: timer.device cannot open math.library would be 0x05038015
  60. *
  61. *    Alert(AN_TimerDev|AG_OpenLib|AO_MathLib);
  62. *
  63. *********************************************************************/
  64.  
  65. /*------ alert types */
  66. #define AT_DeadEnd    0x80000000
  67. #define AT_Recovery    0x00000000
  68.  
  69. /*------ general purpose alert codes */
  70. #define AG_NoMemory    0x00010000
  71. #define AG_MakeLib    0x00020000
  72. #define AG_OpenLib    0x00030000
  73. #define AG_OpenDev    0x00040000
  74. #define AG_OpenRes    0x00050000
  75. #define AG_IOError    0x00060000
  76. #define AG_NoSignal    0x00070000
  77. #define AG_BadParm    0x00080000
  78. #define AG_CloseLib    0x00090000    /* usually too many closes */
  79. #define AG_CloseDev    0x000A0000    /* or a mismatched close */
  80. #define AG_ProcCreate    0x000B0000    /* Process creation failed */
  81.  
  82. /*------ alert objects: */
  83. #define AO_ExecLib    0x00008001
  84. #define AO_GraphicsLib    0x00008002
  85. #define AO_LayersLib    0x00008003
  86. #define AO_Intuition    0x00008004
  87. #define AO_MathLib    0x00008005
  88. #define AO_DOSLib    0x00008007
  89. #define AO_RAMLib    0x00008008
  90. #define AO_IconLib    0x00008009
  91. #define AO_ExpansionLib 0x0000800A
  92. #define AO_DiskfontLib    0x0000800B
  93. #define AO_UtilityLib    0x0000800C
  94. #define    AO_KeyMapLib    0x0000800D
  95.  
  96. #define AO_AudioDev    0x00008010
  97. #define AO_ConsoleDev    0x00008011
  98. #define AO_GamePortDev    0x00008012
  99. #define AO_KeyboardDev    0x00008013
  100. #define AO_TrackDiskDev 0x00008014
  101. #define AO_TimerDev    0x00008015
  102.  
  103. #define AO_CIARsrc    0x00008020
  104. #define AO_DiskRsrc    0x00008021
  105. #define AO_MiscRsrc    0x00008022
  106.  
  107. #define AO_BootStrap    0x00008030
  108. #define AO_Workbench    0x00008031
  109. #define AO_DiskCopy    0x00008032
  110. #define AO_GadTools    0x00008033
  111. #define AO_Unknown    0x00008035
  112.  
  113. /*********************************************************************
  114. *
  115. *   Specific Alerts:
  116. *
  117. *   For example:   exec.library -- corrupted memory list
  118. *
  119. *        ALERT  AN_MemCorrupt    ;8100 0005
  120. *
  121. *********************************************************************/
  122.  
  123. /*------ exec.library */
  124. #define AN_ExecLib    0x01000000
  125. #define AN_ExcptVect    0x01000001 /* 68000 exception vector checksum (obs.) */
  126. #define AN_BaseChkSum    0x01000002 /* Execbase checksum (obs.) */
  127. #define AN_LibChkSum    0x01000003 /* Library checksum failure */
  128.  
  129. #define AN_MemCorrupt    0x81000005 /* Corrupt memory list detected in FreeMem */
  130. #define AN_IntrMem    0x81000006 /* No memory for interrupt servers */
  131. #define AN_InitAPtr    0x01000007 /* InitStruct() of an APTR source (obs.) */
  132. #define AN_SemCorrupt    0x01000008 /* A semaphore is in an illegal state
  133.                       at ReleaseSemaphore() */
  134. #define AN_FreeTwice    0x01000009 /* Freeing memory already freed */
  135. #define AN_BogusExcpt    0x8100000A /* illegal 68k exception taken (obs.) */
  136. #define AN_IOUsedTwice    0x0100000B /* Attempt to reuse active IORequest */
  137. #define AN_MemoryInsane 0x0100000C /* Sanity check on memory list failed
  138.                       during AvailMem(MEMF_LARGEST) */
  139. #define AN_IOAfterClose 0x0100000D /* IO attempted on closed IORequest */
  140. #define AN_StackProbe    0x0100000E /* Stack appears to extend out of range */
  141. #define AN_BadFreeAddr    0x0100000F /* Memory header not located. [ Usually an
  142.                       invalid address passed to FreeMem() ] */
  143. #define    AN_BadSemaphore    0x01000010 /* An attempt was made to use the old
  144.                       message semaphores. */
  145.  
  146. /*------ graphics.library */
  147. #define AN_GraphicsLib    0x02000000
  148. #define AN_GfxNoMem    0x82010000    /* graphics out of memory */
  149. #define AN_GfxNoMemMspc 0x82010001    /* MonitorSpec alloc, no memory */
  150. #define AN_LongFrame    0x82010006    /* long frame, no memory */
  151. #define AN_ShortFrame    0x82010007    /* short frame, no memory */
  152. #define AN_TextTmpRas    0x02010009    /* text, no memory for TmpRas */
  153. #define AN_BltBitMap    0x8201000A    /* BltBitMap, no memory */
  154. #define AN_RegionMemory 0x8201000B    /* regions, memory not available */
  155. #define AN_MakeVPort    0x82010030    /* MakeVPort, no memory */
  156. #define AN_GfxNewError    0x0200000C
  157. #define AN_GfxFreeError 0x0200000D
  158.  
  159. #define AN_GfxNoLCM    0x82011234    /* emergency memory not available */
  160.  
  161. #define AN_ObsoleteFont 0x02000401    /* unsupported font description used */
  162.  
  163. /*------ layers.library */
  164. #define AN_LayersLib    0x03000000
  165. #define AN_LayersNoMem    0x83010000    /* layers out of memory */
  166.  
  167. /*------ intuition.library */
  168. #define AN_Intuition    0x04000000
  169. #define AN_GadgetType    0x84000001    /* unknown gadget type */
  170. #define AN_BadGadget    0x04000001    /* Recovery form of AN_GadgetType */
  171. #define AN_CreatePort    0x84010002    /* create port, no memory */
  172. #define AN_ItemAlloc    0x04010003    /* item plane alloc, no memory */
  173. #define AN_SubAlloc    0x04010004    /* sub alloc, no memory */
  174. #define AN_PlaneAlloc    0x84010005    /* plane alloc, no memory */
  175. #define AN_ItemBoxTop    0x84000006    /* item box top < RelZero */
  176. #define AN_OpenScreen    0x84010007    /* open screen, no memory */
  177. #define AN_OpenScrnRast 0x84010008    /* open screen, raster alloc, no memory */
  178. #define AN_SysScrnType    0x84000009    /* open sys screen, unknown type */
  179. #define AN_AddSWGadget    0x8401000A    /* add SW gadgets, no memory */
  180. #define AN_OpenWindow    0x8401000B    /* open window, no memory */
  181. #define AN_BadState    0x8400000C    /* Bad State Return entering Intuition */
  182. #define AN_BadMessage    0x8400000D    /* Bad Message received by IDCMP */
  183. #define AN_WeirdEcho    0x8400000E    /* Weird echo causing incomprehension */
  184. #define AN_NoConsole    0x8400000F    /* couldn't open the Console Device */
  185. #define    AN_NoISem    0x04000010    /* Intuition skipped obtaining a sem */
  186. #define    AN_ISemOrder    0x04000011    /* Intuition obtained a sem in bad order */
  187.  
  188. /*------ math.library */
  189. #define AN_MathLib    0x05000000
  190.  
  191. /*------ dos.library */
  192. #define AN_DOSLib    0x07000000
  193. #define AN_StartMem    0x07010001 /* no memory at startup */
  194. #define AN_EndTask    0x07000002 /* EndTask didn't */
  195. #define AN_QPktFail    0x07000003 /* Qpkt failure */
  196. #define AN_AsyncPkt    0x07000004 /* Unexpected packet received */
  197. #define AN_FreeVec    0x07000005 /* Freevec failed */
  198. #define AN_DiskBlkSeq    0x07000006 /* Disk block sequence error */
  199. #define AN_BitMap    0x07000007 /* Bitmap corrupt */
  200. #define AN_KeyFree    0x07000008 /* Key already free */
  201. #define AN_BadChkSum    0x07000009 /* Invalid checksum */
  202. #define AN_DiskError    0x0700000A /* Disk Error */
  203. #define AN_KeyRange    0x0700000B /* Key out of range */
  204. #define AN_BadOverlay    0x0700000C /* Bad overlay */
  205. #define AN_BadInitFunc    0x0700000D /* Invalid init packet for cli/shell */
  206. #define AN_FileReclosed 0x0700000E /* A filehandle was closed more than once */
  207.  
  208. /*------ ramlib.library */
  209. #define AN_RAMLib    0x08000000
  210. #define AN_BadSegList    0x08000001    /* no overlays in library seglists */
  211.  
  212. /*------ icon.library */
  213. #define AN_IconLib    0x09000000
  214.  
  215. /*------ expansion.library */
  216. #define AN_ExpansionLib 0x0A000000
  217. #define AN_BadExpansionFree    0x0A000001 /* freeed free region */
  218.  
  219. /*------ diskfont.library */
  220. #define AN_DiskfontLib    0x0B000000
  221.  
  222. /*------ audio.device */
  223. #define AN_AudioDev    0x10000000
  224.  
  225. /*------ console.device */
  226. #define AN_ConsoleDev    0x11000000
  227. #define AN_NoWindow    0x11000001    /* Console can't open initial window */
  228.  
  229. /*------ gameport.device */
  230. #define AN_GamePortDev    0x12000000
  231.  
  232. /*------ keyboard.device */
  233. #define AN_KeyboardDev    0x13000000
  234.  
  235. /*------ trackdisk.device */
  236. #define AN_TrackDiskDev 0x14000000
  237. #define AN_TDCalibSeek    0x14000001    /* calibrate: seek error */
  238. #define AN_TDDelay    0x14000002    /* delay: error on timer wait */
  239.  
  240. /*------ timer.device */
  241. #define AN_TimerDev    0x15000000
  242. #define AN_TMBadReq    0x15000001 /* bad request */
  243. #define AN_TMBadSupply    0x15000002 /* power supply -- no 50/60Hz ticks */
  244.  
  245. /*------ cia.resource */
  246. #define AN_CIARsrc    0x20000000
  247.  
  248. /*------ disk.resource */
  249. #define AN_DiskRsrc    0x21000000
  250. #define AN_DRHasDisk    0x21000001    /* get unit: already has disk */
  251. #define AN_DRIntNoAct    0x21000002    /* interrupt: no active unit */
  252.  
  253. /*------ misc.resource */
  254. #define AN_MiscRsrc    0x22000000
  255.  
  256. /*------ bootstrap */
  257. #define AN_BootStrap    0x30000000
  258. #define AN_BootError    0x30000001    /* boot code returned an error */
  259.  
  260. /*------ Workbench */
  261. #define AN_Workbench            0x31000000
  262. #define AN_NoFonts            0xB1000001
  263. #define AN_WBBadStartupMsg1        0x31000001
  264. #define AN_WBBadStartupMsg2        0x31000002
  265. #define AN_WBBadIOMsg            0x31000003    /* Hacker code? */
  266. #define AN_WBReLayoutToolMenu        0xB1010009    /* GadTools broke? */
  267.  
  268. /*------ DiskCopy */
  269. #define AN_DiskCopy    0x32000000
  270.  
  271. /*------ toolkit for Intuition */
  272. #define AN_GadTools    0x33000000
  273.  
  274. /*------ System utility library */
  275. #define AN_UtilityLib    0x34000000
  276.  
  277. /*------ For use by any application that needs it */
  278. #define AN_Unknown    0x35000000
  279.  
  280. #endif /* EXEC_ALERTS_H */
  281.