beautypg.com

3 m1966_debug_trace_mask, 4 m1966_last_error_code, M1966_debug_trace_mask – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual

Page 75: M1966_last_error_code

background image

UG_1x66B_015

73M1866B/73M1966B Reference Driver User Guide

Rev. 2.7

75

7.3 M1966_DEBUG_TRACE_MASK

Description

Trace macros used by the M1966_DEBUG_LEVEL_SET IOCTL.

Prototype

#define M1966_DEBUG_EVENT 0x00000001
#define M1966_DEBUG_INIT 0x00000002
#define M1966_DEBUG_RING_PATH 0x00000004
#define M1966_DEBUG_TRACE 0x00000008
#define M1966_DEBUG_COUNTRY_CODE 0x00000010
#define M1966_DEBUG_CLIP 0x00000020
#define M1966_DEBUG_LINE_STATE 0x00000040
#define M1966_DEBUG_IOCTL 0x00000080
#define M1966_DEBUG_PCM 0x00000100
#define M1966_DEBUG_BARRIER 0x00000200
#define M1966_DEBUG_INT 0x00000400
#define M1966_DEBUG_PHU 0x00000800
#define M1966_DEBUG_TAPI 0x00001000
#define M1966_DEBUG_KPROC 0x00002000
#define M1966_DEBUG_SPI 0x00004000
#define M1966_DEBUG_ERROR 0x80000000

7.4 M1966_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

/*******************************************************************
** 73M1966 Driver Last Error Code
*******************************************************************/
#define M1966_ERR_OK 0x00000000 /* NO Error */
#define M1966_ERR_INVALID_GPIO_NUM 0x00000001 /* Invalid GPIO number */
#define M1966_ERR_INVALID_CNTRY_CODE 0x00000002 /* Invalid country code */
#define M1966_ERR_INVALID_PARAM 0x00000003 /* Invalid parameter */
#define M1966_ERR_INVALID_STATE 0x00000004 /* Invalid state for the command */
#define M1966_ERR_INVALID_IOCTL 0x00000005 /* Invalid ioctl */
#define M1966_ERR_INVALID_FD 0x00000005 /* Invalid File Descriptor */
#define M1966_ERR_COPY_TO_USER 0x00000020 /* memcopy to user failed */
#define M1966_ERR_COPY_FROM_USER 0x00000021 /* memcopy from user failed */
#define M1966_ERR_PLL_NOT_LOCKED 0x00000022 /* PLL not locked */
#define M1966_ERR_BARRIER_NOT_SYNC 0x00000023 /* Barrier not synced */
#define M1966_ERR_NO_EVENT_DATA 0x00000024 /* No event data available */