Name

ata_pci_init_native_mode — Initialize native-mode driver

Synopsis

struct ata_probe_ent * ata_pci_init_native_mode (struct pci_dev *  pdev,
 struct ata_port_info **  port,
 int  ports);

Arguments

pdev

pci device to be initialized

port

array[2] of pointers to port info structures.

ports

bitmap of ports present

Description

Utility function which allocates and initializes an ata_probe_ent structure for a standard dual-port PIO-based IDE controller. The returned ata_probe_ent structure can be passed to ata_device_add. The returned ata_probe_ent structure should then be freed with kfree.

The caller need only pass the address of the primary port, the secondary will be deduced automatically. If the device has non standard secondary port mappings this function can be called twice, once for each interface.