.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SN_SAL_SWITCH_TO_INTERRUPTS" "9" "09 October 2005" "" ""
.SH NAME
sn_sal_switch_to_interrupts \- Switch to interrupt driven mode
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void __init sn_sal_switch_to_interrupts (struct sn_cons_port * \fIport\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIport\fB\fR
Our sn_cons_port (which contains the uart port)
.SH "DESCRIPTION"
.PP
In sn_sal_module_init, after we're registered with serial core and
the port is added, this function is called to switch us to interrupt
mode. We were previously in asynch/polling mode (using init_timer).
.PP
We attempt to switch to interrupt mode here by calling
sn_sal_connect_interrupt. If that works out, we enable receive interrupts.