aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd64_edac.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r--drivers/edac/amd64_edac.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h
index 6220baeb3f1a..11be36a311eb 100644
--- a/drivers/edac/amd64_edac.h
+++ b/drivers/edac/amd64_edac.h
@@ -180,10 +180,10 @@
180#define DRAM_BASE_LO 0x40 180#define DRAM_BASE_LO 0x40
181#define DRAM_LIMIT_LO 0x44 181#define DRAM_LIMIT_LO 0x44
182 182
183#define dram_intlv_en(pvt, i) ((pvt->ranges[i].base.lo >> 8) & 0x7) 183#define dram_intlv_en(pvt, i) ((u8)((pvt->ranges[i].base.lo >> 8) & 0x7))
184#define dram_rw(pvt, i) (pvt->ranges[i].base.lo & 0x3) 184#define dram_rw(pvt, i) ((u8)(pvt->ranges[i].base.lo & 0x3))
185#define dram_intlv_sel(pvt, i) ((pvt->ranges[i].lim.lo >> 8) & 0x7) 185#define dram_intlv_sel(pvt, i) ((u8)((pvt->ranges[i].lim.lo >> 8) & 0x7))
186#define dram_dst_node(pvt, i) (pvt->ranges[i].lim.lo & 0x7) 186#define dram_dst_node(pvt, i) ((u8)(pvt->ranges[i].lim.lo & 0x7))
187 187
188#define DHAR 0xf0 188#define DHAR 0xf0
189#define dhar_valid(pvt) ((pvt)->dhar & BIT(0)) 189#define dhar_valid(pvt) ((pvt)->dhar & BIT(0))