2 * Copyright (C) 1995 Advanced RISC Machines Limited. All rights reserved.
4 * This software may be freely used, copied, modified, and distributed
5 * provided that the above copyright notice is preserved in all copies of the
17 * Title: Definitions of ADP error codes
20 #ifndef angsd_adperrs_h
21 #define angsd_adperrs_h
23 * ADP failure codes start at 256 to distinguish them for debug purposes
32 adp_device_open_failed,
33 adp_device_already_open,
36 adp_callback_already_registered,
42 adp_abandon_boot_wait,
44 adp_new_agent_starting
48 typedef enum AdpErrs AdpErrs;
51 #define AdpMess_Failed "ADP Error - unspecific failure"
52 #define AdpMess_MallocFailed "ADP Error - malloc failed"
53 #define AdpMess_IllegalArgs "ADP Error - illegal arguments"
54 #define AdpMess_DeviceNotFound "ADP Error - invalid device specified"
55 #define AdpMess_DeviceOpenFailed "ADP Error - specified device failed to open"
56 #define AdpMess_DeviceAlreadyOpen "ADP Error - device already open"
57 #define AdpMess_DeviceNotOpen "ADP Error - device not open"
58 #define AdpMess_BadChannelId "ADP Error - bad channel Id"
59 #define AdpMess_CBAlreadyRegd "ADP Error - callback already registered"
60 #define AdpMess_WriteBusy "ADP Error - write busy"
61 #define AdpMess_BadPacket "ADP Error - bad packet"
62 #define AdpMess_SeqHigh "ADP Error - sequence number too high"
63 #define AdpMess_SeqLow "ADP Error - sequence number too low"
64 #define AdpMess_TimeoutOnOpen "ADP Error - target did not respond"
65 #define AdpMess_AbandonBootWait "abandoned wait for late startup"
66 #define AdpMess_LateStartup "Target compiled with LATE_STARTUP set.\n" \
67 "Waiting for target...\n" \
68 "Press <Ctrl-C> to abort.\n"
69 #define AdpMessLen_LateStartup (3*80)
70 #define AdpMess_NewAgentStarting "New Debug Agent about to start.\n"
72 #endif /* ndef angsd_adperr_h */