aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/etrax/files/arch/cris/arch-v10/drivers/i2c_errno.h
blob: ddd99b0e5b857dfc64e2db298a8889426a1c8460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _I2C_ERRNO_H
#define _I2C_ERRNO_H

#define EI2CNOERRORS  0     /* All fine */
#define EI2CBUSNFREE  1     /* I2C bus not free */
#define EI2CWADDRESS  2     /* Address write failed */
#define EI2CRADDRESS  3     /* Address read failed */
#define EI2CSENDDATA  4     /* Sending data failed */
#define EI2CRECVDATA  5     /* Receiving data failed */
#define EI2CSTRTCOND  6     /* Start condition failed */
#define EI2CRSTACOND  7     /* Repeated start condition failed */
#define EI2CSTOPCOND  8     /* Stop condition failed */
#define EI2CNOSNDBYT  9     /* Number of send bytes is 0, while there's a send buffer defined */ 
#define EI2CNOSNDBUF  10    /* No send buffer defined, while number of send bytes is not 0 */
#define EI2CNORCVBYT  11    /* Number of receive bytes is 0, while there's a receive buffer defined */
#define EI2CNORCVBUF  12    /* No receive buffer defined, while number of receive bytes is not 0 */
#define EI2CNOACKNLD  13    /* No acknowledge received from slave */
#define EI2CNOMNUMBR  14    /* No MAJOR number received from kernel while registering the device */

#endif /* _I2C_ERRNO_H */