amd64_edac: Add support for F15h DCT PCI config accesses
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 8 Oct 2010 16:32:29 +0000 (18:32 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Thu, 17 Mar 2011 13:46:11 +0000 (14:46 +0100)
commitb2b0c605436e343a9a24f00e7fc8fb89a8316e20
treeafc2d4300b7ad6e8b8c92d02cdf176e55fddc689
parentb6a280bb96e0981a527d26cfb0fad203cb9bd808
amd64_edac: Add support for F15h DCT PCI config accesses

F15h "multiplexes" between the configuration space of the two DRAM
controllers by toggling D18F1x10C[DctCfgSel] while F10h has a different
set of registers for DCT0, and DCT1 in extended PCI config space.

Add DCT configuration space accessors per family thus wrapping all the
different access prerequisites. Clean up code while at it, shorten
names.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h
drivers/edac/amd64_edac_inj.c