Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/export.h>
#include <linux/of_address.h>
#include <linux/of_pci.h>
#include <linux/mm.h>
#include <linux/list.h>
#include <linux/syscalls.h>
#include <linux/irq.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <asm/processor.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/pci-bridge.h>
#include <asm/byteorder.h>
#include <asm/machdep.h>
#include <asm/ppc-pci.h>
#include <asm/eeh.h>
Go to the source code of this file.
Macros | |
#define | NULL_PCI_OP(rw, size, type) |
#define | EARLY_PCI_OP(rw, size, type) |
Variables | |
resource_size_t | isa_mem_base |
Definition at line 1568 of file pci-common.c.
DECLARE_PCI_FIXUP_HEADER | ( | PCI_ANY_ID | , |
PCI_ANY_ID | , | ||
pcibios_fixup_resources | |||
) |
DECLARE_PCI_FIXUP_HEADER | ( | PCI_VENDOR_ID_MOTOROLA | , |
PCI_ANY_ID | , | ||
fixup_hide_host_resource_fsl | |||
) |
DECLARE_PCI_FIXUP_HEADER | ( | PCI_VENDOR_ID_FREESCALE | , |
PCI_ANY_ID | , | ||
fixup_hide_host_resource_fsl | |||
) |
Definition at line 1629 of file pci-common.c.
EXPORT_SYMBOL | ( | get_pci_dma_ops | ) |
EXPORT_SYMBOL | ( | pci_domain_nr | ) |
EXPORT_SYMBOL | ( | pcibios_fixup_bus | ) |
EXPORT_SYMBOL | ( | pcibios_align_resource | ) |
EXPORT_SYMBOL_GPL | ( | pci_address_to_pio | ) |
|
read |
Definition at line 60 of file pci-common.c.
LIST_HEAD | ( | hose_list | ) |
unsigned long pci_address_to_pio | ( | phys_addr_t | address | ) |
Definition at line 150 of file pci-common.c.
pci_bus_find_capability - query for devices' capabilities : the PCI bus to query : PCI device to query : capability code
Like pci_find_capability() but works for pci devices that do not have a pci_dev structure set up yet.
Returns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it.
Definition at line 176 of file pci-common.c.
|
read |
Definition at line 191 of file pci-common.c.
Definition at line 1083 of file pci-common.c.
Definition at line 467 of file pci-common.c.
Definition at line 507 of file pci-common.c.
int pci_mmap_legacy_page_range | ( | struct pci_bus * | bus, |
struct vm_area_struct * | vma, | ||
enum pci_mmap_state | mmap_state | ||
) |
pci_mmap_legacy_page_range - map legacy memory space to userland : bus whose legacy space we're mapping : vma passed in by mmap
Map legacy memory space for this device back to userspace using a machine vector to get the base address.
Definition at line 552 of file pci-common.c.
int pci_mmap_page_range | ( | struct pci_dev * | dev, |
struct vm_area_struct * | vma, | ||
enum pci_mmap_state | mmap_state, | ||
int | write_combine | ||
) |
Definition at line 443 of file pci-common.c.
pgprot_t pci_phys_mem_access_prot | ( | struct file * | file, |
unsigned long | pfn, | ||
unsigned long | size, | ||
pgprot_t | prot | ||
) |
Definition at line 388 of file pci-common.c.
Definition at line 837 of file pci-common.c.
void __devinit pci_process_bridge_OF_ranges | ( | struct pci_controller * | hose, |
struct device_node * | dev, | ||
int | primary | ||
) |
pci_process_bridge_OF_ranges - Parse PCI bridge resources from device tree : newly allocated pci_controller to be setup : device node of the host bridge : set if primary bus (32 bits only, soon to be deprecated)
This function will parse the "ranges" property of a PCI host bridge device node and setup the resource mapping of a pci controller based on its content.
Life would be boring if it wasn't for a few issues that we have to deal with here:
Definition at line 676 of file pci-common.c.
void pci_resource_to_user | ( | const struct pci_dev * | dev, |
int | bar, | ||
const struct resource * | rsrc, | ||
resource_size_t * | start, | ||
resource_size_t * | end | ||
) |
Definition at line 604 of file pci-common.c.
Definition at line 218 of file pci-common.c.
resource_size_t pcibios_align_resource | ( | void * | data, |
const struct resource * | res, | ||
resource_size_t | size, | ||
resource_size_t | align | ||
) |
Definition at line 1111 of file pci-common.c.
|
read |
Definition at line 66 of file pci-common.c.
Definition at line 1198 of file pci-common.c.
Definition at line 1493 of file pci-common.c.
Definition at line 1066 of file pci-common.c.
void pcibios_free_controller | ( | struct pci_controller * | phb | ) |
Definition at line 92 of file pci-common.c.
|
read |
Definition at line 1635 of file pci-common.c.
resource_size_t pcibios_io_space_offset | ( | struct pci_controller * | hose | ) |
Definition at line 1502 of file pci-common.c.
Definition at line 1399 of file pci-common.c.
void __devinit pcibios_scan_phb | ( | struct pci_controller * | hose | ) |
pci_scan_phb - Given a pci_controller, setup and scan the PCI bus : Pointer to the PCI host controller instance structure
Definition at line 1646 of file pci-common.c.
Definition at line 1061 of file pci-common.c.
Definition at line 1027 of file pci-common.c.
Definition at line 1010 of file pci-common.c.
Definition at line 131 of file pci-common.c.
resource_size_t pcibios_window_alignment | ( | struct pci_bus * | bus, |
unsigned long | type | ||
) |
Definition at line 108 of file pci-common.c.
void set_pci_dma_ops | ( | struct dma_map_ops * | dma_ops | ) |
Definition at line 55 of file pci-common.c.
resource_size_t isa_mem_base |
Definition at line 50 of file pci-common.c.