Lines Matching defs:fdc
55 struct fdc_softc sc_fdc; /* real "fdc" softc */
76 fdc_conf(struct fdc_softc *fdc)
78 bus_space_tag_t iot = fdc->sc_iot;
79 bus_space_handle_t ioh = fdc->sc_ioh;
84 (n = fdcresult(fdc, 1)) != 1)
88 if (FDC_ST0(fdc->sc_status[0]) == FDC_ST0_INVL)
94 (n = fdcresult(fdc, 1)) != 1) {
99 printf("Version %x\n", fdc->sc_status[0]);
103 (n = fdcresult(fdc, -1)) == -1)
119 (void)out_fdc(iot, ioh, fdc->sc_status[9]); /* same comp */
124 fdcresult(fdc, 1) != 1)
143 struct fdc_softc *fdc = &psc->sc_fdc;
150 fdc->sc_dev = self;
160 fdc->sc_iot = cfe->iospace[0].handle.iot;
161 fdc->sc_iot = cfe->iospace[0].handle.ioh;
166 fdc->sc_flags = FDC_HEADSETTLE;
167 fdc->sc_state = DEVIDLE;
168 TAILQ_INIT(&fdc->sc_drives);
170 if (!fdcfind(fdc->sc_iot, fdc->sc_ioh, 1))
171 aprint_error_dev(self, "couldn't find fdc\n");
173 fdc_conf(fdc);
176 fdc->sc_ih = pcmcia_intr_establish(pa->pf, IPL_BIO, fdchwintr, fdc);
177 if (!fdc->sc_ih)