.\" 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 "E100_SET_BOOL_OPTION" "" "06 October 2005" "" ""
.SH NAME
e100_set_bool_option \- check and set a boolean option
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void __devinit e100_set_bool_option (struct e100_private * \fIbdp\fB, int \fIval\fB, u32 \fImask\fB, int \fIdefault_val\fB, char * \fIname\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbdp\fB\fR
atapter's private data struct
.TP
\fB\fIval\fB\fR
the value specified
.TP
\fB\fImask\fB\fR
the mask for the relevant option
.TP
\fB\fIdefault_val\fB\fR
the default value
.TP
\fB\fIname\fB\fR
the name of the option
.SH "DESCRIPTION"
.PP
This routine checks a boolean command-line option.
If the option's value is '-1' use the specified default.
Otherwise, if the value is invalid (not 0 or 1),
change it to the default.