Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
core_lca.h File Reference
#include <asm/compiler.h>
#include <asm/mce.h>

Go to the source code of this file.

Data Structures

struct  el_lca_mcheck_short
 
struct  el_lca_mcheck_long
 
union  el_lca
 

Macros

#define LCA_MEM_BCR0   (IDENT_ADDR + 0x120000000UL)
 
#define LCA_MEM_BCR1   (IDENT_ADDR + 0x120000008UL)
 
#define LCA_MEM_BCR2   (IDENT_ADDR + 0x120000010UL)
 
#define LCA_MEM_BCR3   (IDENT_ADDR + 0x120000018UL)
 
#define LCA_MEM_BMR0   (IDENT_ADDR + 0x120000020UL)
 
#define LCA_MEM_BMR1   (IDENT_ADDR + 0x120000028UL)
 
#define LCA_MEM_BMR2   (IDENT_ADDR + 0x120000030UL)
 
#define LCA_MEM_BMR3   (IDENT_ADDR + 0x120000038UL)
 
#define LCA_MEM_BTR0   (IDENT_ADDR + 0x120000040UL)
 
#define LCA_MEM_BTR1   (IDENT_ADDR + 0x120000048UL)
 
#define LCA_MEM_BTR2   (IDENT_ADDR + 0x120000050UL)
 
#define LCA_MEM_BTR3   (IDENT_ADDR + 0x120000058UL)
 
#define LCA_MEM_GTR   (IDENT_ADDR + 0x120000060UL)
 
#define LCA_MEM_ESR   (IDENT_ADDR + 0x120000068UL)
 
#define LCA_MEM_EAR   (IDENT_ADDR + 0x120000070UL)
 
#define LCA_MEM_CAR   (IDENT_ADDR + 0x120000078UL)
 
#define LCA_MEM_VGR   (IDENT_ADDR + 0x120000080UL)
 
#define LCA_MEM_PLM   (IDENT_ADDR + 0x120000088UL)
 
#define LCA_MEM_FOR   (IDENT_ADDR + 0x120000090UL)
 
#define LCA_IOC_HAE   (IDENT_ADDR + 0x180000000UL)
 
#define LCA_IOC_CONF   (IDENT_ADDR + 0x180000020UL)
 
#define LCA_IOC_STAT0   (IDENT_ADDR + 0x180000040UL)
 
#define LCA_IOC_STAT1   (IDENT_ADDR + 0x180000060UL)
 
#define LCA_IOC_TBIA   (IDENT_ADDR + 0x180000080UL)
 
#define LCA_IOC_TB_ENA   (IDENT_ADDR + 0x1800000a0UL)
 
#define LCA_IOC_SFT_RST   (IDENT_ADDR + 0x1800000c0UL)
 
#define LCA_IOC_PAR_DIS   (IDENT_ADDR + 0x1800000e0UL)
 
#define LCA_IOC_W_BASE0   (IDENT_ADDR + 0x180000100UL)
 
#define LCA_IOC_W_BASE1   (IDENT_ADDR + 0x180000120UL)
 
#define LCA_IOC_W_MASK0   (IDENT_ADDR + 0x180000140UL)
 
#define LCA_IOC_W_MASK1   (IDENT_ADDR + 0x180000160UL)
 
#define LCA_IOC_T_BASE0   (IDENT_ADDR + 0x180000180UL)
 
#define LCA_IOC_T_BASE1   (IDENT_ADDR + 0x1800001a0UL)
 
#define LCA_IOC_TB_TAG0   (IDENT_ADDR + 0x188000000UL)
 
#define LCA_IOC_TB_TAG1   (IDENT_ADDR + 0x188000020UL)
 
#define LCA_IOC_TB_TAG2   (IDENT_ADDR + 0x188000040UL)
 
#define LCA_IOC_TB_TAG3   (IDENT_ADDR + 0x188000060UL)
 
#define LCA_IOC_TB_TAG4   (IDENT_ADDR + 0x188000070UL)
 
#define LCA_IOC_TB_TAG5   (IDENT_ADDR + 0x1880000a0UL)
 
#define LCA_IOC_TB_TAG6   (IDENT_ADDR + 0x1880000c0UL)
 
#define LCA_IOC_TB_TAG7   (IDENT_ADDR + 0x1880000e0UL)
 
#define LCA_IACK_SC   (IDENT_ADDR + 0x1a0000000UL)
 
#define LCA_CONF   (IDENT_ADDR + 0x1e0000000UL)
 
#define LCA_IO   (IDENT_ADDR + 0x1c0000000UL)
 
#define LCA_SPARSE_MEM   (IDENT_ADDR + 0x200000000UL)
 
#define LCA_DENSE_MEM   (IDENT_ADDR + 0x300000000UL)
 
#define LCA_IOC_STAT0_CMD   0xf
 
#define LCA_IOC_STAT0_ERR   (1<<4)
 
#define LCA_IOC_STAT0_LOST   (1<<5)
 
#define LCA_IOC_STAT0_THIT   (1<<6)
 
#define LCA_IOC_STAT0_TREF   (1<<7)
 
#define LCA_IOC_STAT0_CODE_SHIFT   8
 
#define LCA_IOC_STAT0_CODE_MASK   0x7
 
#define LCA_IOC_STAT0_P_NBR_SHIFT   13
 
#define LCA_IOC_STAT0_P_NBR_MASK   0x7ffff
 
#define LCA_HAE_ADDRESS   LCA_IOC_HAE
 
#define LCA_PMR_ADDR   (IDENT_ADDR + 0x120000098UL)
 
#define LCA_PMR_PDIV   0x7 /* Primary clock divisor */
 
#define LCA_PMR_ODIV   0x38 /* Override clock divisor */
 
#define LCA_PMR_INTO   0x40 /* Interrupt override */
 
#define LCA_PMR_DMAO   0x80 /* DMA override */
 
#define LCA_PMR_OCCEB   0xffff0000L /* Override cycle counter - even bits */
 
#define LCA_PMR_OCCOB   0xffff000000000000L /* Override cycle counter - even bits */
 
#define LCA_PMR_PRIMARY_MASK   0xfffffffffffffff8L
 
#define LCA_READ_PMR   (*(volatile unsigned long *)LCA_PMR_ADDR)
 
#define LCA_WRITE_PMR(d)   (*((volatile unsigned long *)LCA_PMR_ADDR) = (d))
 
#define LCA_GET_PRIMARY(r)   ((r) & LCA_PMR_PDIV)
 
#define LCA_GET_OVERRIDE(r)   (((r) >> 3) & LCA_PMR_PDIV)
 
#define LCA_SET_PRIMARY_CLOCK(r, c)   ((r) = (((r) & LCA_PMR_PRIMARY_MASK)|(c)))
 
#define LCA_PMR_DIV_1   0x0
 
#define LCA_PMR_DIV_1_5   0x1
 
#define LCA_PMR_DIV_2   0x2
 
#define LCA_PMR_DIV_4   0x3
 
#define LCA_PMR_DIV_8   0x4
 
#define LCA_PMR_DIV_16   0x5
 
#define LCA_PMR_DIV_MIN   DIV_1
 
#define LCA_PMR_DIV_MAX   DIV_16
 

Macro Definition Documentation

#define LCA_CONF   (IDENT_ADDR + 0x1e0000000UL)

Definition at line 111 of file core_lca.h.

#define LCA_DENSE_MEM   (IDENT_ADDR + 0x300000000UL)

Definition at line 114 of file core_lca.h.

#define LCA_GET_OVERRIDE (   r)    (((r) >> 3) & LCA_PMR_PDIV)

Definition at line 147 of file core_lca.h.

#define LCA_GET_PRIMARY (   r)    ((r) & LCA_PMR_PDIV)

Definition at line 146 of file core_lca.h.

#define LCA_HAE_ADDRESS   LCA_IOC_HAE

Definition at line 129 of file core_lca.h.

#define LCA_IACK_SC   (IDENT_ADDR + 0x1a0000000UL)

Definition at line 110 of file core_lca.h.

#define LCA_IO   (IDENT_ADDR + 0x1c0000000UL)

Definition at line 112 of file core_lca.h.

#define LCA_IOC_CONF   (IDENT_ADDR + 0x180000020UL)

Definition at line 85 of file core_lca.h.

#define LCA_IOC_HAE   (IDENT_ADDR + 0x180000000UL)

Definition at line 84 of file core_lca.h.

#define LCA_IOC_PAR_DIS   (IDENT_ADDR + 0x1800000e0UL)

Definition at line 91 of file core_lca.h.

#define LCA_IOC_SFT_RST   (IDENT_ADDR + 0x1800000c0UL)

Definition at line 90 of file core_lca.h.

#define LCA_IOC_STAT0   (IDENT_ADDR + 0x180000040UL)

Definition at line 86 of file core_lca.h.

#define LCA_IOC_STAT0_CMD   0xf

Definition at line 119 of file core_lca.h.

#define LCA_IOC_STAT0_CODE_MASK   0x7

Definition at line 125 of file core_lca.h.

#define LCA_IOC_STAT0_CODE_SHIFT   8

Definition at line 124 of file core_lca.h.

#define LCA_IOC_STAT0_ERR   (1<<4)

Definition at line 120 of file core_lca.h.

#define LCA_IOC_STAT0_LOST   (1<<5)

Definition at line 121 of file core_lca.h.

#define LCA_IOC_STAT0_P_NBR_MASK   0x7ffff

Definition at line 127 of file core_lca.h.

#define LCA_IOC_STAT0_P_NBR_SHIFT   13

Definition at line 126 of file core_lca.h.

#define LCA_IOC_STAT0_THIT   (1<<6)

Definition at line 122 of file core_lca.h.

#define LCA_IOC_STAT0_TREF   (1<<7)

Definition at line 123 of file core_lca.h.

#define LCA_IOC_STAT1   (IDENT_ADDR + 0x180000060UL)

Definition at line 87 of file core_lca.h.

#define LCA_IOC_T_BASE0   (IDENT_ADDR + 0x180000180UL)

Definition at line 96 of file core_lca.h.

#define LCA_IOC_T_BASE1   (IDENT_ADDR + 0x1800001a0UL)

Definition at line 97 of file core_lca.h.

#define LCA_IOC_TB_ENA   (IDENT_ADDR + 0x1800000a0UL)

Definition at line 89 of file core_lca.h.

#define LCA_IOC_TB_TAG0   (IDENT_ADDR + 0x188000000UL)

Definition at line 98 of file core_lca.h.

#define LCA_IOC_TB_TAG1   (IDENT_ADDR + 0x188000020UL)

Definition at line 99 of file core_lca.h.

#define LCA_IOC_TB_TAG2   (IDENT_ADDR + 0x188000040UL)

Definition at line 100 of file core_lca.h.

#define LCA_IOC_TB_TAG3   (IDENT_ADDR + 0x188000060UL)

Definition at line 101 of file core_lca.h.

#define LCA_IOC_TB_TAG4   (IDENT_ADDR + 0x188000070UL)

Definition at line 102 of file core_lca.h.

#define LCA_IOC_TB_TAG5   (IDENT_ADDR + 0x1880000a0UL)

Definition at line 103 of file core_lca.h.

#define LCA_IOC_TB_TAG6   (IDENT_ADDR + 0x1880000c0UL)

Definition at line 104 of file core_lca.h.

#define LCA_IOC_TB_TAG7   (IDENT_ADDR + 0x1880000e0UL)

Definition at line 105 of file core_lca.h.

#define LCA_IOC_TBIA   (IDENT_ADDR + 0x180000080UL)

Definition at line 88 of file core_lca.h.

#define LCA_IOC_W_BASE0   (IDENT_ADDR + 0x180000100UL)

Definition at line 92 of file core_lca.h.

#define LCA_IOC_W_BASE1   (IDENT_ADDR + 0x180000120UL)

Definition at line 93 of file core_lca.h.

#define LCA_IOC_W_MASK0   (IDENT_ADDR + 0x180000140UL)

Definition at line 94 of file core_lca.h.

#define LCA_IOC_W_MASK1   (IDENT_ADDR + 0x180000160UL)

Definition at line 95 of file core_lca.h.

#define LCA_MEM_BCR0   (IDENT_ADDR + 0x120000000UL)

Definition at line 61 of file core_lca.h.

#define LCA_MEM_BCR1   (IDENT_ADDR + 0x120000008UL)

Definition at line 62 of file core_lca.h.

#define LCA_MEM_BCR2   (IDENT_ADDR + 0x120000010UL)

Definition at line 63 of file core_lca.h.

#define LCA_MEM_BCR3   (IDENT_ADDR + 0x120000018UL)

Definition at line 64 of file core_lca.h.

#define LCA_MEM_BMR0   (IDENT_ADDR + 0x120000020UL)

Definition at line 65 of file core_lca.h.

#define LCA_MEM_BMR1   (IDENT_ADDR + 0x120000028UL)

Definition at line 66 of file core_lca.h.

#define LCA_MEM_BMR2   (IDENT_ADDR + 0x120000030UL)

Definition at line 67 of file core_lca.h.

#define LCA_MEM_BMR3   (IDENT_ADDR + 0x120000038UL)

Definition at line 68 of file core_lca.h.

#define LCA_MEM_BTR0   (IDENT_ADDR + 0x120000040UL)

Definition at line 69 of file core_lca.h.

#define LCA_MEM_BTR1   (IDENT_ADDR + 0x120000048UL)

Definition at line 70 of file core_lca.h.

#define LCA_MEM_BTR2   (IDENT_ADDR + 0x120000050UL)

Definition at line 71 of file core_lca.h.

#define LCA_MEM_BTR3   (IDENT_ADDR + 0x120000058UL)

Definition at line 72 of file core_lca.h.

#define LCA_MEM_CAR   (IDENT_ADDR + 0x120000078UL)

Definition at line 76 of file core_lca.h.

#define LCA_MEM_EAR   (IDENT_ADDR + 0x120000070UL)

Definition at line 75 of file core_lca.h.

#define LCA_MEM_ESR   (IDENT_ADDR + 0x120000068UL)

Definition at line 74 of file core_lca.h.

#define LCA_MEM_FOR   (IDENT_ADDR + 0x120000090UL)

Definition at line 79 of file core_lca.h.

#define LCA_MEM_GTR   (IDENT_ADDR + 0x120000060UL)

Definition at line 73 of file core_lca.h.

#define LCA_MEM_PLM   (IDENT_ADDR + 0x120000088UL)

Definition at line 78 of file core_lca.h.

#define LCA_MEM_VGR   (IDENT_ADDR + 0x120000080UL)

Definition at line 77 of file core_lca.h.

#define LCA_PMR_ADDR   (IDENT_ADDR + 0x120000098UL)

Definition at line 132 of file core_lca.h.

#define LCA_PMR_DIV_1   0x0

Definition at line 151 of file core_lca.h.

#define LCA_PMR_DIV_16   0x5

Definition at line 156 of file core_lca.h.

#define LCA_PMR_DIV_1_5   0x1

Definition at line 152 of file core_lca.h.

#define LCA_PMR_DIV_2   0x2

Definition at line 153 of file core_lca.h.

#define LCA_PMR_DIV_4   0x3

Definition at line 154 of file core_lca.h.

#define LCA_PMR_DIV_8   0x4

Definition at line 155 of file core_lca.h.

#define LCA_PMR_DIV_MAX   DIV_16

Definition at line 158 of file core_lca.h.

#define LCA_PMR_DIV_MIN   DIV_1

Definition at line 157 of file core_lca.h.

#define LCA_PMR_DMAO   0x80 /* DMA override */

Definition at line 136 of file core_lca.h.

#define LCA_PMR_INTO   0x40 /* Interrupt override */

Definition at line 135 of file core_lca.h.

#define LCA_PMR_OCCEB   0xffff0000L /* Override cycle counter - even bits */

Definition at line 137 of file core_lca.h.

#define LCA_PMR_OCCOB   0xffff000000000000L /* Override cycle counter - even bits */

Definition at line 138 of file core_lca.h.

#define LCA_PMR_ODIV   0x38 /* Override clock divisor */

Definition at line 134 of file core_lca.h.

#define LCA_PMR_PDIV   0x7 /* Primary clock divisor */

Definition at line 133 of file core_lca.h.

#define LCA_PMR_PRIMARY_MASK   0xfffffffffffffff8L

Definition at line 139 of file core_lca.h.

#define LCA_READ_PMR   (*(volatile unsigned long *)LCA_PMR_ADDR)

Definition at line 143 of file core_lca.h.

#define LCA_SET_PRIMARY_CLOCK (   r,
  c 
)    ((r) = (((r) & LCA_PMR_PRIMARY_MASK)|(c)))

Definition at line 148 of file core_lca.h.

#define LCA_SPARSE_MEM   (IDENT_ADDR + 0x200000000UL)

Definition at line 113 of file core_lca.h.

#define LCA_WRITE_PMR (   d)    (*((volatile unsigned long *)LCA_PMR_ADDR) = (d))

Definition at line 144 of file core_lca.h.