Provided by: linux-doc-2.6.15_2.6.15-23.39_all
ata_pci_init_one - Initialize/register PCI IDE host controller
int ata_pci_init_one (struct pci_dev * pdev,
struct ata_port_info ** port_info,
unsigned int n_ports);
pdev Controller to be initialized
Information from low-level host driver
Number of ports attached to host controller
This is a helper function which can be called from a driver’s
xxx_init_one probe function if the hardware uses traditional IDE
This function calls pci_enable_device, reserves its register regions,
sets the dma mask, enables bus master mode, and calls ata_device_add
Inherited from PCI layer (may sleep).
Zero on success, negative on errno-based value on error.