Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / network / stacks / AROSTCP / netlib / sana2errlist.c
blobe1203a7caf35e3c4f9094086f158ce98de609e76
1 /* $Id$
3 * sana2errlist.c - Errlist for Sana-II Errors
5 * Copyright © 1994 AmiTCP/IP Group,
6 * Network Solutions Development Inc.
7 * All rights reserved.
8 */
10 /****** sana2.lib/sana2wire_errlist *******************************************
12 NAME
13 sana2wire_errlist - SANA-II device error messages
15 SYNOPSIS
16 #include <devices/sana2.h>
18 const char * const sana2wire_errlist[];
19 const short sana2wire_nerr;
21 const char * const io_errlist[];
22 const short io_nerr;
24 const char * const sana2io_errlist[];
25 const short sana2io_nerr;
27 FUNCTION
28 These arrays contain error messages corresponding to the error codes
29 returned by SANA-II devices. The list sana2wire_errlist contains
30 error messages for error codes in the structure IOSana2Req field
31 ios2_WireError. The sana2wire_nerr contains number of error messages
32 in the array sana2wire_errlist.
34 The list io_errlist contains error messages for normal IO errors
35 common for all IO devices. The io_nerr contains number of error
36 messages in the array io_errlist.
38 The list sana2io_errlist contains error messages for SANA-II-specific
39 IO errors. The sana2io_nerr contains number of error messages in the
40 array sana2io_errlist.
42 SEE ALSO
43 Sana2PrintFault(), sana2perror()
45 *******************************************************************************
48 const char * const sana2io_errlist[] =
50 "No error", /* S2ERR_NO_ERROR */
51 "Resource allocation failure", /* S2ERR_NO_RESOURCES */
52 "Unknown error code (2)",
53 "Invalid argument", /* S2ERR_BAD_ARGUMENT */
54 "Inappropriate state", /* S2ERR_BAD_STATE */
55 "Invalid address", /* S2ERR_BAD_ADDRESS */
56 "Requested packet too large", /* S2ERR_MTU_EXCEEDED */
57 "Unknown error (7)",
58 "Command is not supporter", /* S2ERR_NOT_SUPPORTED */
59 "Driver software error detected", /* S2ERR_SOFTWARE */
60 "Device driver is offline", /* S2ERR_OUTOFSERVICE */
61 "Transmission attempt failed" /* S2ERR_TX_FAILURE */
64 const short sana2io_nerr =
65 { sizeof sana2io_errlist/sizeof sana2io_errlist[0] };
67 const char * const io_errlist[] =
69 "Unknown error", /* 0 */
70 "Device or unit failed to open", /* IOERR_OPENFAIL */
71 "Request aborted", /* IOERR_ABORTED */
72 "Command not supported by device", /* IOERR_NOCMD */
73 "Invalid length", /* IOERR_BADLENGTH */
74 "Invalid address", /* IOERR_BADADDRESS */
75 "Requested unit is busy", /* IOERR_UNITBUSY */
76 "Hardware self-test failed" /* IOERR_SELFTEST */
79 const short io_nerr =
80 { sizeof io_errlist/sizeof io_errlist[0] };
82 const char * const sana2wire_errlist[] =
84 "Generic error: 0", /* S2WERR_GENERIC_ERROR */
85 "Unit not configured", /* S2WERR_NOT_CONFIGURED */
86 "Unit is currently online", /* S2WERR_UNIT_ONLINE */
87 "Unit is currently offline", /* S2WERR_UNIT_OFFLINE */
88 "Protocol already tracked", /* S2WERR_ALREADY_TRACKED */
89 "Protocol not tracked", /* S2WERR_NOT_TRACKED */
90 "Buff management function error", /* S2WERR_BUFF_ERROR */
91 "Source address error", /* S2WERR_SRC_ADDRESS */
92 "Destination address error", /* S2WERR_DST_ADDRESS */
93 "Broadcast address error", /* S2WERR_BAD_BROADCAST */
94 "Multicast address error", /* S2WERR_BAD_MULTICAST */
95 "Multicast address list full", /* S2WERR_MULTICAST_FULL */
96 "Unsupported event class", /* S2WERR_BAD_EVENT */
97 "Statdata failed sanity check", /* S2WERR_BAD_STATDATA */
98 "Unknown wire error (14)",
99 "Attempt to config twice", /* S2WERR_IS_CONFIGURED */
100 "Null pointer detected", /* S2WERR_NULL_POINTER */
101 "tx failed - too many retries", /* S2WERR_TOO_MANY_RETIRES */
102 "Driver fixable HW error" /* S2WERR_RCVREL_HDW_ERR */
105 const short sana2wire_nerr =
106 { sizeof sana2wire_errlist/sizeof sana2wire_errlist[0] };