Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci_v3.c File Reference
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/io.h>
#include <mach/hardware.h>
#include <mach/platform.h>
#include <mach/irqs.h>
#include <asm/signal.h>
#include <asm/mach/pci.h>
#include <asm/irq_regs.h>
#include <asm/hardware/pci_v3.h>

Go to the source code of this file.

Macros

#define v3_writeb(o, v)   __raw_writeb(v, PCI_V3_VADDR + (unsigned int)(o))
 
#define v3_readb(o)   (__raw_readb(PCI_V3_VADDR + (unsigned int)(o)))
 
#define v3_writew(o, v)   __raw_writew(v, PCI_V3_VADDR + (unsigned int)(o))
 
#define v3_readw(o)   (__raw_readw(PCI_V3_VADDR + (unsigned int)(o)))
 
#define v3_writel(o, v)   __raw_writel(v, PCI_V3_VADDR + (unsigned int)(o))
 
#define v3_readl(o)   (__raw_readl(PCI_V3_VADDR + (unsigned int)(o)))
 
#define PCI_BUS_NONMEM_START   0x00000000
 
#define PCI_BUS_NONMEM_SIZE   SZ_256M
 
#define PCI_BUS_PREMEM_START   PCI_BUS_NONMEM_START + PCI_BUS_NONMEM_SIZE
 
#define PCI_BUS_PREMEM_SIZE   SZ_256M
 
#define V3_LB_BASE_PREFETCH   0
 
#define SC_PCI   __io_address(INTEGRATOR_SC_PCIENABLE)
 
#define SC_LBFADDR   __io_address(INTEGRATOR_SC_BASE + 0x20)
 
#define SC_LBFCODE   __io_address(INTEGRATOR_SC_BASE + 0x24)
 

Functions

int __init pci_v3_setup (int nr, struct pci_sys_data *sys)
 
void __init pci_v3_preinit (void)
 
void __init pci_v3_postinit (void)
 

Variables

struct pci_ops pci_v3_ops
 

Macro Definition Documentation

#define PCI_BUS_NONMEM_SIZE   SZ_256M

Definition at line 169 of file pci_v3.c.

#define PCI_BUS_NONMEM_START   0x00000000

Definition at line 168 of file pci_v3.c.

#define PCI_BUS_PREMEM_SIZE   SZ_256M

Definition at line 172 of file pci_v3.c.

#define PCI_BUS_PREMEM_START   PCI_BUS_NONMEM_START + PCI_BUS_NONMEM_SIZE

Definition at line 171 of file pci_v3.c.

#define SC_LBFADDR   __io_address(INTEGRATOR_SC_BASE + 0x20)

Definition at line 392 of file pci_v3.c.

#define SC_LBFCODE   __io_address(INTEGRATOR_SC_BASE + 0x24)

Definition at line 393 of file pci_v3.c.

#define SC_PCI   __io_address(INTEGRATOR_SC_PCIENABLE)

Definition at line 391 of file pci_v3.c.

#define V3_LB_BASE_PREFETCH   0

Definition at line 182 of file pci_v3.c.

#define v3_readb (   o)    (__raw_readb(PCI_V3_VADDR + (unsigned int)(o)))

Definition at line 106 of file pci_v3.c.

#define v3_readl (   o)    (__raw_readl(PCI_V3_VADDR + (unsigned int)(o)))

Definition at line 112 of file pci_v3.c.

#define v3_readw (   o)    (__raw_readw(PCI_V3_VADDR + (unsigned int)(o)))

Definition at line 109 of file pci_v3.c.

#define v3_writeb (   o,
  v 
)    __raw_writeb(v, PCI_V3_VADDR + (unsigned int)(o))

Definition at line 105 of file pci_v3.c.

#define v3_writel (   o,
  v 
)    __raw_writel(v, PCI_V3_VADDR + (unsigned int)(o))

Definition at line 111 of file pci_v3.c.

#define v3_writew (   o,
  v 
)    __raw_writew(v, PCI_V3_VADDR + (unsigned int)(o))

Definition at line 108 of file pci_v3.c.

Function Documentation

void __init pci_v3_postinit ( void  )

Definition at line 584 of file pci_v3.c.

void __init pci_v3_preinit ( void  )

Definition at line 492 of file pci_v3.c.

int __init pci_v3_setup ( int  nr,
struct pci_sys_data sys 
)

Definition at line 476 of file pci_v3.c.

Variable Documentation

struct pci_ops pci_v3_ops
Initial value:
= {
.read = v3_read_config,
.write = v3_write_config,
}

Definition at line 343 of file pci_v3.c.