2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1992-1997, 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
8 #ifndef _ASM_IA64_SN_KSYS_ELSC_H
9 #define _ASM_IA64_SN_KSYS_ELSC_H
14 * The possible ELSC error codes are a superset of the I2C error codes,
15 * so ELSC error codes begin at -100.
18 #define ELSC_ERROR_NONE 0
20 #define ELSC_ERROR_CMD_SEND (-100) /* Error sending command */
21 #define ELSC_ERROR_CMD_CHECKSUM (-101) /* Command checksum bad */
22 #define ELSC_ERROR_CMD_UNKNOWN (-102) /* Unknown command */
23 #define ELSC_ERROR_CMD_ARGS (-103) /* Invalid argument(s) */
24 #define ELSC_ERROR_CMD_PERM (-104) /* Permission denied */
25 #define ELSC_ERROR_CMD_STATE (-105) /* not allowed in this state*/
27 #define ELSC_ERROR_RESP_TIMEOUT (-110) /* ELSC response timeout */
28 #define ELSC_ERROR_RESP_CHECKSUM (-111) /* Response checksum bad */
29 #define ELSC_ERROR_RESP_FORMAT (-112) /* Response format error */
30 #define ELSC_ERROR_RESP_DIR (-113) /* Response direction error */
32 #define ELSC_ERROR_MSG_LOST (-120) /* Queue full; msg. lost */
33 #define ELSC_ERROR_LOCK_TIMEOUT (-121) /* ELSC response timeout */
34 #define ELSC_ERROR_DATA_SEND (-122) /* Error sending data */
35 #define ELSC_ERROR_NIC (-123) /* NIC processing error */
36 #define ELSC_ERROR_NVMAGIC (-124) /* Bad magic no. in NVRAM */
37 #define ELSC_ERROR_MODULE (-125) /* Moduleid processing err */
39 #endif /* _ASM_IA64_SN_KSYS_ELSC_H */