kernels/linux-2.4.0/drivers/net/wan/sdla_chdlc.c
/*============================================================================
 * Disable communications and Drop the Modem lines (DCD and RTS).
 */
Disable communications and Drop the Modem lines (DCD and RTS).
Disable communications and Drop the Modem lines ( DCD and RTS ) .
static int chdlc_comm_disable (sdla_t* card)
{
	int err;
	CHDLC_MAILBOX_STRUCT* mb = card->mbox;
	mb->buffer_length = 0;
	mb->command = DISABLE_CHDLC_COMMUNICATIONS;
	err = sdla_exec(mb) ? mb->return_code : CMD_TIMEOUT;
	if (err != COMMAND_OK)
		chdlc_error(card,err,mb);
	mb->command = SET_MODEM_STATUS;
	mb->buffer_length = 1;
	mb->data[0] = 0;
	err = sdla_exec(mb) ? mb->return_code : CMD_TIMEOUT;
	if (err != COMMAND_OK)
		chdlc_error(card,err,mb);
	return err;
}
static int chdlc_comm_disable ( sdla_t * card ) { int err ; CHDLC_MAILBOX_STRUCT * mb = card -> mbox ; mb -> buffer_length = 0 ; mb -> command = DISABLE_CHDLC_COMMUNICATIONS ; err = sdla_exec ( mb ) ? mb -> return_code : CMD_TIMEOUT ; if ( err != COMMAND_OK ) chdlc_error ( card , err , mb ) ; mb -> command = SET_MODEM_STATUS ; mb -> buffer_length = 1 ; mb -> data [ 0 ] = 0 ; err = sdla_exec ( mb ) ? mb -> return_code : CMD_TIMEOUT ; if ( err != COMMAND_OK ) chdlc_error ( card , err , mb ) ; return err ; }
Disable communications and Drop the Modem lines (DCD and RTS).
Disable communications and Drop the Modem lines ( DCD and RTS ) .