Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
pci_dlpar.c File Reference
#include <linux/pci.h>
#include <linux/export.h>
#include <asm/pci-bridge.h>
#include <asm/ppc-pci.h>
#include <asm/firmware.h>
#include <asm/eeh.h>

Go to the source code of this file.

Functions

struct pci_buspcibios_find_pci_bus (struct device_node *dn)
 
 EXPORT_SYMBOL_GPL (pcibios_find_pci_bus)
 
void __pcibios_remove_pci_devices (struct pci_bus *bus, int purge_pe)
 
void pcibios_remove_pci_devices (struct pci_bus *bus)
 
 EXPORT_SYMBOL_GPL (pcibios_remove_pci_devices)
 
void pcibios_add_pci_devices (struct pci_bus *bus)
 
 EXPORT_SYMBOL_GPL (pcibios_add_pci_devices)
 
struct pci_controller *__devinit init_phb_dynamic (struct device_node *dn)
 
 EXPORT_SYMBOL_GPL (init_phb_dynamic)
 
int remove_phb_dynamic (struct pci_controller *phb)
 
 EXPORT_SYMBOL_GPL (remove_phb_dynamic)
 

Function Documentation

void __pcibios_remove_pci_devices ( struct pci_bus bus,
int  purge_pe 
)

__pcibios_remove_pci_devices - remove all devices under this bus : the indicated PCI bus : destroy the PE on removal of PCI devices

Remove all of the PCI devices under this bus both from the linux pci device tree, and from the powerpc EEH address cache. By default, the corresponding PE will be destroied during the normal PCI hotplug path. For PCI hotplug during EEH recovery, the corresponding PE won't be destroied and deallocated.

Definition at line 78 of file pci_dlpar.c.

EXPORT_SYMBOL_GPL ( pcibios_find_pci_bus  )
EXPORT_SYMBOL_GPL ( pcibios_remove_pci_devices  )
EXPORT_SYMBOL_GPL ( pcibios_add_pci_devices  )
EXPORT_SYMBOL_GPL ( init_phb_dynamic  )
EXPORT_SYMBOL_GPL ( remove_phb_dynamic  )
struct pci_controller* __devinit init_phb_dynamic ( struct device_node dn)
read

Definition at line 152 of file pci_dlpar.c.

void pcibios_add_pci_devices ( struct pci_bus bus)

pcibios_add_pci_devices - adds new pci devices to bus

This routine will find and fixup new pci devices under the indicated bus. This routine presumes that there might already be some devices under this bridge, so it carefully tries to add only new devices. (And that is how this routine differs from other, similar pcibios routines.)

Definition at line 118 of file pci_dlpar.c.

struct pci_bus* pcibios_find_pci_bus ( struct device_node dn)
read

Definition at line 56 of file pci_dlpar.c.

void pcibios_remove_pci_devices ( struct pci_bus bus)

pcibios_remove_pci_devices - remove all devices under this bus

Remove all of the PCI devices under this bus both from the linux pci device tree, and from the powerpc EEH address cache.

Definition at line 102 of file pci_dlpar.c.

int remove_phb_dynamic ( struct pci_controller phb)

Definition at line 180 of file pci_dlpar.c.