Adjust dependencies for Navigation demo app
[AGL/meta-agl-demo.git] / recipes-kernel / hdm-dim2 / files / dim2_errors.h
1 /*
2  * dim2_errors.h - Definitions of errors for DIM2 HAL API
3  * (MediaLB, Device Interface Macro IP, OS62420)
4  *
5  * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * This file is licensed under GPLv2.
13  */
14
15 #ifndef _MOST_DIM_ERRORS_H
16 #define _MOST_DIM_ERRORS_H
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 /**
23  * MOST DIM errors.
24  */
25 enum dim_errors_t {
26         /** Not an error */
27         DIM_NO_ERROR = 0,
28
29         /** Bad base address for DIM2 IP */
30         DIM_INIT_ERR_DIM_ADDR = 0x10,
31
32         /**< Bad MediaLB clock */
33         DIM_INIT_ERR_MLB_CLOCK,
34
35         /** Bad channel address */
36         DIM_INIT_ERR_CHANNEL_ADDRESS,
37
38         /** Out of DBR memory */
39         DIM_INIT_ERR_OUT_OF_MEMORY,
40
41         /** DIM API is called while DIM is not initialized successfully */
42         DIM_ERR_DRIVER_NOT_INITIALIZED = 0x20,
43
44         /**
45          * Configuration does not respect hardware limitations
46          * for isochronous or synchronous channels
47          */
48         DIM_ERR_BAD_CONFIG,
49
50         /**
51          * Buffer size does not respect hardware limitations
52          * for isochronous or synchronous channels
53          */
54         DIM_ERR_BAD_BUFFER_SIZE,
55
56         DIM_ERR_UNDERFLOW,
57
58         DIM_ERR_OVERFLOW,
59 };
60
61 #ifdef __cplusplus
62 }
63 #endif
64
65 #endif /* _MOST_DIM_ERRORS_H */