| 1 |
106 |
markom |
/* @(#)error.h 5.18 93/07/30 16:39:48, Srini, AMD */
|
| 2 |
|
|
/******************************************************************************
|
| 3 |
|
|
* Copyright 1991 Advanced Micro Devices, Inc.
|
| 4 |
|
|
*
|
| 5 |
|
|
* This software is the property of Advanced Micro Devices, Inc (AMD) which
|
| 6 |
|
|
* specifically grants the user the right to modify, use and distribute this
|
| 7 |
|
|
* software provided this notice is not removed or altered. All other rights
|
| 8 |
|
|
* are reserved by AMD.
|
| 9 |
|
|
*
|
| 10 |
|
|
* AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
|
| 11 |
|
|
* SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
|
| 12 |
|
|
* DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
|
| 13 |
|
|
* USE OF THIS SOFTWARE.
|
| 14 |
|
|
*
|
| 15 |
|
|
* So that all may benefit from your experience, please report any problems
|
| 16 |
|
|
* or suggestions about this software to the 29K Technical Support Center at
|
| 17 |
|
|
* 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or
|
| 18 |
|
|
* 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118.
|
| 19 |
|
|
*
|
| 20 |
|
|
* Advanced Micro Devices, Inc.
|
| 21 |
|
|
* 29K Support Products
|
| 22 |
|
|
* Mail Stop 573
|
| 23 |
|
|
* 5900 E. Ben White Blvd.
|
| 24 |
|
|
* Austin, TX 78741
|
| 25 |
|
|
* 800-292-9263
|
| 26 |
|
|
*****************************************************************************
|
| 27 |
|
|
* Engineer: Srini Subramanian.
|
| 28 |
|
|
*****************************************************************************
|
| 29 |
|
|
** This header file describes the errors which may be returned
|
| 30 |
|
|
** by the monitor.
|
| 31 |
|
|
**
|
| 32 |
|
|
** All of the #define'ed error codes below begin with the leters
|
| 33 |
|
|
** "EM" (for "Error Monitor"). This should avoid colisions with
|
| 34 |
|
|
** other #define's in the system.
|
| 35 |
|
|
**
|
| 36 |
|
|
*****************************************************************************
|
| 37 |
|
|
*/
|
| 38 |
|
|
|
| 39 |
|
|
#ifndef _ERROR_H_INCLUDED_
|
| 40 |
|
|
#define _ERROR_H_INCLUDED_
|
| 41 |
|
|
|
| 42 |
|
|
/* General errors */
|
| 43 |
|
|
#define EMUSAGE 1 /* Bad args / flags */
|
| 44 |
|
|
#define EMFAIL 2 /* Unrecoverable error */
|
| 45 |
|
|
#define EMBADADDR 3 /* Illegal address */
|
| 46 |
|
|
#define EMBADREG 4 /* Illegal register */
|
| 47 |
|
|
#define EMSYNTAX 5 /* Illegal command syntax */
|
| 48 |
|
|
#define EMACCESS 6 /* Could not access memory */
|
| 49 |
|
|
#define EMALLOC 7 /* Could not allocate memory */
|
| 50 |
|
|
#define EMTARGET 8 /* Unknown target type */
|
| 51 |
|
|
#define EMHINIT 9 /* Could not initialize host */
|
| 52 |
|
|
#define EMCOMM 10 /* Could not open communication channel */
|
| 53 |
|
|
|
| 54 |
|
|
/* Message errors */
|
| 55 |
|
|
#define EMBADMSG 11 /* Unknown message type */
|
| 56 |
|
|
#define EMMSG2BIG 12 /* Message to large for buffer */
|
| 57 |
|
|
|
| 58 |
|
|
#define EMRESET 13 /* Could not RESET target */
|
| 59 |
|
|
#define EMCONFIG 14 /* Could not get target CONFIG */
|
| 60 |
|
|
#define EMSTATUS 15 /* Could not get target STATUS */
|
| 61 |
|
|
#define EMREAD 16 /* Could not READ target memory */
|
| 62 |
|
|
#define EMWRITE 17 /* Could not WRITE target memory */
|
| 63 |
|
|
#define EMBKPTSET 18 /* Could not set breakpoint */
|
| 64 |
|
|
#define EMBKPTRM 19 /* Could not remove breakpoint */
|
| 65 |
|
|
#define EMBKPTSTAT 20 /* Could not get breakpoint status */
|
| 66 |
|
|
#define EMBKPTNONE 21 /* All breakpoints in use */
|
| 67 |
|
|
#define EMBKPTUSED 22 /* Breakpoints already in use */
|
| 68 |
|
|
#define EMCOPY 23 /* Could not COPY target memory */
|
| 69 |
|
|
#define EMFILL 24 /* Could not FILL target memory */
|
| 70 |
|
|
#define EMINIT 25 /* Could not initialize target memory */
|
| 71 |
|
|
#define EMGO 26 /* Could not start execution */
|
| 72 |
|
|
#define EMSTEP 27 /* Could not single step */
|
| 73 |
|
|
#define EMBREAK 28 /* Could not BREAK */
|
| 74 |
|
|
#define EMHIF 29 /* Could not perform HIF service */
|
| 75 |
|
|
#define EMCHANNEL0 30 /* Could not read CHANNEL0 */
|
| 76 |
|
|
#define EMCHANNEL1 31 /* Could not write CHANNEL1 */
|
| 77 |
|
|
|
| 78 |
|
|
/* COFF file loader errors */
|
| 79 |
|
|
#define EMOPEN 32 /* Could not open COFF file */
|
| 80 |
|
|
#define EMHDR 33 /* Could not read COFF header */
|
| 81 |
|
|
#define EMMAGIC 34 /* Bad magic number */
|
| 82 |
|
|
#define EMAOUT 35 /* Could not read COFF a.out header */
|
| 83 |
|
|
#define EMSCNHDR 36 /* Could not read COFF section header */
|
| 84 |
|
|
#define EMSCN 37 /* Could not read COFF section */
|
| 85 |
|
|
#define EMCLOSE 38 /* Could not close COFF file */
|
| 86 |
|
|
|
| 87 |
|
|
/* Log file errors */
|
| 88 |
|
|
#define EMLOGOPEN 39 /* Could not open log file */
|
| 89 |
|
|
#define EMLOGREAD 40 /* Could not read log file */
|
| 90 |
|
|
#define EMLOGWRITE 41 /* Could not write to log file */
|
| 91 |
|
|
#define EMLOGCLOSE 42 /* Could not close log file */
|
| 92 |
|
|
|
| 93 |
|
|
/* Command file errors */
|
| 94 |
|
|
#define EMCMDOPEN 43 /* Could not open command file */
|
| 95 |
|
|
#define EMCMDREAD 44 /* Could not read command file */
|
| 96 |
|
|
#define EMCMDWRITE 45 /* Could not write to command file */
|
| 97 |
|
|
#define EMCMDCLOSE 46 /* Could not close comand file */
|
| 98 |
|
|
|
| 99 |
|
|
#define EMTIMEOUT 47 /* Host timed out waiting for a message */
|
| 100 |
|
|
#define EMCOMMTYPE 48 /* A '-t' flag must be specified */
|
| 101 |
|
|
#define EMCOMMERR 49 /* Communication error */
|
| 102 |
|
|
#define EMBAUD 50 /* Invalid baud rate specified */
|
| 103 |
|
|
|
| 104 |
|
|
#define EMTIPINIT 51 /* Failed TIP init */
|
| 105 |
|
|
#define EMIOSETF 52 /* I/O set up failure */
|
| 106 |
|
|
#define EMIORESETF 53 /* I/O reset failure */
|
| 107 |
|
|
#define EMLOADF 54 /* Loading COFF file failed */
|
| 108 |
|
|
#define EMNOFILE 55 /* No program to run. */
|
| 109 |
|
|
#define EMECHOPEN 56 /* Could not open echo file */
|
| 110 |
|
|
#define EMCTRLC 57 /* Ctrl-C encountered */
|
| 111 |
|
|
#define EMNOSUCHCMD 58 /* Unrecognized command */
|
| 112 |
|
|
#define EMNOPROCESS 59 /* create process */
|
| 113 |
|
|
#define EMNOTCOMP 60 /* Not compatible */
|
| 114 |
|
|
#define EMFATAL 61 /* UDIWait failed */
|
| 115 |
|
|
#define EMNOINITP 62 /* No initialize process */
|
| 116 |
|
|
#define EMDOSERR 63 /* DOS err on escape */
|
| 117 |
|
|
#define EMSYSERR 64 /* system err on escape */
|
| 118 |
|
|
#define EMINVECHOFILE 65 /* invalid echo file */
|
| 119 |
|
|
#define EMCMDFILENEST 66 /* command file nesting */
|
| 120 |
|
|
|
| 121 |
|
|
extern char *error_msg[];
|
| 122 |
|
|
|
| 123 |
|
|
#endif /* _ERROR_H_INCLUDED_ */
|