Lines Matching +full:fail +full:- +full:fast
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
353 "Adaptec AAA-131 Ultra2 RAID adapter",
608 int pcheck, int fast, int large);
701 if (entry->full_id == (full_id & entry->id_mask)) { in ahc_find_pci_device()
703 if (entry->name == NULL) in ahc_find_pci_device()
724 error = entry->setup(ahc); in ahc_pci_config()
727 ahc->chip |= AHC_PCI; in ahc_pci_config()
728 ahc->description = entry->name; in ahc_pci_config()
730 pci_set_power_state(ahc->dev_softc, AHC_POWER_STATE_D0); in ahc_pci_config()
744 devconfig = ahc_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4); in ahc_pci_config()
752 if ((ahc->flags & AHC_39BIT_ADDRESSING) != 0) { in ahc_pci_config()
763 ahc_pci_write_config(ahc->dev_softc, DEVCONFIG, devconfig, /*bytes*/4); in ahc_pci_config()
766 command = ahc_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_config()
769 ahc_pci_write_config(ahc->dev_softc, PCIR_COMMAND, command, /*bytes*/2); in ahc_pci_config()
772 ahc->flags |= AHC_PAGESCBS; in ahc_pci_config()
786 if ((ahc->flags & AHC_DISABLE_PCI_PERR) != 0) in ahc_pci_config()
787 ahc->seqctl |= FAILDIS; in ahc_pci_config()
789 ahc->bus_intr = ahc_pci_intr; in ahc_pci_config()
790 ahc->bus_chip_init = ahc_pci_chip_init; in ahc_pci_config()
795 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_config()
811 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_config()
814 /* Perform ALT-Mode Setup */ in ahc_pci_config()
828 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_pci_config()
841 if ((ahc->bugs & AHC_CACHETHEN_DIS_BUG) != 0) in ahc_pci_config()
844 if ((ahc->bugs & AHC_CACHETHEN_BUG) != 0) in ahc_pci_config()
849 ahc->pci_cachesize = in ahc_pci_config()
850 ahc_pci_read_config(ahc->dev_softc, CSIZE_LATTIME, in ahc_pci_config()
852 ahc->pci_cachesize *= 4; in ahc_pci_config()
854 if ((ahc->bugs & AHC_PCI_2_1_RETRY_BUG) != 0 in ahc_pci_config()
855 && ahc->pci_cachesize == 4) { in ahc_pci_config()
857 ahc_pci_write_config(ahc->dev_softc, CSIZE_LATTIME, in ahc_pci_config()
859 ahc->pci_cachesize = 0; in ahc_pci_config()
866 if ((ahc->features & AHC_ULTRA) != 0) { in ahc_pci_config()
869 devconfig = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_config()
872 ahc->features &= ~AHC_ULTRA; in ahc_pci_config()
875 /* See if we have a SEEPROM and perform auto-term */ in ahc_pci_config()
884 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_pci_config()
890 if (ahc->flags & AHC_USEDEFAULTS) { in ahc_pci_config()
897 if ((ahc->flags & AHC_NO_BIOS_INIT) == 0 in ahc_pci_config()
901 ahc->flags &= ~AHC_USEDEFAULTS; in ahc_pci_config()
902 ahc->flags |= AHC_BIOS_ENABLED; in ahc_pci_config()
913 ahc->our_id = our_id; in ahc_pci_config()
928 ahc->flags |= AHC_TERM_ENB_A; in ahc_pci_config()
934 ahc->bus_softc.pci_softc.devconfig = in ahc_pci_config()
935 ahc_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4); in ahc_pci_config()
936 ahc->bus_softc.pci_softc.command = in ahc_pci_config()
937 ahc_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/1); in ahc_pci_config()
938 ahc->bus_softc.pci_softc.csize_lattime = in ahc_pci_config()
939 ahc_pci_read_config(ahc->dev_softc, CSIZE_LATTIME, /*bytes*/1); in ahc_pci_config()
940 ahc->bus_softc.pci_softc.dscommand0 = ahc_inb(ahc, DSCOMMAND0); in ahc_pci_config()
941 ahc->bus_softc.pci_softc.dspcistatus = ahc_inb(ahc, DSPCISTATUS); in ahc_pci_config()
942 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_config()
947 ahc->bus_softc.pci_softc.optionmode = ahc_inb(ahc, OPTIONMODE); in ahc_pci_config()
948 ahc->bus_softc.pci_softc.targcrccnt = ahc_inw(ahc, TARGCRCCNT); in ahc_pci_config()
950 ahc->bus_softc.pci_softc.crccontrol1 = in ahc_pci_config()
953 if ((ahc->features & AHC_MULTI_FUNC) != 0) in ahc_pci_config()
954 ahc->bus_softc.pci_softc.scbbaddr = ahc_inb(ahc, SCBBADDR); in ahc_pci_config()
956 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_config()
957 ahc->bus_softc.pci_softc.dff_thrsh = ahc_inb(ahc, DFF_THRSH); in ahc_pci_config()
963 ahc->init_level++; in ahc_pci_config()
983 chip = ahc->chip & AHC_CHIPID_MASK; in ahc_ext_scbram_present()
984 devconfig = ahc_pci_read_config(ahc->dev_softc, in ahc_ext_scbram_present()
988 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_ext_scbram_present()
1013 int fast, int large) in ahc_scbram_config() argument
1017 if (ahc->features & AHC_MULTI_FUNC) { in ahc_scbram_config()
1022 ahc_outb(ahc, SCBBADDR, ahc_get_pci_function(ahc->dev_softc)); in ahc_scbram_config()
1025 ahc->flags &= ~AHC_LSCBS_ENABLED; in ahc_scbram_config()
1027 ahc->flags |= AHC_LSCBS_ENABLED; in ahc_scbram_config()
1028 devconfig = ahc_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4); in ahc_scbram_config()
1029 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_scbram_config()
1043 if (fast) in ahc_scbram_config()
1061 ahc_pci_write_config(ahc->dev_softc, DEVCONFIG, devconfig, /*bytes*/4); in ahc_scbram_config()
1076 int fast; in ahc_probe_ext_scbram() local
1081 fast = FALSE; in ahc_probe_ext_scbram()
1091 ahc_scbram_config(ahc, /*enable*/TRUE, pcheck, fast, large); in ahc_probe_ext_scbram()
1109 ahc_scbram_config(ahc, enable, /*pcheck*/TRUE, fast, large); in ahc_probe_ext_scbram()
1119 /* Now see if we can do fast timing */ in ahc_probe_ext_scbram()
1120 ahc_scbram_config(ahc, enable, pcheck, /*fast*/TRUE, large); in ahc_probe_ext_scbram()
1125 fast = TRUE; in ahc_probe_ext_scbram()
1131 if ((ahc->features & AHC_LARGE_SCBS) != 0) { in ahc_probe_ext_scbram()
1132 ahc_scbram_config(ahc, enable, pcheck, fast, /*large*/TRUE); in ahc_probe_ext_scbram()
1144 ahc->flags |= AHC_SCB_BTT; in ahc_probe_ext_scbram()
1159 ahc_name(ahc), fast ? "fast" : "slow", in ahc_probe_ext_scbram()
1163 ahc_scbram_config(ahc, enable, pcheck, fast, large); in ahc_probe_ext_scbram()
1184 cmd = ahc_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_test_register_access()
1185 ahc_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_test_register_access()
1199 goto fail; in ahc_pci_test_register_access()
1207 ahc->flags |= AHC_NO_BIOS_INIT; in ahc_pci_test_register_access()
1224 status1 = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_test_register_access()
1226 ahc_pci_write_config(ahc->dev_softc, PCIR_STATUS + 1, in ahc_pci_test_register_access()
1234 goto fail; in ahc_pci_test_register_access()
1236 status1 = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_test_register_access()
1239 goto fail; in ahc_pci_test_register_access()
1243 fail: in ahc_pci_test_register_access()
1245 status1 = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_test_register_access()
1247 ahc_pci_write_config(ahc->dev_softc, PCIR_STATUS + 1, in ahc_pci_test_register_access()
1251 ahc_pci_write_config(ahc->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2); in ahc_pci_test_register_access()
1271 sc = ahc->seep_config; in check_extport()
1274 * For some multi-channel devices, the c46 is simply too in check_extport()
1279 if (ahc->flags & AHC_LARGE_SEEPROM) in check_extport()
1300 start_addr = 32 * (ahc->channel - 'A'); in check_extport()
1324 ahc->flags |= AHC_LARGE_SEEPROM; in check_extport()
1353 ahc->flags |= AHC_SCB_CONFIG_USED; in check_extport()
1366 ahc->flags |= AHC_USEDEFAULTS; in check_extport()
1367 kfree(ahc->seep_config); in check_extport()
1368 ahc->seep_config = NULL; in check_extport()
1377 * necessary for auto-termination control. This assumption in check_extport()
1383 * Some low-cost chips have SEEPROM and auto-term control built in check_extport()
1387 if ((ahc->features & AHC_SPIOCAP) != 0) { in check_extport()
1393 ahc->flags |= AHC_HAS_TERM_LOGIC; in check_extport()
1395 configure_termination(ahc, &sd, sc->adapter_control, sxfrctl1); in check_extport()
1399 if ((sc->adapter_control & CFSTERM) != 0) in check_extport()
1416 int max_targ = sc->max_targets & CFMAXTARG; in ahc_parse_pci_eeprom()
1423 if ((sc->adapter_control & CFULTRAEN) != 0) { in ahc_parse_pci_eeprom()
1429 if ((sc->device_flags[i] & CFSYNCHISULTRA) != 0) { in ahc_parse_pci_eeprom()
1430 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_parse_pci_eeprom()
1441 if (sc->device_flags[i] & CFDISC) in ahc_parse_pci_eeprom()
1443 if ((ahc->flags & AHC_NEWEEPROM_FMT) != 0) { in ahc_parse_pci_eeprom()
1444 if ((sc->device_flags[i] & CFSYNCHISULTRA) != 0) in ahc_parse_pci_eeprom()
1446 } else if ((sc->adapter_control & CFULTRAEN) != 0) { in ahc_parse_pci_eeprom()
1449 if ((sc->device_flags[i] & CFXFER) == 0x04 in ahc_parse_pci_eeprom()
1451 /* Treat 10MHz as a non-ultra speed */ in ahc_parse_pci_eeprom()
1452 sc->device_flags[i] &= ~CFXFER; in ahc_parse_pci_eeprom()
1455 if ((ahc->features & AHC_ULTRA2) != 0) { in ahc_parse_pci_eeprom()
1458 if (sc->device_flags[i] & CFSYNCH) in ahc_parse_pci_eeprom()
1469 scsirate = (sc->device_flags[i] & CFXFER) in ahc_parse_pci_eeprom()
1471 if (sc->device_flags[i] & CFWIDEB) in ahc_parse_pci_eeprom()
1474 scsirate = (sc->device_flags[i] & CFXFER) << 4; in ahc_parse_pci_eeprom()
1475 if (sc->device_flags[i] & CFSYNCH) in ahc_parse_pci_eeprom()
1477 if (sc->device_flags[i] & CFWIDEB) in ahc_parse_pci_eeprom()
1482 ahc->our_id = sc->brtime_id & CFSCSIID; in ahc_parse_pci_eeprom()
1484 scsi_conf = (ahc->our_id & 0x7); in ahc_parse_pci_eeprom()
1485 if (sc->adapter_control & CFSPARITY) in ahc_parse_pci_eeprom()
1487 if (sc->adapter_control & CFRESETB) in ahc_parse_pci_eeprom()
1490 ahc->flags |= (sc->adapter_control & CFBOOTCHAN) >> CFBOOTCHANSHIFT; in ahc_parse_pci_eeprom()
1492 if (sc->bios_control & CFEXTEND) in ahc_parse_pci_eeprom()
1493 ahc->flags |= AHC_EXTENDED_TRANS_A; in ahc_parse_pci_eeprom()
1495 if (sc->bios_control & CFBIOSEN) in ahc_parse_pci_eeprom()
1496 ahc->flags |= AHC_BIOS_ENABLED; in ahc_parse_pci_eeprom()
1497 if (ahc->features & AHC_ULTRA in ahc_parse_pci_eeprom()
1498 && (ahc->flags & AHC_NEWEEPROM_FMT) == 0) { in ahc_parse_pci_eeprom()
1500 if (!(sc->adapter_control & CFULTRAEN)) in ahc_parse_pci_eeprom()
1501 /* Treat us as a non-ultra card */ in ahc_parse_pci_eeprom()
1505 if (sc->signature == CFSIGNATURE in ahc_parse_pci_eeprom()
1506 || sc->signature == CFSIGNATURE2) { in ahc_parse_pci_eeprom()
1510 devconfig = ahc_pci_read_config(ahc->dev_softc, in ahc_parse_pci_eeprom()
1513 if ((sc->bios_control & CFSTPWLEVEL) != 0) in ahc_parse_pci_eeprom()
1515 ahc_pci_write_config(ahc->dev_softc, DEVCONFIG, in ahc_parse_pci_eeprom()
1547 SEEPROM_OUTB(sd, sd->sd_MS | sd->sd_CS); in configure_termination()
1549 || (ahc->features & AHC_NEW_TERMCTL) != 0) { in configure_termination()
1564 if ((ahc->features & AHC_NEW_TERMCTL) != 0) { in configure_termination()
1589 } else if ((ahc->features & AHC_SPIOCAP) != 0) { in configure_termination()
1602 if ((ahc->features & AHC_WIDE) == 0) in configure_termination()
1606 && (ahc->features & AHC_ULTRA2) == 0) { in configure_termination()
1611 if ((ahc->features & AHC_WIDE) != 0) in configure_termination()
1622 if ((ahc->flags & AHC_INT50_SPEEDFLEX) != 0) { in configure_termination()
1641 if ((ahc->features & AHC_ULTRA2) == 0 in configure_termination()
1660 if ((ahc->features & AHC_WIDE) != 0 in configure_termination()
1666 if ((ahc->flags & AHC_INT50_SPEEDFLEX) != 0) in configure_termination()
1680 if ((ahc->features & AHC_ULTRA2) != 0) in configure_termination()
1685 if ((ahc->flags & AHC_INT50_SPEEDFLEX) != 0) in configure_termination()
1726 (ahc->features & AHC_ULTRA2) ? "Primary " in configure_termination()
1731 && (ahc->features & AHC_WIDE) != 0) { in configure_termination()
1736 (ahc->features & AHC_ULTRA2) in configure_termination()
1746 if ((ahc->features & AHC_WIDE) != 0) in configure_termination()
1749 SEEPROM_OUTB(sd, sd->sd_MS); /* Clear CS */ in configure_termination()
1843 if ((ahc->features & AHC_SPIOCAP) != 0 in ahc_acquire_seeprom()
1854 SEEPROM_OUTB(sd, sd->sd_MS); in ahc_acquire_seeprom()
1856 while (--wait && ((SEEPROM_STATUS_INB(sd) & sd->sd_RDY) == 0)) { in ahc_acquire_seeprom()
1859 if ((SEEPROM_STATUS_INB(sd) & sd->sd_RDY) == 0) { in ahc_acquire_seeprom()
1878 if ((ahc->chip & AHC_CHIPID_MASK) == AHC_AIC7895) { in write_brdctl()
1880 if (ahc->channel == 'B') in write_brdctl()
1882 } else if ((ahc->features & AHC_ULTRA2) != 0) { in write_brdctl()
1892 if ((ahc->features & AHC_ULTRA2) != 0) in write_brdctl()
1898 if ((ahc->features & AHC_ULTRA2) != 0) in write_brdctl()
1911 if ((ahc->chip & AHC_CHIPID_MASK) == AHC_AIC7895) { in read_brdctl()
1913 if (ahc->channel == 'B') in read_brdctl()
1915 } else if ((ahc->features & AHC_ULTRA2) != 0) { in read_brdctl()
1937 status1 = ahc_pci_read_config(ahc->dev_softc, in ahc_pci_intr()
1945 ahc->pci_target_perr_count++; in ahc_pci_intr()
1967 ahc_pci_write_config(ahc->dev_softc, PCIR_STATUS + 1, in ahc_pci_intr()
1977 if (ahc->pci_target_perr_count > AHC_PCI_TARGET_PERR_THRESH) { in ahc_pci_intr()
1987 ahc->seqctl |= FAILDIS; in ahc_pci_intr()
1988 ahc_outb(ahc, SEQCTL, ahc->seqctl); in ahc_pci_intr()
1996 ahc_outb(ahc, DSCOMMAND0, ahc->bus_softc.pci_softc.dscommand0); in ahc_pci_chip_init()
1997 ahc_outb(ahc, DSPCISTATUS, ahc->bus_softc.pci_softc.dspcistatus); in ahc_pci_chip_init()
1998 if ((ahc->features & AHC_DT) != 0) { in ahc_pci_chip_init()
2003 ahc_outb(ahc, OPTIONMODE, ahc->bus_softc.pci_softc.optionmode); in ahc_pci_chip_init()
2004 ahc_outw(ahc, TARGCRCCNT, ahc->bus_softc.pci_softc.targcrccnt); in ahc_pci_chip_init()
2007 ahc->bus_softc.pci_softc.crccontrol1); in ahc_pci_chip_init()
2009 if ((ahc->features & AHC_MULTI_FUNC) != 0) in ahc_pci_chip_init()
2010 ahc_outb(ahc, SCBBADDR, ahc->bus_softc.pci_softc.scbbaddr); in ahc_pci_chip_init()
2012 if ((ahc->features & AHC_ULTRA2) != 0) in ahc_pci_chip_init()
2013 ahc_outb(ahc, DFF_THRSH, ahc->bus_softc.pci_softc.dff_thrsh); in ahc_pci_chip_init()
2028 ahc_pci_write_config(ahc->dev_softc, DEVCONFIG, in ahc_pci_resume()
2029 ahc->bus_softc.pci_softc.devconfig, /*bytes*/4); in ahc_pci_resume()
2030 ahc_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_resume()
2031 ahc->bus_softc.pci_softc.command, /*bytes*/1); in ahc_pci_resume()
2032 ahc_pci_write_config(ahc->dev_softc, CSIZE_LATTIME, in ahc_pci_resume()
2033 ahc->bus_softc.pci_softc.csize_lattime, /*bytes*/1); in ahc_pci_resume()
2034 if ((ahc->flags & AHC_HAS_TERM_LOGIC) != 0) { in ahc_pci_resume()
2045 ahc->seep_config->adapter_control, in ahc_pci_resume()
2058 pci = ahc->dev_softc; in ahc_aic785X_setup()
2059 ahc->channel = 'A'; in ahc_aic785X_setup()
2060 ahc->chip = AHC_AIC7850; in ahc_aic785X_setup()
2061 ahc->features = AHC_AIC7850_FE; in ahc_aic785X_setup()
2062 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic785X_setup()
2065 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG; in ahc_aic785X_setup()
2066 ahc->instruction_ram_size = 512; in ahc_aic785X_setup()
2076 pci = ahc->dev_softc; in ahc_aic7860_setup()
2077 ahc->channel = 'A'; in ahc_aic7860_setup()
2078 ahc->chip = AHC_AIC7860; in ahc_aic7860_setup()
2079 ahc->features = AHC_AIC7860_FE; in ahc_aic7860_setup()
2080 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic7860_setup()
2083 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG; in ahc_aic7860_setup()
2084 ahc->instruction_ram_size = 512; in ahc_aic7860_setup()
2096 ahc->features |= AHC_REMOVABLE; in ahc_apa1480_setup()
2104 ahc->channel = 'A'; in ahc_aic7870_setup()
2105 ahc->chip = AHC_AIC7870; in ahc_aic7870_setup()
2106 ahc->features = AHC_AIC7870_FE; in ahc_aic7870_setup()
2107 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic7870_setup()
2108 ahc->instruction_ram_size = 512; in ahc_aic7870_setup()
2117 ahc->features |= AHC_HVD; in ahc_aic7870h_setup()
2138 ahc->features |= AHC_HVD; in ahc_aha394Xh_setup()
2170 ahc->features |= AHC_HVD; in ahc_aha494Xh_setup()
2181 pci = ahc->dev_softc; in ahc_aic7880_setup()
2182 ahc->channel = 'A'; in ahc_aic7880_setup()
2183 ahc->chip = AHC_AIC7880; in ahc_aic7880_setup()
2184 ahc->features = AHC_AIC7880_FE; in ahc_aic7880_setup()
2185 ahc->bugs |= AHC_TMODE_WIDEODD_BUG; in ahc_aic7880_setup()
2188 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG; in ahc_aic7880_setup()
2190 ahc->bugs |= AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic7880_setup()
2192 ahc->instruction_ram_size = 512; in ahc_aic7880_setup()
2201 ahc->features |= AHC_HVD; in ahc_aic7880h_setup()
2211 ahc->flags |= AHC_INT50_SPEEDFLEX; in ahc_aha2940Pro_setup()
2231 ahc->features |= AHC_HVD; in ahc_aha394XUh_setup()
2253 pci = ahc->dev_softc; in ahc_aic7890_setup()
2254 ahc->channel = 'A'; in ahc_aic7890_setup()
2255 ahc->chip = AHC_AIC7890; in ahc_aic7890_setup()
2256 ahc->features = AHC_AIC7890_FE; in ahc_aic7890_setup()
2257 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7890_setup()
2260 ahc->bugs |= AHC_AUTOFLUSH_BUG|AHC_CACHETHEN_BUG; in ahc_aic7890_setup()
2261 ahc->instruction_ram_size = 768; in ahc_aic7890_setup()
2269 ahc->channel = 'A'; in ahc_aic7892_setup()
2270 ahc->chip = AHC_AIC7892; in ahc_aic7892_setup()
2271 ahc->features = AHC_AIC7892_FE; in ahc_aic7892_setup()
2272 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7892_setup()
2273 ahc->bugs |= AHC_SCBCHAN_UPLOAD_BUG; in ahc_aic7892_setup()
2274 ahc->instruction_ram_size = 1024; in ahc_aic7892_setup()
2284 pci = ahc->dev_softc; in ahc_aic7895_setup()
2285 ahc->channel = ahc_get_pci_function(pci) == 1 ? 'B' : 'A'; in ahc_aic7895_setup()
2291 ahc->chip = AHC_AIC7895C; in ahc_aic7895_setup()
2292 ahc->features = AHC_AIC7895C_FE; in ahc_aic7895_setup()
2296 ahc->chip = AHC_AIC7895; in ahc_aic7895_setup()
2297 ahc->features = AHC_AIC7895_FE; in ahc_aic7895_setup()
2308 ahc->bugs |= AHC_PCI_MWI_BUG; in ahc_aic7895_setup()
2314 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_PCI_2_1_RETRY_BUG in ahc_aic7895_setup()
2329 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7895_setup()
2330 ahc->instruction_ram_size = 512; in ahc_aic7895_setup()
2339 ahc->features |= AHC_HVD; in ahc_aic7895h_setup()
2349 pci = ahc->dev_softc; in ahc_aic7896_setup()
2350 ahc->channel = ahc_get_pci_function(pci) == 1 ? 'B' : 'A'; in ahc_aic7896_setup()
2351 ahc->chip = AHC_AIC7896; in ahc_aic7896_setup()
2352 ahc->features = AHC_AIC7896_FE; in ahc_aic7896_setup()
2353 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7896_setup()
2354 ahc->bugs |= AHC_CACHETHEN_DIS_BUG; in ahc_aic7896_setup()
2355 ahc->instruction_ram_size = 768; in ahc_aic7896_setup()
2364 pci = ahc->dev_softc; in ahc_aic7899_setup()
2365 ahc->channel = ahc_get_pci_function(pci) == 1 ? 'B' : 'A'; in ahc_aic7899_setup()
2366 ahc->chip = AHC_AIC7899; in ahc_aic7899_setup()
2367 ahc->features = AHC_AIC7899_FE; in ahc_aic7899_setup()
2368 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7899_setup()
2369 ahc->bugs |= AHC_SCBCHAN_UPLOAD_BUG; in ahc_aic7899_setup()
2370 ahc->instruction_ram_size = 1024; in ahc_aic7899_setup()
2382 ahc->features |= AHC_REMOVABLE; in ahc_aha29160C_setup()
2398 pci = ahc->dev_softc; in ahc_aha394XX_setup()
2401 ahc->channel = 'A'; in ahc_aha394XX_setup()
2404 ahc->channel = 'B'; in ahc_aha394XX_setup()
2410 ahc->channel = 'A'; in ahc_aha394XX_setup()
2420 pci = ahc->dev_softc; in ahc_aha398XX_setup()
2423 ahc->channel = 'A'; in ahc_aha398XX_setup()
2426 ahc->channel = 'B'; in ahc_aha398XX_setup()
2429 ahc->channel = 'C'; in ahc_aha398XX_setup()
2435 ahc->channel = 'A'; in ahc_aha398XX_setup()
2438 ahc->flags |= AHC_LARGE_SEEPROM; in ahc_aha398XX_setup()
2447 pci = ahc->dev_softc; in ahc_aha494XX_setup()
2450 ahc->channel = 'A'; in ahc_aha494XX_setup()
2453 ahc->channel = 'B'; in ahc_aha494XX_setup()
2456 ahc->channel = 'C'; in ahc_aha494XX_setup()
2459 ahc->channel = 'D'; in ahc_aha494XX_setup()
2465 ahc->channel = 'A'; in ahc_aha494XX_setup()
2467 ahc->flags |= AHC_LARGE_SEEPROM; in ahc_aha494XX_setup()