Lines Matching defs:ahc
167 void aha2840_load_seeprom(struct ahc_softc *ahc);
361 struct ahc_softc *ahc = device_private(self);
370 ahc->sc_dev = self;
400 ahc->sc_dmaflags = ISABUS_DMA_32BIT;
402 ahc_set_name(ahc, device_xname(ahc->sc_dev));
403 ahc->parent_dmat = ia->ia_dmat;
404 ahc->channel = 'A';
405 ahc->chip = AHC_AIC7770|AHC_VL;
406 ahc->features = AHC_AIC7770_FE;
407 ahc->bugs |= AHC_TMODE_WIDEODD_BUG;
408 ahc->flags |= AHC_PAGESCBS;
409 ahc->tag = iot;
410 ahc->bsh = ioh;
412 if (ahc_softc_init(ahc) != 0)
415 ahc_intr_enable(ahc, false);
417 if (ahc_reset(ahc) != 0)
429 ahc->ih = isa_intr_establish(ia->ia_ic, irq,
430 intrtype, IPL_BIO, ahc_intr, ahc);
431 if (ahc->ih == NULL) {
432 aprint_error_dev(ahc->sc_dev,
442 aprint_verbose_dev(ahc->sc_dev, "Using %s interrupts\n",
450 aha2840_load_seeprom(ahc);
453 if (ahc_aic77xx_attach(ahc) == 0)
457 isa_intr_disestablish(ia->ia_ic, ahc->ih);
466 aha2840_load_seeprom(struct ahc_softc *ahc)
473 sd.sd_tag = ahc->tag;
474 sd.sd_bsh = ahc->bsh;
487 aprint_verbose("%s: Reading SEEPROM...", ahc_name(ahc));
504 ahc_name(ahc));
505 ahc->flags |= AHC_USEDEFAULTS;
512 int max_targ = (ahc->features & AHC_WIDE) != 0 ? 16 : 8;
525 ahc_outb(ahc, TARG_SCSIRATE + i, target_settings);
527 ahc_outb(ahc, DISC_DSB, ~(discenable & 0xff));
528 ahc_outb(ahc, DISC_DSB + 1, ~((discenable >> 8) & 0xff));
530 ahc->our_id = sc.brtime_id & CFSCSIID;
532 scsi_conf = (ahc->our_id & 0x7);
539 ahc->flags |= AHC_EXTENDED_TRANS_A;
541 ahc_outb(ahc, SCSICONF, scsi_conf);
544 ahc->flags |= AHC_TERM_ENB_A;