Lines Matching refs:eep_config

2250 	} eep_config;
2858 ep = &boardp->eep_config.asc_eep;
2928 ep_3550 = &boardp->eep_config.adv_3550_eep;
2930 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep;
2932 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep;
8930 ASCEEP_CONFIG *eep_config;
8957 eep_config = (ASCEEP_CONFIG *)&eep_config_buf;
8965 chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type);
8973 if (eep_config->cfg_lsw != cfg_lsw) {
8975 eep_config->cfg_lsw =
8978 if (eep_config->cfg_msw != cfg_msw) {
8980 eep_config->cfg_msw =
8985 eep_config->cfg_msw &= ~ASC_CFG_MSW_CLR_MASK;
8986 eep_config->cfg_lsw |= ASC_CFG0_HOST_INT_ON;
8987 ASC_DBG(1, "eep_config->chksum 0x%x\n", eep_config->chksum);
8988 if (chksum != eep_config->chksum) {
8992 eep_config->init_sdtr = 0xFF;
8993 eep_config->disc_enable = 0xFF;
8994 eep_config->start_motor = 0xFF;
8995 eep_config->use_cmd_qng = 0;
8996 eep_config->max_total_qng = 0xF0;
8997 eep_config->max_tag_qng = 0x20;
8998 eep_config->cntl = 0xBFFF;
8999 ASC_EEP_SET_CHIP_ID(eep_config, 7);
9000 eep_config->no_scam = 0;
9001 eep_config->adapter_info[0] = 0;
9002 eep_config->adapter_info[1] = 0;
9003 eep_config->adapter_info[2] = 0;
9004 eep_config->adapter_info[3] = 0;
9005 eep_config->adapter_info[4] = 0;
9007 eep_config->adapter_info[5] = 0xBB;
9015 asc_dvc->cfg->sdtr_enable = eep_config->init_sdtr;
9016 asc_dvc->cfg->disc_enable = eep_config->disc_enable;
9017 asc_dvc->cfg->cmd_qng_enabled = eep_config->use_cmd_qng;
9018 asc_dvc->start_motor = eep_config->start_motor;
9019 asc_dvc->dvc_cntl = eep_config->cntl;
9020 asc_dvc->no_scam = eep_config->no_scam;
9021 asc_dvc->cfg->adapter_info[0] = eep_config->adapter_info[0];
9022 asc_dvc->cfg->adapter_info[1] = eep_config->adapter_info[1];
9023 asc_dvc->cfg->adapter_info[2] = eep_config->adapter_info[2];
9024 asc_dvc->cfg->adapter_info[3] = eep_config->adapter_info[3];
9025 asc_dvc->cfg->adapter_info[4] = eep_config->adapter_info[4];
9026 asc_dvc->cfg->adapter_info[5] = eep_config->adapter_info[5];
9030 eep_config->max_total_qng =
9032 eep_config->max_tag_qng =
9035 eep_config->cfg_msw |= 0x0800;
9038 eep_config->max_total_qng = ASC_MAX_PCI_INRAM_TOTAL_QNG;
9039 eep_config->max_tag_qng = ASC_MAX_INRAM_TAG_QNG;
9043 if (eep_config->max_total_qng < ASC_MIN_TOTAL_QNG) {
9044 eep_config->max_total_qng = ASC_MIN_TOTAL_QNG;
9046 if (eep_config->max_total_qng > ASC_MAX_TOTAL_QNG) {
9047 eep_config->max_total_qng = ASC_MAX_TOTAL_QNG;
9049 if (eep_config->max_tag_qng > eep_config->max_total_qng) {
9050 eep_config->max_tag_qng = eep_config->max_total_qng;
9052 if (eep_config->max_tag_qng < ASC_MIN_TAG_Q_PER_DVC) {
9053 eep_config->max_tag_qng = ASC_MIN_TAG_Q_PER_DVC;
9055 asc_dvc->max_total_qng = eep_config->max_total_qng;
9056 if ((eep_config->use_cmd_qng & eep_config->disc_enable) !=
9057 eep_config->use_cmd_qng) {
9058 eep_config->disc_enable = eep_config->use_cmd_qng;
9061 ASC_EEP_SET_CHIP_ID(eep_config,
9062 ASC_EEP_GET_CHIP_ID(eep_config) & ASC_MAX_TID);
9063 asc_dvc->cfg->chip_scsi_id = ASC_EEP_GET_CHIP_ID(eep_config);
9070 asc_dvc->dos_int13_table[i] = eep_config->dos_int13_table[i];
9071 asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng;
9076 eep_config->cfg_msw = AscGetChipCfgMsw(iop_base);
9078 if ((i = AscSetEEPConfig(iop_base, eep_config,
9960 ADVEEP_3550_CONFIG eep_config;
9971 if (AdvGet3550EEPConfig(iop_base, &eep_config) != eep_config.check_sum) {
9977 memcpy(&eep_config, &Default_3550_EEPROM_Config,
9984 eep_config.serial_number_word3 =
9987 eep_config.serial_number_word2 =
9990 eep_config.serial_number_word1 =
9993 AdvSet3550EEPConfig(iop_base, &eep_config);
10001 asc_dvc->wdtr_able = eep_config.wdtr_able;
10002 asc_dvc->sdtr_able = eep_config.sdtr_able;
10003 asc_dvc->ultra_able = eep_config.ultra_able;
10004 asc_dvc->tagqng_able = eep_config.tagqng_able;
10005 asc_dvc->cfg->disc_enable = eep_config.disc_enable;
10006 asc_dvc->max_host_qng = eep_config.max_host_qng;
10007 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
10008 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID);
10009 asc_dvc->start_motor = eep_config.start_motor;
10010 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay;
10011 asc_dvc->bios_ctrl = eep_config.bios_ctrl;
10012 asc_dvc->no_scam = eep_config.scam_tolerant;
10013 asc_dvc->cfg->serial1 = eep_config.serial_number_word1;
10014 asc_dvc->cfg->serial2 = eep_config.serial_number_word2;
10015 asc_dvc->cfg->serial3 = eep_config.serial_number_word3;
10021 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) {
10022 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
10023 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) {
10025 if (eep_config.max_host_qng == 0) {
10026 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
10028 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG;
10032 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) {
10033 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
10034 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) {
10036 if (eep_config.max_dvc_qng == 0) {
10037 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
10039 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG;
10047 if (eep_config.max_dvc_qng > eep_config.max_host_qng) {
10048 eep_config.max_dvc_qng = eep_config.max_host_qng;
10055 asc_dvc->max_host_qng = eep_config.max_host_qng;
10056 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
10066 if (eep_config.termination == 0) {
10070 if (eep_config.termination == 1) {
10074 } else if (eep_config.termination == 2) {
10078 } else if (eep_config.termination == 3) {
10110 ADVEEP_38C0800_CONFIG eep_config;
10123 if (AdvGet38C0800EEPConfig(iop_base, &eep_config) !=
10124 eep_config.check_sum) {
10130 memcpy(&eep_config, &Default_38C0800_EEPROM_Config,
10137 eep_config.serial_number_word3 =
10140 eep_config.serial_number_word2 =
10143 eep_config.serial_number_word1 =
10146 AdvSet38C0800EEPConfig(iop_base, &eep_config);
10154 asc_dvc->wdtr_able = eep_config.wdtr_able;
10155 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1;
10156 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2;
10157 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3;
10158 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4;
10159 asc_dvc->tagqng_able = eep_config.tagqng_able;
10160 asc_dvc->cfg->disc_enable = eep_config.disc_enable;
10161 asc_dvc->max_host_qng = eep_config.max_host_qng;
10162 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
10163 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID);
10164 asc_dvc->start_motor = eep_config.start_motor;
10165 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay;
10166 asc_dvc->bios_ctrl = eep_config.bios_ctrl;
10167 asc_dvc->no_scam = eep_config.scam_tolerant;
10168 asc_dvc->cfg->serial1 = eep_config.serial_number_word1;
10169 asc_dvc->cfg->serial2 = eep_config.serial_number_word2;
10170 asc_dvc->cfg->serial3 = eep_config.serial_number_word3;
10197 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) {
10198 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
10199 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) {
10201 if (eep_config.max_host_qng == 0) {
10202 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
10204 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG;
10208 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) {
10209 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
10210 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) {
10212 if (eep_config.max_dvc_qng == 0) {
10213 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
10215 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG;
10223 if (eep_config.max_dvc_qng > eep_config.max_host_qng) {
10224 eep_config.max_dvc_qng = eep_config.max_host_qng;
10231 asc_dvc->max_host_qng = eep_config.max_host_qng;
10232 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
10242 if (eep_config.termination_se == 0) {
10246 if (eep_config.termination_se == 1) {
10250 } else if (eep_config.termination_se == 2) {
10254 } else if (eep_config.termination_se == 3) {
10266 if (eep_config.termination_lvd == 0) {
10270 if (eep_config.termination_lvd == 1) {
10274 } else if (eep_config.termination_lvd == 2) {
10278 } else if (eep_config.termination_lvd == 3) {
10309 ADVEEP_38C1600_CONFIG eep_config;
10322 if (AdvGet38C1600EEPConfig(iop_base, &eep_config) !=
10323 eep_config.check_sum) {
10330 memcpy(&eep_config, &Default_38C1600_EEPROM_Config,
10340 eep_config.cfg_lsw &= ~ADV_EEPROM_BIOS_ENABLE;
10357 eep_config.cfg_lsw &= ~ADV_EEPROM_INTAB;
10364 eep_config.serial_number_word3 =
10366 eep_config.serial_number_word2 =
10368 eep_config.serial_number_word1 =
10371 AdvSet38C1600EEPConfig(iop_base, &eep_config);
10380 asc_dvc->wdtr_able = eep_config.wdtr_able;
10381 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1;
10382 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2;
10383 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3;
10384 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4;
10386 asc_dvc->tagqng_able = eep_config.tagqng_able;
10387 asc_dvc->cfg->disc_enable = eep_config.disc_enable;
10388 asc_dvc->max_host_qng = eep_config.max_host_qng;
10389 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
10390 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ASC_MAX_TID);
10391 asc_dvc->start_motor = eep_config.start_motor;
10392 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay;
10393 asc_dvc->bios_ctrl = eep_config.bios_ctrl;
10394 asc_dvc->no_scam = eep_config.scam_tolerant;
10421 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) {
10422 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
10423 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) {
10425 if (eep_config.max_host_qng == 0) {
10426 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
10428 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG;
10432 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) {
10433 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
10434 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) {
10436 if (eep_config.max_dvc_qng == 0) {
10437 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
10439 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG;
10447 if (eep_config.max_dvc_qng > eep_config.max_host_qng) {
10448 eep_config.max_dvc_qng = eep_config.max_host_qng;
10455 asc_dvc->max_host_qng = eep_config.max_host_qng;
10456 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
10466 if (eep_config.termination_se == 0) {
10470 if (eep_config.termination_se == 1) {
10474 } else if (eep_config.termination_se == 2) {
10478 } else if (eep_config.termination_se == 3) {
10490 if (eep_config.termination_lvd == 0) {
10494 if (eep_config.termination_lvd == 1) {
10498 } else if (eep_config.termination_lvd == 2) {
10502 } else if (eep_config.termination_lvd == 3) {
10845 ep = &boardp->eep_config.asc_eep;
10881 ep_3550 = &boardp->eep_config.adv_3550_eep;
10903 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep;
10931 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep;