• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:eep_config

2359 	} eep_config;
3108 ep = &boardp->eep_config.asc_eep;
3245 ep_3550 = &boardp->eep_config.adv_3550_eep;
3247 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep;
3249 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep;
10003 ASCEEP_CONFIG *eep_config;
10030 eep_config = (ASCEEP_CONFIG *)&eep_config_buf;
10038 chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type);
10046 if (eep_config->cfg_lsw != cfg_lsw) {
10048 eep_config->cfg_lsw =
10051 if (eep_config->cfg_msw != cfg_msw) {
10053 eep_config->cfg_msw =
10058 eep_config->cfg_msw &= ~ASC_CFG_MSW_CLR_MASK;
10059 eep_config->cfg_lsw |= ASC_CFG0_HOST_INT_ON;
10060 ASC_DBG(1, "eep_config->chksum 0x%x\n", eep_config->chksum);
10061 if (chksum != eep_config->chksum) {
10065 eep_config->init_sdtr = 0xFF;
10066 eep_config->disc_enable = 0xFF;
10067 eep_config->start_motor = 0xFF;
10068 eep_config->use_cmd_qng = 0;
10069 eep_config->max_total_qng = 0xF0;
10070 eep_config->max_tag_qng = 0x20;
10071 eep_config->cntl = 0xBFFF;
10072 ASC_EEP_SET_CHIP_ID(eep_config, 7);
10073 eep_config->no_scam = 0;
10074 eep_config->adapter_info[0] = 0;
10075 eep_config->adapter_info[1] = 0;
10076 eep_config->adapter_info[2] = 0;
10077 eep_config->adapter_info[3] = 0;
10078 eep_config->adapter_info[4] = 0;
10080 eep_config->adapter_info[5] = 0xBB;
10088 asc_dvc->cfg->sdtr_enable = eep_config->init_sdtr;
10089 asc_dvc->cfg->disc_enable = eep_config->disc_enable;
10090 asc_dvc->cfg->cmd_qng_enabled = eep_config->use_cmd_qng;
10091 asc_dvc->cfg->isa_dma_speed = ASC_EEP_GET_DMA_SPD(eep_config);
10092 asc_dvc->start_motor = eep_config->start_motor;
10093 asc_dvc->dvc_cntl = eep_config->cntl;
10094 asc_dvc->no_scam = eep_config->no_scam;
10095 asc_dvc->cfg->adapter_info[0] = eep_config->adapter_info[0];
10096 asc_dvc->cfg->adapter_info[1] = eep_config->adapter_info[1];
10097 asc_dvc->cfg->adapter_info[2] = eep_config->adapter_info[2];
10098 asc_dvc->cfg->adapter_info[3] = eep_config->adapter_info[3];
10099 asc_dvc->cfg->adapter_info[4] = eep_config->adapter_info[4];
10100 asc_dvc->cfg->adapter_info[5] = eep_config->adapter_info[5];
10104 eep_config->max_total_qng =
10106 eep_config->max_tag_qng =
10109 eep_config->cfg_msw |= 0x0800;
10112 eep_config->max_total_qng = ASC_MAX_PCI_INRAM_TOTAL_QNG;
10113 eep_config->max_tag_qng = ASC_MAX_INRAM_TAG_QNG;
10117 if (eep_config->max_total_qng < ASC_MIN_TOTAL_QNG) {
10118 eep_config->max_total_qng = ASC_MIN_TOTAL_QNG;
10120 if (eep_config->max_total_qng > ASC_MAX_TOTAL_QNG) {
10121 eep_config->max_total_qng = ASC_MAX_TOTAL_QNG;
10123 if (eep_config->max_tag_qng > eep_config->max_total_qng) {
10124 eep_config->max_tag_qng = eep_config->max_total_qng;
10126 if (eep_config->max_tag_qng < ASC_MIN_TAG_Q_PER_DVC) {
10127 eep_config->max_tag_qng = ASC_MIN_TAG_Q_PER_DVC;
10129 asc_dvc->max_total_qng = eep_config->max_total_qng;
10130 if ((eep_config->use_cmd_qng & eep_config->disc_enable) !=
10131 eep_config->use_cmd_qng) {
10132 eep_config->disc_enable = eep_config->use_cmd_qng;
10135 ASC_EEP_SET_CHIP_ID(eep_config,
10136 ASC_EEP_GET_CHIP_ID(eep_config) & ASC_MAX_TID);
10137 asc_dvc->cfg->chip_scsi_id = ASC_EEP_GET_CHIP_ID(eep_config);
10144 asc_dvc->dos_int13_table[i] = eep_config->dos_int13_table[i];
10145 asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng;
10150 eep_config->cfg_msw = AscGetChipCfgMsw(iop_base);
10152 if ((i = AscSetEEPConfig(iop_base, eep_config,
11046 ADVEEP_3550_CONFIG eep_config;
11057 if (AdvGet3550EEPConfig(iop_base, &eep_config) != eep_config.check_sum) {
11063 memcpy(&eep_config, &Default_3550_EEPROM_Config,
11070 eep_config.serial_number_word3 =
11073 eep_config.serial_number_word2 =
11076 eep_config.serial_number_word1 =
11079 AdvSet3550EEPConfig(iop_base, &eep_config);
11087 asc_dvc->wdtr_able = eep_config.wdtr_able;
11088 asc_dvc->sdtr_able = eep_config.sdtr_able;
11089 asc_dvc->ultra_able = eep_config.ultra_able;
11090 asc_dvc->tagqng_able = eep_config.tagqng_able;
11091 asc_dvc->cfg->disc_enable = eep_config.disc_enable;
11092 asc_dvc->max_host_qng = eep_config.max_host_qng;
11093 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
11094 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID);
11095 asc_dvc->start_motor = eep_config.start_motor;
11096 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay;
11097 asc_dvc->bios_ctrl = eep_config.bios_ctrl;
11098 asc_dvc->no_scam = eep_config.scam_tolerant;
11099 asc_dvc->cfg->serial1 = eep_config.serial_number_word1;
11100 asc_dvc->cfg->serial2 = eep_config.serial_number_word2;
11101 asc_dvc->cfg->serial3 = eep_config.serial_number_word3;
11107 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) {
11108 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
11109 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) {
11111 if (eep_config.max_host_qng == 0) {
11112 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
11114 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG;
11118 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) {
11119 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
11120 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) {
11122 if (eep_config.max_dvc_qng == 0) {
11123 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
11125 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG;
11133 if (eep_config.max_dvc_qng > eep_config.max_host_qng) {
11134 eep_config.max_dvc_qng = eep_config.max_host_qng;
11141 asc_dvc->max_host_qng = eep_config.max_host_qng;
11142 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
11152 if (eep_config.termination == 0) {
11156 if (eep_config.termination == 1) {
11160 } else if (eep_config.termination == 2) {
11164 } else if (eep_config.termination == 3) {
11196 ADVEEP_38C0800_CONFIG eep_config;
11209 if (AdvGet38C0800EEPConfig(iop_base, &eep_config) !=
11210 eep_config.check_sum) {
11216 memcpy(&eep_config, &Default_38C0800_EEPROM_Config,
11223 eep_config.serial_number_word3 =
11226 eep_config.serial_number_word2 =
11229 eep_config.serial_number_word1 =
11232 AdvSet38C0800EEPConfig(iop_base, &eep_config);
11240 asc_dvc->wdtr_able = eep_config.wdtr_able;
11241 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1;
11242 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2;
11243 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3;
11244 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4;
11245 asc_dvc->tagqng_able = eep_config.tagqng_able;
11246 asc_dvc->cfg->disc_enable = eep_config.disc_enable;
11247 asc_dvc->max_host_qng = eep_config.max_host_qng;
11248 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
11249 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID);
11250 asc_dvc->start_motor = eep_config.start_motor;
11251 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay;
11252 asc_dvc->bios_ctrl = eep_config.bios_ctrl;
11253 asc_dvc->no_scam = eep_config.scam_tolerant;
11254 asc_dvc->cfg->serial1 = eep_config.serial_number_word1;
11255 asc_dvc->cfg->serial2 = eep_config.serial_number_word2;
11256 asc_dvc->cfg->serial3 = eep_config.serial_number_word3;
11283 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) {
11284 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
11285 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) {
11287 if (eep_config.max_host_qng == 0) {
11288 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
11290 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG;
11294 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) {
11295 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
11296 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) {
11298 if (eep_config.max_dvc_qng == 0) {
11299 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
11301 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG;
11309 if (eep_config.max_dvc_qng > eep_config.max_host_qng) {
11310 eep_config.max_dvc_qng = eep_config.max_host_qng;
11317 asc_dvc->max_host_qng = eep_config.max_host_qng;
11318 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
11328 if (eep_config.termination_se == 0) {
11332 if (eep_config.termination_se == 1) {
11336 } else if (eep_config.termination_se == 2) {
11340 } else if (eep_config.termination_se == 3) {
11352 if (eep_config.termination_lvd == 0) {
11356 if (eep_config.termination_lvd == 1) {
11360 } else if (eep_config.termination_lvd == 2) {
11364 } else if (eep_config.termination_lvd == 3) {
11395 ADVEEP_38C1600_CONFIG eep_config;
11408 if (AdvGet38C1600EEPConfig(iop_base, &eep_config) !=
11409 eep_config.check_sum) {
11416 memcpy(&eep_config, &Default_38C1600_EEPROM_Config,
11426 eep_config.cfg_lsw &= ~ADV_EEPROM_BIOS_ENABLE;
11443 eep_config.cfg_lsw &= ~ADV_EEPROM_INTAB;
11450 eep_config.serial_number_word3 =
11452 eep_config.serial_number_word2 =
11454 eep_config.serial_number_word1 =
11457 AdvSet38C1600EEPConfig(iop_base, &eep_config);
11466 asc_dvc->wdtr_able = eep_config.wdtr_able;
11467 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1;
11468 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2;
11469 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3;
11470 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4;
11472 asc_dvc->tagqng_able = eep_config.tagqng_able;
11473 asc_dvc->cfg->disc_enable = eep_config.disc_enable;
11474 asc_dvc->max_host_qng = eep_config.max_host_qng;
11475 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
11476 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ASC_MAX_TID);
11477 asc_dvc->start_motor = eep_config.start_motor;
11478 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay;
11479 asc_dvc->bios_ctrl = eep_config.bios_ctrl;
11480 asc_dvc->no_scam = eep_config.scam_tolerant;
11507 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) {
11508 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
11509 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) {
11511 if (eep_config.max_host_qng == 0) {
11512 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG;
11514 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG;
11518 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) {
11519 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
11520 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) {
11522 if (eep_config.max_dvc_qng == 0) {
11523 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG;
11525 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG;
11533 if (eep_config.max_dvc_qng > eep_config.max_host_qng) {
11534 eep_config.max_dvc_qng = eep_config.max_host_qng;
11541 asc_dvc->max_host_qng = eep_config.max_host_qng;
11542 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng;
11552 if (eep_config.termination_se == 0) {
11556 if (eep_config.termination_se == 1) {
11560 } else if (eep_config.termination_se == 2) {
11564 } else if (eep_config.termination_se == 3) {
11576 if (eep_config.termination_lvd == 0) {
11580 if (eep_config.termination_lvd == 1) {
11584 } else if (eep_config.termination_lvd == 2) {
11588 } else if (eep_config.termination_lvd == 3) {
11981 ep = &boardp->eep_config.asc_eep;
12017 ep_3550 = &boardp->eep_config.adv_3550_eep;
12039 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep;
12067 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep;