Lines Matching +full:aac +full:- +full:timing

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
299 /* Ignore all SISL (AAC on MB) based controllers. */
346 "Adaptec AAA-131 Ultra2 RAID adapter",
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()
774 * the parity timing wrong and thus generate lots of spurious 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()
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()
1112 /* Now see if we can do fast timing */ in ahc_probe_ext_scbram()
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()
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()
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()
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()
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()
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()
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()
2020 ahc_pci_write_config(ahc->dev_softc, DEVCONFIG, in ahc_pci_resume()
2021 ahc->bus_softc.pci_softc.devconfig, /*bytes*/4); in ahc_pci_resume()
2022 ahc_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_resume()
2023 ahc->bus_softc.pci_softc.command, /*bytes*/1); in ahc_pci_resume()
2024 ahc_pci_write_config(ahc->dev_softc, CSIZE_LATTIME, in ahc_pci_resume()
2025 ahc->bus_softc.pci_softc.csize_lattime, /*bytes*/1); in ahc_pci_resume()
2026 if ((ahc->flags & AHC_HAS_TERM_LOGIC) != 0) { in ahc_pci_resume()
2037 ahc->seep_config->adapter_control, in ahc_pci_resume()
2049 pci = ahc->dev_softc; in ahc_aic785X_setup()
2050 ahc->channel = 'A'; in ahc_aic785X_setup()
2051 ahc->chip = AHC_AIC7850; in ahc_aic785X_setup()
2052 ahc->features = AHC_AIC7850_FE; in ahc_aic785X_setup()
2053 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic785X_setup()
2056 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG; in ahc_aic785X_setup()
2057 ahc->instruction_ram_size = 512; in ahc_aic785X_setup()
2067 pci = ahc->dev_softc; in ahc_aic7860_setup()
2068 ahc->channel = 'A'; in ahc_aic7860_setup()
2069 ahc->chip = AHC_AIC7860; in ahc_aic7860_setup()
2070 ahc->features = AHC_AIC7860_FE; in ahc_aic7860_setup()
2071 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic7860_setup()
2074 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG; in ahc_aic7860_setup()
2075 ahc->instruction_ram_size = 512; in ahc_aic7860_setup()
2087 ahc->features |= AHC_REMOVABLE; in ahc_apa1480_setup()
2095 ahc->channel = 'A'; in ahc_aic7870_setup()
2096 ahc->chip = AHC_AIC7870; in ahc_aic7870_setup()
2097 ahc->features = AHC_AIC7870_FE; in ahc_aic7870_setup()
2098 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic7870_setup()
2099 ahc->instruction_ram_size = 512; in ahc_aic7870_setup()
2108 ahc->features |= AHC_HVD; in ahc_aic7870h_setup()
2129 ahc->features |= AHC_HVD; in ahc_aha394Xh_setup()
2161 ahc->features |= AHC_HVD; in ahc_aha494Xh_setup()
2172 pci = ahc->dev_softc; in ahc_aic7880_setup()
2173 ahc->channel = 'A'; in ahc_aic7880_setup()
2174 ahc->chip = AHC_AIC7880; in ahc_aic7880_setup()
2175 ahc->features = AHC_AIC7880_FE; in ahc_aic7880_setup()
2176 ahc->bugs |= AHC_TMODE_WIDEODD_BUG; in ahc_aic7880_setup()
2179 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG; in ahc_aic7880_setup()
2181 ahc->bugs |= AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG; in ahc_aic7880_setup()
2183 ahc->instruction_ram_size = 512; in ahc_aic7880_setup()
2192 ahc->features |= AHC_HVD; in ahc_aic7880h_setup()
2202 ahc->flags |= AHC_INT50_SPEEDFLEX; in ahc_aha2940Pro_setup()
2222 ahc->features |= AHC_HVD; in ahc_aha394XUh_setup()
2244 pci = ahc->dev_softc; in ahc_aic7890_setup()
2245 ahc->channel = 'A'; in ahc_aic7890_setup()
2246 ahc->chip = AHC_AIC7890; in ahc_aic7890_setup()
2247 ahc->features = AHC_AIC7890_FE; in ahc_aic7890_setup()
2248 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7890_setup()
2251 ahc->bugs |= AHC_AUTOFLUSH_BUG|AHC_CACHETHEN_BUG; in ahc_aic7890_setup()
2252 ahc->instruction_ram_size = 768; in ahc_aic7890_setup()
2260 ahc->channel = 'A'; in ahc_aic7892_setup()
2261 ahc->chip = AHC_AIC7892; in ahc_aic7892_setup()
2262 ahc->features = AHC_AIC7892_FE; in ahc_aic7892_setup()
2263 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7892_setup()
2264 ahc->bugs |= AHC_SCBCHAN_UPLOAD_BUG; in ahc_aic7892_setup()
2265 ahc->instruction_ram_size = 1024; in ahc_aic7892_setup()
2275 pci = ahc->dev_softc; in ahc_aic7895_setup()
2276 ahc->channel = ahc_get_pci_function(pci) == 1 ? 'B' : 'A'; in ahc_aic7895_setup()
2282 ahc->chip = AHC_AIC7895C; in ahc_aic7895_setup()
2283 ahc->features = AHC_AIC7895C_FE; in ahc_aic7895_setup()
2287 ahc->chip = AHC_AIC7895; in ahc_aic7895_setup()
2288 ahc->features = AHC_AIC7895_FE; in ahc_aic7895_setup()
2299 ahc->bugs |= AHC_PCI_MWI_BUG; in ahc_aic7895_setup()
2305 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_PCI_2_1_RETRY_BUG in ahc_aic7895_setup()
2320 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7895_setup()
2321 ahc->instruction_ram_size = 512; in ahc_aic7895_setup()
2330 ahc->features |= AHC_HVD; in ahc_aic7895h_setup()
2340 pci = ahc->dev_softc; in ahc_aic7896_setup()
2341 ahc->channel = ahc_get_pci_function(pci) == 1 ? 'B' : 'A'; in ahc_aic7896_setup()
2342 ahc->chip = AHC_AIC7896; in ahc_aic7896_setup()
2343 ahc->features = AHC_AIC7896_FE; in ahc_aic7896_setup()
2344 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7896_setup()
2345 ahc->bugs |= AHC_CACHETHEN_DIS_BUG; in ahc_aic7896_setup()
2346 ahc->instruction_ram_size = 768; in ahc_aic7896_setup()
2355 pci = ahc->dev_softc; in ahc_aic7899_setup()
2356 ahc->channel = ahc_get_pci_function(pci) == 1 ? 'B' : 'A'; in ahc_aic7899_setup()
2357 ahc->chip = AHC_AIC7899; in ahc_aic7899_setup()
2358 ahc->features = AHC_AIC7899_FE; in ahc_aic7899_setup()
2359 ahc->flags |= AHC_NEWEEPROM_FMT; in ahc_aic7899_setup()
2360 ahc->bugs |= AHC_SCBCHAN_UPLOAD_BUG; in ahc_aic7899_setup()
2361 ahc->instruction_ram_size = 1024; in ahc_aic7899_setup()
2373 ahc->features |= AHC_REMOVABLE; in ahc_aha29160C_setup()
2389 pci = ahc->dev_softc; in ahc_aha394XX_setup()
2392 ahc->channel = 'A'; in ahc_aha394XX_setup()
2395 ahc->channel = 'B'; in ahc_aha394XX_setup()
2401 ahc->channel = 'A'; in ahc_aha394XX_setup()
2411 pci = ahc->dev_softc; in ahc_aha398XX_setup()
2414 ahc->channel = 'A'; in ahc_aha398XX_setup()
2417 ahc->channel = 'B'; in ahc_aha398XX_setup()
2420 ahc->channel = 'C'; in ahc_aha398XX_setup()
2426 ahc->channel = 'A'; in ahc_aha398XX_setup()
2429 ahc->flags |= AHC_LARGE_SEEPROM; in ahc_aha398XX_setup()
2438 pci = ahc->dev_softc; in ahc_aha494XX_setup()
2441 ahc->channel = 'A'; in ahc_aha494XX_setup()
2444 ahc->channel = 'B'; in ahc_aha494XX_setup()
2447 ahc->channel = 'C'; in ahc_aha494XX_setup()
2450 ahc->channel = 'D'; in ahc_aha494XX_setup()
2456 ahc->channel = 'A'; in ahc_aha494XX_setup()
2458 ahc->flags |= AHC_LARGE_SEEPROM; in ahc_aha494XX_setup()