Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mpc52xx_pci.c File Reference
#include <asm/pci.h>
#include <asm/mpc52xx.h>
#include <asm/delay.h>
#include <asm/machdep.h>
#include <linux/kernel.h>

Go to the source code of this file.

Data Structures

struct  mpc52xx_pci
 

Macros

#define MPC52xx_PCI_GSCR_BM   0x40000000
 
#define MPC52xx_PCI_GSCR_PE   0x20000000
 
#define MPC52xx_PCI_GSCR_SE   0x10000000
 
#define MPC52xx_PCI_GSCR_XLB2PCI_MASK   0x07000000
 
#define MPC52xx_PCI_GSCR_XLB2PCI_SHIFT   24
 
#define MPC52xx_PCI_GSCR_IPG2PCI_MASK   0x00070000
 
#define MPC52xx_PCI_GSCR_IPG2PCI_SHIFT   16
 
#define MPC52xx_PCI_GSCR_BME   0x00004000
 
#define MPC52xx_PCI_GSCR_PEE   0x00002000
 
#define MPC52xx_PCI_GSCR_SEE   0x00001000
 
#define MPC52xx_PCI_GSCR_PR   0x00000001
 
#define MPC52xx_PCI_IWBTAR_TRANSLATION(proc_ad, pci_ad, size)
 
#define MPC52xx_PCI_IWCR_PACK(win0, win1, win2)
 
#define MPC52xx_PCI_IWCR_DISABLE   0x0
 
#define MPC52xx_PCI_IWCR_ENABLE   0x1
 
#define MPC52xx_PCI_IWCR_READ   0x0
 
#define MPC52xx_PCI_IWCR_READ_LINE   0x2
 
#define MPC52xx_PCI_IWCR_READ_MULTI   0x4
 
#define MPC52xx_PCI_IWCR_MEM   0x0
 
#define MPC52xx_PCI_IWCR_IO   0x8
 
#define MPC52xx_PCI_TCR_P   0x01000000
 
#define MPC52xx_PCI_TCR_LD   0x00010000
 
#define MPC52xx_PCI_TCR_WCT8   0x00000008
 
#define MPC52xx_PCI_TBATR_DISABLE   0x0
 
#define MPC52xx_PCI_TBATR_ENABLE   0x1
 

Functions

int __init mpc52xx_add_bridge (struct device_node *node)
 
void __init mpc52xx_setup_pci (void)
 

Variables

struct of_device_id
mpc52xx_pci_ids[] 
__initconst
 

Macro Definition Documentation

#define MPC52xx_PCI_GSCR_BM   0x40000000

Definition at line 26 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_BME   0x00004000

Definition at line 33 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_IPG2PCI_MASK   0x00070000

Definition at line 31 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_IPG2PCI_SHIFT   16

Definition at line 32 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_PE   0x20000000

Definition at line 27 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_PEE   0x00002000

Definition at line 34 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_PR   0x00000001

Definition at line 36 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_SE   0x10000000

Definition at line 28 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_SEE   0x00001000

Definition at line 35 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_XLB2PCI_MASK   0x07000000

Definition at line 29 of file mpc52xx_pci.c.

#define MPC52xx_PCI_GSCR_XLB2PCI_SHIFT   24

Definition at line 30 of file mpc52xx_pci.c.

#define MPC52xx_PCI_IWBTAR_TRANSLATION (   proc_ad,
  pci_ad,
  size 
)
Value:
( ( (proc_ad) & 0xff000000 ) | \
( (((size) - 1) >> 8) & 0x00ff0000 ) | \
( ((pci_ad) >> 16) & 0x0000ff00 ) )

Definition at line 39 of file mpc52xx_pci.c.

#define MPC52xx_PCI_IWCR_DISABLE   0x0

Definition at line 48 of file mpc52xx_pci.c.

#define MPC52xx_PCI_IWCR_ENABLE   0x1

Definition at line 49 of file mpc52xx_pci.c.

#define MPC52xx_PCI_IWCR_IO   0x8

Definition at line 54 of file mpc52xx_pci.c.

#define MPC52xx_PCI_IWCR_MEM   0x0

Definition at line 53 of file mpc52xx_pci.c.

#define MPC52xx_PCI_IWCR_PACK (   win0,
  win1,
  win2 
)
Value:
(((win0) << 24) | \
((win1) << 16) | \
((win2) << 8))

Definition at line 44 of file mpc52xx_pci.c.

#define MPC52xx_PCI_IWCR_READ   0x0

Definition at line 50 of file mpc52xx_pci.c.

#define MPC52xx_PCI_IWCR_READ_LINE   0x2

Definition at line 51 of file mpc52xx_pci.c.

#define MPC52xx_PCI_IWCR_READ_MULTI   0x4

Definition at line 52 of file mpc52xx_pci.c.

#define MPC52xx_PCI_TBATR_DISABLE   0x0

Definition at line 60 of file mpc52xx_pci.c.

#define MPC52xx_PCI_TBATR_ENABLE   0x1

Definition at line 61 of file mpc52xx_pci.c.

#define MPC52xx_PCI_TCR_LD   0x00010000

Definition at line 57 of file mpc52xx_pci.c.

#define MPC52xx_PCI_TCR_P   0x01000000

Definition at line 56 of file mpc52xx_pci.c.

#define MPC52xx_PCI_TCR_WCT8   0x00000008

Definition at line 58 of file mpc52xx_pci.c.

Function Documentation

int __init mpc52xx_add_bridge ( struct device_node node)

Definition at line 364 of file mpc52xx_pci.c.

void __init mpc52xx_setup_pci ( void  )

Definition at line 418 of file mpc52xx_pci.c.

Variable Documentation

struct of_device_id mpc52xx_pci_ids [] __initconst
Initial value:
= {
{ .type = "pci", .compatible = "fsl,mpc5200-pci", },
{ .type = "pci", .compatible = "mpc5200-pci", },
{}
}

Definition at line 96 of file mpc52xx_pci.c.