Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pci_impl.h File Reference
#include <linux/types.h>
#include <linux/spinlock.h>
#include <linux/pci.h>
#include <linux/msi.h>
#include <linux/of_device.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/iommu.h>

Go to the source code of this file.

Data Structures

struct  pci_pbm_info
 

Macros

#define PCI_STC_FLUSHFLAG_INIT(STC)   (*((STC)->strbuf_flushflag) = 0UL)
 
#define PCI_STC_FLUSHFLAG_SET(STC)   (*((STC)->strbuf_flushflag) != 0UL)
 
#define PBM_CHIP_TYPE_SABRE   1
 
#define PBM_CHIP_TYPE_PSYCHO   2
 
#define PBM_CHIP_TYPE_SCHIZO   3
 
#define PBM_CHIP_TYPE_SCHIZO_PLUS   4
 
#define PBM_CHIP_TYPE_TOMATILLO   5
 

Functions

void pci_get_pbm_props (struct pci_pbm_info *pbm)
 
struct pci_buspci_scan_one_pbm (struct pci_pbm_info *pbm, struct device *parent)
 
void pci_determine_mem_io_space (struct pci_pbm_info *pbm)
 
void pci_scan_for_target_abort (struct pci_pbm_info *, struct pci_bus *)
 
void pci_scan_for_master_abort (struct pci_pbm_info *, struct pci_bus *)
 
void pci_scan_for_parity_error (struct pci_pbm_info *, struct pci_bus *)
 
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)
 

Variables

struct pci_pbm_infopci_pbm_root
 
int pci_num_pbms
 
struct pci_ops sun4u_pci_ops
 
struct pci_ops sun4v_pci_ops
 
volatile int pci_poke_in_progress
 
volatile int pci_poke_cpu
 
volatile int pci_poke_faulted
 

Macro Definition Documentation

#define PBM_CHIP_TYPE_PSYCHO   2

Definition at line 83 of file pci_impl.h.

#define PBM_CHIP_TYPE_SABRE   1

Definition at line 82 of file pci_impl.h.

#define PBM_CHIP_TYPE_SCHIZO   3

Definition at line 84 of file pci_impl.h.

#define PBM_CHIP_TYPE_SCHIZO_PLUS   4

Definition at line 85 of file pci_impl.h.

#define PBM_CHIP_TYPE_TOMATILLO   5

Definition at line 86 of file pci_impl.h.

#define PCI_STC_FLUSHFLAG_INIT (   STC)    (*((STC)->strbuf_flushflag) = 0UL)

Definition at line 28 of file pci_impl.h.

#define PCI_STC_FLUSHFLAG_SET (   STC)    (*((STC)->strbuf_flushflag) != 0UL)

Definition at line 30 of file pci_impl.h.

Function Documentation

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.

void pci_determine_mem_io_space ( struct pci_pbm_info pbm)

Definition at line 394 of file pci_common.c.

void pci_get_pbm_props ( struct pci_pbm_info pbm)

Definition at line 318 of file pci_common.c.

void pci_scan_for_master_abort ( struct pci_pbm_info ,
struct pci_bus  
)

Definition at line 509 of file pci_common.c.

void pci_scan_for_parity_error ( struct pci_pbm_info ,
struct pci_bus  
)

Definition at line 532 of file pci_common.c.

void pci_scan_for_target_abort ( struct pci_pbm_info ,
struct pci_bus  
)

Definition at line 485 of file pci_common.c.

struct pci_bus* pci_scan_one_pbm ( struct pci_pbm_info pbm,
struct device parent 
)
read

Definition at line 588 of file pci.c.

Variable Documentation

int pci_num_pbms

Definition at line 36 of file pci.c.

struct pci_pbm_info* pci_pbm_root

Definition at line 33 of file pci.c.

volatile int pci_poke_cpu

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.

struct pci_ops sun4u_pci_ops

Definition at line 252 of file pci_common.c.

struct pci_ops sun4v_pci_ops

Definition at line 313 of file pci_common.c.