1 /*
2  * Copyright 2024 Microchip Technology Inc. and its subsidiaries.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef _MEC_RETVAL_H
7 #define _MEC_RETVAL_H
8 
9 #define MEC_RET_OK                0
10 #define MEC_RET_ERR               1
11 #define MEC_RET_ERR_INVAL         2 /* bad parameter */
12 #define MEC_RET_ERR_BUSY          3
13 #define MEC_RET_ERR_NOP           4
14 #define MEC_RET_ERR_XFR           5
15 #define MEC_RET_ERR_TIMEOUT       6
16 #define MEC_RET_ERR_NACK          7 /* a device did not respond */
17 #define MEC_RET_ERR_HW            8
18 #define MEC_RET_ERR_NO_DATA       9 /* No data available */
19 #define MEC_RET_ERR_DATA_LEN      10 /* bad data buffer size */
20 #define MEC_RET_ERR_DATA_ALIGN    11 /* bad data buffer alignment */
21 #define MEC_RET_ERR_BAD_DATA      12 /* data corruption, etc. */
22 #define MEC_RET_ERR_NO_RES        13
23 #define MEC_RET_ERR_HW_NOT_INIT   14
24 #define MEC_RET_ERR_BUS_NOT_OWNED 15 /* Bus not owned by controller */
25 #define MEC_RET_ERR_HW_NOT_SUPP   16
26 
27 #define MEC_FALSE 0
28 #define MEC_TRUE  1
29 
30 #define MEC_OFF 0
31 #define MEC_ON  1
32 
33 #endif /* #ifndef _MEC_RETVAL_H */
34