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