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

Go to the source code of this file.

Functions

unsigned int pci_parse_of_flags (u32 addr0, int bridge)
 
struct pci_devof_create_pci_dev (struct device_node *node, struct pci_bus *bus, int devfn)
 
 EXPORT_SYMBOL (of_create_pci_dev)
 
void __devinit of_scan_pci_bridge (struct pci_dev *dev)
 
 EXPORT_SYMBOL (of_scan_pci_bridge)
 
void __devinit of_scan_bus (struct device_node *node, struct pci_bus *bus)
 
 EXPORT_SYMBOL_GPL (of_scan_bus)
 
void __devinit of_rescan_bus (struct device_node *node, struct pci_bus *bus)
 
 EXPORT_SYMBOL_GPL (of_rescan_bus)
 

Function Documentation

EXPORT_SYMBOL ( of_create_pci_dev  )
EXPORT_SYMBOL ( of_scan_pci_bridge  )
EXPORT_SYMBOL_GPL ( of_scan_bus  )
EXPORT_SYMBOL_GPL ( of_rescan_bus  )
struct pci_dev* of_create_pci_dev ( struct device_node node,
struct pci_bus bus,
int  devfn 
)
read

of_create_pci_dev - Given a device tree node on a pci bus, create a pci_dev : device tree node pointer : bus the device is sitting on : PCI function number, extracted from device tree by caller.

Definition at line 124 of file pci_of_scan.c.

void __devinit of_rescan_bus ( struct device_node node,
struct pci_bus bus 
)

of_rescan_bus - given a PCI bus node, scan for child devices : device tree node for the PCI bus : pci_bus structure for the PCI bus

Same as of_scan_bus, but for a pci_bus structure that has already been setup.

Definition at line 366 of file pci_of_scan.c.

void __devinit of_scan_bus ( struct device_node node,
struct pci_bus bus 
)

of_scan_bus - given a PCI bus node, setup bus and scan for child devices : device tree node for the PCI bus : pci_bus structure for the PCI bus

Definition at line 351 of file pci_of_scan.c.

void __devinit of_scan_pci_bridge ( struct pci_dev dev)

of_scan_pci_bridge - Set up a PCI bridge and scan for child nodes : pci_dev structure for the bridge

of_scan_bus() calls this routine for each PCI bridge that it finds, and this routine in turn call of_scan_bus() recusively to scan for more child devices.

Definition at line 207 of file pci_of_scan.c.

unsigned int pci_parse_of_flags ( u32  addr0,
int  bridge 
)

pci_parse_of_flags - Parse the flags cell of a device tree PCI address : value of 1st cell of a device tree PCI address. : Set this flag if the address is from a bridge 'ranges' property

Definition at line 41 of file pci_of_scan.c.