Lines Matching refs:sc_gic

65 	struct gicv3_softc	sc_gic;
110 sc->sc_gic.sc_dev = self;
111 sc->sc_gic.sc_bst = &arm_generic_bs_tag;
112 sc->sc_gic.sc_dmat = &arm_generic_dma_tag;
130 error = gicv3_init(&sc->sc_gic);
150 error = bus_space_map(sc->sc_gic.sc_bst, addr, size, 0, &sc->sc_gic.sc_bsh_d);
184 if (bus_space_map(sc->sc_gic.sc_bst, gicr->BaseAddress, gicr->Length, 0, &bsh) != 0) {
185 aprint_error_dev(sc->sc_gic.sc_dev, "failed to map redistributor at 0x%" PRIx64 " len %#x\n",
191 const int redist = sc->sc_gic.sc_bsh_r_count;
192 if (bus_space_subregion(sc->sc_gic.sc_bst, bsh, off, GICR_SIZE, &sc->sc_gic.sc_bsh_r[redist]) != 0) {
193 aprint_error_dev(sc->sc_gic.sc_dev, "couldn't subregion redistributor registers\n");
197 aprint_debug_dev(sc->sc_gic.sc_dev, "redist at 0x%" PRIx64 " [GICR]\n", gicr->BaseAddress + off);
199 sc->sc_gic.sc_bsh_r_count++;
202 const uint32_t typer = bus_space_read_4(sc->sc_gic.sc_bst, sc->sc_gic.sc_bsh_r[redist], GICR_TYPER);
242 const int redist = sc->sc_gic.sc_bsh_r_count;
243 if (bus_space_map(sc->sc_gic.sc_bst, gicc->GicrBaseAddress, GICR_SIZE, 0, &sc->sc_gic.sc_bsh_r[redist]) != 0) {
244 aprint_error_dev(sc->sc_gic.sc_dev, "failed to map redistributor at 0x%" PRIx64 " len %#x\n",
249 aprint_debug_dev(sc->sc_gic.sc_dev, "redist at 0x%" PRIx64 " [GICC]\n", gicc->GicrBaseAddress);
251 sc->sc_gic.sc_bsh_r_count++;
275 sc->sc_gic.sc_bsh_r = kmem_alloc(sizeof(bus_space_handle_t) * max_redist, KM_SLEEP);
281 if (sc->sc_gic.sc_bsh_r_count == 0)
300 if (bus_space_map(sc->sc_gic.sc_bst, gits->BaseAddress, GITS_SIZE, 0, &bsh) != 0) {
301 aprint_error_dev(sc->sc_gic.sc_dev, "failed to map ITS at 0x%" PRIx64 " len %#x\n",
306 aprint_normal_dev(sc->sc_gic.sc_dev, "ITS #%d at 0x%" PRIx64 "\n",
309 gicv3_its_init(&sc->sc_gic, bsh, gits->BaseAddress, gits->TranslationId);
318 acpi_madt_walk(gic_v2m_acpi_find_msi_frame, sc->sc_gic.sc_dev);