Searched refs:eep_config (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/scsi/ |
H A D | advansys.c | 2368 } eep_config; member in struct:asc_board 3045 ep = &boardp->eep_config.asc_eep; asc_prt_asc_board_eeprom() 3123 ep_3550 = &boardp->eep_config.adv_3550_eep; asc_prt_adv_board_eeprom() 3125 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; asc_prt_adv_board_eeprom() 3127 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; asc_prt_adv_board_eeprom() 9539 ASCEEP_CONFIG *eep_config; AscInitFromEEP() local 9566 eep_config = (ASCEEP_CONFIG *)&eep_config_buf; AscInitFromEEP() 9574 chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type); AscInitFromEEP() 9582 if (eep_config->cfg_lsw != cfg_lsw) { AscInitFromEEP() 9584 eep_config->cfg_lsw = AscInitFromEEP() 9587 if (eep_config->cfg_msw != cfg_msw) { AscInitFromEEP() 9589 eep_config->cfg_msw = AscInitFromEEP() 9594 eep_config->cfg_msw &= ~ASC_CFG_MSW_CLR_MASK; AscInitFromEEP() 9595 eep_config->cfg_lsw |= ASC_CFG0_HOST_INT_ON; AscInitFromEEP() 9596 ASC_DBG(1, "eep_config->chksum 0x%x\n", eep_config->chksum); AscInitFromEEP() 9597 if (chksum != eep_config->chksum) { AscInitFromEEP() 9601 eep_config->init_sdtr = 0xFF; AscInitFromEEP() 9602 eep_config->disc_enable = 0xFF; AscInitFromEEP() 9603 eep_config->start_motor = 0xFF; AscInitFromEEP() 9604 eep_config->use_cmd_qng = 0; AscInitFromEEP() 9605 eep_config->max_total_qng = 0xF0; AscInitFromEEP() 9606 eep_config->max_tag_qng = 0x20; AscInitFromEEP() 9607 eep_config->cntl = 0xBFFF; AscInitFromEEP() 9608 ASC_EEP_SET_CHIP_ID(eep_config, 7); AscInitFromEEP() 9609 eep_config->no_scam = 0; AscInitFromEEP() 9610 eep_config->adapter_info[0] = 0; AscInitFromEEP() 9611 eep_config->adapter_info[1] = 0; AscInitFromEEP() 9612 eep_config->adapter_info[2] = 0; AscInitFromEEP() 9613 eep_config->adapter_info[3] = 0; AscInitFromEEP() 9614 eep_config->adapter_info[4] = 0; AscInitFromEEP() 9616 eep_config->adapter_info[5] = 0xBB; AscInitFromEEP() 9624 asc_dvc->cfg->sdtr_enable = eep_config->init_sdtr; AscInitFromEEP() 9625 asc_dvc->cfg->disc_enable = eep_config->disc_enable; AscInitFromEEP() 9626 asc_dvc->cfg->cmd_qng_enabled = eep_config->use_cmd_qng; AscInitFromEEP() 9627 asc_dvc->cfg->isa_dma_speed = ASC_EEP_GET_DMA_SPD(eep_config); AscInitFromEEP() 9628 asc_dvc->start_motor = eep_config->start_motor; AscInitFromEEP() 9629 asc_dvc->dvc_cntl = eep_config->cntl; AscInitFromEEP() 9630 asc_dvc->no_scam = eep_config->no_scam; AscInitFromEEP() 9631 asc_dvc->cfg->adapter_info[0] = eep_config->adapter_info[0]; AscInitFromEEP() 9632 asc_dvc->cfg->adapter_info[1] = eep_config->adapter_info[1]; AscInitFromEEP() 9633 asc_dvc->cfg->adapter_info[2] = eep_config->adapter_info[2]; AscInitFromEEP() 9634 asc_dvc->cfg->adapter_info[3] = eep_config->adapter_info[3]; AscInitFromEEP() 9635 asc_dvc->cfg->adapter_info[4] = eep_config->adapter_info[4]; AscInitFromEEP() 9636 asc_dvc->cfg->adapter_info[5] = eep_config->adapter_info[5]; AscInitFromEEP() 9640 eep_config->max_total_qng = AscInitFromEEP() 9642 eep_config->max_tag_qng = AscInitFromEEP() 9645 eep_config->cfg_msw |= 0x0800; AscInitFromEEP() 9648 eep_config->max_total_qng = ASC_MAX_PCI_INRAM_TOTAL_QNG; AscInitFromEEP() 9649 eep_config->max_tag_qng = ASC_MAX_INRAM_TAG_QNG; AscInitFromEEP() 9653 if (eep_config->max_total_qng < ASC_MIN_TOTAL_QNG) { AscInitFromEEP() 9654 eep_config->max_total_qng = ASC_MIN_TOTAL_QNG; AscInitFromEEP() 9656 if (eep_config->max_total_qng > ASC_MAX_TOTAL_QNG) { AscInitFromEEP() 9657 eep_config->max_total_qng = ASC_MAX_TOTAL_QNG; AscInitFromEEP() 9659 if (eep_config->max_tag_qng > eep_config->max_total_qng) { AscInitFromEEP() 9660 eep_config->max_tag_qng = eep_config->max_total_qng; AscInitFromEEP() 9662 if (eep_config->max_tag_qng < ASC_MIN_TAG_Q_PER_DVC) { AscInitFromEEP() 9663 eep_config->max_tag_qng = ASC_MIN_TAG_Q_PER_DVC; AscInitFromEEP() 9665 asc_dvc->max_total_qng = eep_config->max_total_qng; AscInitFromEEP() 9666 if ((eep_config->use_cmd_qng & eep_config->disc_enable) != AscInitFromEEP() 9667 eep_config->use_cmd_qng) { AscInitFromEEP() 9668 eep_config->disc_enable = eep_config->use_cmd_qng; AscInitFromEEP() 9671 ASC_EEP_SET_CHIP_ID(eep_config, AscInitFromEEP() 9672 ASC_EEP_GET_CHIP_ID(eep_config) & ASC_MAX_TID); AscInitFromEEP() 9673 asc_dvc->cfg->chip_scsi_id = ASC_EEP_GET_CHIP_ID(eep_config); AscInitFromEEP() 9680 asc_dvc->dos_int13_table[i] = eep_config->dos_int13_table[i]; AscInitFromEEP() 9681 asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng; AscInitFromEEP() 9686 eep_config->cfg_msw = AscGetChipCfgMsw(iop_base); AscInitFromEEP() 9688 if ((i = AscSetEEPConfig(iop_base, eep_config, AscInitFromEEP() 10582 ADVEEP_3550_CONFIG eep_config; AdvInitFrom3550EEP() local 10593 if (AdvGet3550EEPConfig(iop_base, &eep_config) != eep_config.check_sum) { AdvInitFrom3550EEP() 10599 memcpy(&eep_config, &Default_3550_EEPROM_Config, AdvInitFrom3550EEP() 10606 eep_config.serial_number_word3 = AdvInitFrom3550EEP() 10609 eep_config.serial_number_word2 = AdvInitFrom3550EEP() 10612 eep_config.serial_number_word1 = AdvInitFrom3550EEP() 10615 AdvSet3550EEPConfig(iop_base, &eep_config); AdvInitFrom3550EEP() 10623 asc_dvc->wdtr_able = eep_config.wdtr_able; AdvInitFrom3550EEP() 10624 asc_dvc->sdtr_able = eep_config.sdtr_able; AdvInitFrom3550EEP() 10625 asc_dvc->ultra_able = eep_config.ultra_able; AdvInitFrom3550EEP() 10626 asc_dvc->tagqng_able = eep_config.tagqng_able; AdvInitFrom3550EEP() 10627 asc_dvc->cfg->disc_enable = eep_config.disc_enable; AdvInitFrom3550EEP() 10628 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom3550EEP() 10629 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom3550EEP() 10630 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); AdvInitFrom3550EEP() 10631 asc_dvc->start_motor = eep_config.start_motor; AdvInitFrom3550EEP() 10632 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; AdvInitFrom3550EEP() 10633 asc_dvc->bios_ctrl = eep_config.bios_ctrl; AdvInitFrom3550EEP() 10634 asc_dvc->no_scam = eep_config.scam_tolerant; AdvInitFrom3550EEP() 10635 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; AdvInitFrom3550EEP() 10636 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; AdvInitFrom3550EEP() 10637 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; AdvInitFrom3550EEP() 10643 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { AdvInitFrom3550EEP() 10644 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom3550EEP() 10645 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { AdvInitFrom3550EEP() 10647 if (eep_config.max_host_qng == 0) { AdvInitFrom3550EEP() 10648 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom3550EEP() 10650 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; AdvInitFrom3550EEP() 10654 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { AdvInitFrom3550EEP() 10655 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom3550EEP() 10656 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { AdvInitFrom3550EEP() 10658 if (eep_config.max_dvc_qng == 0) { AdvInitFrom3550EEP() 10659 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom3550EEP() 10661 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; AdvInitFrom3550EEP() 10669 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { AdvInitFrom3550EEP() 10670 eep_config.max_dvc_qng = eep_config.max_host_qng; AdvInitFrom3550EEP() 10677 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom3550EEP() 10678 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom3550EEP() 10688 if (eep_config.termination == 0) { AdvInitFrom3550EEP() 10692 if (eep_config.termination == 1) { AdvInitFrom3550EEP() 10696 } else if (eep_config.termination == 2) { AdvInitFrom3550EEP() 10700 } else if (eep_config.termination == 3) { AdvInitFrom3550EEP() 10732 ADVEEP_38C0800_CONFIG eep_config; AdvInitFrom38C0800EEP() local 10745 if (AdvGet38C0800EEPConfig(iop_base, &eep_config) != AdvInitFrom38C0800EEP() 10746 eep_config.check_sum) { AdvInitFrom38C0800EEP() 10752 memcpy(&eep_config, &Default_38C0800_EEPROM_Config, AdvInitFrom38C0800EEP() 10759 eep_config.serial_number_word3 = AdvInitFrom38C0800EEP() 10762 eep_config.serial_number_word2 = AdvInitFrom38C0800EEP() 10765 eep_config.serial_number_word1 = AdvInitFrom38C0800EEP() 10768 AdvSet38C0800EEPConfig(iop_base, &eep_config); AdvInitFrom38C0800EEP() 10776 asc_dvc->wdtr_able = eep_config.wdtr_able; AdvInitFrom38C0800EEP() 10777 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; AdvInitFrom38C0800EEP() 10778 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; AdvInitFrom38C0800EEP() 10779 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; AdvInitFrom38C0800EEP() 10780 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; AdvInitFrom38C0800EEP() 10781 asc_dvc->tagqng_able = eep_config.tagqng_able; AdvInitFrom38C0800EEP() 10782 asc_dvc->cfg->disc_enable = eep_config.disc_enable; AdvInitFrom38C0800EEP() 10783 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom38C0800EEP() 10784 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom38C0800EEP() 10785 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ADV_MAX_TID); AdvInitFrom38C0800EEP() 10786 asc_dvc->start_motor = eep_config.start_motor; AdvInitFrom38C0800EEP() 10787 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; AdvInitFrom38C0800EEP() 10788 asc_dvc->bios_ctrl = eep_config.bios_ctrl; AdvInitFrom38C0800EEP() 10789 asc_dvc->no_scam = eep_config.scam_tolerant; AdvInitFrom38C0800EEP() 10790 asc_dvc->cfg->serial1 = eep_config.serial_number_word1; AdvInitFrom38C0800EEP() 10791 asc_dvc->cfg->serial2 = eep_config.serial_number_word2; AdvInitFrom38C0800EEP() 10792 asc_dvc->cfg->serial3 = eep_config.serial_number_word3; AdvInitFrom38C0800EEP() 10819 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { AdvInitFrom38C0800EEP() 10820 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom38C0800EEP() 10821 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { AdvInitFrom38C0800EEP() 10823 if (eep_config.max_host_qng == 0) { AdvInitFrom38C0800EEP() 10824 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom38C0800EEP() 10826 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; AdvInitFrom38C0800EEP() 10830 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { AdvInitFrom38C0800EEP() 10831 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom38C0800EEP() 10832 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { AdvInitFrom38C0800EEP() 10834 if (eep_config.max_dvc_qng == 0) { AdvInitFrom38C0800EEP() 10835 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom38C0800EEP() 10837 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; AdvInitFrom38C0800EEP() 10845 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { AdvInitFrom38C0800EEP() 10846 eep_config.max_dvc_qng = eep_config.max_host_qng; AdvInitFrom38C0800EEP() 10853 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom38C0800EEP() 10854 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom38C0800EEP() 10864 if (eep_config.termination_se == 0) { AdvInitFrom38C0800EEP() 10868 if (eep_config.termination_se == 1) { AdvInitFrom38C0800EEP() 10872 } else if (eep_config.termination_se == 2) { AdvInitFrom38C0800EEP() 10876 } else if (eep_config.termination_se == 3) { AdvInitFrom38C0800EEP() 10888 if (eep_config.termination_lvd == 0) { AdvInitFrom38C0800EEP() 10892 if (eep_config.termination_lvd == 1) { AdvInitFrom38C0800EEP() 10896 } else if (eep_config.termination_lvd == 2) { AdvInitFrom38C0800EEP() 10900 } else if (eep_config.termination_lvd == 3) { AdvInitFrom38C0800EEP() 10931 ADVEEP_38C1600_CONFIG eep_config; AdvInitFrom38C1600EEP() local 10944 if (AdvGet38C1600EEPConfig(iop_base, &eep_config) != AdvInitFrom38C1600EEP() 10945 eep_config.check_sum) { AdvInitFrom38C1600EEP() 10952 memcpy(&eep_config, &Default_38C1600_EEPROM_Config, AdvInitFrom38C1600EEP() 10962 eep_config.cfg_lsw &= ~ADV_EEPROM_BIOS_ENABLE; AdvInitFrom38C1600EEP() 10979 eep_config.cfg_lsw &= ~ADV_EEPROM_INTAB; AdvInitFrom38C1600EEP() 10986 eep_config.serial_number_word3 = AdvInitFrom38C1600EEP() 10988 eep_config.serial_number_word2 = AdvInitFrom38C1600EEP() 10990 eep_config.serial_number_word1 = AdvInitFrom38C1600EEP() 10993 AdvSet38C1600EEPConfig(iop_base, &eep_config); AdvInitFrom38C1600EEP() 11002 asc_dvc->wdtr_able = eep_config.wdtr_able; AdvInitFrom38C1600EEP() 11003 asc_dvc->sdtr_speed1 = eep_config.sdtr_speed1; AdvInitFrom38C1600EEP() 11004 asc_dvc->sdtr_speed2 = eep_config.sdtr_speed2; AdvInitFrom38C1600EEP() 11005 asc_dvc->sdtr_speed3 = eep_config.sdtr_speed3; AdvInitFrom38C1600EEP() 11006 asc_dvc->sdtr_speed4 = eep_config.sdtr_speed4; AdvInitFrom38C1600EEP() 11008 asc_dvc->tagqng_able = eep_config.tagqng_able; AdvInitFrom38C1600EEP() 11009 asc_dvc->cfg->disc_enable = eep_config.disc_enable; AdvInitFrom38C1600EEP() 11010 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom38C1600EEP() 11011 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom38C1600EEP() 11012 asc_dvc->chip_scsi_id = (eep_config.adapter_scsi_id & ASC_MAX_TID); AdvInitFrom38C1600EEP() 11013 asc_dvc->start_motor = eep_config.start_motor; AdvInitFrom38C1600EEP() 11014 asc_dvc->scsi_reset_wait = eep_config.scsi_reset_delay; AdvInitFrom38C1600EEP() 11015 asc_dvc->bios_ctrl = eep_config.bios_ctrl; AdvInitFrom38C1600EEP() 11016 asc_dvc->no_scam = eep_config.scam_tolerant; AdvInitFrom38C1600EEP() 11043 if (eep_config.max_host_qng > ASC_DEF_MAX_HOST_QNG) { AdvInitFrom38C1600EEP() 11044 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom38C1600EEP() 11045 } else if (eep_config.max_host_qng < ASC_DEF_MIN_HOST_QNG) { AdvInitFrom38C1600EEP() 11047 if (eep_config.max_host_qng == 0) { AdvInitFrom38C1600EEP() 11048 eep_config.max_host_qng = ASC_DEF_MAX_HOST_QNG; AdvInitFrom38C1600EEP() 11050 eep_config.max_host_qng = ASC_DEF_MIN_HOST_QNG; AdvInitFrom38C1600EEP() 11054 if (eep_config.max_dvc_qng > ASC_DEF_MAX_DVC_QNG) { AdvInitFrom38C1600EEP() 11055 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom38C1600EEP() 11056 } else if (eep_config.max_dvc_qng < ASC_DEF_MIN_DVC_QNG) { AdvInitFrom38C1600EEP() 11058 if (eep_config.max_dvc_qng == 0) { AdvInitFrom38C1600EEP() 11059 eep_config.max_dvc_qng = ASC_DEF_MAX_DVC_QNG; AdvInitFrom38C1600EEP() 11061 eep_config.max_dvc_qng = ASC_DEF_MIN_DVC_QNG; AdvInitFrom38C1600EEP() 11069 if (eep_config.max_dvc_qng > eep_config.max_host_qng) { AdvInitFrom38C1600EEP() 11070 eep_config.max_dvc_qng = eep_config.max_host_qng; AdvInitFrom38C1600EEP() 11077 asc_dvc->max_host_qng = eep_config.max_host_qng; AdvInitFrom38C1600EEP() 11078 asc_dvc->max_dvc_qng = eep_config.max_dvc_qng; AdvInitFrom38C1600EEP() 11088 if (eep_config.termination_se == 0) { AdvInitFrom38C1600EEP() 11092 if (eep_config.termination_se == 1) { AdvInitFrom38C1600EEP() 11096 } else if (eep_config.termination_se == 2) { AdvInitFrom38C1600EEP() 11100 } else if (eep_config.termination_se == 3) { AdvInitFrom38C1600EEP() 11112 if (eep_config.termination_lvd == 0) { AdvInitFrom38C1600EEP() 11116 if (eep_config.termination_lvd == 1) { AdvInitFrom38C1600EEP() 11120 } else if (eep_config.termination_lvd == 2) { AdvInitFrom38C1600EEP() 11124 } else if (eep_config.termination_lvd == 3) { AdvInitFrom38C1600EEP() 11502 ep = &boardp->eep_config.asc_eep; advansys_board_found() 11538 ep_3550 = &boardp->eep_config.adv_3550_eep; advansys_board_found() 11560 ep_38C0800 = &boardp->eep_config.adv_38C0800_eep; advansys_board_found() 11588 ep_38C1600 = &boardp->eep_config.adv_38C1600_eep; advansys_board_found()
|
Completed in 122 milliseconds