Home | History | Annotate | Download | only in pnpbios

Lines Matching defs:fdc

62         struct fdc_softc sc_fdc;        /* base fdc device */
86 struct fdc_softc *fdc = &pdc->sc_fdc;
92 fdc->sc_dev = self;
93 fdc->sc_ic = aa->ic;
95 if (pnpbios_io_map(aa->pbt, aa->resc, 0, &fdc->sc_iot,
113 /* Easy case. This matches right up with what the fdc code expects. */
115 fdc->sc_ioh = pdc->sc_baseioh;
118 /* Map a subregion so this all lines up with the fdc code. */
120 if (bus_space_subregion(fdc->sc_iot, pdc->sc_baseioh, 2, 4,
121 &fdc->sc_ioh)) {
136 * be a working fdc). Just try and force the mapping in.
145 if (bus_space_map(fdc->sc_iot, base + size + 1, 1, 0,
146 &fdc->sc_fdctlioh)) {
151 } else if (pnpbios_io_map(aa->pbt, aa->resc, 1, &fdc->sc_iot,
152 &fdc->sc_fdctlioh)) {
157 if (pnpbios_getdmachan(aa->pbt, aa->resc, 0, &fdc->sc_drq)) {
168 fdc->sc_ih = pnpbios_intr_establish(aa->pbt, aa->resc, 0, IPL_BIO,
169 fdcintr, fdc);
171 fdcattach(fdc);