blob: 7a3d7858778530e96d29b8ce4efe6a140700d62b [file] [log] [blame]
#ifndef __DXS_ERRNO_H__
#define __DXS_ERRNO_H__
/******************************************************************************
Copyright (c) 2006-2015 Lantiq Deutschland GmbH
Copyright (c) 2015 Lantiq Beteiligungs-GmbH & Co.KG
Copyright 2018, Intel Corporation.
For licensing information, see the file 'LICENSE' in the root folder of
this software module.
******************************************************************************/
/**
\file dxs_errno.h
This file contains error number definitions.
*/
/** Definition of all error codes. */
typedef enum
{
/** Error. */
DXS_statusError = -1,
/** Success, no error occurred. */
DXS_statusOk = 0,
/** Device not found. */
DXS_statusDevNotFound = 0x4001,
/** Channel not found. */
DXS_statusChannelNotFound = 0x4002,
/** Device initialization failed. */
DXS_statusDevInitFailed = 0x4003,
/** Feature is not compiled in (disabled at compile time). */
DXS_statusFeatNotCompiledIn = 0x4004,
/** Feature is not supported by device capabilities. */
DXS_statusFeatNotSupportedCaps = 0x4005,
/** Register read operation failed. */
DXS_statusRegReadError = 0x4006,
/** Register write operation failed. */
DXS_statusRegWriteError = 0x4007,
/** Thread creation failed. */
DXS_statusThreadCreatError = 0x4008,
/** Thread termination failed. */
DXS_statusThreadStopError = 0x4009,
/** Outbox data handler start failed. */
DXS_statusObxHandlerStartError = 0x400A,
/** Message queue creation failed. */
DXS_statusMsgQueueCreatError = 0x400B,
/** Invalid parameters. */
DXS_statusInvalidParam = 0x400C,
/** Firmware command write operation failed. */
DXS_statusCmdWriteError = 0x400D,
/** Firmware command read operation failed. */
DXS_statusCmdReadError = 0x400E,
/** PCM interface activation failed. */
DXS_statusPcmIfActError = 0x400F,
/** PCM channel activation/deactivation failed. */
DXS_statusPcmChActError = 0x4010,
/** PCM channel mute/unmute failed. */
DXS_statusPcmChMuteError = 0x4011,
/** PCM interface is not enabled. */
DXS_statusPcmIfNotEnabled = 0x4012,
/** PCM channels are not disabled. */
DXS_statusPcmChNotDisabled = 0x4013,
/** Not initialized resource. */
DXS_statusNotInitResource = 0x4014,
/** Update of capabilities and version failed. */
DXS_statusCapVersUpdateError = 0x4015,
/** Line feeding mode set failed. */
DXS_statusSddOpmodeSetError = 0x4016,
/** Writing command to device mailbox failed. */
DXS_statusCmdMbxWriteError = 0x4017,
/** Timeout waiting for free space in command inbox. */
DXS_statusCmdMbxWriteTmout = 0x4018,
/** Invalid value in length field of command. */
DXS_statusCmdLengthInvalid = 0x4019,
/** Not enough inbox space for writing command. */
DXS_statusCmdIbxNoSpace = 0x401A,
/** Memory buffer pool initialization failed. */
DXS_statusMpoolInitError = 0x401B,
/** OS SPI open error. */
DXS_statusSpiOpenError = 0x401C,
/** OS SPI access error. */
DXS_statusSpiAccError = 0x401D,
/** OS SPI transmit length error. */
DXS_statusSpiTxLenError = 0x401E,
/** More data in command outbox than expected. */
DXS_statusCmdObDataOvld = 0x401F,
/** Reading from the command outbox failed. */
DXS_statusCmdObRdErr = 0x4020,
/** Setting of boot configuration register failed. */
DXS_statusSetBootCfgErr = 0x4021,
/** Controller reset failed. */
DXS_statusCtrlResErr = 0x4022,
/** Firmware download timeout. */
DXS_statusFwDwldTimeout = 0x4023,
/** Download of the firmware binary failed. */
DXS_statusDwldBinErr = 0x4024,
/** Command length error. */
DXS_statusCmdLengthErr = 0x4025,
/** Reference object is not a waiting list. */
DXS_statusWaitListObjInv = 0x4026,
/** Cannot add a device to the waiting list */
DXS_statusWaitListDevAddErr = 0x4027,
/** Timeout waiting for command read response. */
DXS_statusCmdObDataRdTmout = 0x4027,
/** DC/DC HW option mismatch between BBD file and device configuration. */
DXS_statusBbdDCDCHwCfgMismatch = 0x4029,
/** Invalid master block in BBD file. */
DXS_statusBbdMasterBlkInvalid = 0x402A,
/** Unknown unsupported BBD block in BBD file. */
DXS_statusBbdUnknownBlk = 0x402B,
/** Unknown unsupported DC/DC HW option in BBD file. */
DXS_statusBbdUnknownDcDcOpt = 0x402C,
/** Reconfiguration of BBD DC/DC config block is denied */
DXS_statusBbdDcDcReconfig = 0x402D,
/** Device is not initialized. */
DXS_statusDevNotInitialized = 0x402E,
/** Device PRAM patch is not downloaded. */
DXS_statusPramPatchNotDownloaded = 0x402F,
/** BBD file is not downloaded. */
DXS_statusBbdNotDownloaded = 0x4030,
/** Parameters are out of range. */
DXS_statusParamsOutRange = 0x4031,
/** Message Waiting Lamp is not allowed for this DC/DC variant. */
DXS_statusMwlNotAllowed = 0x4032,
/** Error while waiting for SDD event. */
DXS_statusSddEvtWaitError = 0x4033,
/** Timeout waiting for SDD event. */
DXS_statusSddEvtWaitTmout = 0x4034,
/** Attempt to access GPIO write/read before port configuration */
DXS_statusGpioNotConfigured = 0x4035,
/** Attempt to perform write operation at GPIO configured as input */
DXS_statusGpioWriteAccessIgnored = 0x4036,
/** Invalid line mode state transition */
DXS_statusLineModeInvalidTransition = 0x4037,
/** Metering pulse cannot be enabled when line mode is not active */
DXS_statusMeteringLineModeNotActive = 0x4038,
/** Metering pulse is enabled already */
DXS_statusMeteringPreviousPulseNotFinished = 0x4039,
/** Ground fault or over temperature detected on the line and not
recovered yet */
DXS_statusWaitingLineToRecover = 0x403A,
/** Incorrect calibration version. */
DXS_statusCalVersInvalid = 0x403B,
/** Automatic calibration failed. */
DXS_statusAutomaticCalibrationFailed = 0x403C,
/** Current line mode is CALIBRATE */
DXS_statusCalInProgress = 0x403D,
/** Timer creation failed. */
DXS_statusTimerCreateError = 0x403E,
/** Value zero not allowed as hook state validation time */
DXS_statusDialZeroParam = 0x403F,
/** Max must be larger than min hook state validation time */
DXS_statusDialMaxMinParam = 0x4040,
/** Unknown hook state validation type parameter */
DXS_statusDialTypeParam = 0x4041,
/** Opening file descriptor failed. */
DXS_statusFdOpenError = 0x4042,
/** Interrupt configuration failed. */
DXS_statusIntConfError = 0x4043,
/** FSK enable while DTMF is running. */
DXS_statusFskEnableNotAllowed = 0x4044,
/** FSK change standard while FSK is enabled. */
DXS_statusFskStandardChangeNotAllowed = 0x4045,
/** Tone index does not exist in the tone table. */
DXS_statusUtdToneIdxMissing = 0x4046,
/** OL Calibration is already running */
DXS_statusOLCalibrationInProgress = 0x4047,
/** C-Measurement or GR-909 results were not received for OL calibration */
DXS_statusOLCalibrationNoResults = 0x4048,
/** AC Level Meter measurement result inband calculation error */
DXS_statusAclmInbCalcError = 0x4049,
/** AC Level Meter measurement result outband calculation error */
DXS_statusAclmOutbCalcError = 0x404A,
/** AC Level Meter measurement results are not available */
DXS_statusAclmResultsNotAvail = 0x404B,
/** AC Level Meter measurement is already in progress */
DXS_statusAclmInProgress = 0x404C,
/** AC Level Meter measurement start error - invalid line mode */
DXS_statusAclmStartErrInvOpmode = 0x404D,
/** AC Level Meter measurement start error - timeout switching to active line mode */
DXS_statusAclmStartErrActOpmodeTmout = 0x404E,
/** Line feed mode did not return to disabled during OL calibration */
DXS_statusOLCalibrationWaitError = 0x404F,
/** Caller ID standard is not supported */
DXS_statusCidStdNotSupported = 0x4050,
/** Caller ID message is not initialized */
DXS_statusCidMsgNotInit = 0x4051,
/** Caller ID invalid line mode */
DXS_statusCidInvalidLineMode = 0x4052,
/** Caller ID invalid alert signal type for standard */
DXS_statusCidInvalidAlertSignal = 0x4053,
/** Caller ID is already in progress */
DXS_statusCidInProgress = 0x4054,
/** Device PRAM patch checksum error. */
DXS_statusPramPatchCksumError = 0x4055,
/** Device PRAM patch format is invalid or not supported. */
DXS_statusPramPatchInvalid = 0x4056,
/** Device PRAM patch download failed. */
DXS_statusPramPatchDwldFail = 0x4057,
/** Caller ID message length is incorrect */
DXS_statusCidMsgLenWrong = 0x4058,
/** Master channel required for DC/DC configuration download
is not set */
DXS_statusBbdDCDCMasterNotSet = 0x4059,
/** Ringing capabilities are exceeded for a DC/DC */
DXS_statusDcDcRingCapsExceeded = 0x405A,
/** Ringing cadence configuration cannot be set (invalid content) */
DXS_statusRingCadConfInvalid = 0x405B,
/** Ringing cadence configuration cannot be set (another ringing cadence is running) */
DXS_statusRingCadConfNotPossible = 0x405C,
/** Ringing cadence start attempt while ringing cadence is not configured */
DXS_statusRingCadStartNotConf = 0x405D,
/** Setting of the Sleep mode is not allowed */
DXS_statusSleepModeNotAllowed = 0x405E,
/** Enabling event is not allowed */
DXS_statusEventEnableNotAllowed = 0x405F,
/** Disabling event is not allowed */
DXS_statusEventDisableNotAllowed = 0x4060
} DXS_status_t;
#endif /* __DXS_ERRNO_H__ */