Lines Matching +full:sys +full:- +full:syscon
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
28 #include <sys/param.h>
29 #include <sys/systm.h>
30 #include <sys/bus.h>
31 #include <sys/kernel.h>
32 #include <sys/lock.h>
33 #include <sys/module.h>
34 #include <sys/mutex.h>
35 #include <sys/rman.h>
43 #include <dev/syscon/syscon.h>
54 struct syscon *syscon; member
79 sc->dev = dev; in cvitek_reset_attach()
82 "syscon", &sc->syscon); in cvitek_reset_attach()
84 device_printf(dev, "Couldn't get syscon handle\n"); in cvitek_reset_attach()
87 mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF); in cvitek_reset_attach()
105 mtx_lock(&sc->mtx); in cvitek_reset_assert()
106 val = SYSCON_READ_4(sc->syscon, offset); in cvitek_reset_assert()
111 SYSCON_WRITE_4(sc->syscon, offset, val); in cvitek_reset_assert()
112 mtx_unlock(&sc->mtx); in cvitek_reset_assert()