Lines Matching +full:ultra +full:- +full:low
6 * Copyright (c) 1994-2001 Justin T. Gibbs.
7 * Copyright (c) 2000-2001 Adaptec Inc.
21 * 3. Neither the names of the above-listed copyright holders nor the names
86 #define SUBID_9005_TYPE_LCCARD 0x1 /* Low Cost Card */
182 "Adaptec 1480A Ultra SCSI adapter",
188 "Adaptec 2940A Ultra SCSI adapter",
194 "Adaptec 2940A/CN Ultra SCSI adapter",
200 "Adaptec 2930C Ultra SCSI adapter (VAR)",
244 "Adaptec 2940 Ultra SCSI adapter",
250 "Adaptec 3940 Ultra SCSI adapter",
256 "Adaptec 2944 Ultra SCSI adapter",
262 "Adaptec 3944 Ultra SCSI adapter",
268 "Adaptec 398X Ultra SCSI RAID adapter",
278 "Adaptec 4944 Ultra SCSI adapter",
284 "Adaptec 2930 Ultra SCSI adapter",
290 "Adaptec 2940 Pro Ultra SCSI adapter",
296 "Adaptec 2940/CN Ultra SCSI adapter",
346 "Adaptec AAA-131 Ultra2 RAID adapter",
402 "Adaptec 2940/DUAL Ultra SCSI adapter",
408 "Adaptec 3940A Ultra SCSI adapter",
414 "Adaptec 3944A Ultra SCSI adapter",
420 "Adaptec aic7895 Ultra SCSI adapter (ARO)",
495 "Adaptec aic7860 Ultra SCSI adapter",
507 "Adaptec aic7880 Ultra SCSI adapter",
525 "Adaptec aic7895 Ultra SCSI adapter",
571 #define REXTVALID 0x00001000ul /* ultra cards only */
694 if (entry->full_id == (full_id & entry->id_mask)) { in ahc_find_pci_device()
696 if (entry->name == NULL) in ahc_find_pci_device()
717 error = entry->setup(ahc); in ahc_pci_config()
720 ahc->chip |= AHC_PCI; in ahc_pci_config()
721 ahc->description = entry->name; in ahc_pci_config()
723 pci_set_power_state(ahc->dev_softc, AHC_POWER_STATE_D0); in ahc_pci_config()
737 devconfig = ahc_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4); in ahc_pci_config()
745 if ((ahc->flags & AHC_39BIT_ADDRESSING) != 0) { in ahc_pci_config()
756 ahc_pci_write_config(ahc->dev_softc, DEVCONFIG, devconfig, /*bytes*/4); in ahc_pci_config()
759 command = ahc_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_config()
762 ahc_pci_write_config(ahc->dev_softc, PCIR_COMMAND, command, /*bytes*/2); in ahc_pci_config()
765 ahc->flags |= AHC_PAGESCBS; in ahc_pci_config()
779 if ((ahc->flags & AHC_DISABLE_PCI_PERR) != 0) in ahc_pci_config()
780 ahc->seqctl |= FAILDIS; in ahc_pci_config()
782 ahc->bus_intr = ahc_pci_intr; in ahc_pci_config()
783 ahc->bus_chip_init = ahc_pci_chip_init; in ahc_pci_config()
788 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_config()
804 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_config()
807 /* Perform ALT-Mode Setup */ in ahc_pci_config()
821 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_pci_config()
834 if ((ahc->bugs & AHC_CACHETHEN_DIS_BUG) != 0) in ahc_pci_config()
837 if ((ahc->bugs & AHC_CACHETHEN_BUG) != 0) in ahc_pci_config()
842 ahc->pci_cachesize = in ahc_pci_config()
843 ahc_pci_read_config(ahc->dev_softc, CSIZE_LATTIME, in ahc_pci_config()
845 ahc->pci_cachesize *= 4; in ahc_pci_config()
847 if ((ahc->bugs & AHC_PCI_2_1_RETRY_BUG) != 0 in ahc_pci_config()
848 && ahc->pci_cachesize == 4) { in ahc_pci_config()
850 ahc_pci_write_config(ahc->dev_softc, CSIZE_LATTIME, in ahc_pci_config()
852 ahc->pci_cachesize = 0; in ahc_pci_config()
856 * We cannot perform ULTRA speeds without the presence in ahc_pci_config()
859 if ((ahc->features & AHC_ULTRA) != 0) { in ahc_pci_config()
862 devconfig = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_config()
865 ahc->features &= ~AHC_ULTRA; in ahc_pci_config()
868 /* See if we have a SEEPROM and perform auto-term */ in ahc_pci_config()
877 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_pci_config()
883 if (ahc->flags & AHC_USEDEFAULTS) { in ahc_pci_config()
890 if ((ahc->flags & AHC_NO_BIOS_INIT) == 0 in ahc_pci_config()
894 ahc->flags &= ~AHC_USEDEFAULTS; in ahc_pci_config()
895 ahc->flags |= AHC_BIOS_ENABLED; in ahc_pci_config()
906 ahc->our_id = our_id; in ahc_pci_config()
921 ahc->flags |= AHC_TERM_ENB_A; in ahc_pci_config()
927 ahc->bus_softc.pci_softc.devconfig = in ahc_pci_config()
928 ahc_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4); in ahc_pci_config()
929 ahc->bus_softc.pci_softc.command = in ahc_pci_config()
930 ahc_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/1); in ahc_pci_config()
931 ahc->bus_softc.pci_softc.csize_lattime = in ahc_pci_config()
932 ahc_pci_read_config(ahc->dev_softc, CSIZE_LATTIME, /*bytes*/1); in ahc_pci_config()
933 ahc->bus_softc.pci_softc.dscommand0 = ahc_inb(ahc, DSCOMMAND0); in ahc_pci_config()
934 ahc->bus_softc.pci_softc.dspcistatus = ahc_inb(ahc, DSPCISTATUS); in ahc_pci_config()
935 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_config()
940 ahc->bus_softc.pci_softc.optionmode = ahc_inb(ahc, OPTIONMODE); in ahc_pci_config()
941 ahc->bus_softc.pci_softc.targcrccnt = ahc_inw(ahc, TARGCRCCNT); in ahc_pci_config()
943 ahc->bus_softc.pci_softc.crccontrol1 = in ahc_pci_config()
946 if ((ahc->features & AHC_MULTI_FUNC) != 0) in ahc_pci_config()
947 ahc->bus_softc.pci_softc.scbbaddr = ahc_inb(ahc, SCBBADDR); in ahc_pci_config()
949 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_config()
950 ahc->bus_softc.pci_softc.dff_thrsh = ahc_inb(ahc, DFF_THRSH); in ahc_pci_config()
956 ahc->init_level++; in ahc_pci_config()
976 chip = ahc->chip & AHC_CHIPID_MASK; in ahc_ext_scbram_present()
977 devconfig = ahc_pci_read_config(ahc->dev_softc, in ahc_ext_scbram_present()
981 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_ext_scbram_present()
1010 if (ahc->features & AHC_MULTI_FUNC) { in ahc_scbram_config()
1015 ahc_outb(ahc, SCBBADDR, ahc_get_pci_function(ahc->dev_softc)); in ahc_scbram_config()
1018 ahc->flags &= ~AHC_LSCBS_ENABLED; in ahc_scbram_config()
1020 ahc->flags |= AHC_LSCBS_ENABLED; in ahc_scbram_config()
1021 devconfig = ahc_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4); in ahc_scbram_config()
1022 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_scbram_config()
1054 ahc_pci_write_config(ahc->dev_softc, DEVCONFIG, devconfig, /*bytes*/4); in ahc_scbram_config()
1124 if ((ahc->features & AHC_LARGE_SCBS) != 0) { in ahc_probe_ext_scbram()
1137 ahc->flags |= AHC_SCB_BTT; in ahc_probe_ext_scbram()
1177 cmd = ahc_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_test_register_access()
1178 ahc_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_test_register_access()
1200 ahc->flags |= AHC_NO_BIOS_INIT; in ahc_pci_test_register_access()
1217 status1 = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_test_register_access()
1219 ahc_pci_write_config(ahc->dev_softc, PCIR_STATUS + 1, in ahc_pci_test_register_access()
1229 status1 = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_test_register_access()
1238 status1 = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_test_register_access()
1240 ahc_pci_write_config(ahc->dev_softc, PCIR_STATUS + 1, in ahc_pci_test_register_access()
1244 ahc_pci_write_config(ahc->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2); in ahc_pci_test_register_access()
1264 sc = ahc->seep_config; in check_extport()
1267 * For some multi-channel devices, the c46 is simply too in check_extport()
1272 if (ahc->flags & AHC_LARGE_SEEPROM) in check_extport()
1293 start_addr = 32 * (ahc->channel - 'A'); in check_extport()
1317 ahc->flags |= AHC_LARGE_SEEPROM; in check_extport()
1346 ahc->flags |= AHC_SCB_CONFIG_USED; in check_extport()
1359 ahc->flags |= AHC_USEDEFAULTS; in check_extport()
1360 kfree(ahc->seep_config); in check_extport()
1361 ahc->seep_config = NULL; in check_extport()
1370 * necessary for auto-termination control. This assumption in check_extport()
1376 * Some low-cost chips have SEEPROM and auto-term control built in check_extport()
1380 if ((ahc->features & AHC_SPIOCAP) != 0) { in check_extport()
1386 ahc->flags |= AHC_HAS_TERM_LOGIC; in check_extport()
1388 configure_termination(ahc, &sd, sc->adapter_control, sxfrctl1); in check_extport()
1392 if ((sc->adapter_control & CFSTERM) != 0) in check_extport()
1395 printk("%s: Low byte termination %sabled\n", in check_extport()
1409 int max_targ = sc->max_targets & CFMAXTARG; in ahc_parse_pci_eeprom()
1416 if ((sc->adapter_control & CFULTRAEN) != 0) { in ahc_parse_pci_eeprom()
1422 if ((sc->device_flags[i] & CFSYNCHISULTRA) != 0) { in ahc_parse_pci_eeprom()
1423 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_parse_pci_eeprom()
1434 if (sc->device_flags[i] & CFDISC) in ahc_parse_pci_eeprom()
1436 if ((ahc->flags & AHC_NEWEEPROM_FMT) != 0) { in ahc_parse_pci_eeprom()
1437 if ((sc->device_flags[i] & CFSYNCHISULTRA) != 0) in ahc_parse_pci_eeprom()
1439 } else if ((sc->adapter_control & CFULTRAEN) != 0) { in ahc_parse_pci_eeprom()
1442 if ((sc->device_flags[i] & CFXFER) == 0x04 in ahc_parse_pci_eeprom()
1444 /* Treat 10MHz as a non-ultra speed */ in ahc_parse_pci_eeprom()
1445 sc->device_flags[i] &= ~CFXFER; in ahc_parse_pci_eeprom()
1448 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_parse_pci_eeprom()
1451 if (sc->device_flags[i] & CFSYNCH) in ahc_parse_pci_eeprom()
1458 * The ultra enable bits contain the in ahc_parse_pci_eeprom()
1462 scsirate = (sc->device_flags[i] & CFXFER) in ahc_parse_pci_eeprom()
1464 if (sc->device_flags[i] & CFWIDEB) in ahc_parse_pci_eeprom()
1467 scsirate = (sc->device_flags[i] & CFXFER) << 4; in ahc_parse_pci_eeprom()
1468 if (sc->device_flags[i] & CFSYNCH) in ahc_parse_pci_eeprom()
1470 if (sc->device_flags[i] & CFWIDEB) in ahc_parse_pci_eeprom()
1475 ahc->our_id = sc->brtime_id & CFSCSIID; in ahc_parse_pci_eeprom()
1477 scsi_conf = (ahc->our_id & 0x7); in ahc_parse_pci_eeprom()
1478 if (sc->adapter_control & CFSPARITY) in ahc_parse_pci_eeprom()
1480 if (sc->adapter_control & CFRESETB) in ahc_parse_pci_eeprom()
1483 ahc->flags |= (sc->adapter_control & CFBOOTCHAN) >> CFBOOTCHANSHIFT; in ahc_parse_pci_eeprom()
1485 if (sc->bios_control & CFEXTEND) in ahc_parse_pci_eeprom()
1486 ahc->flags |= AHC_EXTENDED_TRANS_A; in ahc_parse_pci_eeprom()
1488 if (sc->bios_control & CFBIOSEN) in ahc_parse_pci_eeprom()
1489 ahc->flags |= AHC_BIOS_ENABLED; in ahc_parse_pci_eeprom()
1490 if (ahc->features & AHC_ULTRA in ahc_parse_pci_eeprom()
1491 && (ahc->flags & AHC_NEWEEPROM_FMT) == 0) { in ahc_parse_pci_eeprom()
1492 /* Should we enable Ultra mode? */ in ahc_parse_pci_eeprom()
1493 if (!(sc->adapter_control & CFULTRAEN)) in ahc_parse_pci_eeprom()
1494 /* Treat us as a non-ultra card */ in ahc_parse_pci_eeprom()
1498 if (sc->signature == CFSIGNATURE in ahc_parse_pci_eeprom()
1499 || sc->signature == CFSIGNATURE2) { in ahc_parse_pci_eeprom()
1503 devconfig = ahc_pci_read_config(ahc->dev_softc, in ahc_parse_pci_eeprom()
1506 if ((sc->bios_control & CFSTPWLEVEL) != 0) in ahc_parse_pci_eeprom()
1508 ahc_pci_write_config(ahc->dev_softc, DEVCONFIG, in ahc_parse_pci_eeprom()
1540 SEEPROM_OUTB(sd, sd->sd_MS | sd->sd_CS); in configure_termination()
1542 || (ahc->features & AHC_NEW_TERMCTL) != 0) { in configure_termination()
1557 if ((ahc->features & AHC_NEW_TERMCTL) != 0) { in configure_termination()
1582 } else if ((ahc->features & AHC_SPIOCAP) != 0) { in configure_termination()
1595 if ((ahc->features & AHC_WIDE) == 0) in configure_termination()
1599 && (ahc->features & AHC_ULTRA2) == 0) { in configure_termination()
1604 if ((ahc->features & AHC_WIDE) != 0) in configure_termination()
1615 if ((ahc->flags & AHC_INT50_SPEEDFLEX) != 0) { in configure_termination()
1631 * Secondary Low Term Enable = BRDDAT5 (7890) in configure_termination()
1634 if ((ahc->features & AHC_ULTRA2) == 0 in configure_termination()
1653 if ((ahc->features & AHC_WIDE) != 0 in configure_termination()
1659 if ((ahc->flags & AHC_INT50_SPEEDFLEX) != 0) in configure_termination()
1673 if ((ahc->features & AHC_ULTRA2) != 0) in configure_termination()
1678 if ((ahc->flags & AHC_INT50_SPEEDFLEX) != 0) in configure_termination()
1692 printk("%s: Primary Low Byte termination " in configure_termination()
1719 (ahc->features & AHC_ULTRA2) ? "Primary " in configure_termination()
1724 && (ahc->features & AHC_WIDE) != 0) { in configure_termination()
1729 (ahc->features & AHC_ULTRA2) in configure_termination()
1739 if ((ahc->features & AHC_WIDE) != 0) in configure_termination()
1742 SEEPROM_OUTB(sd, sd->sd_MS); /* Clear CS */ in configure_termination()
1755 * BRDDAT5 = Enable Secondary Low Byte termination in ahc_new_term_detect()
1757 * BRDDAT3 = Enable Primary low byte termination in ahc_new_term_detect()
1836 if ((ahc->features & AHC_SPIOCAP) != 0 in ahc_acquire_seeprom()
1847 SEEPROM_OUTB(sd, sd->sd_MS); in ahc_acquire_seeprom()
1849 while (--wait && ((SEEPROM_STATUS_INB(sd) & sd->sd_RDY) == 0)) { in ahc_acquire_seeprom()
1852 if ((SEEPROM_STATUS_INB(sd) & sd->sd_RDY) == 0) { in ahc_acquire_seeprom()
1871 if ((ahc->chip & AHC_CHIPID_MASK) == AHC_AIC7895) { in write_brdctl()
1873 if (ahc->channel == 'B') in write_brdctl()
1875 } else if ((ahc->features & AHC_ULTRA2) != 0) { in write_brdctl()
1885 if ((ahc->features & AHC_ULTRA2) != 0) in write_brdctl()
1891 if ((ahc->features & AHC_ULTRA2) != 0) in write_brdctl()
1904 if ((ahc->chip & AHC_CHIPID_MASK) == AHC_AIC7895) { in read_brdctl()
1906 if (ahc->channel == 'B') in read_brdctl()
1908 } else if ((ahc->features & AHC_ULTRA2) != 0) { in read_brdctl()
1930 status1 = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_intr()
1938 ahc->pci_target_perr_count++; in ahc_pci_intr()
1960 ahc_pci_write_config(ahc->dev_softc, PCIR_STATUS + 1, in ahc_pci_intr()
1970 if (ahc->pci_target_perr_count > AHC_PCI_TARGET_PERR_THRESH) { in ahc_pci_intr()
1980 ahc->seqctl |= FAILDIS; in ahc_pci_intr()
1981 ahc_outb(ahc, SEQCTL, ahc->seqctl); in ahc_pci_intr()
1989 ahc_outb(ahc, DSCOMMAND0, ahc->bus_softc.pci_softc.dscommand0); in ahc_pci_chip_init()
1990 ahc_outb(ahc, DSPCISTATUS, ahc->bus_softc.pci_softc.dspcistatus); in ahc_pci_chip_init()
1991 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_chip_init()
1996 ahc_outb(ahc, OPTIONMODE, ahc->bus_softc.pci_softc.optionmode); in ahc_pci_chip_init()
1997 ahc_outw(ahc, TARGCRCCNT, ahc->bus_softc.pci_softc.targcrccnt); in ahc_pci_chip_init()
2000 ahc->bus_softc.pci_softc.crccontrol1); in ahc_pci_chip_init()
2002 if ((ahc->features & AHC_MULTI_FUNC) != 0) in ahc_pci_chip_init()
2003 ahc_outb(ahc, SCBBADDR, ahc->bus_softc.pci_softc.scbbaddr); in ahc_pci_chip_init()
2005 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_chip_init()
2006 ahc_outb(ahc, DFF_THRSH, ahc->bus_softc.pci_softc.dff_thrsh); in ahc_pci_chip_init()
2021 ahc_pci_write_config(ahc->dev_softc, DEVCONFIG, in ahc_pci_resume()
2022 ahc->bus_softc.pci_softc.devconfig, /*bytes*/4); in ahc_pci_resume()
2023 ahc_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_resume()
2024 ahc->bus_softc.pci_softc.command, /*bytes*/1); in ahc_pci_resume()
2025 ahc_pci_write_config(ahc->dev_softc, CSIZE_LATTIME, in ahc_pci_resume()
2026 ahc->bus_softc.pci_softc.csize_lattime, /*bytes*/1); in ahc_pci_resume()
2027 if ((ahc->flags & AHC_HAS_TERM_LOGIC) != 0) { in ahc_pci_resume()
2038 ahc->seep_config->adapter_control, in ahc_pci_resume()
2051 pci = ahc->dev_softc; in ahc_aic785X_setup()
2052 ahc->channel = 'A'; in ahc_aic785X_setup()
2053 ahc->chip = AHC_AIC7850; in ahc_aic785X_setup()
2054 ahc->features = AHC_AIC7850_FE; in ahc_aic785X_setup()
2055 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic785X_setup()
2058 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG; in ahc_aic785X_setup()
2059 ahc->instruction_ram_size = 512; in ahc_aic785X_setup()
2069 pci = ahc->dev_softc; in ahc_aic7860_setup()
2070 ahc->channel = 'A'; in ahc_aic7860_setup()
2071 ahc->chip = AHC_AIC7860; in ahc_aic7860_setup()
2072 ahc->features = AHC_AIC7860_FE; in ahc_aic7860_setup()
2073 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic7860_setup()
2076 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG; in ahc_aic7860_setup()
2077 ahc->instruction_ram_size = 512; in ahc_aic7860_setup()
2089 ahc->features |= AHC_REMOVABLE; in ahc_apa1480_setup()
2097 ahc->channel = 'A'; in ahc_aic7870_setup()
2098 ahc->chip = AHC_AIC7870; in ahc_aic7870_setup()
2099 ahc->features = AHC_AIC7870_FE; in ahc_aic7870_setup()
2100 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic7870_setup()
2101 ahc->instruction_ram_size = 512; in ahc_aic7870_setup()
2110 ahc->features |= AHC_HVD; in ahc_aic7870h_setup()
2131 ahc->features |= AHC_HVD; in ahc_aha394Xh_setup()
2163 ahc->features |= AHC_HVD; in ahc_aha494Xh_setup()
2174 pci = ahc->dev_softc; in ahc_aic7880_setup()
2175 ahc->channel = 'A'; in ahc_aic7880_setup()
2176 ahc->chip = AHC_AIC7880; in ahc_aic7880_setup()
2177 ahc->features = AHC_AIC7880_FE; in ahc_aic7880_setup()
2178 ahc->bugs |= AHC_TMODE_WIDEODD_BUG; in ahc_aic7880_setup()
2181 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG; in ahc_aic7880_setup()
2183 ahc->bugs |= AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic7880_setup()
2185 ahc->instruction_ram_size = 512; in ahc_aic7880_setup()
2194 ahc->features |= AHC_HVD; in ahc_aic7880h_setup()
2204 ahc->flags |= AHC_INT50_SPEEDFLEX; in ahc_aha2940Pro_setup()
2224 ahc->features |= AHC_HVD; in ahc_aha394XUh_setup()
2246 pci = ahc->dev_softc; in ahc_aic7890_setup()
2247 ahc->channel = 'A'; in ahc_aic7890_setup()
2248 ahc->chip = AHC_AIC7890; in ahc_aic7890_setup()
2249 ahc->features = AHC_AIC7890_FE; in ahc_aic7890_setup()
2250 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7890_setup()
2253 ahc->bugs |= AHC_AUTOFLUSH_BUG|AHC_CACHETHEN_BUG; in ahc_aic7890_setup()
2254 ahc->instruction_ram_size = 768; in ahc_aic7890_setup()
2262 ahc->channel = 'A'; in ahc_aic7892_setup()
2263 ahc->chip = AHC_AIC7892; in ahc_aic7892_setup()
2264 ahc->features = AHC_AIC7892_FE; in ahc_aic7892_setup()
2265 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7892_setup()
2266 ahc->bugs |= AHC_SCBCHAN_UPLOAD_BUG; in ahc_aic7892_setup()
2267 ahc->instruction_ram_size = 1024; in ahc_aic7892_setup()
2277 pci = ahc->dev_softc; in ahc_aic7895_setup()
2278 ahc->channel = ahc_get_pci_function(pci) == 1 ? 'B' : 'A'; in ahc_aic7895_setup()
2284 ahc->chip = AHC_AIC7895C; in ahc_aic7895_setup()
2285 ahc->features = AHC_AIC7895C_FE; in ahc_aic7895_setup()
2289 ahc->chip = AHC_AIC7895; in ahc_aic7895_setup()
2290 ahc->features = AHC_AIC7895_FE; in ahc_aic7895_setup()
2301 ahc->bugs |= AHC_PCI_MWI_BUG; in ahc_aic7895_setup()
2307 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_PCI_2_1_RETRY_BUG in ahc_aic7895_setup()
2322 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7895_setup()
2323 ahc->instruction_ram_size = 512; in ahc_aic7895_setup()
2332 ahc->features |= AHC_HVD; in ahc_aic7895h_setup()
2342 pci = ahc->dev_softc; in ahc_aic7896_setup()
2343 ahc->channel = ahc_get_pci_function(pci) == 1 ? 'B' : 'A'; in ahc_aic7896_setup()
2344 ahc->chip = AHC_AIC7896; in ahc_aic7896_setup()
2345 ahc->features = AHC_AIC7896_FE; in ahc_aic7896_setup()
2346 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7896_setup()
2347 ahc->bugs |= AHC_CACHETHEN_DIS_BUG; in ahc_aic7896_setup()
2348 ahc->instruction_ram_size = 768; in ahc_aic7896_setup()
2357 pci = ahc->dev_softc; in ahc_aic7899_setup()
2358 ahc->channel = ahc_get_pci_function(pci) == 1 ? 'B' : 'A'; in ahc_aic7899_setup()
2359 ahc->chip = AHC_AIC7899; in ahc_aic7899_setup()
2360 ahc->features = AHC_AIC7899_FE; in ahc_aic7899_setup()
2361 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7899_setup()
2362 ahc->bugs |= AHC_SCBCHAN_UPLOAD_BUG; in ahc_aic7899_setup()
2363 ahc->instruction_ram_size = 1024; in ahc_aic7899_setup()
2375 ahc->features |= AHC_REMOVABLE; in ahc_aha29160C_setup()
2391 pci = ahc->dev_softc; in ahc_aha394XX_setup()
2394 ahc->channel = 'A'; in ahc_aha394XX_setup()
2397 ahc->channel = 'B'; in ahc_aha394XX_setup()
2403 ahc->channel = 'A'; in ahc_aha394XX_setup()
2413 pci = ahc->dev_softc; in ahc_aha398XX_setup()
2416 ahc->channel = 'A'; in ahc_aha398XX_setup()
2419 ahc->channel = 'B'; in ahc_aha398XX_setup()
2422 ahc->channel = 'C'; in ahc_aha398XX_setup()
2428 ahc->channel = 'A'; in ahc_aha398XX_setup()
2431 ahc->flags |= AHC_LARGE_SEEPROM; in ahc_aha398XX_setup()
2440 pci = ahc->dev_softc; in ahc_aha494XX_setup()
2443 ahc->channel = 'A'; in ahc_aha494XX_setup()
2446 ahc->channel = 'B'; in ahc_aha494XX_setup()
2449 ahc->channel = 'C'; in ahc_aha494XX_setup()
2452 ahc->channel = 'D'; in ahc_aha494XX_setup()
2458 ahc->channel = 'A'; in ahc_aha494XX_setup()
2460 ahc->flags |= AHC_LARGE_SEEPROM; in ahc_aha494XX_setup()