diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-08-22 18:16:59 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-08-22 18:16:59 +0000 |
commit | 83898267684016606f3a3e3bc27877559f6997ea (patch) | |
tree | 69d758b5a64f95afd636507dc5f035966d232134 /sys/dev/ofw/ofw_clock.h | |
parent | a46ac02fa5a491f613ec95ab563381377c82921f (diff) |
Add a reset signal API alongside the clock API.
Diffstat (limited to 'sys/dev/ofw/ofw_clock.h')
-rw-r--r-- | sys/dev/ofw/ofw_clock.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofw_clock.h b/sys/dev/ofw/ofw_clock.h index d67f959ba41..fdeff05d554 100644 --- a/sys/dev/ofw/ofw_clock.h +++ b/sys/dev/ofw/ofw_clock.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_clock.h,v 1.2 2016/08/22 11:23:54 kettenis Exp $ */ +/* $OpenBSD: ofw_clock.h,v 1.3 2016/08/22 18:16:58 kettenis Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -50,4 +50,19 @@ clock_disable_all(int node) clock_disable_idx(node, -1); } +struct reset_device { + int rd_node; + void *rd_cookie; + void (*rd_reset)(void *, uint32_t *, int); + + LIST_ENTRY(reset_device) rd_list; + uint32_t rd_phandle; + uint32_t rd_cells; +}; + +void reset_register(struct reset_device *); + +void reset_assert(int, const char *); +void reset_deassert(int, const char *); + #endif /* _DEV_OFW_CLOCK_H_ */ |