diff options
Diffstat (limited to 'drivers/edac/i3000_edac.c')
-rw-r--r-- | drivers/edac/i3000_edac.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c index b813f356b390..5d4292811c14 100644 --- a/drivers/edac/i3000_edac.c +++ b/drivers/edac/i3000_edac.c | |||
@@ -44,6 +44,13 @@ | |||
44 | */ | 44 | */ |
45 | #define I3000_DEAP_GRAIN (1 << 7) | 45 | #define I3000_DEAP_GRAIN (1 << 7) |
46 | 46 | ||
47 | /* | ||
48 | * Helper functions to decode the DEAP/EDEAP hardware registers. | ||
49 | * | ||
50 | * The type promotion here is deliberate; we're deriving an | ||
51 | * unsigned long pfn and offset from hardware regs which are u8/u32. | ||
52 | */ | ||
53 | |||
47 | static inline unsigned long deap_pfn(u8 edeap, u32 deap) | 54 | static inline unsigned long deap_pfn(u8 edeap, u32 deap) |
48 | { | 55 | { |
49 | deap >>= PAGE_SHIFT; | 56 | deap >>= PAGE_SHIFT; |