beautypg.com

M1966_test_code – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual

Page 71

background image

UG_1x66B_015

73M1866B/73M1966B Reference Driver User Guide

Rev. 2.7

71

6.9.5 M1966_TEST_CODE

Description

The M1966_TEST_CODE ioctl command can be used as debugging aid during development processed.
This mechanism provides a hook for application level developer to interact with the driver’s internal
processing. Refer to current source code for handling M1966_TEST_CODE with parameter from 1 to 7 for
sample reference.

#define M1966_TEST_CODE _IOWR(0xA4,0xE8,unsigned int)

Prototype

int ioctl (

int dev_fd,

int M1966_TEST_CODE,

unsigned long param );


Parameters

Data Type

Name

Description

int

dev_fd

Device descriptor.

int

M1966_TEST_CODE

I/O control identifier for this operation.

unsigned long

Param

Test code parameter. Currently 1 to 7 is being
used by the Reference Driver.


Return Values

Data Type

Description

int

-1 – Failed to perform test code.
0 – Successful.