Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci-lantiq.c File Reference
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/module.h>
#include <linux/clk.h>
#include <linux/of_platform.h>
#include <linux/of_gpio.h>
#include <linux/of_irq.h>
#include <linux/of_pci.h>
#include <asm/pci.h>
#include <asm/gpio.h>
#include <asm/addrspace.h>
#include <lantiq_soc.h>
#include <lantiq_irq.h>
#include "pci-lantiq.h"

Go to the source code of this file.

Macros

#define PCI_CR_FCI_ADDR_MAP0   0x00C0
 
#define PCI_CR_FCI_ADDR_MAP1   0x00C4
 
#define PCI_CR_FCI_ADDR_MAP2   0x00C8
 
#define PCI_CR_FCI_ADDR_MAP3   0x00CC
 
#define PCI_CR_FCI_ADDR_MAP4   0x00D0
 
#define PCI_CR_FCI_ADDR_MAP5   0x00D4
 
#define PCI_CR_FCI_ADDR_MAP6   0x00D8
 
#define PCI_CR_FCI_ADDR_MAP7   0x00DC
 
#define PCI_CR_CLK_CTRL   0x0000
 
#define PCI_CR_PCI_MOD   0x0030
 
#define PCI_CR_PC_ARB   0x0080
 
#define PCI_CR_FCI_ADDR_MAP11hg   0x00E4
 
#define PCI_CR_BAR11MASK   0x0044
 
#define PCI_CR_BAR12MASK   0x0048
 
#define PCI_CR_BAR13MASK   0x004C
 
#define PCI_CS_BASE_ADDR1   0x0010
 
#define PCI_CR_PCI_ADDR_MAP11   0x0064
 
#define PCI_CR_FCI_BURST_LENGTH   0x00E8
 
#define PCI_CR_PCI_EOI   0x002C
 
#define PCI_CS_STS_CMD   0x0004
 
#define PCI_MASTER0_REQ_MASK_2BITS   8
 
#define PCI_MASTER1_REQ_MASK_2BITS   10
 
#define PCI_MASTER2_REQ_MASK_2BITS   12
 
#define INTERNAL_ARB_ENABLE_BIT   0
 
#define LTQ_CGU_IFCCR   0x0018
 
#define LTQ_CGU_PCICR   0x0034
 
#define ltq_pci_w32(x, y)   ltq_w32((x), ltq_pci_membase + (y))
 
#define ltq_pci_r32(x)   ltq_r32(ltq_pci_membase + (x))
 
#define ltq_pci_cfg_w32(x, y)   ltq_w32((x), ltq_pci_mapped_cfg + (y))
 
#define ltq_pci_cfg_r32(x)   ltq_r32(ltq_pci_mapped_cfg + (x))
 

Functions

 MODULE_DEVICE_TABLE (of, ltq_pci_match)
 
int __init pcibios_init (void)
 
 arch_initcall (pcibios_init)
 

Variables

__iomem voidltq_pci_mapped_cfg
 

Macro Definition Documentation

#define INTERNAL_ARB_ENABLE_BIT   0

Definition at line 56 of file pci-lantiq.c.

#define LTQ_CGU_IFCCR   0x0018

Definition at line 58 of file pci-lantiq.c.

#define LTQ_CGU_PCICR   0x0034

Definition at line 59 of file pci-lantiq.c.

#define ltq_pci_cfg_r32 (   x)    ltq_r32(ltq_pci_mapped_cfg + (x))

Definition at line 65 of file pci-lantiq.c.

#define ltq_pci_cfg_w32 (   x,
  y 
)    ltq_w32((x), ltq_pci_mapped_cfg + (y))

Definition at line 64 of file pci-lantiq.c.

#define ltq_pci_r32 (   x)    ltq_r32(ltq_pci_membase + (x))

Definition at line 62 of file pci-lantiq.c.

#define ltq_pci_w32 (   x,
  y 
)    ltq_w32((x), ltq_pci_membase + (y))

Definition at line 61 of file pci-lantiq.c.

#define PCI_CR_BAR11MASK   0x0044

Definition at line 44 of file pci-lantiq.c.

#define PCI_CR_BAR12MASK   0x0048

Definition at line 45 of file pci-lantiq.c.

#define PCI_CR_BAR13MASK   0x004C

Definition at line 46 of file pci-lantiq.c.

#define PCI_CR_CLK_CTRL   0x0000

Definition at line 40 of file pci-lantiq.c.

#define PCI_CR_FCI_ADDR_MAP0   0x00C0

Definition at line 32 of file pci-lantiq.c.

#define PCI_CR_FCI_ADDR_MAP1   0x00C4

Definition at line 33 of file pci-lantiq.c.

#define PCI_CR_FCI_ADDR_MAP11hg   0x00E4

Definition at line 43 of file pci-lantiq.c.

#define PCI_CR_FCI_ADDR_MAP2   0x00C8

Definition at line 34 of file pci-lantiq.c.

#define PCI_CR_FCI_ADDR_MAP3   0x00CC

Definition at line 35 of file pci-lantiq.c.

#define PCI_CR_FCI_ADDR_MAP4   0x00D0

Definition at line 36 of file pci-lantiq.c.

#define PCI_CR_FCI_ADDR_MAP5   0x00D4

Definition at line 37 of file pci-lantiq.c.

#define PCI_CR_FCI_ADDR_MAP6   0x00D8

Definition at line 38 of file pci-lantiq.c.

#define PCI_CR_FCI_ADDR_MAP7   0x00DC

Definition at line 39 of file pci-lantiq.c.

#define PCI_CR_FCI_BURST_LENGTH   0x00E8

Definition at line 49 of file pci-lantiq.c.

#define PCI_CR_PC_ARB   0x0080

Definition at line 42 of file pci-lantiq.c.

#define PCI_CR_PCI_ADDR_MAP11   0x0064

Definition at line 48 of file pci-lantiq.c.

#define PCI_CR_PCI_EOI   0x002C

Definition at line 50 of file pci-lantiq.c.

#define PCI_CR_PCI_MOD   0x0030

Definition at line 41 of file pci-lantiq.c.

#define PCI_CS_BASE_ADDR1   0x0010

Definition at line 47 of file pci-lantiq.c.

#define PCI_CS_STS_CMD   0x0004

Definition at line 51 of file pci-lantiq.c.

#define PCI_MASTER0_REQ_MASK_2BITS   8

Definition at line 53 of file pci-lantiq.c.

#define PCI_MASTER1_REQ_MASK_2BITS   10

Definition at line 54 of file pci-lantiq.c.

#define PCI_MASTER2_REQ_MASK_2BITS   12

Definition at line 55 of file pci-lantiq.c.

Function Documentation

arch_initcall ( pcibios_init  )
MODULE_DEVICE_TABLE ( of  ,
ltq_pci_match   
)
int __init pcibios_init ( void  )

Definition at line 247 of file pci-lantiq.c.

Variable Documentation

__iomem void* ltq_pci_mapped_cfg

Definition at line 67 of file pci-lantiq.c.