.\" This documentation was generated from the book titled "libATA Developer's Guide", which is part of the Linux kernel source. .\" .\" Documentation by: Jeff Garzik .\" Documentation copyright: 2003 Jeff Garzik .\" This documentation comes with the following legal notice: .\" .\" The contents of this file are subject to the Open .\" Software License version 1.1 that can be found at .\" http://www.opensource.org/licenses/osl-1.1.txt and is included herein .\" by reference. .\" .\" Alternatively, the contents of this file may be used under the terms .\" of the GNU General Public License version 2 (the "GPL") as distributed .\" in the kernel source COPYING file, in which case the provisions of .\" the GPL are applicable instead of the above. If you wish to allow .\" the use of your version of this file only under the terms of the .\" GPL and not to allow others to use your version of this file under .\" the OSL, indicate your decision by deleting the provisions above and .\" replace them with the notice and other provisions required by the GPL. .\" If you do not delete the provisions above, a recipient may use your .\" version of this file under either the OSL or the GPL. .\" .\" For comments on the formatting of this manpage, please contact Michael Still .\" 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_BUS_RESET" "9" "13 April 2004" "" "" .SH NAME ata_bus_reset \- reset host port and associated ATA channel .SH SYNOPSIS .sp \fB .sp void ata_bus_reset (struct ata_port * \fIap\fB); \fR .SH "ARGUMENTS" .TP \fB\fIap\fB\fR port to reset .SH "DESCRIPTION" .PP This is typically the first time we actually start issuing commands to the ATA channel. We wait for BSY to clear, then issue EXECUTE DEVICE DIAGNOSTIC command, polling for its result. Determine what devices, if any, are on the channel by looking at the device 0/1 error register. Look at the signature stored in each device's taskfile registers, to determine if the device is ATA or ATAPI. .SH "LOCKING" .PP Inherited from caller. Some functions called by this function obtain the host_set lock. .SH "SIDE EFFECTS" .PP Sets ATA_FLAG_PORT_DISABLED if bus reset fails. .SH "ABOUT THIS DOCUMENT" .PP This documentation was generated with kernel version 2.6.1.