Linux Kernel
3.7.1
|
#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) |
void * | traverse_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) |
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.
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.
void* traverse_pci_devices | ( | struct device_node * | start, |
traverse_func | pre, | ||
void * | data | ||
) |