Subject: Cell: add MIC register access to RAS Signed-off-by: Christian Krafft Index: linus-2.6/arch/powerpc/platforms/cell/cbe_regs.c =================================================================== --- linus-2.6.orig/arch/powerpc/platforms/cell/cbe_regs.c +++ linus-2.6/arch/powerpc/platforms/cell/cbe_regs.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -78,7 +79,7 @@ struct cbe_pmd_regs __iomem *cbe_get_cpu return NULL; return map->pmd_regs; } - +EXPORT_SYMBOL_GPL(cbe_get_cpu_pmd_regs); struct cbe_iic_regs __iomem *cbe_get_iic_regs(struct device_node *np) { @@ -111,6 +112,8 @@ struct cbe_mic_tm_regs __iomem *cbe_get_ return NULL; return map->mic_tm_regs; } +EXPORT_SYMBOL_GPL(cbe_get_cpu_mic_tm_regs); + void __init cbe_regs_init(void) { Index: linus-2.6/arch/powerpc/platforms/cell/cbe_regs.h =================================================================== --- linus-2.6.orig/arch/powerpc/platforms/cell/cbe_regs.h +++ linus-2.6/arch/powerpc/platforms/cell/cbe_regs.h @@ -300,12 +300,21 @@ struct cbe_mic_tm_regs { u64 mic_ctl_cnfg_0; /* 0x0080 */ #define CBE_MIC_DISABLE_PWR_SAV_0 0x8000000000000000LL - u8 pad_0x0088_0x01c0[0x01c0 - 0x0088]; /* 0x0088 */ + u64 pad_0x0088; /* 0x0088 */ + + u64 slow_fast_timer_0; /* 0x0090 */ + u64 slow_next_timer_0; /* 0x0098 */ + + u8 pad_0x00a0_0x01c0[0x01c0 - 0x0a0]; /* 0x00a0 */ u64 mic_ctl_cnfg_1; /* 0x01c0 */ #define CBE_MIC_DISABLE_PWR_SAV_1 0x8000000000000000LL + u64 pad_0x01c8; /* 0x01c8 */ + + u64 slow_fast_timer_1; /* 0x01d0 */ + u64 slow_next_timer_1; /* 0x01d8 */ - u8 pad_0x01c8_0x1000[0x1000 - 0x01c8]; /* 0x01c8 */ + u8 pad_0x01e0_0x1000[0x1000 - 0x01e0]; /* 0x01e0 */ }; extern struct cbe_mic_tm_regs __iomem *cbe_get_mic_tm_regs(struct device_node *np);