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