Lines Matching defs:ahc
102 struct ahc_softc *ahc = device_private(self);
120 ahc->sc_dev = self;
127 aprint_error_dev(ahc->sc_dev, "could not map I/O addresses");
131 aprint_error_dev(ahc->sc_dev, "ahc_aic77xx_irq failed!");
137 ahc_set_name(ahc, device_xname(ahc->sc_dev));
138 ahc->parent_dmat = ea->ea_dmat;
139 ahc->chip = AHC_AIC7770|AHC_EISA;
140 ahc->features = AHC_AIC7770_FE;
141 ahc->flags = AHC_PAGESCBS;
142 ahc->bugs = AHC_TMODE_WIDEODD_BUG;
143 ahc->tag = iot;
144 ahc->bsh = ioh;
145 ahc->channel = 'A';
147 if (ahc_softc_init(ahc) != 0)
150 ahc_intr_enable(ahc, FALSE);
152 if (ahc_reset(ahc) != 0)
156 aprint_error_dev(ahc->sc_dev, "couldn't map interrupt (%d)\n",
171 ahc->ih = eisa_intr_establish(ec, ih,
172 intrtype, IPL_BIO, ahc_intr, ahc);
173 if (ahc->ih == NULL) {
174 aprint_error_dev(ahc->sc_dev,
182 aprint_normal_dev(ahc->sc_dev, "%s interrupting at %s\n",
191 biosctrl = ahc_inb(ahc, HA_274_BIOSCTRL);
192 scsiconf = ahc_inb(ahc, SCSICONF);
193 scsiconf1 = ahc_inb(ahc, SCSICONF + 1);
199 ahc_inb(ahc, i),
200 ahc_inb(ahc, i+1),
201 ahc_inb(ahc, i+2),
202 ahc_inb(ahc, i+3),
203 ahc_inb(ahc, i+4),
204 ahc_inb(ahc, i+5),
205 ahc_inb(ahc, i+6),
206 ahc_inb(ahc, i+7));
212 ahc->flags |= AHC_PRIMARY_CHANNEL;
215 ahc->flags |= AHC_USEDEFAULTS;
216 } else if ((ahc->features & AHC_WIDE) != 0) {
217 ahc->our_id = scsiconf1 & HWSCSIID;
219 ahc->flags |= AHC_TERM_ENB_A;
221 ahc->our_id = scsiconf & HSCSIID;
222 ahc->our_id_b = scsiconf1 & HSCSIID;
224 ahc->flags |= AHC_TERM_ENB_A;
226 ahc->flags |= AHC_TERM_ENB_B;
228 if ((ahc_inb(ahc, HA_274_BIOSGLOBAL) & HA_274_EXTENDED_TRANS))
229 ahc->flags |= AHC_EXTENDED_TRANS_A|AHC_EXTENDED_TRANS_B;
232 if (ahc_aic77xx_attach(ahc) == 0)
236 eisa_intr_disestablish(ec, ahc->ih);