pasemi_edac.c (1b3e4c706c19dec10b11dac1b23071e3e4b262ad) | pasemi_edac.c (0d08a84770cb03aea24268e515342d44df8ea588) |
---|---|
1/* 2 * Copyright (C) 2006-2007 PA Semi, Inc 3 * 4 * Author: Egor Martovetsky <egor@pasemi.com> 5 * Maintained by: Olof Johansson <olof@lixom.net> 6 * 7 * Driver for the PWRficient onchip memory controllers 8 * --- 211 unchanged lines hidden (view full) --- 220 mci->mtype_cap = MEM_FLAG_DDR | MEM_FLAG_RDDR; 221 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; 222 mci->edac_cap = (errcor & MCCFG_ERRCOR_ECC_GEN_EN) ? 223 ((errcor & MCCFG_ERRCOR_ECC_CRR_EN) ? 224 (EDAC_FLAG_EC | EDAC_FLAG_SECDED) : EDAC_FLAG_EC) : 225 EDAC_FLAG_NONE; 226 mci->mod_name = MODULE_NAME; 227 mci->dev_name = pci_name(pdev); | 1/* 2 * Copyright (C) 2006-2007 PA Semi, Inc 3 * 4 * Author: Egor Martovetsky <egor@pasemi.com> 5 * Maintained by: Olof Johansson <olof@lixom.net> 6 * 7 * Driver for the PWRficient onchip memory controllers 8 * --- 211 unchanged lines hidden (view full) --- 220 mci->mtype_cap = MEM_FLAG_DDR | MEM_FLAG_RDDR; 221 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; 222 mci->edac_cap = (errcor & MCCFG_ERRCOR_ECC_GEN_EN) ? 223 ((errcor & MCCFG_ERRCOR_ECC_CRR_EN) ? 224 (EDAC_FLAG_EC | EDAC_FLAG_SECDED) : EDAC_FLAG_EC) : 225 EDAC_FLAG_NONE; 226 mci->mod_name = MODULE_NAME; 227 mci->dev_name = pci_name(pdev); |
228 mci->ctl_name = "pasemi,1682m-mc"; | 228 mci->ctl_name = "pasemi,pwrficient-mc"; |
229 mci->edac_check = pasemi_edac_check; 230 mci->ctl_page_to_phys = NULL; 231 pci_read_config_dword(pdev, MCCFG_SCRUB, &scrub); 232 mci->scrub_cap = SCRUB_FLAG_HW_PROG | SCRUB_FLAG_HW_SRC; 233 mci->scrub_mode = 234 ((errcor & MCCFG_ERRCOR_ECC_CRR_EN) ? SCRUB_FLAG_HW_SRC : 0) | 235 ((scrub & MCCFG_SCRUB_RGLR_SCRB_EN) ? SCRUB_FLAG_HW_PROG : 0); 236 --- 55 unchanged lines hidden (view full) --- 292 pci_unregister_driver(&pasemi_edac_driver); 293} 294 295module_init(pasemi_edac_init); 296module_exit(pasemi_edac_exit); 297 298MODULE_LICENSE("GPL"); 299MODULE_AUTHOR("Egor Martovetsky <egor@pasemi.com>"); | 229 mci->edac_check = pasemi_edac_check; 230 mci->ctl_page_to_phys = NULL; 231 pci_read_config_dword(pdev, MCCFG_SCRUB, &scrub); 232 mci->scrub_cap = SCRUB_FLAG_HW_PROG | SCRUB_FLAG_HW_SRC; 233 mci->scrub_mode = 234 ((errcor & MCCFG_ERRCOR_ECC_CRR_EN) ? SCRUB_FLAG_HW_SRC : 0) | 235 ((scrub & MCCFG_SCRUB_RGLR_SCRB_EN) ? SCRUB_FLAG_HW_PROG : 0); 236 --- 55 unchanged lines hidden (view full) --- 292 pci_unregister_driver(&pasemi_edac_driver); 293} 294 295module_init(pasemi_edac_init); 296module_exit(pasemi_edac_exit); 297 298MODULE_LICENSE("GPL"); 299MODULE_AUTHOR("Egor Martovetsky <egor@pasemi.com>"); |
300MODULE_DESCRIPTION("MC support for PA Semi PA6T-1682M memory controller"); | 300MODULE_DESCRIPTION("MC support for PA Semi PWRficient memory controller"); |