diff options
author | Doug Thompson <dougthompson@xmission.com> | 2009-04-27 14:01:01 -0400 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2009-06-10 06:19:28 -0400 |
commit | 7d6034d3213e2dd1c0f8678e11064007413011c4 (patch) | |
tree | 636185251f8233b8c2de9f917cf23a8327302777 /drivers/edac/amd64_edac.h | |
parent | f9431992b6227069bc54800d55531c6f78d276a7 (diff) |
amd64_edac: add module registration routines
Also, link into Kbuild by adding Kconfig and Makefile entries.
Borislav:
- Kconfig/Makefile splitting
- use zero-sized arrays for the sysfs attrs if not enabled
- rename sysfs attrs to more conform values
- shorten CONFIG_ names
- make multiple structure members assignment vertically aligned
- fix/cleanup comments
- fix function return value patterns
- fix err labels
- fix a memleak bug caught by Ingo
- remove the NUMA dependency and use num_k8_northbrides for initializing
a driver instance per NB.
- do not copy the pvt contents into the mci struct in
amd64_init_2nd_stage() and save it in the mci->pvt_info void ptr
instead.
- cleanup debug calls
- simplify amd64_setup_pci_device()
Reviewed-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r-- | drivers/edac/amd64_edac.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index e7aa760614ce..a159957e167b 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h | |||
@@ -577,6 +577,21 @@ extern const char *ii_msgs[4]; | |||
577 | extern const char *ext_msgs[32]; | 577 | extern const char *ext_msgs[32]; |
578 | extern const char *htlink_msgs[8]; | 578 | extern const char *htlink_msgs[8]; |
579 | 579 | ||
580 | #ifdef CONFIG_EDAC_DEBUG | ||
581 | #define NUM_DBG_ATTRS 9 | ||
582 | #else | ||
583 | #define NUM_DBG_ATTRS 0 | ||
584 | #endif | ||
585 | |||
586 | #ifdef CONFIG_EDAC_AMD64_ERROR_INJECTION | ||
587 | #define NUM_INJ_ATTRS 5 | ||
588 | #else | ||
589 | #define NUM_INJ_ATTRS 0 | ||
590 | #endif | ||
591 | |||
592 | extern struct mcidev_sysfs_attribute amd64_dbg_attrs[NUM_DBG_ATTRS], | ||
593 | amd64_inj_attrs[NUM_INJ_ATTRS]; | ||
594 | |||
580 | /* | 595 | /* |
581 | * Each of the PCI Device IDs types have their own set of hardware accessor | 596 | * Each of the PCI Device IDs types have their own set of hardware accessor |
582 | * functions and per device encoding/decoding logic. | 597 | * functions and per device encoding/decoding logic. |