Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/fdt/simple_mfd.c
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
static uint32_t | static uint32_t | ||||
simple_mfd_syscon_read_4(struct syscon *syscon, bus_size_t offset) | simple_mfd_syscon_read_4(struct syscon *syscon, bus_size_t offset) | ||||
{ | { | ||||
struct simple_mfd_softc *sc; | struct simple_mfd_softc *sc; | ||||
uint32_t val; | uint32_t val; | ||||
sc = device_get_softc(syscon->pdev); | sc = device_get_softc(syscon->pdev); | ||||
SYSCON_ASSERT_LOCKED(sc);; | SYSCON_ASSERT_LOCKED(sc); | ||||
val = bus_read_4(sc->mem_res, offset); | val = bus_read_4(sc->mem_res, offset); | ||||
return (val); | return (val); | ||||
} | } | ||||
static int | static int | ||||
simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset, | simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset, | ||||
uint32_t val) | uint32_t val) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |