Searched refs:eep_config (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/scsi/
H A Dadvansys.c2273 } eep_config; member in struct:asc_board
2892 ep = &boardp->eep_config.asc_eep; asc_prt_asc_board_eeprom()
2970 ep_3550 = &boardp->eep_config.adv_3550_eep; asc_prt_adv_board_eeprom()
2972 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; asc_prt_adv_board_eeprom()
2974 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; asc_prt_adv_board_eeprom()
9109 ASCEEP_CONFIG *eep_config; AscInitFromEEP() local
9136 eep_config = (ASCEEP_CONFIG *)&eep_config_buf; AscInitFromEEP()
9144 chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type); AscInitFromEEP()
9152 if (eep_config->cfg_lsw != cfg_lsw) { AscInitFromEEP()
9154 eep_config->cfg_lsw = AscInitFromEEP()
9157 if (eep_config->cfg_msw != cfg_msw) { AscInitFromEEP()
9159 eep_config->cfg_msw = AscInitFromEEP()
9164 eep_config->cfg_msw &= ~ASC_CFG_MSW_CLR_MASK; AscInitFromEEP()
9165 eep_config->cfg_lsw |= ASC_CFG0_HOST_INT_ON; AscInitFromEEP()
9166 ASC_DBG(1, "eep_config->chksum 0x%x\n", eep_config->chksum); AscInitFromEEP()
9167 if (chksum != eep_config->chksum) { AscInitFromEEP()
9171 eep_config->init_sdtr = 0xFF; AscInitFromEEP()
9172 eep_config->disc_enable = 0xFF; AscInitFromEEP()
9173 eep_config->start_motor = 0xFF; AscInitFromEEP()
9174 eep_config->use_cmd_qng = 0; AscInitFromEEP()
9175 eep_config->max_total_qng = 0xF0; AscInitFromEEP()
9176 eep_config->max_tag_qng = 0x20; AscInitFromEEP()
9177 eep_config->cntl = 0xBFFF; AscInitFromEEP()
9178 ASC_EEP_SET_CHIP_ID(eep_config, 7); AscInitFromEEP()
9179 eep_config->no_scam = 0; AscInitFromEEP()
9180 eep_config->adapter_info[0] = 0; AscInitFromEEP()
9181 eep_config->adapter_info[1] = 0; AscInitFromEEP()
9182 eep_config->adapter_info[2] = 0; AscInitFromEEP()
9183 eep_config->adapter_info[3] = 0; AscInitFromEEP()
9184 eep_config->adapter_info[4] = 0; AscInitFromEEP()
9186 eep_config->adapter_info[5] = 0xBB; AscInitFromEEP()
9194 asc_dvc->cfg->sdtr_enable = eep_config->init_sdtr; AscInitFromEEP()
9195 asc_dvc->cfg->disc_enable = eep_config->disc_enable; AscInitFromEEP()
9196 asc_dvc->cfg->cmd_qng_enabled = eep_config->use_cmd_qng; AscInitFromEEP()
9197 asc_dvc->cfg->isa_dma_speed = ASC_EEP_GET_DMA_SPD(eep_config); AscInitFromEEP()
9198 asc_dvc->start_motor = eep_config->start_motor; AscInitFromEEP()
9199 asc_dvc->dvc_cntl = eep_config->cntl; AscInitFromEEP()
9200 asc_dvc->no_scam = eep_config->no_scam; AscInitFromEEP()
9201 asc_dvc->cfg->adapter_info[0] = eep_config->adapter_info[0]; AscInitFromEEP()
9202 asc_dvc->cfg->adapter_info[1] = eep_config->adapter_info[1]; AscInitFromEEP()
9203 asc_dvc->cfg->adapter_info[2] = eep_config->adapter_info[2]; AscInitFromEEP()
9204 asc_dvc->cfg->adapter_info[3] = eep_config->adapter_info[3]; AscInitFromEEP()
9205 asc_dvc->cfg->adapter_info[4] = eep_config->adapter_info[4]; AscInitFromEEP()
9206 asc_dvc->cfg->adapter_info[5] = eep_config->adapter_info[5]; AscInitFromEEP()
9210 eep_config->max_total_qng = AscInitFromEEP()
9212 eep_config->max_tag_qng = AscInitFromEEP()
9215 eep_config->cfg_msw |= 0x0800; AscInitFromEEP()
9218 eep_config->max_total_qng = ASC_MAX_PCI_INRAM_TOTAL_QNG; AscInitFromEEP()
9219 eep_config->max_tag_qng = ASC_MAX_INRAM_TAG_QNG; AscInitFromEEP()
9223 if (eep_config->max_total_qng < ASC_MIN_TOTAL_QNG) { AscInitFromEEP()
9224 eep_config->max_total_qng = ASC_MIN_TOTAL_QNG; AscInitFromEEP()
9226 if (eep_config->max_total_qng > ASC_MAX_TOTAL_QNG) { AscInitFromEEP()
9227 eep_config->max_total_qng = ASC_MAX_TOTAL_QNG; AscInitFromEEP()
9229 if (eep_config->max_tag_qng > eep_config->max_total_qng) { AscInitFromEEP()
9230 eep_config->max_tag_qng = eep_config->max_total_qng; AscInitFromEEP()
9232 if (eep_config->max_tag_qng < ASC_MIN_TAG_Q_PER_DVC) { AscInitFromEEP()
9233 eep_config->max_tag_qng = ASC_MIN_TAG_Q_PER_DVC; AscInitFromEEP()
9235 asc_dvc->max_total_qng = eep_config->max_total_qng; AscInitFromEEP()
9236 if ((eep_config->use_cmd_qng & eep_config->disc_enable) != AscInitFromEEP()
9237 eep_config->use_cmd_qng) { AscInitFromEEP()
9238 eep_config->disc_enable = eep_config->use_cmd_qng; AscInitFromEEP()
9241 ASC_EEP_SET_CHIP_ID(eep_config, AscInitFromEEP()
9242 ASC_EEP_GET_CHIP_ID(eep_config) & ASC_MAX_TID); AscInitFromEEP()
9243 asc_dvc->cfg->chip_scsi_id = ASC_EEP_GET_CHIP_ID(eep_config); AscInitFromEEP()
9250 asc_dvc->dos_int13_table[i] = eep_config->dos_int13_table[i]; AscInitFromEEP()
9251 asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng; AscInitFromEEP()
9256 eep_config->cfg_msw = AscGetChipCfgMsw(iop_base); AscInitFromEEP()
9258 if ((i = AscSetEEPConfig(iop_base, eep_config, AscInitFromEEP()
10152 ADVEEP_3550_CONFIG eep_config; AdvInitFrom3550EEP() local
10163 if (AdvGet3550EEPConfig(iop_base, &eep_config) != eep_config.check_sum) { AdvInitFrom3550EEP()
10169 memcpy(&eep_config, &Default_3550_EEPROM_Config, AdvInitFrom3550EEP()
10176 eep_config.serial_number_word3 = AdvInitFrom3550EEP()
10179 eep_config.serial_number_word2 = AdvInitFrom3550EEP()
10182 eep_config.serial_number_word1 = AdvInitFrom3550EEP()
10185 AdvSet3550EEPConfig(iop_base, &eep_config); AdvInitFrom3550EEP()
10193 asc_dvc->wdtr_able = eep_config.wdtr_able; AdvInitFrom3550EEP()
10194 asc_dvc->sdtr_able = eep_config.sdtr_able; AdvInitFrom3550EEP()
10195 asc_dvc->ultra_able = eep_config.ultra_able; AdvInitFrom3550EEP()
10196 asc_dvc->tagqng_able = eep_config.tagqng_able; AdvInitFrom3550EEP()
10197 asc_dvc->cfg->disc_enable = eep_config.disc_enable; AdvInitFrom3550EEP()
10198 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom3550EEP()
10199 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom3550EEP()
10200 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); AdvInitFrom3550EEP()
10201 asc_dvc->start_motor = eep_config.start_motor; AdvInitFrom3550EEP()
10202 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; AdvInitFrom3550EEP()
10203 asc_dvc->bios_ctrl = eep_config.bios_ctrl; AdvInitFrom3550EEP()
10204 asc_dvc->no_scam = eep_config.scam_tolerant; AdvInitFrom3550EEP()
10205 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; AdvInitFrom3550EEP()
10206 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; AdvInitFrom3550EEP()
10207 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; AdvInitFrom3550EEP()
10213 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { AdvInitFrom3550EEP()
10214 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom3550EEP()
10215 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { AdvInitFrom3550EEP()
10217 if (eep_config.max_host_qng == 0) { AdvInitFrom3550EEP()
10218 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom3550EEP()
10220 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; AdvInitFrom3550EEP()
10224 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { AdvInitFrom3550EEP()
10225 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom3550EEP()
10226 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { AdvInitFrom3550EEP()
10228 if (eep_config.max_dvc_qng == 0) { AdvInitFrom3550EEP()
10229 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom3550EEP()
10231 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; AdvInitFrom3550EEP()
10239 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { AdvInitFrom3550EEP()
10240 eep_config.max_dvc_qng = eep_config.max_host_qng; AdvInitFrom3550EEP()
10247 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom3550EEP()
10248 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom3550EEP()
10258 if (eep_config.termination == 0) { AdvInitFrom3550EEP()
10262 if (eep_config.termination == 1) { AdvInitFrom3550EEP()
10266 } else if (eep_config.termination == 2) { AdvInitFrom3550EEP()
10270 } else if (eep_config.termination == 3) { AdvInitFrom3550EEP()
10302 ADVEEP_38C0800_CONFIG eep_config; AdvInitFrom38C0800EEP() local
10315 if (AdvGet38C0800EEPConfig(iop_base, &eep_config) != AdvInitFrom38C0800EEP()
10316 eep_config.check_sum) { AdvInitFrom38C0800EEP()
10322 memcpy(&eep_config, &Default_38C0800_EEPROM_Config, AdvInitFrom38C0800EEP()
10329 eep_config.serial_number_word3 = AdvInitFrom38C0800EEP()
10332 eep_config.serial_number_word2 = AdvInitFrom38C0800EEP()
10335 eep_config.serial_number_word1 = AdvInitFrom38C0800EEP()
10338 AdvSet38C0800EEPConfig(iop_base, &eep_config); AdvInitFrom38C0800EEP()
10346 asc_dvc->wdtr_able = eep_config.wdtr_able; AdvInitFrom38C0800EEP()
10347 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; AdvInitFrom38C0800EEP()
10348 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; AdvInitFrom38C0800EEP()
10349 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; AdvInitFrom38C0800EEP()
10350 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; AdvInitFrom38C0800EEP()
10351 asc_dvc->tagqng_able = eep_config.tagqng_able; AdvInitFrom38C0800EEP()
10352 asc_dvc->cfg->disc_enable = eep_config.disc_enable; AdvInitFrom38C0800EEP()
10353 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom38C0800EEP()
10354 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom38C0800EEP()
10355 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); AdvInitFrom38C0800EEP()
10356 asc_dvc->start_motor = eep_config.start_motor; AdvInitFrom38C0800EEP()
10357 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; AdvInitFrom38C0800EEP()
10358 asc_dvc->bios_ctrl = eep_config.bios_ctrl; AdvInitFrom38C0800EEP()
10359 asc_dvc->no_scam = eep_config.scam_tolerant; AdvInitFrom38C0800EEP()
10360 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; AdvInitFrom38C0800EEP()
10361 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; AdvInitFrom38C0800EEP()
10362 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; AdvInitFrom38C0800EEP()
10389 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { AdvInitFrom38C0800EEP()
10390 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom38C0800EEP()
10391 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { AdvInitFrom38C0800EEP()
10393 if (eep_config.max_host_qng == 0) { AdvInitFrom38C0800EEP()
10394 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom38C0800EEP()
10396 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; AdvInitFrom38C0800EEP()
10400 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { AdvInitFrom38C0800EEP()
10401 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom38C0800EEP()
10402 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { AdvInitFrom38C0800EEP()
10404 if (eep_config.max_dvc_qng == 0) { AdvInitFrom38C0800EEP()
10405 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom38C0800EEP()
10407 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; AdvInitFrom38C0800EEP()
10415 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { AdvInitFrom38C0800EEP()
10416 eep_config.max_dvc_qng = eep_config.max_host_qng; AdvInitFrom38C0800EEP()
10423 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom38C0800EEP()
10424 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom38C0800EEP()
10434 if (eep_config.termination_se == 0) { AdvInitFrom38C0800EEP()
10438 if (eep_config.termination_se == 1) { AdvInitFrom38C0800EEP()
10442 } else if (eep_config.termination_se == 2) { AdvInitFrom38C0800EEP()
10446 } else if (eep_config.termination_se == 3) { AdvInitFrom38C0800EEP()
10458 if (eep_config.termination_lvd == 0) { AdvInitFrom38C0800EEP()
10462 if (eep_config.termination_lvd == 1) { AdvInitFrom38C0800EEP()
10466 } else if (eep_config.termination_lvd == 2) { AdvInitFrom38C0800EEP()
10470 } else if (eep_config.termination_lvd == 3) { AdvInitFrom38C0800EEP()
10501 ADVEEP_38C1600_CONFIG eep_config; AdvInitFrom38C1600EEP() local
10514 if (AdvGet38C1600EEPConfig(iop_base, &eep_config) != AdvInitFrom38C1600EEP()
10515 eep_config.check_sum) { AdvInitFrom38C1600EEP()
10522 memcpy(&eep_config, &Default_38C1600_EEPROM_Config, AdvInitFrom38C1600EEP()
10532 eep_config.cfg_lsw &= ~ADV_EEPROM_BIOS_ENABLE; AdvInitFrom38C1600EEP()
10549 eep_config.cfg_lsw &= ~ADV_EEPROM_INTAB; AdvInitFrom38C1600EEP()
10556 eep_config.serial_number_word3 = AdvInitFrom38C1600EEP()
10558 eep_config.serial_number_word2 = AdvInitFrom38C1600EEP()
10560 eep_config.serial_number_word1 = AdvInitFrom38C1600EEP()
10563 AdvSet38C1600EEPConfig(iop_base, &eep_config); AdvInitFrom38C1600EEP()
10572 asc_dvc->wdtr_able = eep_config.wdtr_able; AdvInitFrom38C1600EEP()
10573 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; AdvInitFrom38C1600EEP()
10574 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; AdvInitFrom38C1600EEP()
10575 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; AdvInitFrom38C1600EEP()
10576 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; AdvInitFrom38C1600EEP()
10578 asc_dvc->tagqng_able = eep_config.tagqng_able; AdvInitFrom38C1600EEP()
10579 asc_dvc->cfg->disc_enable = eep_config.disc_enable; AdvInitFrom38C1600EEP()
10580 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom38C1600EEP()
10581 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom38C1600EEP()
10582 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ASC_MAX_TID); AdvInitFrom38C1600EEP()
10583 asc_dvc->start_motor = eep_config.start_motor; AdvInitFrom38C1600EEP()
10584 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; AdvInitFrom38C1600EEP()
10585 asc_dvc->bios_ctrl = eep_config.bios_ctrl; AdvInitFrom38C1600EEP()
10586 asc_dvc->no_scam = eep_config.scam_tolerant; AdvInitFrom38C1600EEP()
10613 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { AdvInitFrom38C1600EEP()
10614 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom38C1600EEP()
10615 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { AdvInitFrom38C1600EEP()
10617 if (eep_config.max_host_qng == 0) { AdvInitFrom38C1600EEP()
10618 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom38C1600EEP()
10620 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; AdvInitFrom38C1600EEP()
10624 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { AdvInitFrom38C1600EEP()
10625 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom38C1600EEP()
10626 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { AdvInitFrom38C1600EEP()
10628 if (eep_config.max_dvc_qng == 0) { AdvInitFrom38C1600EEP()
10629 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom38C1600EEP()
10631 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; AdvInitFrom38C1600EEP()
10639 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { AdvInitFrom38C1600EEP()
10640 eep_config.max_dvc_qng = eep_config.max_host_qng; AdvInitFrom38C1600EEP()
10647 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom38C1600EEP()
10648 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom38C1600EEP()
10658 if (eep_config.termination_se == 0) { AdvInitFrom38C1600EEP()
10662 if (eep_config.termination_se == 1) { AdvInitFrom38C1600EEP()
10666 } else if (eep_config.termination_se == 2) { AdvInitFrom38C1600EEP()
10670 } else if (eep_config.termination_se == 3) { AdvInitFrom38C1600EEP()
10682 if (eep_config.termination_lvd == 0) { AdvInitFrom38C1600EEP()
10686 if (eep_config.termination_lvd == 1) { AdvInitFrom38C1600EEP()
10690 } else if (eep_config.termination_lvd == 2) { AdvInitFrom38C1600EEP()
10694 } else if (eep_config.termination_lvd == 3) { AdvInitFrom38C1600EEP()
11056 ep = &boardp->eep_config.asc_eep; advansys_board_found()
11092 ep_3550 = &boardp->eep_config.adv_3550_eep; advansys_board_found()
11114 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; advansys_board_found()
11142 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; advansys_board_found()

Completed in 119 milliseconds