Lines Matching refs:eep_config

2269 	} eep_config;  member
2888 ep = &boardp->eep_config.asc_eep; in asc_prt_asc_board_eeprom()
2966 ep_3550 = &boardp->eep_config.adv_3550_eep; in asc_prt_adv_board_eeprom()
2968 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in asc_prt_adv_board_eeprom()
2970 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in asc_prt_adv_board_eeprom()
9102 ASCEEP_CONFIG *eep_config; in AscInitFromEEP() local
9129 eep_config = (ASCEEP_CONFIG *)&eep_config_buf; in AscInitFromEEP()
9137 chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type); in AscInitFromEEP()
9145 if (eep_config->cfg_lsw != cfg_lsw) { in AscInitFromEEP()
9147 eep_config->cfg_lsw = in AscInitFromEEP()
9150 if (eep_config->cfg_msw != cfg_msw) { in AscInitFromEEP()
9152 eep_config->cfg_msw = in AscInitFromEEP()
9157 eep_config->cfg_msw &= ~ASC_CFG_MSW_CLR_MASK; in AscInitFromEEP()
9158 eep_config->cfg_lsw |= ASC_CFG0_HOST_INT_ON; in AscInitFromEEP()
9159 ASC_DBG(1, "eep_config->chksum 0x%x\n", eep_config->chksum); in AscInitFromEEP()
9160 if (chksum != eep_config->chksum) { in AscInitFromEEP()
9164 eep_config->init_sdtr = 0xFF; in AscInitFromEEP()
9165 eep_config->disc_enable = 0xFF; in AscInitFromEEP()
9166 eep_config->start_motor = 0xFF; in AscInitFromEEP()
9167 eep_config->use_cmd_qng = 0; in AscInitFromEEP()
9168 eep_config->max_total_qng = 0xF0; in AscInitFromEEP()
9169 eep_config->max_tag_qng = 0x20; in AscInitFromEEP()
9170 eep_config->cntl = 0xBFFF; in AscInitFromEEP()
9171 ASC_EEP_SET_CHIP_ID(eep_config, 7); in AscInitFromEEP()
9172 eep_config->no_scam = 0; in AscInitFromEEP()
9173 eep_config->adapter_info[0] = 0; in AscInitFromEEP()
9174 eep_config->adapter_info[1] = 0; in AscInitFromEEP()
9175 eep_config->adapter_info[2] = 0; in AscInitFromEEP()
9176 eep_config->adapter_info[3] = 0; in AscInitFromEEP()
9177 eep_config->adapter_info[4] = 0; in AscInitFromEEP()
9179 eep_config->adapter_info[5] = 0xBB; in AscInitFromEEP()
9187 asc_dvc->cfg->sdtr_enable = eep_config->init_sdtr; in AscInitFromEEP()
9188 asc_dvc->cfg->disc_enable = eep_config->disc_enable; in AscInitFromEEP()
9189 asc_dvc->cfg->cmd_qng_enabled = eep_config->use_cmd_qng; in AscInitFromEEP()
9190 asc_dvc->cfg->isa_dma_speed = ASC_EEP_GET_DMA_SPD(eep_config); in AscInitFromEEP()
9191 asc_dvc->start_motor = eep_config->start_motor; in AscInitFromEEP()
9192 asc_dvc->dvc_cntl = eep_config->cntl; in AscInitFromEEP()
9193 asc_dvc->no_scam = eep_config->no_scam; in AscInitFromEEP()
9194 asc_dvc->cfg->adapter_info[0] = eep_config->adapter_info[0]; in AscInitFromEEP()
9195 asc_dvc->cfg->adapter_info[1] = eep_config->adapter_info[1]; in AscInitFromEEP()
9196 asc_dvc->cfg->adapter_info[2] = eep_config->adapter_info[2]; in AscInitFromEEP()
9197 asc_dvc->cfg->adapter_info[3] = eep_config->adapter_info[3]; in AscInitFromEEP()
9198 asc_dvc->cfg->adapter_info[4] = eep_config->adapter_info[4]; in AscInitFromEEP()
9199 asc_dvc->cfg->adapter_info[5] = eep_config->adapter_info[5]; in AscInitFromEEP()
9203 eep_config->max_total_qng = in AscInitFromEEP()
9205 eep_config->max_tag_qng = in AscInitFromEEP()
9208 eep_config->cfg_msw |= 0x0800; in AscInitFromEEP()
9211 eep_config->max_total_qng = ASC_MAX_PCI_INRAM_TOTAL_QNG; in AscInitFromEEP()
9212 eep_config->max_tag_qng = ASC_MAX_INRAM_TAG_QNG; in AscInitFromEEP()
9216 if (eep_config->max_total_qng < ASC_MIN_TOTAL_QNG) { in AscInitFromEEP()
9217 eep_config->max_total_qng = ASC_MIN_TOTAL_QNG; in AscInitFromEEP()
9219 if (eep_config->max_total_qng > ASC_MAX_TOTAL_QNG) { in AscInitFromEEP()
9220 eep_config->max_total_qng = ASC_MAX_TOTAL_QNG; in AscInitFromEEP()
9222 if (eep_config->max_tag_qng > eep_config->max_total_qng) { in AscInitFromEEP()
9223 eep_config->max_tag_qng = eep_config->max_total_qng; in AscInitFromEEP()
9225 if (eep_config->max_tag_qng < ASC_MIN_TAG_Q_PER_DVC) { in AscInitFromEEP()
9226 eep_config->max_tag_qng = ASC_MIN_TAG_Q_PER_DVC; in AscInitFromEEP()
9228 asc_dvc->max_total_qng = eep_config->max_total_qng; in AscInitFromEEP()
9229 if ((eep_config->use_cmd_qng & eep_config->disc_enable) != in AscInitFromEEP()
9230 eep_config->use_cmd_qng) { in AscInitFromEEP()
9231 eep_config->disc_enable = eep_config->use_cmd_qng; in AscInitFromEEP()
9234 ASC_EEP_SET_CHIP_ID(eep_config, in AscInitFromEEP()
9235 ASC_EEP_GET_CHIP_ID(eep_config) & ASC_MAX_TID); in AscInitFromEEP()
9236 asc_dvc->cfg->chip_scsi_id = ASC_EEP_GET_CHIP_ID(eep_config); in AscInitFromEEP()
9243 asc_dvc->dos_int13_table[i] = eep_config->dos_int13_table[i]; in AscInitFromEEP()
9244 asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng; in AscInitFromEEP()
9249 eep_config->cfg_msw = AscGetChipCfgMsw(iop_base); in AscInitFromEEP()
9251 if ((i = AscSetEEPConfig(iop_base, eep_config, in AscInitFromEEP()
10145 ADVEEP_3550_CONFIG eep_config; in AdvInitFrom3550EEP() local
10156 if (AdvGet3550EEPConfig(iop_base, &eep_config) != eep_config.check_sum) { in AdvInitFrom3550EEP()
10162 memcpy(&eep_config, &Default_3550_EEPROM_Config, in AdvInitFrom3550EEP()
10169 eep_config.serial_number_word3 = in AdvInitFrom3550EEP()
10172 eep_config.serial_number_word2 = in AdvInitFrom3550EEP()
10175 eep_config.serial_number_word1 = in AdvInitFrom3550EEP()
10178 AdvSet3550EEPConfig(iop_base, &eep_config); in AdvInitFrom3550EEP()
10186 asc_dvc->wdtr_able = eep_config.wdtr_able; in AdvInitFrom3550EEP()
10187 asc_dvc->sdtr_able = eep_config.sdtr_able; in AdvInitFrom3550EEP()
10188 asc_dvc->ultra_able = eep_config.ultra_able; in AdvInitFrom3550EEP()
10189 asc_dvc->tagqng_able = eep_config.tagqng_able; in AdvInitFrom3550EEP()
10190 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in AdvInitFrom3550EEP()
10191 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom3550EEP()
10192 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom3550EEP()
10193 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); in AdvInitFrom3550EEP()
10194 asc_dvc->start_motor = eep_config.start_motor; in AdvInitFrom3550EEP()
10195 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in AdvInitFrom3550EEP()
10196 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in AdvInitFrom3550EEP()
10197 asc_dvc->no_scam = eep_config.scam_tolerant; in AdvInitFrom3550EEP()
10198 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; in AdvInitFrom3550EEP()
10199 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; in AdvInitFrom3550EEP()
10200 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; in AdvInitFrom3550EEP()
10206 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { in AdvInitFrom3550EEP()
10207 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom3550EEP()
10208 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { in AdvInitFrom3550EEP()
10210 if (eep_config.max_host_qng == 0) { in AdvInitFrom3550EEP()
10211 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom3550EEP()
10213 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in AdvInitFrom3550EEP()
10217 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { in AdvInitFrom3550EEP()
10218 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom3550EEP()
10219 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { in AdvInitFrom3550EEP()
10221 if (eep_config.max_dvc_qng == 0) { in AdvInitFrom3550EEP()
10222 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom3550EEP()
10224 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in AdvInitFrom3550EEP()
10232 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { in AdvInitFrom3550EEP()
10233 eep_config.max_dvc_qng = eep_config.max_host_qng; in AdvInitFrom3550EEP()
10240 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom3550EEP()
10241 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom3550EEP()
10251 if (eep_config.termination == 0) { in AdvInitFrom3550EEP()
10255 if (eep_config.termination == 1) { in AdvInitFrom3550EEP()
10259 } else if (eep_config.termination == 2) { in AdvInitFrom3550EEP()
10263 } else if (eep_config.termination == 3) { in AdvInitFrom3550EEP()
10295 ADVEEP_38C0800_CONFIG eep_config; in AdvInitFrom38C0800EEP() local
10308 if (AdvGet38C0800EEPConfig(iop_base, &eep_config) != in AdvInitFrom38C0800EEP()
10309 eep_config.check_sum) { in AdvInitFrom38C0800EEP()
10315 memcpy(&eep_config, &Default_38C0800_EEPROM_Config, in AdvInitFrom38C0800EEP()
10322 eep_config.serial_number_word3 = in AdvInitFrom38C0800EEP()
10325 eep_config.serial_number_word2 = in AdvInitFrom38C0800EEP()
10328 eep_config.serial_number_word1 = in AdvInitFrom38C0800EEP()
10331 AdvSet38C0800EEPConfig(iop_base, &eep_config); in AdvInitFrom38C0800EEP()
10339 asc_dvc->wdtr_able = eep_config.wdtr_able; in AdvInitFrom38C0800EEP()
10340 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; in AdvInitFrom38C0800EEP()
10341 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; in AdvInitFrom38C0800EEP()
10342 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; in AdvInitFrom38C0800EEP()
10343 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; in AdvInitFrom38C0800EEP()
10344 asc_dvc->tagqng_able = eep_config.tagqng_able; in AdvInitFrom38C0800EEP()
10345 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in AdvInitFrom38C0800EEP()
10346 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C0800EEP()
10347 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C0800EEP()
10348 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); in AdvInitFrom38C0800EEP()
10349 asc_dvc->start_motor = eep_config.start_motor; in AdvInitFrom38C0800EEP()
10350 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in AdvInitFrom38C0800EEP()
10351 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in AdvInitFrom38C0800EEP()
10352 asc_dvc->no_scam = eep_config.scam_tolerant; in AdvInitFrom38C0800EEP()
10353 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; in AdvInitFrom38C0800EEP()
10354 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; in AdvInitFrom38C0800EEP()
10355 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; in AdvInitFrom38C0800EEP()
10382 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { in AdvInitFrom38C0800EEP()
10383 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C0800EEP()
10384 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { in AdvInitFrom38C0800EEP()
10386 if (eep_config.max_host_qng == 0) { in AdvInitFrom38C0800EEP()
10387 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C0800EEP()
10389 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in AdvInitFrom38C0800EEP()
10393 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { in AdvInitFrom38C0800EEP()
10394 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C0800EEP()
10395 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { in AdvInitFrom38C0800EEP()
10397 if (eep_config.max_dvc_qng == 0) { in AdvInitFrom38C0800EEP()
10398 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C0800EEP()
10400 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in AdvInitFrom38C0800EEP()
10408 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { in AdvInitFrom38C0800EEP()
10409 eep_config.max_dvc_qng = eep_config.max_host_qng; in AdvInitFrom38C0800EEP()
10416 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C0800EEP()
10417 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C0800EEP()
10427 if (eep_config.termination_se == 0) { in AdvInitFrom38C0800EEP()
10431 if (eep_config.termination_se == 1) { in AdvInitFrom38C0800EEP()
10435 } else if (eep_config.termination_se == 2) { in AdvInitFrom38C0800EEP()
10439 } else if (eep_config.termination_se == 3) { in AdvInitFrom38C0800EEP()
10451 if (eep_config.termination_lvd == 0) { in AdvInitFrom38C0800EEP()
10455 if (eep_config.termination_lvd == 1) { in AdvInitFrom38C0800EEP()
10459 } else if (eep_config.termination_lvd == 2) { in AdvInitFrom38C0800EEP()
10463 } else if (eep_config.termination_lvd == 3) { in AdvInitFrom38C0800EEP()
10494 ADVEEP_38C1600_CONFIG eep_config; in AdvInitFrom38C1600EEP() local
10507 if (AdvGet38C1600EEPConfig(iop_base, &eep_config) != in AdvInitFrom38C1600EEP()
10508 eep_config.check_sum) { in AdvInitFrom38C1600EEP()
10515 memcpy(&eep_config, &Default_38C1600_EEPROM_Config, in AdvInitFrom38C1600EEP()
10525 eep_config.cfg_lsw &= ~ADV_EEPROM_BIOS_ENABLE; in AdvInitFrom38C1600EEP()
10542 eep_config.cfg_lsw &= ~ADV_EEPROM_INTAB; in AdvInitFrom38C1600EEP()
10549 eep_config.serial_number_word3 = in AdvInitFrom38C1600EEP()
10551 eep_config.serial_number_word2 = in AdvInitFrom38C1600EEP()
10553 eep_config.serial_number_word1 = in AdvInitFrom38C1600EEP()
10556 AdvSet38C1600EEPConfig(iop_base, &eep_config); in AdvInitFrom38C1600EEP()
10565 asc_dvc->wdtr_able = eep_config.wdtr_able; in AdvInitFrom38C1600EEP()
10566 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; in AdvInitFrom38C1600EEP()
10567 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; in AdvInitFrom38C1600EEP()
10568 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; in AdvInitFrom38C1600EEP()
10569 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; in AdvInitFrom38C1600EEP()
10571 asc_dvc->tagqng_able = eep_config.tagqng_able; in AdvInitFrom38C1600EEP()
10572 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in AdvInitFrom38C1600EEP()
10573 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C1600EEP()
10574 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C1600EEP()
10575 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ASC_MAX_TID); in AdvInitFrom38C1600EEP()
10576 asc_dvc->start_motor = eep_config.start_motor; in AdvInitFrom38C1600EEP()
10577 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in AdvInitFrom38C1600EEP()
10578 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in AdvInitFrom38C1600EEP()
10579 asc_dvc->no_scam = eep_config.scam_tolerant; in AdvInitFrom38C1600EEP()
10606 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { in AdvInitFrom38C1600EEP()
10607 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C1600EEP()
10608 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { in AdvInitFrom38C1600EEP()
10610 if (eep_config.max_host_qng == 0) { in AdvInitFrom38C1600EEP()
10611 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C1600EEP()
10613 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in AdvInitFrom38C1600EEP()
10617 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { in AdvInitFrom38C1600EEP()
10618 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C1600EEP()
10619 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { in AdvInitFrom38C1600EEP()
10621 if (eep_config.max_dvc_qng == 0) { in AdvInitFrom38C1600EEP()
10622 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C1600EEP()
10624 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in AdvInitFrom38C1600EEP()
10632 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { in AdvInitFrom38C1600EEP()
10633 eep_config.max_dvc_qng = eep_config.max_host_qng; in AdvInitFrom38C1600EEP()
10640 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C1600EEP()
10641 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C1600EEP()
10651 if (eep_config.termination_se == 0) { in AdvInitFrom38C1600EEP()
10655 if (eep_config.termination_se == 1) { in AdvInitFrom38C1600EEP()
10659 } else if (eep_config.termination_se == 2) { in AdvInitFrom38C1600EEP()
10663 } else if (eep_config.termination_se == 3) { in AdvInitFrom38C1600EEP()
10675 if (eep_config.termination_lvd == 0) { in AdvInitFrom38C1600EEP()
10679 if (eep_config.termination_lvd == 1) { in AdvInitFrom38C1600EEP()
10683 } else if (eep_config.termination_lvd == 2) { in AdvInitFrom38C1600EEP()
10687 } else if (eep_config.termination_lvd == 3) { in AdvInitFrom38C1600EEP()
11044 ep = &boardp->eep_config.asc_eep; in advansys_board_found()
11080 ep_3550 = &boardp->eep_config.adv_3550_eep; in advansys_board_found()
11102 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in advansys_board_found()
11130 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in advansys_board_found()