Commit | Line | Data |
---|---|---|
3a9c3d12 NC |
1 | /* |
2 | * Copyright (C) 1995 Advanced RISC Machines Limited. All rights reserved. | |
3 | * | |
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 | |
6 | * software. | |
7 | */ | |
8 | ||
9 | /* -*-C-*- | |
10 | * | |
11 | * $Revision$ | |
12 | * $Date$ | |
13 | * | |
14 | * | |
15 | * Project: ANGEL | |
16 | * | |
17 | * Title: Definitions of ADP error codes | |
18 | */ | |
19 | ||
20 | #ifndef angsd_adperrs_h | |
21 | #define angsd_adperrs_h | |
22 | /* | |
23 | * ADP failure codes start at 256 to distinguish them for debug purposes | |
24 | */ | |
25 | enum AdpErrs | |
26 | { | |
27 | adp_ok = 0, | |
28 | adp_failed = 256, | |
29 | adp_malloc_failure, | |
30 | adp_illegal_args, | |
31 | adp_device_not_found, | |
32 | adp_device_open_failed, | |
33 | adp_device_already_open, | |
34 | adp_device_not_open, | |
35 | adp_bad_channel_id, | |
36 | adp_callback_already_registered, | |
37 | adp_write_busy, | |
38 | adp_bad_packet, | |
39 | adp_seq_high, | |
40 | adp_seq_low, | |
41 | adp_timeout_on_open, | |
42 | adp_abandon_boot_wait, | |
43 | adp_late_startup, | |
44 | adp_new_agent_starting | |
45 | }; | |
46 | ||
47 | #ifndef __cplusplus | |
48 | typedef enum AdpErrs AdpErrs; | |
49 | #endif | |
50 | ||
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" | |
71 | ||
72 | #endif /* ndef angsd_adperr_h */ | |
73 | ||
74 | /* EOF adperr.h */ |