Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
pci_dn.c File Reference
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/string.h>
#include <linux/export.h>
#include <linux/init.h>
#include <linux/gfp.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/pci-bridge.h>
#include <asm/ppc-pci.h>
#include <asm/firmware.h>

Go to the source code of this file.

Functions

void *__devinit update_dn_pci_info (struct device_node *dn, void *data)
 
voidtraverse_pci_devices (struct device_node *start, traverse_func pre, void *data)
 
void __devinit pci_devs_phb_init_dynamic (struct pci_controller *phb)
 
void __init pci_devs_phb_init (void)
 

Function Documentation

void __init pci_devs_phb_init ( void  )

pci_devs_phb_init - Initialize phbs and pci devs under them.

This routine walks over all phb's (pci-host bridges) on the system, and sets up assorted pci-related structures (including pci info in the device node structs) for each pci device found underneath. This routine runs once, early in the boot sequence.

Definition at line 158 of file pci_dn.c.

void __devinit pci_devs_phb_init_dynamic ( struct pci_controller phb)

pci_devs_phb_init_dynamic - setup pci devices under this PHB phb: pci-to-host bridge (top-level bridge connecting to cpu)

This routine is called both during boot, (before the memory subsystem is set up, before kmalloc is valid) and during the dynamic lpar operation of adding a PHB to a running system.

Definition at line 132 of file pci_dn.c.

void* traverse_pci_devices ( struct device_node start,
traverse_func  pre,
void data 
)

Definition at line 85 of file pci_dn.c.

void* __devinit update_dn_pci_info ( struct device_node dn,
void data 
)

Definition at line 39 of file pci_dn.c.