Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
psycho_common.h File Reference

Go to the source code of this file.

Macros

#define PSYCHO_CONFIG_BASE(PBM)   ((PBM)->config_space | (1UL << 24))
 
#define PSYCHO_CONFIG_ENCODE(BUS, DEVFN, REG)
 

Enumerations

enum  psycho_error_type { UE_ERR, CE_ERR, PCI_ERR }
 

Functions

void psycho_check_iommu_error (struct pci_pbm_info *pbm, unsigned long afsr, unsigned long afar, enum psycho_error_type type)
 
irqreturn_t psycho_pcierr_intr (int irq, void *dev_id)
 
int psycho_iommu_init (struct pci_pbm_info *pbm, int tsbsize, u32 dvma_offset, u32 dma_mask, unsigned long write_complete_offset)
 
void psycho_pbm_init_common (struct pci_pbm_info *pbm, struct platform_device *op, const char *chip_name, int chip_type)
 

Macro Definition Documentation

#define PSYCHO_CONFIG_BASE (   PBM)    ((PBM)->config_space | (1UL << 24))

Definition at line 12 of file psycho_common.h.

#define PSYCHO_CONFIG_ENCODE (   BUS,
  DEVFN,
  REG 
)
Value:
(((unsigned long)(BUS) << 16) | \
((unsigned long)(DEVFN) << 8) | \
((unsigned long)(REG)))

Definition at line 14 of file psycho_common.h.

Enumeration Type Documentation

Enumerator:
UE_ERR 
CE_ERR 
PCI_ERR 

Definition at line 29 of file psycho_common.h.

Function Documentation

void psycho_check_iommu_error ( struct pci_pbm_info pbm,
unsigned long  afsr,
unsigned long  afar,
enum psycho_error_type  type 
)

Definition at line 200 of file psycho_common.c.

int psycho_iommu_init ( struct pci_pbm_info pbm,
int  tsbsize,
u32  dvma_offset,
u32  dma_mask,
unsigned long  write_complete_offset 
)

Definition at line 398 of file psycho_common.c.

void psycho_pbm_init_common ( struct pci_pbm_info pbm,
struct platform_device op,
const char chip_name,
int  chip_type 
)

Definition at line 450 of file psycho_common.c.

irqreturn_t psycho_pcierr_intr ( int  irq,
void dev_id 
)

Definition at line 303 of file psycho_common.c.