void dw750_attach(struct device *parent, struct device *self, void *aux) { struct uba_vsoftc *sc = (void *)self; struct sbi_attach_args *sa = aux; printf(": DW750\n"); /* * Fill in bus specific data. */ sc->uv_sc.uh_ubainit = dw750_init; #ifdef notyet sc->uv_sc.uh_ubapurge = dw750_purge; #endif sc->uv_sc.uh_iot = &vax_mem_bus_space; sc->uv_sc.uh_dmat = &sc->uv_dmat; /* * Fill in variables used by the sgmap system. */ sc->uv_size = UBAPAGES * VAX_NBPG; sc->uv_uba = (void *)sa->sa_ioh; /* Map registers is in adaptor */ uba_dma_init(sc); uba_attach(&sc->uv_sc, UIOPAGE(sa->sa_type == NEX_UBA1)); }
void dw750_attach(device_t parent, device_t self, void *aux) { struct uba_vsoftc * const sc = device_private(self); struct sbi_attach_args * const sa = aux; aprint_normal(": DW750\n"); sc->uv_sc.uh_dev = self; /* * Fill in bus specific data. */ sc->uv_sc.uh_ubainit = dw750_init; #ifdef notyet sc->uv_sc.uh_ubapurge = dw750_purge; #endif sc->uv_sc.uh_iot = sa->sa_iot; sc->uv_sc.uh_dmat = &sc->uv_dmat; sc->uv_sc.uh_type = UBA_UBA; sc->uv_sc.uh_nr = sa->sa_type == NEX_UBA1; /* * Fill in variables used by the sgmap system. */ sc->uv_size = UBAPAGES * VAX_NBPG; sc->uv_uba = (void *)sa->sa_ioh; /* Map registers is in adaptor */ uba_dma_init(sc); uba_attach(&sc->uv_sc, UIOPAGE(sa->sa_type == NEX_UBA1)); }