Lines Matching refs:eep_config

4085     } eep_config;  member
5115 ep = &boardp->eep_config.asc_eep; in ASC_INITFUNC()
5203 ep_3550 = &boardp->eep_config.adv_3550_eep; in ASC_INITFUNC()
5225 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in ASC_INITFUNC()
5252 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in ASC_INITFUNC()
8020 ep = &boardp->eep_config.asc_eep; in asc_prt_asc_board_eeprom()
8154 ep_3550 = &boardp->eep_config.adv_3550_eep; in asc_prt_adv_board_eeprom()
8157 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; in asc_prt_adv_board_eeprom()
8160 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; in asc_prt_adv_board_eeprom()
12627 ASCEEP_CONFIG *eep_config; in ASC_INITFUNC() local
12655 eep_config = (ASCEEP_CONFIG *) &eep_config_buf; in ASC_INITFUNC()
12663 chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type); in ASC_INITFUNC()
12671 if (eep_config->cfg_lsw != cfg_lsw) { in ASC_INITFUNC()
12673 eep_config->cfg_lsw = AscGetChipCfgLsw(iop_base); in ASC_INITFUNC()
12675 if (eep_config->cfg_msw != cfg_msw) { in ASC_INITFUNC()
12677 eep_config->cfg_msw = AscGetChipCfgMsw(iop_base); in ASC_INITFUNC()
12681 eep_config->cfg_msw &= ~ASC_CFG_MSW_CLR_MASK; in ASC_INITFUNC()
12682 eep_config->cfg_lsw |= ASC_CFG0_HOST_INT_ON; in ASC_INITFUNC()
12684 eep_config->chksum); in ASC_INITFUNC()
12685 if (chksum != eep_config->chksum) { in ASC_INITFUNC()
12691 eep_config->init_sdtr = 0xFF; in ASC_INITFUNC()
12692 eep_config->disc_enable = 0xFF; in ASC_INITFUNC()
12693 eep_config->start_motor = 0xFF; in ASC_INITFUNC()
12694 eep_config->use_cmd_qng = 0; in ASC_INITFUNC()
12695 eep_config->max_total_qng = 0xF0; in ASC_INITFUNC()
12696 eep_config->max_tag_qng = 0x20; in ASC_INITFUNC()
12697 eep_config->cntl = 0xBFFF; in ASC_INITFUNC()
12698 ASC_EEP_SET_CHIP_ID(eep_config, 7); in ASC_INITFUNC()
12699 eep_config->no_scam = 0; in ASC_INITFUNC()
12700 eep_config->adapter_info[0] = 0; in ASC_INITFUNC()
12701 eep_config->adapter_info[1] = 0; in ASC_INITFUNC()
12702 eep_config->adapter_info[2] = 0; in ASC_INITFUNC()
12703 eep_config->adapter_info[3] = 0; in ASC_INITFUNC()
12704 eep_config->adapter_info[4] = 0; in ASC_INITFUNC()
12706 eep_config->adapter_info[5] = 0xBB; in ASC_INITFUNC()
12714 asc_dvc->cfg->sdtr_enable = eep_config->init_sdtr; in ASC_INITFUNC()
12715 asc_dvc->cfg->disc_enable = eep_config->disc_enable; in ASC_INITFUNC()
12716 asc_dvc->cfg->cmd_qng_enabled = eep_config->use_cmd_qng; in ASC_INITFUNC()
12717 asc_dvc->cfg->isa_dma_speed = ASC_EEP_GET_DMA_SPD(eep_config); in ASC_INITFUNC()
12718 asc_dvc->start_motor = eep_config->start_motor; in ASC_INITFUNC()
12719 asc_dvc->dvc_cntl = eep_config->cntl; in ASC_INITFUNC()
12720 asc_dvc->no_scam = eep_config->no_scam; in ASC_INITFUNC()
12721 asc_dvc->cfg->adapter_info[0] = eep_config->adapter_info[0]; in ASC_INITFUNC()
12722 asc_dvc->cfg->adapter_info[1] = eep_config->adapter_info[1]; in ASC_INITFUNC()
12723 asc_dvc->cfg->adapter_info[2] = eep_config->adapter_info[2]; in ASC_INITFUNC()
12724 asc_dvc->cfg->adapter_info[3] = eep_config->adapter_info[3]; in ASC_INITFUNC()
12725 asc_dvc->cfg->adapter_info[4] = eep_config->adapter_info[4]; in ASC_INITFUNC()
12726 asc_dvc->cfg->adapter_info[5] = eep_config->adapter_info[5]; in ASC_INITFUNC()
12729 eep_config->max_total_qng = ASC_MAX_PCI_ULTRA_INRAM_TOTAL_QNG; in ASC_INITFUNC()
12730 eep_config->max_tag_qng = ASC_MAX_PCI_ULTRA_INRAM_TAG_QNG; in ASC_INITFUNC()
12732 eep_config->cfg_msw |= 0x0800; in ASC_INITFUNC()
12735 eep_config->max_total_qng = ASC_MAX_PCI_INRAM_TOTAL_QNG; in ASC_INITFUNC()
12736 eep_config->max_tag_qng = ASC_MAX_INRAM_TAG_QNG; in ASC_INITFUNC()
12740 if (eep_config->max_total_qng < ASC_MIN_TOTAL_QNG) { in ASC_INITFUNC()
12741 eep_config->max_total_qng = ASC_MIN_TOTAL_QNG; in ASC_INITFUNC()
12743 if (eep_config->max_total_qng > ASC_MAX_TOTAL_QNG) { in ASC_INITFUNC()
12744 eep_config->max_total_qng = ASC_MAX_TOTAL_QNG; in ASC_INITFUNC()
12746 if (eep_config->max_tag_qng > eep_config->max_total_qng) { in ASC_INITFUNC()
12747 eep_config->max_tag_qng = eep_config->max_total_qng; in ASC_INITFUNC()
12749 if (eep_config->max_tag_qng < ASC_MIN_TAG_Q_PER_DVC) { in ASC_INITFUNC()
12750 eep_config->max_tag_qng = ASC_MIN_TAG_Q_PER_DVC; in ASC_INITFUNC()
12752 asc_dvc->max_total_qng = eep_config->max_total_qng; in ASC_INITFUNC()
12753 if ((eep_config->use_cmd_qng & eep_config->disc_enable) != in ASC_INITFUNC()
12754 eep_config->use_cmd_qng) { in ASC_INITFUNC()
12755 eep_config->disc_enable = eep_config->use_cmd_qng; in ASC_INITFUNC()
12761 ASC_EEP_SET_CHIP_ID(eep_config, ASC_EEP_GET_CHIP_ID(eep_config) & ASC_MAX_TID); in ASC_INITFUNC()
12762 asc_dvc->cfg->chip_scsi_id = ASC_EEP_GET_CHIP_ID(eep_config); in ASC_INITFUNC()
12769 asc_dvc->dos_int13_table[i] = eep_config->dos_int13_table[i]; in ASC_INITFUNC()
12770 asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng; in ASC_INITFUNC()
12775 eep_config->cfg_msw = AscGetChipCfgMsw(iop_base); in ASC_INITFUNC()
12777 if ((i = AscSetEEPConfig(iop_base, eep_config, asc_dvc->bus_type)) != in ASC_INITFUNC()
16918 ADVEEP_3550_CONFIG eep_config; in ASC_INITFUNC() local
16930 if (AdvGet3550EEPConfig(iop_base, &eep_config) != eep_config.check_sum) in ASC_INITFUNC()
16939 *((uchar *) &eep_config + i) = in ASC_INITFUNC()
16948 eep_config.serial_number_word3 = in ASC_INITFUNC()
16951 eep_config.serial_number_word2 = in ASC_INITFUNC()
16954 eep_config.serial_number_word1 = in ASC_INITFUNC()
16957 AdvSet3550EEPConfig(iop_base, &eep_config); in ASC_INITFUNC()
16965 asc_dvc->wdtr_able = eep_config.wdtr_able; in ASC_INITFUNC()
16966 asc_dvc->sdtr_able = eep_config.sdtr_able; in ASC_INITFUNC()
16967 asc_dvc->ultra_able = eep_config.ultra_able; in ASC_INITFUNC()
16968 asc_dvc->tagqng_able = eep_config.tagqng_able; in ASC_INITFUNC()
16969 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in ASC_INITFUNC()
16970 asc_dvc->max_host_qng = eep_config.max_host_qng; in ASC_INITFUNC()
16971 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in ASC_INITFUNC()
16972 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); in ASC_INITFUNC()
16973 asc_dvc->start_motor = eep_config.start_motor; in ASC_INITFUNC()
16974 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in ASC_INITFUNC()
16975 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in ASC_INITFUNC()
16976 asc_dvc->no_scam = eep_config.scam_tolerant; in ASC_INITFUNC()
16977 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; in ASC_INITFUNC()
16978 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; in ASC_INITFUNC()
16979 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; in ASC_INITFUNC()
16985 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) in ASC_INITFUNC()
16987 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in ASC_INITFUNC()
16988 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) in ASC_INITFUNC()
16991 if (eep_config.max_host_qng == 0) in ASC_INITFUNC()
16993 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in ASC_INITFUNC()
16996 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in ASC_INITFUNC()
17000 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) in ASC_INITFUNC()
17002 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in ASC_INITFUNC()
17003 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) in ASC_INITFUNC()
17006 if (eep_config.max_dvc_qng == 0) in ASC_INITFUNC()
17008 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in ASC_INITFUNC()
17011 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in ASC_INITFUNC()
17019 if (eep_config.max_dvc_qng > eep_config.max_host_qng) in ASC_INITFUNC()
17021 eep_config.max_dvc_qng = eep_config.max_host_qng; in ASC_INITFUNC()
17028 asc_dvc->max_host_qng = eep_config.max_host_qng; in ASC_INITFUNC()
17029 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in ASC_INITFUNC()
17040 if (eep_config.termination == 0) in ASC_INITFUNC()
17046 if (eep_config.termination == 1) in ASC_INITFUNC()
17051 } else if (eep_config.termination == 2) in ASC_INITFUNC()
17056 } else if (eep_config.termination == 3) in ASC_INITFUNC()
17092 ADVEEP_38C0800_CONFIG eep_config; in ASC_INITFUNC() local
17106 if (AdvGet38C0800EEPConfig(iop_base, &eep_config) != eep_config.check_sum) in ASC_INITFUNC()
17115 *((uchar *) &eep_config + i) = in ASC_INITFUNC()
17124 eep_config.serial_number_word3 = in ASC_INITFUNC()
17127 eep_config.serial_number_word2 = in ASC_INITFUNC()
17130 eep_config.serial_number_word1 = in ASC_INITFUNC()
17133 AdvSet38C0800EEPConfig(iop_base, &eep_config); in ASC_INITFUNC()
17141 asc_dvc->wdtr_able = eep_config.wdtr_able; in ASC_INITFUNC()
17142 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; in ASC_INITFUNC()
17143 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; in ASC_INITFUNC()
17144 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; in ASC_INITFUNC()
17145 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; in ASC_INITFUNC()
17146 asc_dvc->tagqng_able = eep_config.tagqng_able; in ASC_INITFUNC()
17147 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in ASC_INITFUNC()
17148 asc_dvc->max_host_qng = eep_config.max_host_qng; in ASC_INITFUNC()
17149 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in ASC_INITFUNC()
17150 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); in ASC_INITFUNC()
17151 asc_dvc->start_motor = eep_config.start_motor; in ASC_INITFUNC()
17152 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in ASC_INITFUNC()
17153 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in ASC_INITFUNC()
17154 asc_dvc->no_scam = eep_config.scam_tolerant; in ASC_INITFUNC()
17155 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; in ASC_INITFUNC()
17156 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; in ASC_INITFUNC()
17157 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; in ASC_INITFUNC()
17190 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) in ASC_INITFUNC()
17192 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in ASC_INITFUNC()
17193 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) in ASC_INITFUNC()
17196 if (eep_config.max_host_qng == 0) in ASC_INITFUNC()
17198 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in ASC_INITFUNC()
17201 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in ASC_INITFUNC()
17205 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) in ASC_INITFUNC()
17207 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in ASC_INITFUNC()
17208 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) in ASC_INITFUNC()
17211 if (eep_config.max_dvc_qng == 0) in ASC_INITFUNC()
17213 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in ASC_INITFUNC()
17216 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in ASC_INITFUNC()
17224 if (eep_config.max_dvc_qng > eep_config.max_host_qng) in ASC_INITFUNC()
17226 eep_config.max_dvc_qng = eep_config.max_host_qng; in ASC_INITFUNC()
17233 asc_dvc->max_host_qng = eep_config.max_host_qng; in ASC_INITFUNC()
17234 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in ASC_INITFUNC()
17244 if (eep_config.termination_se == 0) in ASC_INITFUNC()
17250 if (eep_config.termination_se == 1) in ASC_INITFUNC()
17255 } else if (eep_config.termination_se == 2) in ASC_INITFUNC()
17260 } else if (eep_config.termination_se == 3) in ASC_INITFUNC()
17274 if (eep_config.termination_lvd == 0) in ASC_INITFUNC()
17280 if (eep_config.termination_lvd == 1) in ASC_INITFUNC()
17285 } else if (eep_config.termination_lvd == 2) in ASC_INITFUNC()
17290 } else if (eep_config.termination_lvd == 3) in ASC_INITFUNC()
17327 ADVEEP_38C1600_CONFIG eep_config; in ASC_INITFUNC() local
17341 if (AdvGet38C1600EEPConfig(iop_base, &eep_config) != eep_config.check_sum) in ASC_INITFUNC()
17363 *((uchar *) &eep_config + i) = in ASC_INITFUNC()
17384 *((uchar *) &eep_config + i) |= in ASC_INITFUNC()
17390 *((uchar *) &eep_config + i) = in ASC_INITFUNC()
17400 eep_config.serial_number_word3 = in ASC_INITFUNC()
17403 eep_config.serial_number_word2 = in ASC_INITFUNC()
17406 eep_config.serial_number_word1 = in ASC_INITFUNC()
17409 AdvSet38C1600EEPConfig(iop_base, &eep_config); in ASC_INITFUNC()
17418 asc_dvc->wdtr_able = eep_config.wdtr_able; in ASC_INITFUNC()
17419 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; in ASC_INITFUNC()
17420 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; in ASC_INITFUNC()
17421 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; in ASC_INITFUNC()
17422 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; in ASC_INITFUNC()
17424 asc_dvc->tagqng_able = eep_config.tagqng_able; in ASC_INITFUNC()
17425 asc_dvc->cfg->disc_enable = eep_config.disc_enable; in ASC_INITFUNC()
17426 asc_dvc->max_host_qng = eep_config.max_host_qng; in ASC_INITFUNC()
17427 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in ASC_INITFUNC()
17428 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ASC_MAX_TID); in ASC_INITFUNC()
17429 asc_dvc->start_motor = eep_config.start_motor; in ASC_INITFUNC()
17430 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; in ASC_INITFUNC()
17431 asc_dvc->bios_ctrl = eep_config.bios_ctrl; in ASC_INITFUNC()
17432 asc_dvc->no_scam = eep_config.scam_tolerant; in ASC_INITFUNC()
17465 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) in ASC_INITFUNC()
17467 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in ASC_INITFUNC()
17468 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) in ASC_INITFUNC()
17471 if (eep_config.max_host_qng == 0) in ASC_INITFUNC()
17473 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; in ASC_INITFUNC()
17476 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; in ASC_INITFUNC()
17480 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) in ASC_INITFUNC()
17482 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in ASC_INITFUNC()
17483 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) in ASC_INITFUNC()
17486 if (eep_config.max_dvc_qng == 0) in ASC_INITFUNC()
17488 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; in ASC_INITFUNC()
17491 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; in ASC_INITFUNC()
17499 if (eep_config.max_dvc_qng > eep_config.max_host_qng) in ASC_INITFUNC()
17501 eep_config.max_dvc_qng = eep_config.max_host_qng; in ASC_INITFUNC()
17508 asc_dvc->max_host_qng = eep_config.max_host_qng; in ASC_INITFUNC()
17509 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; in ASC_INITFUNC()
17519 if (eep_config.termination_se == 0) in ASC_INITFUNC()
17525 if (eep_config.termination_se == 1) in ASC_INITFUNC()
17530 } else if (eep_config.termination_se == 2) in ASC_INITFUNC()
17535 } else if (eep_config.termination_se == 3) in ASC_INITFUNC()
17549 if (eep_config.termination_lvd == 0) in ASC_INITFUNC()
17555 if (eep_config.termination_lvd == 1) in ASC_INITFUNC()
17560 } else if (eep_config.termination_lvd == 2) in ASC_INITFUNC()
17565 } else if (eep_config.termination_lvd == 3) in ASC_INITFUNC()