/* Copyright Motorola, Inc. 1993, 1994 ALL RIGHTS RESERVED You are hereby granted a copyright license to use, modify, and distribute the SOFTWARE so long as this entire notice is retained without alteration in any modified and/or redistributed versions, and that such modified versions are clearly identified as such. No licenses are granted by implication, estoppel or otherwise under any patents or trademarks of Motorola, Inc. The SOFTWARE is provided on an "AS IS" basis and without warranty. To the maximum extent permitted by applicable law, MOTOROLA DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED, INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH REGARD TO THE SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF) AND ANY ACCOMPANYING WRITTEN MATERIALS. To the maximum extent permitted by applicable law, IN NO EVENT SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE SOFTWARE. Motorola assumes no responsibility for the maintenance and support of the SOFTWARE. */ #include "errors.h" #define NUM_ERRORS 47 #define MAX_ERROR_LENGTH 80 typedef struct { STATUS code; char string[MAX_ERROR_LENGTH]; } err_element; err_element err_list[NUM_ERRORS] = { { FOR_BOARD_ONLY, "not available for Unix"}, /* 0 */ { INVALID_FLAG, "bad flag"}, /* 1 */ { INVALID_BAUD_RATE, "unrecognized baud rate"}, /* 2 */ { UNKNOWN_COMMAND, "unrecognized command or symbol"}, /* 3 */ { UNKNOWN_REGISTER, "unknown register"}, /* 4 */ { ILLEGAL_RD_STAGE, "cannot specify whole register family in range"}, { ILLEGAL_REG_FAMILY, "cannot specify a range of special or misc. reg.'s"}, { RANGE_CROSS_FAMILY, "cannot specify a range across register families"}, { UNIMPLEMENTED_STAGE, "invalid rd or rmm parameter format"},/* 8 */ { REG_NOT_WRITEABLE, "Register specified is not writeable"}, /* 9 */ { INVALID_FILENAME, "invalid download filename"}, /* 10 */ { INVALID, "NOT valid"}, /* 11 */ { VALID, "valid"}, /* 12 */ { INVALID_SIZE, "invalid address size"}, /* 13 */ { OUT_OF_BOUNDS_ADDRESS, "address not in bounds"}, /* 14 */ { INVALID_HEX_INPUT, "invalid hex address"}, /* 15 */ { REG_NOT_READABLE, "Register specified is not readable"}, /* 16 */ { NOT_WORD_ALIGNED, "not a word aligned address"}, /* 17 */ { REVERSED_ADDRESS, "start address is greater than end"}, /* 18 */ { RANGE_OVERLAP, "destination overlaps source addresses"}, /* 19 */ { ERROR, "a miscellaneous error has occured"}, /* 20 */ { INVALID_PARAM, "invalid input parameter"}, /* 21 */ { INVALID_NUMBER_ARGS, "invalid number of command arguements"}, { UNKNOWN_PARAMETER, "unknown type of command parameter"}, /* 23 */ { ILLEGAL_CHARACTER, "unrecognized character in input stream"}, { TTL_NOT_SORTED, "token translation list not sorted"}, /* 25 */ { TTL_NOT_DEFINED, "token translation list not assigned"}, /* 26 */ { INVALID_STRING, "unable to extract string from input stream"}, { BUFFER_EMPTY, "input buffer is empty"}, /* 28 */ { INVALID_MODE, "input buffer is in an unrecognized mode"}, /* 29 */ { TOK_INTERNAL_ERROR, "internal tokenizer error"}, /* 30 */ { TOO_MANY_IBS, "too many open input buffers"}, /* 31 */ { NO_OPEN_IBS, "no open input buffers"}, /* 32 */ { RESERVED_WORD, "used a reserved word as an arguement"}, /* 33 */ { FULL_BPDS, "breakpoint data structure is full"}, /* 34 */ { NOT_IN_S_RECORD_FORMAT, "not in S-Record Format"}, /* 35 */ { UNREC_RECORD_TYPE, "unrecognized record type"}, /* 36 */ { CONVERSION_ERROR, "ascii to int conversion error"}, /* 37 */ { INVALID_MEMORY, "bad s-record memory address"}, /* 38 */ { COMP_UNK_CHARACTER, "unknown compressed character"}, /* 39 */ { COMP_UNKNOWN_STATE, "unknown binary state"}, /* 40 */ { NOT_IN_COMPRESSED_FORMAT, "not in compressed S-Record format"}, /*41*/ { UNKNOWN_PORT_STATE, "unrecognized serial port configuration"}, /*42*/ { SPR_NOT_FOUND, "cannot find in special register file"}, /* 43 */ { TM_NEEDS_BOTH_PORTS, "transparent mode needs access to two serial ports"}, { UNSUPPORTED_REGISTER, "SPR is not supported by this processor"}, /*45 */ { FLASH_ERROR, "FLASH error"}, /* 46 */ } ;