Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci.c File Reference
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/sched.h>
#include <linux/capability.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/msi.h>
#include <linux/irq.h>
#include <linux/init.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/irq.h>
#include <asm/prom.h>
#include <asm/apb.h>
#include "pci_impl.h"

Go to the source code of this file.


#define GET_64BIT(prop, i)   ((((u64) (prop)[(i)]) << 32) | (prop)[(i)+1])


void pci_config_read8 (u8 *addr, u8 *ret)
void pci_config_read16 (u16 *addr, u16 *ret)
void pci_config_read32 (u32 *addr, u32 *ret)
void pci_config_write8 (u8 *addr, u8 val)
void pci_config_write16 (u16 *addr, u16 val)
void pci_config_write32 (u32 *addr, u32 val)
 __setup ("ofpci_debug=", ofpci_debug)
struct pci_bus *__devinit pci_scan_one_pbm (struct pci_pbm_info *pbm, struct device *parent)
void __devinit pcibios_fixup_bus (struct pci_bus *pbus)
resource_size_t pcibios_align_resource (void *data, const struct resource *res, resource_size_t size, resource_size_t align)
int pcibios_enable_device (struct pci_dev *dev, int mask)
int pci_mmap_page_range (struct pci_dev *dev, struct vm_area_struct *vma, enum pci_mmap_state mmap_state, int write_combine)
int pci_domain_nr (struct pci_bus *pbus)
 EXPORT_SYMBOL (pci_domain_nr)
int pci64_dma_supported (struct pci_dev *pdev, u64 device_mask)
void pci_resource_to_user (const struct pci_dev *pdev, int bar, const struct resource *rp, resource_size_t *start, resource_size_t *end)
void pcibios_set_master (struct pci_dev *dev)
 subsys_initcall (pcibios_init)


struct pci_pbm_infopci_pbm_root = NULL
int pci_num_pbms = 0
volatile int pci_poke_in_progress
volatile int pci_poke_cpu = -1
volatile int pci_poke_faulted

Macro Definition Documentation

#define GET_64BIT (   prop,
)    ((((u64) (prop)[(i)]) << 32) | (prop)[(i)+1])

Definition at line 411 of file pci.c.

Function Documentation

__setup ( )
EXPORT_SYMBOL ( pci_domain_nr  )
int pci64_dma_supported ( struct pci_dev pdev,
u64  device_mask 

Definition at line 897 of file pci.c.

void pci_config_read16 ( u16 addr,
u16 ret 

Definition at line 66 of file pci.c.

void pci_config_read32 ( u32 addr,
u32 ret 

Definition at line 88 of file pci.c.

void pci_config_read8 ( u8 addr,
u8 ret 

Definition at line 44 of file pci.c.

void pci_config_write16 ( u16 addr,
u16  val 

Definition at line 129 of file pci.c.

void pci_config_write32 ( u32 addr,
u32  val 

Definition at line 148 of file pci.c.

void pci_config_write8 ( u8 addr,
u8  val 

Definition at line 110 of file pci.c.

int pci_domain_nr ( struct pci_bus pbus)

Definition at line 838 of file pci.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 802 of file pci.c.

void pci_resource_to_user ( const struct pci_dev pdev,
int  bar,
const struct resource rp,
resource_size_t start,
resource_size_t end 

Definition at line 923 of file pci.c.

struct pci_bus* __devinit pci_scan_one_pbm ( struct pci_pbm_info pbm,
struct device parent 

Definition at line 588 of file pci.c.

resource_size_t pcibios_align_resource ( void data,
const struct resource res,
resource_size_t  size,
resource_size_t  align 

Definition at line 625 of file pci.c.

int pcibios_enable_device ( struct pci_dev dev,
int  mask 

Definition at line 631 of file pci.c.

void __devinit pcibios_fixup_bus ( struct pci_bus pbus)

Definition at line 621 of file pci.c.

void pcibios_set_master ( struct pci_dev dev)

Definition at line 939 of file pci.c.

subsys_initcall ( pcibios_init  )

Variable Documentation

int pci_num_pbms = 0

Definition at line 36 of file pci.c.

struct pci_pbm_info* pci_pbm_root = NULL

Definition at line 33 of file pci.c.

volatile int pci_poke_cpu = -1

Definition at line 39 of file pci.c.

volatile int pci_poke_faulted

Definition at line 40 of file pci.c.

volatile int pci_poke_in_progress

Definition at line 38 of file pci.c.