Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
asic_regs.h File Reference
#include <linux/io.h>
#include <asm/mach-powertv/asic_reg_map.h>

Go to the source code of this file.

Data Structures

union  register_map_entry
 
struct  register_map
 

Macros

#define CRONUS_10   0x0B4C1C20
 
#define CRONUS_11   0x0B4C1C21
 
#define CRONUSLITE_10   0x0B4C1C40
 
#define NAND_FLASH_BASE   0x03000000
 
#define CALLIOPE_IO_BASE   0x08000000
 
#define GAIA_IO_BASE   0x09000000
 
#define CRONUS_IO_BASE   0x09000000
 
#define ZEUS_IO_BASE   0x09000000
 
#define ASIC_IO_SIZE   0x01000000
 
#define UART1_INTSTAT   uart1_intstat
 
#define UART1_INTEN   uart1_inten
 
#define UART1_CONFIG1   uart1_config1
 
#define UART1_CONFIG2   uart1_config2
 
#define UART1_DIVISORHI   uart1_divisorhi
 
#define UART1_DIVISORLO   uart1_divisorlo
 
#define UART1_DATA   uart1_data
 
#define UART1_STATUS   uart1_status
 
#define REGISTER_MAP_ELEMENT(x)   union register_map_entry x;
 
#define REGISTER_MAP_ELEMENT(x)
 
#define REGISTER_MAP_ELEMENT(x)
 
#define asic_reg_addr(x)   (_asic_register_map.x.virt)
 
#define asic_reg_phys_addr(x)
 
#define asic_read(x)   readl(asic_reg_addr(x))
 
#define asic_write(v, x)   writel(v, asic_reg_addr(x))
 

Enumerations

enum  asic_type {
  ASIC_UNKNOWN, ASIC_ZEUS, ASIC_CALLIOPE, ASIC_CRONUS,
  ASIC_CRONUSLITE, ASIC_GAIA, ASICS
}
 

Functions

void asic_irq_init (void)
 

Variables

struct register_map _asic_register_map
 
unsigned long asic_phy_base
 

Macro Definition Documentation

#define ASIC_IO_SIZE   0x01000000

Definition at line 45 of file asic_regs.h.

#define asic_read (   x)    readl(asic_reg_addr(x))

Definition at line 121 of file asic_regs.h.

#define asic_reg_addr (   x)    (_asic_register_map.x.virt)

Definition at line 112 of file asic_regs.h.

#define asic_reg_phys_addr (   x)
Value:
(virt_to_phys((void *) CAC_ADDR( \
(unsigned long) asic_reg_addr(x))))

Definition at line 113 of file asic_regs.h.

#define asic_write (   v,
  x 
)    writel(v, asic_reg_addr(x))

Definition at line 122 of file asic_regs.h.

#define CALLIOPE_IO_BASE   0x08000000

Definition at line 40 of file asic_regs.h.

#define CRONUS_10   0x0B4C1C20

Definition at line 35 of file asic_regs.h.

#define CRONUS_11   0x0B4C1C21

Definition at line 36 of file asic_regs.h.

#define CRONUS_IO_BASE   0x09000000

Definition at line 42 of file asic_regs.h.

#define CRONUSLITE_10   0x0B4C1C40

Definition at line 37 of file asic_regs.h.

#define GAIA_IO_BASE   0x09000000

Definition at line 41 of file asic_regs.h.

#define NAND_FLASH_BASE   0x03000000

Definition at line 39 of file asic_regs.h.

#define REGISTER_MAP_ELEMENT (   x)    union register_map_entry x;

Definition at line 63 of file asic_regs.h.

#define REGISTER_MAP_ELEMENT (   x)
Value:
do { \
if (map->x.phys != 0) \
map->x.phys += offset; \
} while (false);

Definition at line 63 of file asic_regs.h.

#define REGISTER_MAP_ELEMENT (   x)
Value:
do { \
map->x.virt = (!map->x.phys) ? NULL : \
} while (false);

Definition at line 63 of file asic_regs.h.

#define UART1_CONFIG1   uart1_config1

Definition at line 50 of file asic_regs.h.

#define UART1_CONFIG2   uart1_config2

Definition at line 51 of file asic_regs.h.

#define UART1_DATA   uart1_data

Definition at line 54 of file asic_regs.h.

#define UART1_DIVISORHI   uart1_divisorhi

Definition at line 52 of file asic_regs.h.

#define UART1_DIVISORLO   uart1_divisorlo

Definition at line 53 of file asic_regs.h.

#define UART1_INTEN   uart1_inten

Definition at line 49 of file asic_regs.h.

#define UART1_INTSTAT   uart1_intstat

Definition at line 48 of file asic_regs.h.

#define UART1_STATUS   uart1_status

Definition at line 55 of file asic_regs.h.

#define ZEUS_IO_BASE   0x09000000

Definition at line 43 of file asic_regs.h.

Enumeration Type Documentation

enum asic_type
Enumerator:
ASIC_UNKNOWN 
ASIC_ZEUS 
ASIC_CALLIOPE 
ASIC_CRONUS 
ASIC_CRONUSLITE 
ASIC_GAIA 
ASICS 

Definition at line 24 of file asic_regs.h.

Function Documentation

void asic_irq_init ( void  )

Definition at line 79 of file irq_asic.c.

Variable Documentation

struct register_map _asic_register_map

Definition at line 64 of file asic_devices.c.

unsigned long asic_phy_base

Definition at line 66 of file asic_devices.c.