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