Lines Matching +full:no +full:- +full:poll +full:- +full:on +full:- +full:init

13 #include <linux/init.h>
59 static struct pci_dev *mci_pdev; /* init dev: in case that AGP code
69 pdev = to_pci_dev(mci->pdev); in i82860_get_error_info()
72 * This is a mess because there is no atomic way to read all the in i82860_get_error_info()
76 pci_read_config_word(pdev, I82860_ERRSTS, &info->errsts); in i82860_get_error_info()
77 pci_read_config_dword(pdev, I82860_EAP, &info->eap); in i82860_get_error_info()
78 pci_read_config_word(pdev, I82860_DERRCTL_STS, &info->derrsyn); in i82860_get_error_info()
79 pci_read_config_word(pdev, I82860_ERRSTS, &info->errsts2); in i82860_get_error_info()
85 * is valid. If there is a change then there is a CE no info and the in i82860_get_error_info()
88 if (!(info->errsts2 & 0x0003)) in i82860_get_error_info()
91 if ((info->errsts ^ info->errsts2) & 0x0003) { in i82860_get_error_info()
92 pci_read_config_dword(pdev, I82860_EAP, &info->eap); in i82860_get_error_info()
93 pci_read_config_word(pdev, I82860_DERRCTL_STS, &info->derrsyn); in i82860_get_error_info()
104 if (!(info->errsts2 & 0x0003)) in i82860_process_error_info()
110 if ((info->errsts ^ info->errsts2) & 0x0003) { in i82860_process_error_info()
112 -1, -1, -1, "UE overwrote CE", ""); in i82860_process_error_info()
113 info->errsts = info->errsts2; in i82860_process_error_info()
116 info->eap >>= PAGE_SHIFT; in i82860_process_error_info()
117 row = edac_mc_find_csrow_by_page(mci, info->eap); in i82860_process_error_info()
118 dimm = mci->csrows[row]->channels[0]->dimm; in i82860_process_error_info()
120 if (info->errsts & 0x0002) in i82860_process_error_info()
122 info->eap, 0, 0, in i82860_process_error_info()
123 dimm->location[0], dimm->location[1], -1, in i82860_process_error_info()
127 info->eap, 0, info->derrsyn, in i82860_process_error_info()
128 dimm->location[0], dimm->location[1], -1, in i82860_process_error_info()
161 for (index = 0; index < mci->nr_csrows; index++) { in i82860_init_csrows()
162 csrow = mci->csrows[index]; in i82860_init_csrows()
163 dimm = csrow->channels[0]->dimm; in i82860_init_csrows()
167 (I82860_GBA_SHIFT - PAGE_SHIFT); in i82860_init_csrows()
173 csrow->first_page = last_cumul_size; in i82860_init_csrows()
174 csrow->last_page = cumul_size - 1; in i82860_init_csrows()
175 dimm->nr_pages = cumul_size - last_cumul_size; in i82860_init_csrows()
177 dimm->grain = 1 << 12; /* I82860_EAP has 4KiB reolution */ in i82860_init_csrows()
178 dimm->mtype = MEM_RMBS; in i82860_init_csrows()
179 dimm->dtype = DEV_UNKNOWN; in i82860_init_csrows()
180 dimm->edac_mode = mchcfg_ddim ? EDAC_SECDED : EDAC_NONE; in i82860_init_csrows()
208 return -ENOMEM; in i82860_probe1()
210 edac_dbg(3, "init mci\n"); in i82860_probe1()
211 mci->pdev = &pdev->dev; in i82860_probe1()
212 mci->mtype_cap = MEM_FLAG_DDR; in i82860_probe1()
213 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; in i82860_probe1()
215 mci->edac_cap = EDAC_FLAG_SECDED; in i82860_probe1()
216 mci->mod_name = EDAC_MOD_STR; in i82860_probe1()
217 mci->ctl_name = i82860_devs[dev_idx].ctl_name; in i82860_probe1()
218 mci->dev_name = pci_name(pdev); in i82860_probe1()
219 mci->edac_check = i82860_check; in i82860_probe1()
220 mci->ctl_page_to_phys = NULL; in i82860_probe1()
233 i82860_pci = edac_pci_create_generic_ctl(&pdev->dev, EDAC_MOD_STR); in i82860_probe1()
250 return -ENODEV; in i82860_probe1()
253 /* returns count (>= 0), or negative on error */
260 i82860_printk(KERN_INFO, "i82860 init one\n"); in i82860_init_one()
263 return -EIO; in i82860_init_one()
265 rc = i82860_probe1(pdev, ent->driver_data); in i82860_init_one()
282 if ((mci = edac_mc_del_mc(&pdev->dev)) == NULL) in i82860_remove_one()
312 /* Ensure that the OPSTATE is set correctly for POLL or NMI */ in i82860_init()
324 pci_rc = -ENODEV; in i82860_init()
331 edac_dbg(0, "860 init fail\n"); in i82860_init()
332 pci_rc = -ENODEV; in i82860_init()
362 MODULE_PARM_DESC(edac_op_state, "EDAC Error Reporting state: 0=Poll,1=NMI");