Example #1
0
void dtf_if_out_ctrl_complete(int length, int actual, char *buf)
{
	struct dtf_if_read_data read_data;

	_dbgmsg_out( "IN\n ");
	if ( dtf_if_active == false )
	{
		_dbgmsg_out( "OUT dtf_if_active is false\n ");
		return ;
	}
	/* Event ID set */
	read_data.event_id = DTF_IF_EVENT_CTRL_COMPLETE;

	/* Event Data set */
	read_data.length = length;
	read_data.actual = actual;
	memcpy(read_data.data, buf, actual);

	dtf_if_add_read_data(&read_data);

	if( waitqueue_active( &poll_wait_read ) ){
		_dbgmsg_out("waitqueue_active\n");
		wake_up_interruptible( &poll_wait_read );
	}
	_dbgmsg_out( "OUT\n ");
}
Example #2
0
void dtf_if_out_setup(const struct dtf_if_ctrlrequest *ctrlrequest)
{
	struct dtf_if_read_data read_data;

	_dbgmsg_out( "IN\n ");
	if ( dtf_if_active == false )
	{
		_dbgmsg_out( "OUT dtf_if_active is false\n ");
		return ;
	}
	/* Event ID set */
	read_data.event_id = DTF_IF_EVENT_SETUP;
	/* Event Data set */
	read_data.ctrl.bRequestType = ctrlrequest->bRequestType;
	read_data.ctrl.bRequest = ctrlrequest->bRequest;
	read_data.ctrl.wValue = ctrlrequest->wValue;
	read_data.ctrl.wIndex = ctrlrequest->wIndex;
	read_data.ctrl.wLength = ctrlrequest->wLength;

	dtf_if_add_read_data(&read_data);

	if( waitqueue_active( &poll_wait_read ) ){
		_dbgmsg_out("waitqueue_active\n");
		wake_up_interruptible( &poll_wait_read );
	}
	_dbgmsg_out( "OUT\n ");
}
Example #3
0
void dtf_if_out_complete_out(int status, int actual, char *buf)
{
	struct dtf_if_read_data read_data;
	
	_dbgmsg_out( "IN\n ");										/* MSEMSEMSE */
	if ( dtf_if_active == false )
	{
		_dbgmsg_out( "OUT dtf_if_active is false\n ");			/* MSEMSEMSE */
		return ;
	}
	/* Event ID set */
	read_data.event_id = DTF_IF_EVENT_COMPLETE_OUT;
	
	/* Event Data set */
	read_data.status = status;
	read_data.actual = actual;
	memcpy(read_data.data, buf, actual);

	dtf_if_add_read_data(&read_data);
	
	if( waitqueue_active( &poll_wait_read ) ){
		_dbgmsg_out("waitqueue_active\n");						/* MSEMSEMSE */
		wake_up_interruptible( &poll_wait_read );
	}
	_dbgmsg_out( "OUT\n ");										/* MSEMSEMSE */
}
Example #4
0
void dtf_if_out_resume(void)
{
	struct dtf_if_read_data read_data;

	_dbgmsg_out( "IN\n ");
	if ( dtf_if_active == false )
	{
		_dbgmsg_out( "OUT dtf_if_active is false\n ");
		return ;
	}
	/* Event ID set */
	read_data.event_id = DTF_IF_EVENT_RESUME;

	dtf_if_add_read_data(&read_data);

	if( waitqueue_active( &poll_wait_read ) ){
		_dbgmsg_out("waitqueue_active\n");
		wake_up_interruptible( &poll_wait_read );
	}
	_dbgmsg_out( "OUT\n ");
}
Example #5
0
void dtf_if_out_suspend(void)
{
	struct dtf_if_read_data read_data;
	
	_dbgmsg_out( "IN\n ");										/* MSEMSEMSE */
	if ( dtf_if_active == false )
	{
		_dbgmsg_out( "OUT dtf_if_active is false\n ");			/* MSEMSEMSE */
		return ;
	}
	/* Event ID set */
	read_data.event_id = DTF_IF_EVENT_SUSPEND;
	
	dtf_if_add_read_data(&read_data);
	
	if( waitqueue_active( &poll_wait_read ) ){
		_dbgmsg_out("waitqueue_active\n");						/* MSEMSEMSE */
		wake_up_interruptible( &poll_wait_read );
	}
	_dbgmsg_out( "OUT\n ");										/* MSEMSEMSE */
}
Example #6
0
void dtf_if_out_disable(int speed_check)
{
	struct dtf_if_read_data read_data;

	_dbgmsg_out( "IN(speed_check=%d)\n", speed_check);
	if ( dtf_if_active == false )
	{
		_dbgmsg_out( "OUT dtf_if_active is false\n ");
		return ;
	}
	/* Event ID set */
	read_data.event_id = DTF_IF_EVENT_DISABLE;
	/* Event Data set */
	read_data.speed_check = speed_check;

	dtf_if_add_read_data(&read_data);

	if( waitqueue_active( &poll_wait_read ) ){
		_dbgmsg_out("waitqueue_active\n");
		wake_up_interruptible( &poll_wait_read );
	}
	_dbgmsg_out( "OUT\n ");
}
Example #7
0
void dtf_if_out_set_alt(int speed_check)
{
	struct dtf_if_read_data read_data;
	
	_dbgmsg_out( "IN\n ");									/* MSEMSEMSE */
	if ( dtf_if_active == false )
	{
		_dbgmsg_out( "OUT dtf_if_active is false\n ");		/* MSEMSEMSE */
		return ;
	}
	/* Event ID set */
	read_data.event_id = DTF_IF_EVENT_SET_ALT;
	/* Event Data set */
	read_data.speed_check = speed_check;
	
	dtf_if_add_read_data(&read_data);
	
	if( waitqueue_active( &poll_wait_read ) ){
		_dbgmsg_out("waitqueue_active\n");					/* MSEMSEMSE */
		wake_up_interruptible( &poll_wait_read );
	}
	_dbgmsg_out( "OUT\n ");									/* MSEMSEMSE */
}
Example #8
0
void dtf_if_out_complete_intr(int status)
{
	struct dtf_if_read_data read_data;

	_dbgmsg_out( "IN\n ");
	if ( dtf_if_active == false )
	{
		_dbgmsg_out( "OUT dtf_if_active is false\n ");
		return ;
	}
	/* Event ID set */
	read_data.event_id = DTF_IF_EVENT_COMPLETE_INTR;

	/* Event Data set */
	read_data.status = status;

	dtf_if_add_read_data(&read_data);

	if( waitqueue_active( &poll_wait_read ) ){
		_dbgmsg_out("waitqueue_active\n");
		wake_up_interruptible( &poll_wait_read );
	}
	_dbgmsg_out( "OUT\n ");
}