.\" 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 "DRIVE_IS_FLASHCARD" "9" "09 October 2005" "" ""
.SH NAME
drive_is_flashcard \- check for compact flash
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int drive_is_flashcard (ide_drive_t * \fIdrive\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdrive\fB\fR
drive to check
.SH "DESCRIPTION"
.PP
CompactFlash cards and their brethern pretend to be removable
hard disks, except:
(1) they never have a slave unit, and
(2) they don't have doorlock mechanisms.
This test catches them, and is invoked elsewhere when setting
appropriate config bits.
.SH "FIXME"
.PP
This treatment is probably applicable for *all* PCMCIA (PC CARD)
devices, so in linux 2.3.x we should change this to just treat all
PCMCIA drives this way, and get rid of the model-name tests below
(too big of an interface change for 2.4.x).
At that time, we might also consider parameterizing the timeouts and
retries, since these are MUCH faster than mechanical drives. -M.Lord