Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
bcm63xx_io.h File Reference
#include <asm/mach-bcm63xx/bcm63xx_cpu.h>

Go to the source code of this file.

Macros

#define BCM_PCMCIA_COMMON_BASE_PA   (0x20000000)
 
#define BCM_PCMCIA_COMMON_SIZE   (16 * 1024 * 1024)
 
#define BCM_PCMCIA_COMMON_END_PA
 
#define BCM_PCMCIA_ATTR_BASE_PA   (0x21000000)
 
#define BCM_PCMCIA_ATTR_SIZE   (16 * 1024 * 1024)
 
#define BCM_PCMCIA_ATTR_END_PA
 
#define BCM_PCMCIA_IO_BASE_PA   (0x22000000)
 
#define BCM_PCMCIA_IO_SIZE   (64 * 1024)
 
#define BCM_PCMCIA_IO_END_PA
 
#define BCM_PCI_MEM_BASE_PA   (0x30000000)
 
#define BCM_PCI_MEM_SIZE   (128 * 1024 * 1024)
 
#define BCM_PCI_MEM_END_PA
 
#define BCM_PCI_IO_BASE_PA   (0x08000000)
 
#define BCM_PCI_IO_SIZE   (64 * 1024)
 
#define BCM_PCI_IO_END_PA
 
#define BCM_PCI_IO_HALF_PA
 
#define BCM_CB_MEM_BASE_PA   (0x38000000)
 
#define BCM_CB_MEM_SIZE   (128 * 1024 * 1024)
 
#define BCM_CB_MEM_END_PA
 
#define BCM_PCIE_MEM_BASE_PA   0x10f00000
 
#define BCM_PCIE_MEM_SIZE   (16 * 1024 * 1024)
 
#define BCM_PCIE_MEM_END_PA
 
#define BCM_REGS_VA(x)   ((void __iomem *)(x))
 
#define bcm_readb(a)   (*(volatile unsigned char *) BCM_REGS_VA(a))
 
#define bcm_readw(a)   (*(volatile unsigned short *) BCM_REGS_VA(a))
 
#define bcm_readl(a)   (*(volatile unsigned int *) BCM_REGS_VA(a))
 
#define bcm_readq(a)   (*(volatile u64 *) BCM_REGS_VA(a))
 
#define bcm_writeb(v, a)   (*(volatile unsigned char *) BCM_REGS_VA((a)) = (v))
 
#define bcm_writew(v, a)   (*(volatile unsigned short *) BCM_REGS_VA((a)) = (v))
 
#define bcm_writel(v, a)   (*(volatile unsigned int *) BCM_REGS_VA((a)) = (v))
 
#define bcm_writeq(v, a)   (*(volatile u64 *) BCM_REGS_VA((a)) = (v))
 
#define bcm_rset_readb(s, o)   bcm_readb(bcm63xx_regset_address(s) + (o))
 
#define bcm_rset_readw(s, o)   bcm_readw(bcm63xx_regset_address(s) + (o))
 
#define bcm_rset_readl(s, o)   bcm_readl(bcm63xx_regset_address(s) + (o))
 
#define bcm_rset_writeb(s, v, o)
 
#define bcm_rset_writew(s, v, o)
 
#define bcm_rset_writel(s, v, o)
 
#define bcm_perf_readl(o)   bcm_rset_readl(RSET_PERF, (o))
 
#define bcm_perf_writel(v, o)   bcm_rset_writel(RSET_PERF, (v), (o))
 
#define bcm_timer_readl(o)   bcm_rset_readl(RSET_TIMER, (o))
 
#define bcm_timer_writel(v, o)   bcm_rset_writel(RSET_TIMER, (v), (o))
 
#define bcm_wdt_readl(o)   bcm_rset_readl(RSET_WDT, (o))
 
#define bcm_wdt_writel(v, o)   bcm_rset_writel(RSET_WDT, (v), (o))
 
#define bcm_gpio_readl(o)   bcm_rset_readl(RSET_GPIO, (o))
 
#define bcm_gpio_writel(v, o)   bcm_rset_writel(RSET_GPIO, (v), (o))
 
#define bcm_uart0_readl(o)   bcm_rset_readl(RSET_UART0, (o))
 
#define bcm_uart0_writel(v, o)   bcm_rset_writel(RSET_UART0, (v), (o))
 
#define bcm_mpi_readl(o)   bcm_rset_readl(RSET_MPI, (o))
 
#define bcm_mpi_writel(v, o)   bcm_rset_writel(RSET_MPI, (v), (o))
 
#define bcm_pcmcia_readl(o)   bcm_rset_readl(RSET_PCMCIA, (o))
 
#define bcm_pcmcia_writel(v, o)   bcm_rset_writel(RSET_PCMCIA, (v), (o))
 
#define bcm_pcie_readl(o)   bcm_rset_readl(RSET_PCIE, (o))
 
#define bcm_pcie_writel(v, o)   bcm_rset_writel(RSET_PCIE, (v), (o))
 
#define bcm_sdram_readl(o)   bcm_rset_readl(RSET_SDRAM, (o))
 
#define bcm_sdram_writel(v, o)   bcm_rset_writel(RSET_SDRAM, (v), (o))
 
#define bcm_memc_readl(o)   bcm_rset_readl(RSET_MEMC, (o))
 
#define bcm_memc_writel(v, o)   bcm_rset_writel(RSET_MEMC, (v), (o))
 
#define bcm_ddr_readl(o)   bcm_rset_readl(RSET_DDR, (o))
 
#define bcm_ddr_writel(v, o)   bcm_rset_writel(RSET_DDR, (v), (o))
 
#define bcm_misc_readl(o)   bcm_rset_readl(RSET_MISC, (o))
 
#define bcm_misc_writel(v, o)   bcm_rset_writel(RSET_MISC, (v), (o))
 

Macro Definition Documentation

#define BCM_CB_MEM_BASE_PA   (0x38000000)

Definition at line 38 of file bcm63xx_io.h.

#define BCM_CB_MEM_END_PA
Value:
BCM_CB_MEM_SIZE - 1)

Definition at line 40 of file bcm63xx_io.h.

#define BCM_CB_MEM_SIZE   (128 * 1024 * 1024)

Definition at line 39 of file bcm63xx_io.h.

#define bcm_ddr_readl (   o)    bcm_rset_readl(RSET_DDR, (o))

Definition at line 98 of file bcm63xx_io.h.

#define bcm_ddr_writel (   v,
 
)    bcm_rset_writel(RSET_DDR, (v), (o))

Definition at line 99 of file bcm63xx_io.h.

#define bcm_gpio_readl (   o)    bcm_rset_readl(RSET_GPIO, (o))

Definition at line 84 of file bcm63xx_io.h.

#define bcm_gpio_writel (   v,
 
)    bcm_rset_writel(RSET_GPIO, (v), (o))

Definition at line 85 of file bcm63xx_io.h.

#define bcm_memc_readl (   o)    bcm_rset_readl(RSET_MEMC, (o))

Definition at line 96 of file bcm63xx_io.h.

#define bcm_memc_writel (   v,
 
)    bcm_rset_writel(RSET_MEMC, (v), (o))

Definition at line 97 of file bcm63xx_io.h.

#define bcm_misc_readl (   o)    bcm_rset_readl(RSET_MISC, (o))

Definition at line 100 of file bcm63xx_io.h.

#define bcm_misc_writel (   v,
 
)    bcm_rset_writel(RSET_MISC, (v), (o))

Definition at line 101 of file bcm63xx_io.h.

#define bcm_mpi_readl (   o)    bcm_rset_readl(RSET_MPI, (o))

Definition at line 88 of file bcm63xx_io.h.

#define bcm_mpi_writel (   v,
 
)    bcm_rset_writel(RSET_MPI, (v), (o))

Definition at line 89 of file bcm63xx_io.h.

#define BCM_PCI_IO_BASE_PA   (0x08000000)

Definition at line 31 of file bcm63xx_io.h.

#define BCM_PCI_IO_END_PA
Value:
BCM_PCI_IO_SIZE - 1)

Definition at line 33 of file bcm63xx_io.h.

#define BCM_PCI_IO_HALF_PA
Value:

Definition at line 35 of file bcm63xx_io.h.

#define BCM_PCI_IO_SIZE   (64 * 1024)

Definition at line 32 of file bcm63xx_io.h.

#define BCM_PCI_MEM_BASE_PA   (0x30000000)

Definition at line 26 of file bcm63xx_io.h.

#define BCM_PCI_MEM_END_PA
Value:
BCM_PCI_MEM_SIZE - 1)

Definition at line 28 of file bcm63xx_io.h.

#define BCM_PCI_MEM_SIZE   (128 * 1024 * 1024)

Definition at line 27 of file bcm63xx_io.h.

#define BCM_PCIE_MEM_BASE_PA   0x10f00000

Definition at line 43 of file bcm63xx_io.h.

#define BCM_PCIE_MEM_END_PA
Value:
BCM_PCIE_MEM_SIZE - 1)

Definition at line 45 of file bcm63xx_io.h.

#define BCM_PCIE_MEM_SIZE   (16 * 1024 * 1024)

Definition at line 44 of file bcm63xx_io.h.

#define bcm_pcie_readl (   o)    bcm_rset_readl(RSET_PCIE, (o))

Definition at line 92 of file bcm63xx_io.h.

#define bcm_pcie_writel (   v,
 
)    bcm_rset_writel(RSET_PCIE, (v), (o))

Definition at line 93 of file bcm63xx_io.h.

#define BCM_PCMCIA_ATTR_BASE_PA   (0x21000000)

Definition at line 16 of file bcm63xx_io.h.

#define BCM_PCMCIA_ATTR_END_PA
Value:
BCM_PCMCIA_ATTR_SIZE - 1)

Definition at line 18 of file bcm63xx_io.h.

#define BCM_PCMCIA_ATTR_SIZE   (16 * 1024 * 1024)

Definition at line 17 of file bcm63xx_io.h.

#define BCM_PCMCIA_COMMON_BASE_PA   (0x20000000)

Definition at line 11 of file bcm63xx_io.h.

#define BCM_PCMCIA_COMMON_END_PA
Value:
BCM_PCMCIA_COMMON_SIZE - 1)

Definition at line 13 of file bcm63xx_io.h.

#define BCM_PCMCIA_COMMON_SIZE   (16 * 1024 * 1024)

Definition at line 12 of file bcm63xx_io.h.

#define BCM_PCMCIA_IO_BASE_PA   (0x22000000)

Definition at line 21 of file bcm63xx_io.h.

#define BCM_PCMCIA_IO_END_PA
Value:
BCM_PCMCIA_IO_SIZE - 1)

Definition at line 23 of file bcm63xx_io.h.

#define BCM_PCMCIA_IO_SIZE   (64 * 1024)

Definition at line 22 of file bcm63xx_io.h.

#define bcm_pcmcia_readl (   o)    bcm_rset_readl(RSET_PCMCIA, (o))

Definition at line 90 of file bcm63xx_io.h.

#define bcm_pcmcia_writel (   v,
 
)    bcm_rset_writel(RSET_PCMCIA, (v), (o))

Definition at line 91 of file bcm63xx_io.h.

#define bcm_perf_readl (   o)    bcm_rset_readl(RSET_PERF, (o))

Definition at line 78 of file bcm63xx_io.h.

#define bcm_perf_writel (   v,
 
)    bcm_rset_writel(RSET_PERF, (v), (o))

Definition at line 79 of file bcm63xx_io.h.

#define bcm_readb (   a)    (*(volatile unsigned char *) BCM_REGS_VA(a))

Definition at line 53 of file bcm63xx_io.h.

#define bcm_readl (   a)    (*(volatile unsigned int *) BCM_REGS_VA(a))

Definition at line 55 of file bcm63xx_io.h.

#define bcm_readq (   a)    (*(volatile u64 *) BCM_REGS_VA(a))

Definition at line 56 of file bcm63xx_io.h.

#define bcm_readw (   a)    (*(volatile unsigned short *) BCM_REGS_VA(a))

Definition at line 54 of file bcm63xx_io.h.

#define BCM_REGS_VA (   x)    ((void __iomem *)(x))

Definition at line 51 of file bcm63xx_io.h.

#define bcm_rset_readb (   s,
 
)    bcm_readb(bcm63xx_regset_address(s) + (o))

Definition at line 65 of file bcm63xx_io.h.

#define bcm_rset_readl (   s,
 
)    bcm_readl(bcm63xx_regset_address(s) + (o))

Definition at line 67 of file bcm63xx_io.h.

#define bcm_rset_readw (   s,
 
)    bcm_readw(bcm63xx_regset_address(s) + (o))

Definition at line 66 of file bcm63xx_io.h.

#define bcm_rset_writeb (   s,
  v,
 
)
Value:
bcm63xx_regset_address(s) + (o))

Definition at line 68 of file bcm63xx_io.h.

#define bcm_rset_writel (   s,
  v,
 
)
Value:
bcm63xx_regset_address(s) + (o))

Definition at line 72 of file bcm63xx_io.h.

#define bcm_rset_writew (   s,
  v,
 
)
Value:
bcm63xx_regset_address(s) + (o))

Definition at line 70 of file bcm63xx_io.h.

#define bcm_sdram_readl (   o)    bcm_rset_readl(RSET_SDRAM, (o))

Definition at line 94 of file bcm63xx_io.h.

#define bcm_sdram_writel (   v,
 
)    bcm_rset_writel(RSET_SDRAM, (v), (o))

Definition at line 95 of file bcm63xx_io.h.

#define bcm_timer_readl (   o)    bcm_rset_readl(RSET_TIMER, (o))

Definition at line 80 of file bcm63xx_io.h.

#define bcm_timer_writel (   v,
 
)    bcm_rset_writel(RSET_TIMER, (v), (o))

Definition at line 81 of file bcm63xx_io.h.

#define bcm_uart0_readl (   o)    bcm_rset_readl(RSET_UART0, (o))

Definition at line 86 of file bcm63xx_io.h.

#define bcm_uart0_writel (   v,
 
)    bcm_rset_writel(RSET_UART0, (v), (o))

Definition at line 87 of file bcm63xx_io.h.

#define bcm_wdt_readl (   o)    bcm_rset_readl(RSET_WDT, (o))

Definition at line 82 of file bcm63xx_io.h.

#define bcm_wdt_writel (   v,
 
)    bcm_rset_writel(RSET_WDT, (v), (o))

Definition at line 83 of file bcm63xx_io.h.

#define bcm_writeb (   v,
  a 
)    (*(volatile unsigned char *) BCM_REGS_VA((a)) = (v))

Definition at line 57 of file bcm63xx_io.h.

#define bcm_writel (   v,
  a 
)    (*(volatile unsigned int *) BCM_REGS_VA((a)) = (v))

Definition at line 59 of file bcm63xx_io.h.

#define bcm_writeq (   v,
  a 
)    (*(volatile u64 *) BCM_REGS_VA((a)) = (v))

Definition at line 60 of file bcm63xx_io.h.

#define bcm_writew (   v,
  a 
)    (*(volatile unsigned short *) BCM_REGS_VA((a)) = (v))

Definition at line 58 of file bcm63xx_io.h.