Lines Matching refs:eep_config
2273 } eep_config; member
2892 ep = &boardp->eep_config.asc_eep; in asc_prt_asc_board_eeprom()
2970 ep_3550 = &boardp->eep_config.adv_3550_eep; in asc_prt_adv_board_eeprom()
2972 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in asc_prt_adv_board_eeprom()
2974 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in asc_prt_adv_board_eeprom()
9108 ASCEEP_CONFIG *eep_config; in AscInitFromEEP() local
9135 eep_config = (ASCEEP_CONFIG *)&eep_config_buf; in AscInitFromEEP()
9143 chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type); in AscInitFromEEP()
9151 if (eep_config->cfg_lsw != cfg_lsw) { in AscInitFromEEP()
9153 eep_config->cfg_lsw = in AscInitFromEEP()
9156 if (eep_config->cfg_msw != cfg_msw) { in AscInitFromEEP()
9158 eep_config->cfg_msw = in AscInitFromEEP()
9163 eep_config->cfg_msw &= ~ASC_CFG_MSW_CLR_MASK; in AscInitFromEEP()
9164 eep_config->cfg_lsw |= ASC_CFG0_HOST_INT_ON; in AscInitFromEEP()
9165 ASC_DBG(1, "eep_config->chksum 0x%x\n", eep_config->chksum); in AscInitFromEEP()
9166 if (chksum != eep_config->chksum) { in AscInitFromEEP()
9170 eep_config->init_sdtr = 0xFF; in AscInitFromEEP()
9171 eep_config->disc_enable = 0xFF; in AscInitFromEEP()
9172 eep_config->start_motor = 0xFF; in AscInitFromEEP()
9173 eep_config->use_cmd_qng = 0; in AscInitFromEEP()
9174 eep_config->max_total_qng = 0xF0; in AscInitFromEEP()
9175 eep_config->max_tag_qng = 0x20; in AscInitFromEEP()
9176 eep_config->cntl = 0xBFFF; in AscInitFromEEP()
9177 ASC_EEP_SET_CHIP_ID(eep_config, 7); in AscInitFromEEP()
9178 eep_config->no_scam = 0; in AscInitFromEEP()
9179 eep_config->adapter_info[0] = 0; in AscInitFromEEP()
9180 eep_config->adapter_info[1] = 0; in AscInitFromEEP()
9181 eep_config->adapter_info[2] = 0; in AscInitFromEEP()
9182 eep_config->adapter_info[3] = 0; in AscInitFromEEP()
9183 eep_config->adapter_info[4] = 0; in AscInitFromEEP()
9185 eep_config->adapter_info[5] = 0xBB; in AscInitFromEEP()
9193 asc_dvc->cfg->sdtr_enable = eep_config->init_sdtr; in AscInitFromEEP()
9194 asc_dvc->cfg->disc_enable = eep_config->disc_enable; in AscInitFromEEP()
9195 asc_dvc->cfg->cmd_qng_enabled = eep_config->use_cmd_qng; in AscInitFromEEP()
9196 asc_dvc->cfg->isa_dma_speed = ASC_EEP_GET_DMA_SPD(eep_config); in AscInitFromEEP()
9197 asc_dvc->start_motor = eep_config->start_motor; in AscInitFromEEP()
9198 asc_dvc->dvc_cntl = eep_config->cntl; in AscInitFromEEP()
9199 asc_dvc->no_scam = eep_config->no_scam; in AscInitFromEEP()
9200 asc_dvc->cfg->adapter_info[0] = eep_config->adapter_info[0]; in AscInitFromEEP()
9201 asc_dvc->cfg->adapter_info[1] = eep_config->adapter_info[1]; in AscInitFromEEP()
9202 asc_dvc->cfg->adapter_info[2] = eep_config->adapter_info[2]; in AscInitFromEEP()
9203 asc_dvc->cfg->adapter_info[3] = eep_config->adapter_info[3]; in AscInitFromEEP()
9204 asc_dvc->cfg->adapter_info[4] = eep_config->adapter_info[4]; in AscInitFromEEP()
9205 asc_dvc->cfg->adapter_info[5] = eep_config->adapter_info[5]; in AscInitFromEEP()
9209 eep_config->max_total_qng = in AscInitFromEEP()
9211 eep_config->max_tag_qng = in AscInitFromEEP()
9214 eep_config->cfg_msw |= 0x0800; in AscInitFromEEP()
9217 eep_config->max_total_qng = ASC_MAX_PCI_INRAM_TOTAL_QNG; in AscInitFromEEP()
9218 eep_config->max_tag_qng = ASC_MAX_INRAM_TAG_QNG; in AscInitFromEEP()
9222 if (eep_config->max_total_qng < ASC_MIN_TOTAL_QNG) { in AscInitFromEEP()
9223 eep_config->max_total_qng = ASC_MIN_TOTAL_QNG; in AscInitFromEEP()
9225 if (eep_config->max_total_qng > ASC_MAX_TOTAL_QNG) { in AscInitFromEEP()
9226 eep_config->max_total_qng = ASC_MAX_TOTAL_QNG; in AscInitFromEEP()
9228 if (eep_config->max_tag_qng > eep_config->max_total_qng) { in AscInitFromEEP()
9229 eep_config->max_tag_qng = eep_config->max_total_qng; in AscInitFromEEP()
9231 if (eep_config->max_tag_qng < ASC_MIN_TAG_Q_PER_DVC) { in AscInitFromEEP()
9232 eep_config->max_tag_qng = ASC_MIN_TAG_Q_PER_DVC; in AscInitFromEEP()
9234 asc_dvc->max_total_qng = eep_config->max_total_qng; in AscInitFromEEP()
9235 if ((eep_config->use_cmd_qng & eep_config->disc_enable) != in AscInitFromEEP()
9236 eep_config->use_cmd_qng) { in AscInitFromEEP()
9237 eep_config->disc_enable = eep_config->use_cmd_qng; in AscInitFromEEP()
9240 ASC_EEP_SET_CHIP_ID(eep_config, in AscInitFromEEP()
9241 ASC_EEP_GET_CHIP_ID(eep_config) & ASC_MAX_TID); in AscInitFromEEP()
9242 asc_dvc->cfg->chip_scsi_id = ASC_EEP_GET_CHIP_ID(eep_config); in AscInitFromEEP()
9249 asc_dvc->dos_int13_table[i] = eep_config->dos_int13_table[i]; in AscInitFromEEP()
9250 asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng; in AscInitFromEEP()
9255 eep_config->cfg_msw = AscGetChipCfgMsw(iop_base); in AscInitFromEEP()
9257 if ((i = AscSetEEPConfig(iop_base, eep_config, in AscInitFromEEP()
10151 ADVEEP_3550_CONFIG eep_config; in AdvInitFrom3550EEP() local
10162 if (AdvGet3550EEPConfig(iop_base, &eep_config) != eep_config.check_sum) { in AdvInitFrom3550EEP()
10168 memcpy(&eep_config, &Default_3550_EEPROM_Config, in AdvInitFrom3550EEP()
10175 eep_config.serial_number_word3 = in AdvInitFrom3550EEP()
10178 eep_config.serial_number_word2 = in AdvInitFrom3550EEP()
10181 eep_config.serial_number_word1 = in AdvInitFrom3550EEP()
10184 AdvSet3550EEPConfig(iop_base, &eep_config); in AdvInitFrom3550EEP()
10192 asc_dvc->wdtr_able = eep_config.wdtr_able; in AdvInitFrom3550EEP()
10193 asc_dvc->sdtr_able = eep_config.sdtr_able; in AdvInitFrom3550EEP()
10194 asc_dvc->ultra_able = eep_config.ultra_able; in AdvInitFrom3550EEP()
10195 asc_dvc->tagqng_able = eep_config.tagqng_able; in AdvInitFrom3550EEP()
10196 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in AdvInitFrom3550EEP()
10197 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom3550EEP()
10198 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom3550EEP()
10199 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); in AdvInitFrom3550EEP()
10200 asc_dvc->start_motor = eep_config.start_motor; in AdvInitFrom3550EEP()
10201 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in AdvInitFrom3550EEP()
10202 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in AdvInitFrom3550EEP()
10203 asc_dvc->no_scam = eep_config.scam_tolerant; in AdvInitFrom3550EEP()
10204 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; in AdvInitFrom3550EEP()
10205 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; in AdvInitFrom3550EEP()
10206 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; in AdvInitFrom3550EEP()
10212 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { in AdvInitFrom3550EEP()
10213 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom3550EEP()
10214 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { in AdvInitFrom3550EEP()
10216 if (eep_config.max_host_qng == 0) { in AdvInitFrom3550EEP()
10217 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom3550EEP()
10219 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in AdvInitFrom3550EEP()
10223 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { in AdvInitFrom3550EEP()
10224 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom3550EEP()
10225 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { in AdvInitFrom3550EEP()
10227 if (eep_config.max_dvc_qng == 0) { in AdvInitFrom3550EEP()
10228 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom3550EEP()
10230 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in AdvInitFrom3550EEP()
10238 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { in AdvInitFrom3550EEP()
10239 eep_config.max_dvc_qng = eep_config.max_host_qng; in AdvInitFrom3550EEP()
10246 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom3550EEP()
10247 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom3550EEP()
10257 if (eep_config.termination == 0) { in AdvInitFrom3550EEP()
10261 if (eep_config.termination == 1) { in AdvInitFrom3550EEP()
10265 } else if (eep_config.termination == 2) { in AdvInitFrom3550EEP()
10269 } else if (eep_config.termination == 3) { in AdvInitFrom3550EEP()
10301 ADVEEP_38C0800_CONFIG eep_config; in AdvInitFrom38C0800EEP() local
10314 if (AdvGet38C0800EEPConfig(iop_base, &eep_config) != in AdvInitFrom38C0800EEP()
10315 eep_config.check_sum) { in AdvInitFrom38C0800EEP()
10321 memcpy(&eep_config, &Default_38C0800_EEPROM_Config, in AdvInitFrom38C0800EEP()
10328 eep_config.serial_number_word3 = in AdvInitFrom38C0800EEP()
10331 eep_config.serial_number_word2 = in AdvInitFrom38C0800EEP()
10334 eep_config.serial_number_word1 = in AdvInitFrom38C0800EEP()
10337 AdvSet38C0800EEPConfig(iop_base, &eep_config); in AdvInitFrom38C0800EEP()
10345 asc_dvc->wdtr_able = eep_config.wdtr_able; in AdvInitFrom38C0800EEP()
10346 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; in AdvInitFrom38C0800EEP()
10347 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; in AdvInitFrom38C0800EEP()
10348 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; in AdvInitFrom38C0800EEP()
10349 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; in AdvInitFrom38C0800EEP()
10350 asc_dvc->tagqng_able = eep_config.tagqng_able; in AdvInitFrom38C0800EEP()
10351 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in AdvInitFrom38C0800EEP()
10352 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C0800EEP()
10353 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C0800EEP()
10354 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); in AdvInitFrom38C0800EEP()
10355 asc_dvc->start_motor = eep_config.start_motor; in AdvInitFrom38C0800EEP()
10356 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in AdvInitFrom38C0800EEP()
10357 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in AdvInitFrom38C0800EEP()
10358 asc_dvc->no_scam = eep_config.scam_tolerant; in AdvInitFrom38C0800EEP()
10359 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; in AdvInitFrom38C0800EEP()
10360 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; in AdvInitFrom38C0800EEP()
10361 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; in AdvInitFrom38C0800EEP()
10388 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { in AdvInitFrom38C0800EEP()
10389 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C0800EEP()
10390 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { in AdvInitFrom38C0800EEP()
10392 if (eep_config.max_host_qng == 0) { in AdvInitFrom38C0800EEP()
10393 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C0800EEP()
10395 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in AdvInitFrom38C0800EEP()
10399 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { in AdvInitFrom38C0800EEP()
10400 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C0800EEP()
10401 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { in AdvInitFrom38C0800EEP()
10403 if (eep_config.max_dvc_qng == 0) { in AdvInitFrom38C0800EEP()
10404 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C0800EEP()
10406 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in AdvInitFrom38C0800EEP()
10414 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { in AdvInitFrom38C0800EEP()
10415 eep_config.max_dvc_qng = eep_config.max_host_qng; in AdvInitFrom38C0800EEP()
10422 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C0800EEP()
10423 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C0800EEP()
10433 if (eep_config.termination_se == 0) { in AdvInitFrom38C0800EEP()
10437 if (eep_config.termination_se == 1) { in AdvInitFrom38C0800EEP()
10441 } else if (eep_config.termination_se == 2) { in AdvInitFrom38C0800EEP()
10445 } else if (eep_config.termination_se == 3) { in AdvInitFrom38C0800EEP()
10457 if (eep_config.termination_lvd == 0) { in AdvInitFrom38C0800EEP()
10461 if (eep_config.termination_lvd == 1) { in AdvInitFrom38C0800EEP()
10465 } else if (eep_config.termination_lvd == 2) { in AdvInitFrom38C0800EEP()
10469 } else if (eep_config.termination_lvd == 3) { in AdvInitFrom38C0800EEP()
10500 ADVEEP_38C1600_CONFIG eep_config; in AdvInitFrom38C1600EEP() local
10513 if (AdvGet38C1600EEPConfig(iop_base, &eep_config) != in AdvInitFrom38C1600EEP()
10514 eep_config.check_sum) { in AdvInitFrom38C1600EEP()
10521 memcpy(&eep_config, &Default_38C1600_EEPROM_Config, in AdvInitFrom38C1600EEP()
10531 eep_config.cfg_lsw &= ~ADV_EEPROM_BIOS_ENABLE; in AdvInitFrom38C1600EEP()
10548 eep_config.cfg_lsw &= ~ADV_EEPROM_INTAB; in AdvInitFrom38C1600EEP()
10555 eep_config.serial_number_word3 = in AdvInitFrom38C1600EEP()
10557 eep_config.serial_number_word2 = in AdvInitFrom38C1600EEP()
10559 eep_config.serial_number_word1 = in AdvInitFrom38C1600EEP()
10562 AdvSet38C1600EEPConfig(iop_base, &eep_config); in AdvInitFrom38C1600EEP()
10571 asc_dvc->wdtr_able = eep_config.wdtr_able; in AdvInitFrom38C1600EEP()
10572 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; in AdvInitFrom38C1600EEP()
10573 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; in AdvInitFrom38C1600EEP()
10574 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; in AdvInitFrom38C1600EEP()
10575 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; in AdvInitFrom38C1600EEP()
10577 asc_dvc->tagqng_able = eep_config.tagqng_able; in AdvInitFrom38C1600EEP()
10578 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in AdvInitFrom38C1600EEP()
10579 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C1600EEP()
10580 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C1600EEP()
10581 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ASC_MAX_TID); in AdvInitFrom38C1600EEP()
10582 asc_dvc->start_motor = eep_config.start_motor; in AdvInitFrom38C1600EEP()
10583 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in AdvInitFrom38C1600EEP()
10584 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in AdvInitFrom38C1600EEP()
10585 asc_dvc->no_scam = eep_config.scam_tolerant; in AdvInitFrom38C1600EEP()
10612 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { in AdvInitFrom38C1600EEP()
10613 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C1600EEP()
10614 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { in AdvInitFrom38C1600EEP()
10616 if (eep_config.max_host_qng == 0) { in AdvInitFrom38C1600EEP()
10617 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C1600EEP()
10619 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in AdvInitFrom38C1600EEP()
10623 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { in AdvInitFrom38C1600EEP()
10624 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C1600EEP()
10625 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { in AdvInitFrom38C1600EEP()
10627 if (eep_config.max_dvc_qng == 0) { in AdvInitFrom38C1600EEP()
10628 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C1600EEP()
10630 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in AdvInitFrom38C1600EEP()
10638 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { in AdvInitFrom38C1600EEP()
10639 eep_config.max_dvc_qng = eep_config.max_host_qng; in AdvInitFrom38C1600EEP()
10646 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C1600EEP()
10647 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C1600EEP()
10657 if (eep_config.termination_se == 0) { in AdvInitFrom38C1600EEP()
10661 if (eep_config.termination_se == 1) { in AdvInitFrom38C1600EEP()
10665 } else if (eep_config.termination_se == 2) { in AdvInitFrom38C1600EEP()
10669 } else if (eep_config.termination_se == 3) { in AdvInitFrom38C1600EEP()
10681 if (eep_config.termination_lvd == 0) { in AdvInitFrom38C1600EEP()
10685 if (eep_config.termination_lvd == 1) { in AdvInitFrom38C1600EEP()
10689 } else if (eep_config.termination_lvd == 2) { in AdvInitFrom38C1600EEP()
10693 } else if (eep_config.termination_lvd == 3) { in AdvInitFrom38C1600EEP()
11058 ep = &boardp->eep_config.asc_eep; in advansys_board_found()
11094 ep_3550 = &boardp->eep_config.adv_3550_eep; in advansys_board_found()
11116 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in advansys_board_found()
11144 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in advansys_board_found()