Linux Kernel
3.7.1
|
#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) |
#define __addr_FPGA_SWR ((volatile void __iomem *)(__region_CS2 + 0x28UL)) |
#define __addr_FPGATR | ( | ) | (__region_CS2 + 0x00000030UL) |
#define __addr_LEDS | ( | ) | (__region_CS2 + 0x00000023UL) |
#define __get_FPGA_PUSHSW1_5 | ( | ) | (__builtin_read32(__addr_FPGA_SWR) & MB93093_FPGA_SWR_PUSHSWMASK) |
#define __get_FPGATR | ( | ) | __builtin_read32((volatile void __iomem *) __addr_FPGATR()) |
#define __region_CS3 0xfc200000 /* MB93493 CSR area (DAV daughter board) */ |
#define __region_CS5 0xf0000000 /* MB93493 CSC area (DAV daughter board) */ |
#define __region_CS6 0xfe000000 /* not used - hide behind CPU resource I/O regs */ |
#define __region_CS7 0xfe000000 /* not used - hide behind CPU resource I/O regs */ |
#define __region_IO |
#define __set_FPGATR | ( | X | ) | __builtin_write32((volatile void __iomem *) __addr_FPGATR(), (X)) |
#define __set_FPGATR_AUDIO_CLK | ( | V | ) | __set_FPGATR((__get_FPGATR() & ~MB93093_FPGA_FPGATR_AUDIO_CLK) | (V)) |
#define __set_LEDS | ( | X | ) | __builtin_write8((volatile void __iomem *) __addr_LEDS(), (X)) |
#define IRQ_CPU_MB93493_0 IRQ_CPU_EXTERNAL0 |
#define IRQ_CPU_MB93493_1 IRQ_CPU_EXTERNAL1 |