1 /* SPDX-License-Identifier: GPL-2.0 */
3 * errors.h - Definitions of errors for DIM2 HAL API
4 * (MediaLB, Device Interface Macro IP, OS62420)
6 * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG
9 #ifndef _MOST_DIM_ERRORS_H
10 #define _MOST_DIM_ERRORS_H
19 /** Bad base address for DIM2 IP */
20 DIM_INIT_ERR_DIM_ADDR = 0x10,
22 /**< Bad MediaLB clock */
23 DIM_INIT_ERR_MLB_CLOCK,
25 /** Bad channel address */
26 DIM_INIT_ERR_CHANNEL_ADDRESS,
28 /** Out of DBR memory */
29 DIM_INIT_ERR_OUT_OF_MEMORY,
31 /** DIM API is called while DIM is not initialized successfully */
32 DIM_ERR_DRIVER_NOT_INITIALIZED = 0x20,
35 * Configuration does not respect hardware limitations
36 * for isochronous or synchronous channels
41 * Buffer size does not respect hardware limitations
42 * for isochronous or synchronous channels
44 DIM_ERR_BAD_BUFFER_SIZE,
51 #endif /* _MOST_DIM_ERRORS_H */