amd64_edac: enhance address to DRAM bank mapping
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 21 Oct 2009 11:44:36 +0000 (13:44 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Mon, 7 Dec 2009 18:14:29 +0000 (19:14 +0100)
commit1433eb9903408d1801d19a9c49893120874abc12
treea765ae5d98e7576fa005fc980bb4bd6ebd2f5075
parentd16149e8c378ab7011e600980af51d2477aa5307
amd64_edac: enhance address to DRAM bank mapping

Add cs mode to cs size mapping tables for DDR2 and DDR3 and F10
and all K8 flavors and remove klugdy table of pseudo values. Add a
low_ops->dbam_to_cs member which is family-specific and replaces
low_ops->dbam_map_to_pages since the pages calculation is a one liner
now.

Further cleanups, while at it:

- shorten family name defines
- align amd64_family_types struct members

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