Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
setup-pci.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/ide.h>
#include <linux/dma-mapping.h>
#include <asm/io.h>

Go to the source code of this file.

Functions

: Name of interface

ide_setup_pci_baseregs - place a PCI IDE controller native : PCI device of interface to switch native

We attempt to place the PCI interface into PCI native mode. If we succeed the BARs are ok and the controller is in PCI mode. Returns 0 on success or an errno code.

FIXME: if we program the interface and then fail to set the BARS we don't switch it back to legacy mode. Do we actually care ??

void ide_setup_pci_noise (struct pci_dev *dev, const struct ide_port_info *d)
 
 EXPORT_SYMBOL_GPL (ide_setup_pci_noise)
 
void ide_pci_setup_ports (struct pci_dev *dev, const struct ide_port_info *d, struct ide_hw *hw, struct ide_hw **hws)
 
 EXPORT_SYMBOL_GPL (ide_pci_setup_ports)
 
int ide_pci_init_two (struct pci_dev *dev1, struct pci_dev *dev2, const struct ide_port_info *d, void *priv)
 
 EXPORT_SYMBOL_GPL (ide_pci_init_two)
 
int ide_pci_init_one (struct pci_dev *dev, const struct ide_port_info *d, void *priv)
 
 EXPORT_SYMBOL_GPL (ide_pci_init_one)
 
void ide_pci_remove (struct pci_dev *dev)
 
 EXPORT_SYMBOL_GPL (ide_pci_remove)
 

Function Documentation

EXPORT_SYMBOL_GPL ( ide_setup_pci_noise  )
EXPORT_SYMBOL_GPL ( ide_pci_setup_ports  )
EXPORT_SYMBOL_GPL ( ide_pci_init_two  )
EXPORT_SYMBOL_GPL ( ide_pci_init_one  )
EXPORT_SYMBOL_GPL ( ide_pci_remove  )
int ide_pci_init_one ( struct pci_dev dev,
const struct ide_port_info d,
void priv 
)

Definition at line 597 of file setup-pci.c.

int ide_pci_init_two ( struct pci_dev dev1,
struct pci_dev dev2,
const struct ide_port_info d,
void priv 
)

Definition at line 538 of file setup-pci.c.

void ide_pci_remove ( struct pci_dev dev)

Definition at line 604 of file setup-pci.c.

void ide_pci_setup_ports ( struct pci_dev dev,
const struct ide_port_info d,
struct ide_hw hw,
struct ide_hw **  hws 
)

ide_pci_setup_ports - configure ports/devices on PCI IDE : PCI device : IDE port info : struct ide_hw instances corresponding to this PCI IDE device : struct ide_hw pointers table to update

Scan the interfaces attached to this device and do any necessary per port setup. Attach the devices and ask the generic DMA layer to do its work for us.

Normally called automaticall from do_ide_pci_setup_device, but is also used directly as a helper function by some controllers where the chipset setup is not the default PCI IDE one.

Definition at line 461 of file setup-pci.c.

void ide_setup_pci_noise ( struct pci_dev dev,
const struct ide_port_info d 
)

Definition at line 170 of file setup-pci.c.