Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cell-regs.h File Reference
#include <asm/cell-pmu.h>

Go to the source code of this file.

Data Structures

union  spe_reg
 
union  ppe_spe_reg
 
struct  cbe_pmd_regs
 
struct  cbe_pmd_shadow_regs
 
struct  cbe_iic_pending_bits
 
struct  cbe_iic_thread_regs
 
struct  cbe_iic_regs
 
struct  cbe_mic_tm_regs
 

Macros

#define HID0_CBE_THERM_WAKEUP   0x0000020000000000ul
 
#define HID0_CBE_SYSERR_WAKEUP   0x0000008000000000ul
 
#define HID0_CBE_THERM_INT_EN   0x0000000400000000ul
 
#define HID0_CBE_SYSERR_INT_EN   0x0000000200000000ul
 
#define MAX_CBE   2
 
#define CBE_PMD_PAUSE_ZERO_CONTROL   0x10000
 
#define CBE_PMD_FIR_MODE_M8   0x00800
 
#define CBE_IIC_IRQ_VALID   0x80
 
#define CBE_IIC_IRQ_IPI   0x40
 
#define CBE_IIC_IR_PRIO(x)   (((x) & 0xf) << 12)
 
#define CBE_IIC_IR_DEST_NODE(x)   (((x) & 0xf) << 4)
 
#define CBE_IIC_IR_DEST_UNIT(x)   ((x) & 0xf)
 
#define CBE_IIC_IR_IOC_0   0x0
 
#define CBE_IIC_IR_IOC_1S   0xb
 
#define CBE_IIC_IR_PT_0   0xe
 
#define CBE_IIC_IR_PT_1   0xf
 
#define CBE_IIC_IS_PMI   0x2
 
#define CBE_MIC_ENABLE_AUX_TRC   0x8000000000000000LL
 
#define CBE_MIC_DISABLE_PWR_SAV_2   0x0200000000000000LL
 
#define CBE_MIC_DISABLE_AUX_TRC_WRAP   0x0100000000000000LL
 
#define CBE_MIC_ENABLE_AUX_TRC_INT   0x0080000000000000LL
 
#define CBE_MIC_DISABLE_PWR_SAV_0   0x8000000000000000LL
 
#define CBE_MIC_DISABLE_PWR_SAV_1   0x8000000000000000LL
 
#define CBE_MIC_EXC_BLOCK_SCRUB   0x0800000000000000ULL
 
#define CBE_MIC_EXC_FAST_SCRUB   0x0100000000000000ULL
 
#define CBE_MIC_MNT_CFG_CHAN_0_POP   0x0002000000000000ULL
 
#define CBE_MIC_MNT_CFG_CHAN_1_POP   0x0004000000000000ULL
 
#define CBE_MIC_ECC_DISABLE_0   0x4000000000000000ULL
 
#define CBE_MIC_ECC_REP_SINGLE_0   0x2000000000000000ULL
 
#define CBE_MIC_ECC_DISABLE_1   0x0080000000000000ULL
 
#define CBE_MIC_ECC_REP_SINGLE_1   0x0040000000000000ULL
 
#define CBE_MIC_FIR_ECC_SINGLE_0_ERR   0x0200000000000000ULL
 
#define CBE_MIC_FIR_ECC_MULTI_0_ERR   0x0100000000000000ULL
 
#define CBE_MIC_FIR_ECC_SINGLE_1_ERR   0x0080000000000000ULL
 
#define CBE_MIC_FIR_ECC_MULTI_1_ERR   0x0040000000000000ULL
 
#define CBE_MIC_FIR_ECC_ERR_MASK   0xffff000000000000ULL
 
#define CBE_MIC_FIR_ECC_SINGLE_0_CTE   0x0000020000000000ULL
 
#define CBE_MIC_FIR_ECC_MULTI_0_CTE   0x0000010000000000ULL
 
#define CBE_MIC_FIR_ECC_SINGLE_1_CTE   0x0000008000000000ULL
 
#define CBE_MIC_FIR_ECC_MULTI_1_CTE   0x0000004000000000ULL
 
#define CBE_MIC_FIR_ECC_CTE_MASK   0x0000ffff00000000ULL
 
#define CBE_MIC_FIR_ECC_SINGLE_0_RESET   0x0000000002000000ULL
 
#define CBE_MIC_FIR_ECC_MULTI_0_RESET   0x0000000001000000ULL
 
#define CBE_MIC_FIR_ECC_SINGLE_1_RESET   0x0000000000800000ULL
 
#define CBE_MIC_FIR_ECC_MULTI_1_RESET   0x0000000000400000ULL
 
#define CBE_MIC_FIR_ECC_RESET_MASK   0x00000000ffff0000ULL
 
#define CBE_MIC_FIR_ECC_SINGLE_0_SET   0x0000000000000200ULL
 
#define CBE_MIC_FIR_ECC_MULTI_0_SET   0x0000000000000100ULL
 
#define CBE_MIC_FIR_ECC_SINGLE_1_SET   0x0000000000000080ULL
 
#define CBE_MIC_FIR_ECC_MULTI_1_SET   0x0000000000000040ULL
 
#define CBE_MIC_FIR_ECC_SET_MASK   0x000000000000ffffULL
 
#define CBE_IOPTE_PP_W   0x8000000000000000ul /* protection: write */
 
#define CBE_IOPTE_PP_R   0x4000000000000000ul /* protection: read */
 
#define CBE_IOPTE_M   0x2000000000000000ul /* coherency required */
 
#define CBE_IOPTE_SO_R   0x1000000000000000ul /* ordering: writes */
 
#define CBE_IOPTE_SO_RW   0x1800000000000000ul /* ordering: r & w */
 
#define CBE_IOPTE_RPN_Mask   0x07fffffffffff000ul /* RPN */
 
#define CBE_IOPTE_H   0x0000000000000800ul /* cache hint */
 
#define CBE_IOPTE_IOID_Mask   0x00000000000007fful /* ioid */
 

Functions

struct cbe_pmd_regs __iomemcbe_get_pmd_regs (struct device_node *np)
 
struct cbe_pmd_regs __iomemcbe_get_cpu_pmd_regs (int cpu)
 
struct cbe_pmd_shadow_regscbe_get_pmd_shadow_regs (struct device_node *np)
 
struct cbe_pmd_shadow_regscbe_get_cpu_pmd_shadow_regs (int cpu)
 
struct cbe_iic_regs __iomemcbe_get_iic_regs (struct device_node *np)
 
struct cbe_iic_regs __iomemcbe_get_cpu_iic_regs (int cpu)
 
struct cbe_mic_tm_regs __iomemcbe_get_mic_tm_regs (struct device_node *np)
 
struct cbe_mic_tm_regs __iomemcbe_get_cpu_mic_tm_regs (int cpu)
 
u32 cbe_get_hw_thread_id (int cpu)
 
u32 cbe_cpu_to_node (int cpu)
 
u32 cbe_node_to_cpu (int node)
 
void cbe_regs_init (void)
 

Macro Definition Documentation

#define CBE_IIC_IR_DEST_NODE (   x)    (((x) & 0xf) << 4)

Definition at line 193 of file cell-regs.h.

#define CBE_IIC_IR_DEST_UNIT (   x)    ((x) & 0xf)

Definition at line 194 of file cell-regs.h.

#define CBE_IIC_IR_IOC_0   0x0

Definition at line 195 of file cell-regs.h.

#define CBE_IIC_IR_IOC_1S   0xb

Definition at line 196 of file cell-regs.h.

#define CBE_IIC_IR_PRIO (   x)    (((x) & 0xf) << 12)

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

#define CBE_IIC_IR_PT_0   0xe

Definition at line 197 of file cell-regs.h.

#define CBE_IIC_IR_PT_1   0xf

Definition at line 198 of file cell-regs.h.

#define CBE_IIC_IRQ_IPI   0x40

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

#define CBE_IIC_IRQ_VALID   0x80

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

#define CBE_IIC_IS_PMI   0x2

Definition at line 201 of file cell-regs.h.

#define CBE_IOPTE_H   0x0000000000000800ul /* cache hint */

Definition at line 314 of file cell-regs.h.

#define CBE_IOPTE_IOID_Mask   0x00000000000007fful /* ioid */

Definition at line 315 of file cell-regs.h.

#define CBE_IOPTE_M   0x2000000000000000ul /* coherency required */

Definition at line 310 of file cell-regs.h.

#define CBE_IOPTE_PP_R   0x4000000000000000ul /* protection: read */

Definition at line 309 of file cell-regs.h.

#define CBE_IOPTE_PP_W   0x8000000000000000ul /* protection: write */

Definition at line 308 of file cell-regs.h.

#define CBE_IOPTE_RPN_Mask   0x07fffffffffff000ul /* RPN */

Definition at line 313 of file cell-regs.h.

#define CBE_IOPTE_SO_R   0x1000000000000000ul /* ordering: writes */

Definition at line 311 of file cell-regs.h.

#define CBE_IOPTE_SO_RW   0x1800000000000000ul /* ordering: r & w */

Definition at line 312 of file cell-regs.h.

#define CBE_MIC_DISABLE_AUX_TRC_WRAP   0x0100000000000000LL

Definition at line 226 of file cell-regs.h.

#define CBE_MIC_DISABLE_PWR_SAV_0   0x8000000000000000LL

Definition at line 240 of file cell-regs.h.

#define CBE_MIC_DISABLE_PWR_SAV_1   0x8000000000000000LL

Definition at line 254 of file cell-regs.h.

#define CBE_MIC_DISABLE_PWR_SAV_2   0x0200000000000000LL

Definition at line 225 of file cell-regs.h.

#define CBE_MIC_ECC_DISABLE_0   0x4000000000000000ULL

Definition at line 271 of file cell-regs.h.

#define CBE_MIC_ECC_DISABLE_1   0x0080000000000000ULL

Definition at line 273 of file cell-regs.h.

#define CBE_MIC_ECC_REP_SINGLE_0   0x2000000000000000ULL

Definition at line 272 of file cell-regs.h.

#define CBE_MIC_ECC_REP_SINGLE_1   0x0040000000000000ULL

Definition at line 274 of file cell-regs.h.

#define CBE_MIC_ENABLE_AUX_TRC   0x8000000000000000LL

Definition at line 224 of file cell-regs.h.

#define CBE_MIC_ENABLE_AUX_TRC_INT   0x0080000000000000LL

Definition at line 227 of file cell-regs.h.

#define CBE_MIC_EXC_BLOCK_SCRUB   0x0800000000000000ULL

Definition at line 263 of file cell-regs.h.

#define CBE_MIC_EXC_FAST_SCRUB   0x0100000000000000ULL

Definition at line 264 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_CTE_MASK   0x0000ffff00000000ULL

Definition at line 287 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_ERR_MASK   0xffff000000000000ULL

Definition at line 282 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_MULTI_0_CTE   0x0000010000000000ULL

Definition at line 284 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_MULTI_0_ERR   0x0100000000000000ULL

Definition at line 279 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_MULTI_0_RESET   0x0000000001000000ULL

Definition at line 289 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_MULTI_0_SET   0x0000000000000100ULL

Definition at line 294 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_MULTI_1_CTE   0x0000004000000000ULL

Definition at line 286 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_MULTI_1_ERR   0x0040000000000000ULL

Definition at line 281 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_MULTI_1_RESET   0x0000000000400000ULL

Definition at line 291 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_MULTI_1_SET   0x0000000000000040ULL

Definition at line 296 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_RESET_MASK   0x00000000ffff0000ULL

Definition at line 292 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_SET_MASK   0x000000000000ffffULL

Definition at line 297 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_SINGLE_0_CTE   0x0000020000000000ULL

Definition at line 283 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_SINGLE_0_ERR   0x0200000000000000ULL

Definition at line 278 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_SINGLE_0_RESET   0x0000000002000000ULL

Definition at line 288 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_SINGLE_0_SET   0x0000000000000200ULL

Definition at line 293 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_SINGLE_1_CTE   0x0000008000000000ULL

Definition at line 285 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_SINGLE_1_ERR   0x0080000000000000ULL

Definition at line 280 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_SINGLE_1_RESET   0x0000000000800000ULL

Definition at line 290 of file cell-regs.h.

#define CBE_MIC_FIR_ECC_SINGLE_1_SET   0x0000000000000080ULL

Definition at line 295 of file cell-regs.h.

#define CBE_MIC_MNT_CFG_CHAN_0_POP   0x0002000000000000ULL

Definition at line 267 of file cell-regs.h.

#define CBE_MIC_MNT_CFG_CHAN_1_POP   0x0004000000000000ULL

Definition at line 268 of file cell-regs.h.

#define CBE_PMD_FIR_MODE_M8   0x00800

Definition at line 118 of file cell-regs.h.

#define CBE_PMD_PAUSE_ZERO_CONTROL   0x10000

Definition at line 104 of file cell-regs.h.

#define HID0_CBE_SYSERR_INT_EN   0x0000000200000000ul

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

#define HID0_CBE_SYSERR_WAKEUP   0x0000008000000000ul

Definition at line 28 of file cell-regs.h.

#define HID0_CBE_THERM_INT_EN   0x0000000400000000ul

Definition at line 29 of file cell-regs.h.

#define HID0_CBE_THERM_WAKEUP   0x0000020000000000ul

Definition at line 27 of file cell-regs.h.

#define MAX_CBE   2

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

Function Documentation

u32 cbe_cpu_to_node ( int  cpu)

Definition at line 154 of file cbe_regs.c.

struct cbe_iic_regs __iomem* cbe_get_cpu_iic_regs ( int  cpu)
read

Definition at line 123 of file cbe_regs.c.

struct cbe_mic_tm_regs __iomem* cbe_get_cpu_mic_tm_regs ( int  cpu)
read

Definition at line 139 of file cbe_regs.c.

struct cbe_pmd_regs __iomem* cbe_get_cpu_pmd_regs ( int  cpu)
read

Definition at line 90 of file cbe_regs.c.

struct cbe_pmd_shadow_regs* cbe_get_cpu_pmd_shadow_regs ( int  cpu)
read

Definition at line 107 of file cbe_regs.c.

u32 cbe_get_hw_thread_id ( int  cpu)

Definition at line 148 of file cbe_regs.c.

struct cbe_iic_regs __iomem* cbe_get_iic_regs ( struct device_node np)
read

Definition at line 115 of file cbe_regs.c.

struct cbe_mic_tm_regs __iomem* cbe_get_mic_tm_regs ( struct device_node np)
read

Definition at line 131 of file cbe_regs.c.

struct cbe_pmd_regs __iomem* cbe_get_pmd_regs ( struct device_node np)
read

Definition at line 81 of file cbe_regs.c.

struct cbe_pmd_shadow_regs* cbe_get_pmd_shadow_regs ( struct device_node np)
read

Definition at line 99 of file cbe_regs.c.

u32 cbe_node_to_cpu ( int  node)

Definition at line 160 of file cbe_regs.c.

void cbe_regs_init ( void  )

Definition at line 235 of file cbe_regs.c.