.\" 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 "ATA_PIO_DEVCHK" "9" "09 October 2005" "" "" .SH NAME ata_pio_devchk \- PATA device presence detection .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp unsigned int ata_pio_devchk (struct ata_port * \fIap\fB, unsigned int \fIdevice\fB); \fR .SH "ARGUMENTS" .TP \fB\fIap\fB\fR ATA channel to examine .TP \fB\fIdevice\fB\fR Device to examine (starting at zero) .SH "DESCRIPTION" .PP This technique was originally described in Hale Landis's ATADRVR (www.ata-atapi.com), and later found its way into the ATA/ATAPI spec. .PP Write a pattern to the ATA shadow registers, and if a device is present, it will respond by correctly storing and echoing back the ATA shadow register contents. .SH "LOCKING" .PP caller.