Home | History | Annotate | Download | only in pnpbus

Lines Matching defs:fdc

61         struct fdc_softc sc_fdc;        /* base fdc device */
88 struct fdc_softc *fdc = &pdc->sc_fdc;
92 fdc->sc_dev = self;
93 fdc->sc_ic = pna->pna_ic;
95 if (pnpbus_io_map(&pna->pna_res, 0, &fdc->sc_iot, &pdc->sc_baseioh)) {
112 /* Easy case. This matches right up with what the fdc code expects. */
114 fdc->sc_ioh = pdc->sc_baseioh;
117 /* Map a subregion so this all lines up with the fdc code. */
119 if (bus_space_subregion(fdc->sc_iot, pdc->sc_baseioh, 2, 4,
120 &fdc->sc_ioh)) {
134 * be a working fdc). Just try and force the mapping in.
138 if (bus_space_map(fdc->sc_iot, base + size + 1, 1, 0,
139 &fdc->sc_fdctlioh)) {
144 } else if (pnpbus_io_map(&pna->pna_res, 1, &fdc->sc_iot,
145 &fdc->sc_fdctlioh)) {
150 if (pnpbus_getdmachan(&pna->pna_res, 0, &fdc->sc_drq)) {
162 fdc->sc_ih = pnpbus_intr_establish(0, IPL_BIO, IST_EDGE, fdcintr, fdc,
165 fdcattach(fdc);