Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mb-regs.h File Reference
#include <asm/cpu-irqs.h>
#include <asm/sections.h>
#include <asm/mem-layout.h>
#include <asm/mb93093-fpga-irqs.h>

Go to the source code of this file.

Macros

#define __region_IO
 
#define __region_CS0   0xff000000 /* Boot ROMs area */
 
#define IRQ_CPU_MB93493_0   IRQ_CPU_EXTERNAL0
 
#define IRQ_CPU_MB93493_1   IRQ_CPU_EXTERNAL1
 
#define __region_CS5   0xf0000000 /* MB93493 CSC area (DAV daughter board) */
 
#define __region_CS5_M   0x00ffffff /* mask */
 
#define __region_CS5_C   0x00010000 /* control */
 
#define __region_CS2   0x20000000 /* FPGA registers */
 
#define __region_CS2_M   0x000fffff
 
#define __region_CS2_C   0x00000000
 
#define __region_CS1   0xfc100000 /* LAN registers */
 
#define __region_CS1_M   0x000fffff
 
#define __region_CS1_C   0x00010404
 
#define __region_CS3   0xfc200000 /* MB93493 CSR area (DAV daughter board) */
 
#define __region_CS3_M   0x000fffff
 
#define __region_CS3_C   0xc8000000
 
#define __region_CS4   0xfd000000 /* extra ROMs area */
 
#define __region_CS4_M   0x00ffffff
 
#define __region_CS4_C   0x00000f07
 
#define __region_CS6   0xfe000000 /* not used - hide behind CPU resource I/O regs */
 
#define __region_CS6_M   0x000fffff
 
#define __region_CS6_C   0x00000f07
 
#define __region_CS7   0xfe000000 /* not used - hide behind CPU resource I/O regs */
 
#define __region_CS7_M   0x000fffff
 
#define __region_CS7_C   0x00000f07
 
#define __is_PCI_IO(addr)   0 /* no PCI */
 
#define __is_PCI_MEM(addr)   0
 
#define __is_PCI_addr(addr)   0
 
#define __region_PCI_IO   0
 
#define __region_PCI_MEM   0
 
#define __flush_PCI_writes()   do { } while(0)
 
#define __get_CLKSW()   0UL
 
#define __get_CLKIN()   66000000UL
 
#define __addr_LEDS()   (__region_CS2 + 0x00000023UL)
 
#define __set_LEDS(X)   __builtin_write8((volatile void __iomem *) __addr_LEDS(), (X))
 
#define __addr_FPGATR()   (__region_CS2 + 0x00000030UL)
 
#define __set_FPGATR(X)   __builtin_write32((volatile void __iomem *) __addr_FPGATR(), (X))
 
#define __get_FPGATR()   __builtin_read32((volatile void __iomem *) __addr_FPGATR())
 
#define MB93093_FPGA_FPGATR_AUDIO_CLK   0x00000003
 
#define __set_FPGATR_AUDIO_CLK(V)   __set_FPGATR((__get_FPGATR() & ~MB93093_FPGA_FPGATR_AUDIO_CLK) | (V))
 
#define MB93093_FPGA_FPGATR_AUDIO_CLK_OFF   0x0
 
#define MB93093_FPGA_FPGATR_AUDIO_CLK_11MHz   0x1
 
#define MB93093_FPGA_FPGATR_AUDIO_CLK_12MHz   0x2
 
#define MB93093_FPGA_FPGATR_AUDIO_CLK_02MHz   0x3
 
#define MB93093_FPGA_SWR_PUSHSWMASK   (0x1F<<26)
 
#define MB93093_FPGA_SWR_PUSHSW4   (1<<29)
 
#define __addr_FPGA_SWR   ((volatile void __iomem *)(__region_CS2 + 0x28UL))
 
#define __get_FPGA_PUSHSW1_5()   (__builtin_read32(__addr_FPGA_SWR) & MB93093_FPGA_SWR_PUSHSWMASK)
 

Functions

unsigned long __builtin_read8 (volatile void __iomem *)
 
unsigned long __builtin_read16 (volatile void __iomem *)
 
unsigned long __builtin_read32 (volatile void __iomem *)
 
void __builtin_write8 (volatile void __iomem *, unsigned char)
 
void __builtin_write16 (volatile void __iomem *, unsigned short)
 
void __builtin_write32 (volatile void __iomem *, unsigned long)
 

Macro Definition Documentation

#define __addr_FPGA_SWR   ((volatile void __iomem *)(__region_CS2 + 0x28UL))

Definition at line 191 of file mb-regs.h.

#define __addr_FPGATR ( )    (__region_CS2 + 0x00000030UL)

Definition at line 174 of file mb-regs.h.

#define __addr_LEDS ( )    (__region_CS2 + 0x00000023UL)

Definition at line 171 of file mb-regs.h.

#define __flush_PCI_writes ( )    do { } while(0)

Definition at line 166 of file mb-regs.h.

#define __get_CLKIN ( )    66000000UL

Definition at line 169 of file mb-regs.h.

#define __get_CLKSW ( )    0UL

Definition at line 168 of file mb-regs.h.

#define __get_FPGA_PUSHSW1_5 ( )    (__builtin_read32(__addr_FPGA_SWR) & MB93093_FPGA_SWR_PUSHSWMASK)

Definition at line 192 of file mb-regs.h.

#define __get_FPGATR ( )    __builtin_read32((volatile void __iomem *) __addr_FPGATR())

Definition at line 176 of file mb-regs.h.

#define __is_PCI_addr (   addr)    0

Definition at line 163 of file mb-regs.h.

#define __is_PCI_IO (   addr)    0 /* no PCI */

Definition at line 161 of file mb-regs.h.

#define __is_PCI_MEM (   addr)    0

Definition at line 162 of file mb-regs.h.

#define __region_CS0   0xff000000 /* Boot ROMs area */

Definition at line 32 of file mb-regs.h.

#define __region_CS1   0xfc100000 /* LAN registers */

Definition at line 144 of file mb-regs.h.

#define __region_CS1_C   0x00010404

Definition at line 146 of file mb-regs.h.

#define __region_CS1_M   0x000fffff

Definition at line 145 of file mb-regs.h.

#define __region_CS2   0x20000000 /* FPGA registers */

Definition at line 141 of file mb-regs.h.

#define __region_CS2_C   0x00000000

Definition at line 143 of file mb-regs.h.

#define __region_CS2_M   0x000fffff

Definition at line 142 of file mb-regs.h.

#define __region_CS3   0xfc200000 /* MB93493 CSR area (DAV daughter board) */

Definition at line 147 of file mb-regs.h.

#define __region_CS3_C   0xc8000000

Definition at line 149 of file mb-regs.h.

#define __region_CS3_M   0x000fffff

Definition at line 148 of file mb-regs.h.

#define __region_CS4   0xfd000000 /* extra ROMs area */

Definition at line 150 of file mb-regs.h.

#define __region_CS4_C   0x00000f07

Definition at line 152 of file mb-regs.h.

#define __region_CS4_M   0x00ffffff

Definition at line 151 of file mb-regs.h.

#define __region_CS5   0xf0000000 /* MB93493 CSC area (DAV daughter board) */

Definition at line 138 of file mb-regs.h.

#define __region_CS5_C   0x00010000 /* control */

Definition at line 140 of file mb-regs.h.

#define __region_CS5_M   0x00ffffff /* mask */

Definition at line 139 of file mb-regs.h.

#define __region_CS6   0xfe000000 /* not used - hide behind CPU resource I/O regs */

Definition at line 154 of file mb-regs.h.

#define __region_CS6_C   0x00000f07

Definition at line 156 of file mb-regs.h.

#define __region_CS6_M   0x000fffff

Definition at line 155 of file mb-regs.h.

#define __region_CS7   0xfe000000 /* not used - hide behind CPU resource I/O regs */

Definition at line 157 of file mb-regs.h.

#define __region_CS7_C   0x00000f07

Definition at line 159 of file mb-regs.h.

#define __region_CS7_M   0x000fffff

Definition at line 158 of file mb-regs.h.

#define __region_IO
Value:
KERNEL_IO_START /* the region from 0xe0000000 to 0xffffffff has suitable
* protection laid over the top for use in memory-mapped
* I/O
*/

Definition at line 30 of file mb-regs.h.

#define __region_PCI_IO   0

Definition at line 164 of file mb-regs.h.

#define __region_PCI_MEM   0

Definition at line 165 of file mb-regs.h.

#define __set_FPGATR (   X)    __builtin_write32((volatile void __iomem *) __addr_FPGATR(), (X))

Definition at line 175 of file mb-regs.h.

#define __set_FPGATR_AUDIO_CLK (   V)    __set_FPGATR((__get_FPGATR() & ~MB93093_FPGA_FPGATR_AUDIO_CLK) | (V))

Definition at line 180 of file mb-regs.h.

#define __set_LEDS (   X)    __builtin_write8((volatile void __iomem *) __addr_LEDS(), (X))

Definition at line 172 of file mb-regs.h.

#define IRQ_CPU_MB93493_0   IRQ_CPU_EXTERNAL0

Definition at line 135 of file mb-regs.h.

#define IRQ_CPU_MB93493_1   IRQ_CPU_EXTERNAL1

Definition at line 136 of file mb-regs.h.

#define MB93093_FPGA_FPGATR_AUDIO_CLK   0x00000003

Definition at line 178 of file mb-regs.h.

#define MB93093_FPGA_FPGATR_AUDIO_CLK_02MHz   0x3

Definition at line 186 of file mb-regs.h.

#define MB93093_FPGA_FPGATR_AUDIO_CLK_11MHz   0x1

Definition at line 184 of file mb-regs.h.

#define MB93093_FPGA_FPGATR_AUDIO_CLK_12MHz   0x2

Definition at line 185 of file mb-regs.h.

#define MB93093_FPGA_FPGATR_AUDIO_CLK_OFF   0x0

Definition at line 183 of file mb-regs.h.

#define MB93093_FPGA_SWR_PUSHSW4   (1<<29)

Definition at line 189 of file mb-regs.h.

#define MB93093_FPGA_SWR_PUSHSWMASK   (0x1F<<26)

Definition at line 188 of file mb-regs.h.

Function Documentation

unsigned long __builtin_read16 ( volatile void __iomem )
unsigned long __builtin_read32 ( volatile void __iomem )
unsigned long __builtin_read8 ( volatile void __iomem )
void __builtin_write16 ( volatile void __iomem ,
unsigned  short 
)
void __builtin_write32 ( volatile void __iomem ,
unsigned  long 
)
void __builtin_write8 ( volatile void __iomem ,
unsigned  char 
)