Home | History | Annotate | Download | only in cardbus

Lines Matching defs:ahc

76 	struct ahc_softc sc_ahc;	/* real AHC */
111 struct ahc_softc *ahc = &csc->sc_ahc;
120 ahc->sc_dev = self;
142 ahc_name(ahc));
163 ahc_set_name(ahc, device_xname(ahc->sc_dev));
165 ahc->parent_dmat = ca->ca_dmat;
166 ahc->tag = bst;
167 ahc->bsh = bsh;
172 ahc->chip = AHC_AIC7860 | AHC_PCI;
173 ahc->features = AHC_AIC7860_FE|AHC_REMOVABLE;
174 ahc->bugs |= AHC_TMODE_WIDEODD_BUG|AHC_CACHETHEN_BUG|AHC_PCI_MWI_BUG;
176 ahc->bugs |= AHC_PCI_2_1_RETRY_BUG;
178 if (ahc_softc_init(ahc) != 0)
184 ahc->flags = AHC_PAGESCBS;
186 ahc->channel = 'A';
188 ahc_intr_enable(ahc, FALSE);
190 ahc_reset(ahc);
195 ahc->ih = Cardbus_intr_establish(ct, IPL_BIO, ahc_intr, ahc);
196 if (ahc->ih == NULL) {
198 ahc_name(ahc));
202 ahc->seep_config = malloc(sizeof(*ahc->seep_config),
204 ahc_check_extport(ahc, &sxfrctl1);
208 sblkctl = ahc_inb(ahc, SBLKCTL);
209 ahc_outb(ahc, SBLKCTL, (sblkctl & ~(DIAGLEDEN|DIAGLEDON)));
215 ahc_outb(ahc, DSPCISTATUS, DFTHRSH_100);
217 if (ahc->flags & AHC_USEDEFAULTS) {
225 ahc_outb(ahc, SCSICONF, our_id | ENSPCHK | RESET_SCSI);
226 ahc->our_id = our_id;
234 ahc->flags |= AHC_TERM_ENB_A;
236 if (ahc_init(ahc)) {
237 ahc_free(ahc);
241 ahc_attach(ahc);
248 struct ahc_softc *ahc = &csc->sc_ahc;
252 rv = ahc_detach(ahc, flags);
256 if (ahc->ih) {
257 Cardbus_intr_disestablish(csc->sc_ct, ahc->ih);
258 ahc->ih = 0;
263 ahc->tag, ahc->bsh, csc->sc_size);