3 m1x22_debug_trace_mask, 4 m1x22_last_error_code, M1x22_debug_trace_mask – Maxim Integrated 73M1822/73M1922 Control Module User Manual
Page 63: M1x22_last_error_code, Section 7.4

UG_1x22_053
73M1822/73M1922 Control Module User Guide
Rev. 1.0
63
7.3 M1X22_DEBUG_TRACE_MASK
Description
Trace macros used by the
Prototype
#define M1X22_DEBUG_TRACE 0x00000001
#define M1X22_DEBUG_ERROR 0x80000002
#define M1X22_DEBUG_INIT 0x00000004
#define M1X22_DEBUG_EVENT 0x00000008
#define M1X22_DEBUG_IOCTL 0x00000010
#define M1X22_DEBUG_BARRIER 0x00000020
#define M1X22_DEBUG_INT 0x00000040
#define M1X22_DEBUG_KPROC 0x00000080
#define M1X22_DEBUG_COUNTRY_CODE 0x00000100
#define M1X22_DEBUG_RING_PATH 0x00000200
#define M1X22_DEBUG_LINE_STATE 0x00000400
#define M1X22_DEBUG_PHU 0x00000800
#define M1X22_DEBUG_LOOPBACK 0x00001000
#define M1X22_DEBUG_GPIO 0x00002000
#define M1X22_DEBUG_MAFE 0x00004000
#define M1X22_DEBUG_DIAL 0x00008000
7.4 M1X22_LAST_ERROR_CODE
Description
The last error code can be retrieved by this IOCTL. This is the list of the driver’s last error code.
Prototype
/*******************************************************************
** 73M1X22 Driver Last Error Code
*******************************************************************/
#define M1X22_ERR_OK 0x00000000 /* NO Error */
#define M1X22_ERR_INVALID_GPIO_NUM 0x00000001 /* Invalid GPIO number */
#define M1X22_ERR_INVALID_CNTRY_CODE 0x00000002 /* Invalid country code */
#define M1X22_ERR_INVALID_PARAM 0x00000003 /* Invalid parameter */
#define M1X22_ERR_INVALID_STATE 0x00000004 /* Invalid state for the command */
#define M1X22_ERR_INVALID_IOCTL 0x00000005 /* Invalid ioctl */
#define M1X22_ERR_INVALID_FD 0x00000005 /* Invalid File Descriptor */
#define M1X22_ERR_COPY_TO_USER 0x00000020 /* memcopy to user failed */
#define M1X22_ERR_COPY_FROM_USER 0x00000021 /* memcopy from user failed */
#define M1X22_ERR_PLL_NOT_LOCKED 0x00000022 /* PLL not locked */
#define M1X22_ERR_BARRIER_NOT_SYNC 0x00000023 /* Barrier not synced */
#define M1X22_ERR_NO_EVENT_DATA 0x00000024 /* No event data available */