Lines Matching refs:eep_config

2250 	} eep_config;  member
2849 ep = &boardp->eep_config.asc_eep; in asc_prt_asc_board_eeprom()
2919 ep_3550 = &boardp->eep_config.adv_3550_eep; in asc_prt_adv_board_eeprom()
2921 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in asc_prt_adv_board_eeprom()
2923 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in asc_prt_adv_board_eeprom()
8927 ASCEEP_CONFIG *eep_config; in AscInitFromEEP() local
8954 eep_config = (ASCEEP_CONFIG *)&eep_config_buf; in AscInitFromEEP()
8962 chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type); in AscInitFromEEP()
8970 if (eep_config->cfg_lsw != cfg_lsw) { in AscInitFromEEP()
8972 eep_config->cfg_lsw = in AscInitFromEEP()
8975 if (eep_config->cfg_msw != cfg_msw) { in AscInitFromEEP()
8977 eep_config->cfg_msw = in AscInitFromEEP()
8982 eep_config->cfg_msw &= ~ASC_CFG_MSW_CLR_MASK; in AscInitFromEEP()
8983 eep_config->cfg_lsw |= ASC_CFG0_HOST_INT_ON; in AscInitFromEEP()
8984 ASC_DBG(1, "eep_config->chksum 0x%x\n", eep_config->chksum); in AscInitFromEEP()
8985 if (chksum != eep_config->chksum) { in AscInitFromEEP()
8989 eep_config->init_sdtr = 0xFF; in AscInitFromEEP()
8990 eep_config->disc_enable = 0xFF; in AscInitFromEEP()
8991 eep_config->start_motor = 0xFF; in AscInitFromEEP()
8992 eep_config->use_cmd_qng = 0; in AscInitFromEEP()
8993 eep_config->max_total_qng = 0xF0; in AscInitFromEEP()
8994 eep_config->max_tag_qng = 0x20; in AscInitFromEEP()
8995 eep_config->cntl = 0xBFFF; in AscInitFromEEP()
8996 ASC_EEP_SET_CHIP_ID(eep_config, 7); in AscInitFromEEP()
8997 eep_config->no_scam = 0; in AscInitFromEEP()
8998 eep_config->adapter_info[0] = 0; in AscInitFromEEP()
8999 eep_config->adapter_info[1] = 0; in AscInitFromEEP()
9000 eep_config->adapter_info[2] = 0; in AscInitFromEEP()
9001 eep_config->adapter_info[3] = 0; in AscInitFromEEP()
9002 eep_config->adapter_info[4] = 0; in AscInitFromEEP()
9004 eep_config->adapter_info[5] = 0xBB; in AscInitFromEEP()
9012 asc_dvc->cfg->sdtr_enable = eep_config->init_sdtr; in AscInitFromEEP()
9013 asc_dvc->cfg->disc_enable = eep_config->disc_enable; in AscInitFromEEP()
9014 asc_dvc->cfg->cmd_qng_enabled = eep_config->use_cmd_qng; in AscInitFromEEP()
9015 asc_dvc->start_motor = eep_config->start_motor; in AscInitFromEEP()
9016 asc_dvc->dvc_cntl = eep_config->cntl; in AscInitFromEEP()
9017 asc_dvc->no_scam = eep_config->no_scam; in AscInitFromEEP()
9018 asc_dvc->cfg->adapter_info[0] = eep_config->adapter_info[0]; in AscInitFromEEP()
9019 asc_dvc->cfg->adapter_info[1] = eep_config->adapter_info[1]; in AscInitFromEEP()
9020 asc_dvc->cfg->adapter_info[2] = eep_config->adapter_info[2]; in AscInitFromEEP()
9021 asc_dvc->cfg->adapter_info[3] = eep_config->adapter_info[3]; in AscInitFromEEP()
9022 asc_dvc->cfg->adapter_info[4] = eep_config->adapter_info[4]; in AscInitFromEEP()
9023 asc_dvc->cfg->adapter_info[5] = eep_config->adapter_info[5]; in AscInitFromEEP()
9027 eep_config->max_total_qng = in AscInitFromEEP()
9029 eep_config->max_tag_qng = in AscInitFromEEP()
9032 eep_config->cfg_msw |= 0x0800; in AscInitFromEEP()
9035 eep_config->max_total_qng = ASC_MAX_PCI_INRAM_TOTAL_QNG; in AscInitFromEEP()
9036 eep_config->max_tag_qng = ASC_MAX_INRAM_TAG_QNG; in AscInitFromEEP()
9040 if (eep_config->max_total_qng < ASC_MIN_TOTAL_QNG) { in AscInitFromEEP()
9041 eep_config->max_total_qng = ASC_MIN_TOTAL_QNG; in AscInitFromEEP()
9043 if (eep_config->max_total_qng > ASC_MAX_TOTAL_QNG) { in AscInitFromEEP()
9044 eep_config->max_total_qng = ASC_MAX_TOTAL_QNG; in AscInitFromEEP()
9046 if (eep_config->max_tag_qng > eep_config->max_total_qng) { in AscInitFromEEP()
9047 eep_config->max_tag_qng = eep_config->max_total_qng; in AscInitFromEEP()
9049 if (eep_config->max_tag_qng < ASC_MIN_TAG_Q_PER_DVC) { in AscInitFromEEP()
9050 eep_config->max_tag_qng = ASC_MIN_TAG_Q_PER_DVC; in AscInitFromEEP()
9052 asc_dvc->max_total_qng = eep_config->max_total_qng; in AscInitFromEEP()
9053 if ((eep_config->use_cmd_qng & eep_config->disc_enable) != in AscInitFromEEP()
9054 eep_config->use_cmd_qng) { in AscInitFromEEP()
9055 eep_config->disc_enable = eep_config->use_cmd_qng; in AscInitFromEEP()
9058 ASC_EEP_SET_CHIP_ID(eep_config, in AscInitFromEEP()
9059 ASC_EEP_GET_CHIP_ID(eep_config) & ASC_MAX_TID); in AscInitFromEEP()
9060 asc_dvc->cfg->chip_scsi_id = ASC_EEP_GET_CHIP_ID(eep_config); in AscInitFromEEP()
9067 asc_dvc->dos_int13_table[i] = eep_config->dos_int13_table[i]; in AscInitFromEEP()
9068 asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng; in AscInitFromEEP()
9073 eep_config->cfg_msw = AscGetChipCfgMsw(iop_base); in AscInitFromEEP()
9075 if ((i = AscSetEEPConfig(iop_base, eep_config, in AscInitFromEEP()
9957 ADVEEP_3550_CONFIG eep_config; in AdvInitFrom3550EEP() local
9968 if (AdvGet3550EEPConfig(iop_base, &eep_config) != eep_config.check_sum) { in AdvInitFrom3550EEP()
9974 memcpy(&eep_config, &Default_3550_EEPROM_Config, in AdvInitFrom3550EEP()
9981 eep_config.serial_number_word3 = in AdvInitFrom3550EEP()
9984 eep_config.serial_number_word2 = in AdvInitFrom3550EEP()
9987 eep_config.serial_number_word1 = in AdvInitFrom3550EEP()
9990 AdvSet3550EEPConfig(iop_base, &eep_config); in AdvInitFrom3550EEP()
9998 asc_dvc->wdtr_able = eep_config.wdtr_able; in AdvInitFrom3550EEP()
9999 asc_dvc->sdtr_able = eep_config.sdtr_able; in AdvInitFrom3550EEP()
10000 asc_dvc->ultra_able = eep_config.ultra_able; in AdvInitFrom3550EEP()
10001 asc_dvc->tagqng_able = eep_config.tagqng_able; in AdvInitFrom3550EEP()
10002 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in AdvInitFrom3550EEP()
10003 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom3550EEP()
10004 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom3550EEP()
10005 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); in AdvInitFrom3550EEP()
10006 asc_dvc->start_motor = eep_config.start_motor; in AdvInitFrom3550EEP()
10007 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in AdvInitFrom3550EEP()
10008 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in AdvInitFrom3550EEP()
10009 asc_dvc->no_scam = eep_config.scam_tolerant; in AdvInitFrom3550EEP()
10010 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; in AdvInitFrom3550EEP()
10011 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; in AdvInitFrom3550EEP()
10012 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; in AdvInitFrom3550EEP()
10018 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { in AdvInitFrom3550EEP()
10019 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom3550EEP()
10020 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { in AdvInitFrom3550EEP()
10022 if (eep_config.max_host_qng == 0) { in AdvInitFrom3550EEP()
10023 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom3550EEP()
10025 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in AdvInitFrom3550EEP()
10029 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { in AdvInitFrom3550EEP()
10030 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom3550EEP()
10031 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { in AdvInitFrom3550EEP()
10033 if (eep_config.max_dvc_qng == 0) { in AdvInitFrom3550EEP()
10034 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom3550EEP()
10036 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in AdvInitFrom3550EEP()
10044 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { in AdvInitFrom3550EEP()
10045 eep_config.max_dvc_qng = eep_config.max_host_qng; in AdvInitFrom3550EEP()
10052 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom3550EEP()
10053 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom3550EEP()
10063 if (eep_config.termination == 0) { in AdvInitFrom3550EEP()
10067 if (eep_config.termination == 1) { in AdvInitFrom3550EEP()
10071 } else if (eep_config.termination == 2) { in AdvInitFrom3550EEP()
10075 } else if (eep_config.termination == 3) { in AdvInitFrom3550EEP()
10107 ADVEEP_38C0800_CONFIG eep_config; in AdvInitFrom38C0800EEP() local
10120 if (AdvGet38C0800EEPConfig(iop_base, &eep_config) != in AdvInitFrom38C0800EEP()
10121 eep_config.check_sum) { in AdvInitFrom38C0800EEP()
10127 memcpy(&eep_config, &Default_38C0800_EEPROM_Config, in AdvInitFrom38C0800EEP()
10134 eep_config.serial_number_word3 = in AdvInitFrom38C0800EEP()
10137 eep_config.serial_number_word2 = in AdvInitFrom38C0800EEP()
10140 eep_config.serial_number_word1 = in AdvInitFrom38C0800EEP()
10143 AdvSet38C0800EEPConfig(iop_base, &eep_config); in AdvInitFrom38C0800EEP()
10151 asc_dvc->wdtr_able = eep_config.wdtr_able; in AdvInitFrom38C0800EEP()
10152 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; in AdvInitFrom38C0800EEP()
10153 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; in AdvInitFrom38C0800EEP()
10154 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; in AdvInitFrom38C0800EEP()
10155 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; in AdvInitFrom38C0800EEP()
10156 asc_dvc->tagqng_able = eep_config.tagqng_able; in AdvInitFrom38C0800EEP()
10157 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in AdvInitFrom38C0800EEP()
10158 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C0800EEP()
10159 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C0800EEP()
10160 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); in AdvInitFrom38C0800EEP()
10161 asc_dvc->start_motor = eep_config.start_motor; in AdvInitFrom38C0800EEP()
10162 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in AdvInitFrom38C0800EEP()
10163 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in AdvInitFrom38C0800EEP()
10164 asc_dvc->no_scam = eep_config.scam_tolerant; in AdvInitFrom38C0800EEP()
10165 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; in AdvInitFrom38C0800EEP()
10166 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; in AdvInitFrom38C0800EEP()
10167 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; in AdvInitFrom38C0800EEP()
10194 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { in AdvInitFrom38C0800EEP()
10195 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C0800EEP()
10196 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { in AdvInitFrom38C0800EEP()
10198 if (eep_config.max_host_qng == 0) { in AdvInitFrom38C0800EEP()
10199 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C0800EEP()
10201 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in AdvInitFrom38C0800EEP()
10205 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { in AdvInitFrom38C0800EEP()
10206 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C0800EEP()
10207 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { in AdvInitFrom38C0800EEP()
10209 if (eep_config.max_dvc_qng == 0) { in AdvInitFrom38C0800EEP()
10210 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C0800EEP()
10212 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in AdvInitFrom38C0800EEP()
10220 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { in AdvInitFrom38C0800EEP()
10221 eep_config.max_dvc_qng = eep_config.max_host_qng; in AdvInitFrom38C0800EEP()
10228 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C0800EEP()
10229 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C0800EEP()
10239 if (eep_config.termination_se == 0) { in AdvInitFrom38C0800EEP()
10243 if (eep_config.termination_se == 1) { in AdvInitFrom38C0800EEP()
10247 } else if (eep_config.termination_se == 2) { in AdvInitFrom38C0800EEP()
10251 } else if (eep_config.termination_se == 3) { in AdvInitFrom38C0800EEP()
10263 if (eep_config.termination_lvd == 0) { in AdvInitFrom38C0800EEP()
10267 if (eep_config.termination_lvd == 1) { in AdvInitFrom38C0800EEP()
10271 } else if (eep_config.termination_lvd == 2) { in AdvInitFrom38C0800EEP()
10275 } else if (eep_config.termination_lvd == 3) { in AdvInitFrom38C0800EEP()
10306 ADVEEP_38C1600_CONFIG eep_config; in AdvInitFrom38C1600EEP() local
10319 if (AdvGet38C1600EEPConfig(iop_base, &eep_config) != in AdvInitFrom38C1600EEP()
10320 eep_config.check_sum) { in AdvInitFrom38C1600EEP()
10327 memcpy(&eep_config, &Default_38C1600_EEPROM_Config, in AdvInitFrom38C1600EEP()
10337 eep_config.cfg_lsw &= ~ADV_EEPROM_BIOS_ENABLE; in AdvInitFrom38C1600EEP()
10354 eep_config.cfg_lsw &= ~ADV_EEPROM_INTAB; in AdvInitFrom38C1600EEP()
10361 eep_config.serial_number_word3 = in AdvInitFrom38C1600EEP()
10363 eep_config.serial_number_word2 = in AdvInitFrom38C1600EEP()
10365 eep_config.serial_number_word1 = in AdvInitFrom38C1600EEP()
10368 AdvSet38C1600EEPConfig(iop_base, &eep_config); in AdvInitFrom38C1600EEP()
10377 asc_dvc->wdtr_able = eep_config.wdtr_able; in AdvInitFrom38C1600EEP()
10378 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; in AdvInitFrom38C1600EEP()
10379 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; in AdvInitFrom38C1600EEP()
10380 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; in AdvInitFrom38C1600EEP()
10381 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; in AdvInitFrom38C1600EEP()
10383 asc_dvc->tagqng_able = eep_config.tagqng_able; in AdvInitFrom38C1600EEP()
10384 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in AdvInitFrom38C1600EEP()
10385 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C1600EEP()
10386 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C1600EEP()
10387 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ASC_MAX_TID); in AdvInitFrom38C1600EEP()
10388 asc_dvc->start_motor = eep_config.start_motor; in AdvInitFrom38C1600EEP()
10389 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in AdvInitFrom38C1600EEP()
10390 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in AdvInitFrom38C1600EEP()
10391 asc_dvc->no_scam = eep_config.scam_tolerant; in AdvInitFrom38C1600EEP()
10418 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { in AdvInitFrom38C1600EEP()
10419 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C1600EEP()
10420 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { in AdvInitFrom38C1600EEP()
10422 if (eep_config.max_host_qng == 0) { in AdvInitFrom38C1600EEP()
10423 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in AdvInitFrom38C1600EEP()
10425 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in AdvInitFrom38C1600EEP()
10429 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { in AdvInitFrom38C1600EEP()
10430 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C1600EEP()
10431 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { in AdvInitFrom38C1600EEP()
10433 if (eep_config.max_dvc_qng == 0) { in AdvInitFrom38C1600EEP()
10434 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in AdvInitFrom38C1600EEP()
10436 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in AdvInitFrom38C1600EEP()
10444 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { in AdvInitFrom38C1600EEP()
10445 eep_config.max_dvc_qng = eep_config.max_host_qng; in AdvInitFrom38C1600EEP()
10452 asc_dvc->max_host_qng = eep_config.max_host_qng; in AdvInitFrom38C1600EEP()
10453 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in AdvInitFrom38C1600EEP()
10463 if (eep_config.termination_se == 0) { in AdvInitFrom38C1600EEP()
10467 if (eep_config.termination_se == 1) { in AdvInitFrom38C1600EEP()
10471 } else if (eep_config.termination_se == 2) { in AdvInitFrom38C1600EEP()
10475 } else if (eep_config.termination_se == 3) { in AdvInitFrom38C1600EEP()
10487 if (eep_config.termination_lvd == 0) { in AdvInitFrom38C1600EEP()
10491 if (eep_config.termination_lvd == 1) { in AdvInitFrom38C1600EEP()
10495 } else if (eep_config.termination_lvd == 2) { in AdvInitFrom38C1600EEP()
10499 } else if (eep_config.termination_lvd == 3) { in AdvInitFrom38C1600EEP()
10841 ep = &boardp->eep_config.asc_eep; in advansys_board_found()
10877 ep_3550 = &boardp->eep_config.adv_3550_eep; in advansys_board_found()
10899 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in advansys_board_found()
10927 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in advansys_board_found()