Lines Matching full:syscon
30 * This is a generic syscon driver, whose purpose is to provide access to
51 #include "syscon.h"
56 static uint32_t syscon_generic_unlocked_read_4(struct syscon *syscon,
58 static int syscon_generic_unlocked_write_4(struct syscon *syscon,
60 static int syscon_generic_unlocked_modify_4(struct syscon *syscon,
64 * Generic syscon driver (FDT)
67 {"syscon", 1},
74 device_get_nameunit((_sc)->dev), "syscon", MTX_SPIN)
90 syscon_generic_unlocked_read_4(struct syscon *syscon, bus_size_t offset) in syscon_generic_unlocked_read_4() argument
95 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_read_4()
102 syscon_generic_unlocked_write_4(struct syscon *syscon, bus_size_t offset, uint32_t val) in syscon_generic_unlocked_write_4() argument
106 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_write_4()
113 syscon_generic_unlocked_modify_4(struct syscon *syscon, bus_size_t offset, in syscon_generic_unlocked_modify_4() argument
119 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_modify_4()
155 device_set_desc(dev, "syscon"); in syscon_generic_probe()
180 sc->syscon = syscon_create_ofw_node(dev, &syscon_generic_class, in syscon_generic_attach()
182 if (sc->syscon == NULL) { in syscon_generic_attach()
183 device_printf(dev, "Failed to create/register syscon\n"); in syscon_generic_attach()
207 if (sc->syscon != NULL) { in syscon_generic_detach()
208 syscon_unregister(sc->syscon); in syscon_generic_detach()
209 free(sc->syscon, M_SYSCON); in syscon_generic_detach()