.\" 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_PCI_INIT_ONE" "9" "09 October 2005" "" ""
.SH NAME
ata_pci_init_one \- Initialize/register PCI IDE host controller
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ata_pci_init_one (struct pci_dev * \fIpdev\fB, struct ata_port_info ** \fIport_info\fB, unsigned int \fIn_ports\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIpdev\fB\fR
Controller to be initialized
.TP
\fB\fIport_info\fB\fR
Information from low-level host driver
.TP
\fB\fIn_ports\fB\fR
Number of ports attached to host controller
.SH "DESCRIPTION"
.PP
This is a helper function which can be called from a driver's
\fBxxx_init_one\fR probe function if the hardware uses traditional
IDE taskfile registers.
.PP
This function calls \fBpci_enable_device\fR, reserves its register
regions, sets the dma mask, enables bus master mode, and calls
\fBata_device_add\fR
.SH "LOCKING"
.PP
Inherited from PCI layer (may sleep).
.SH "RETURNS"
.PP
Zero on success, negative on errno-based value on error.