Lines Matching +full:mmio +full:- +full:sram
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
50 { -1, 0 }
63 if (!ofw_bus_is_compatible(dev, "mmio-sram")) in mmio_sram_probe()
69 device_set_desc(dev, "MMIO SRAM"); in mmio_sram_probe()
81 sc->dev = dev; in mmio_sram_attach()
83 if (bus_alloc_resources(dev, mmio_sram_spec, sc->res) != 0) { in mmio_sram_attach()
89 if (node == -1) in mmio_sram_attach()
100 * Now walk the OFW tree and attach top-level devices. in mmio_sram_attach()
103 simplebus_add_device(dev, node, 0, NULL, -1, NULL); in mmio_sram_attach()
116 bus_release_resources(dev, mmio_sram_spec, sc->res); in mmio_sram_detach()
130 return (bus_read_1(sc->res[0], offset)); in mmio_sram_read_1()
142 bus_write_1(sc->res[0], offset, val); in mmio_sram_write_1()
151 /* MMIO interface */