summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-05-17 13:21:22 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-05-17 13:21:22 +0000
commit789c39c8e28c45a43276abd64191d68d0669064d (patch)
tree5d114a45c497739bc11adf92325a21380d442488 /sys/dev
parent8aa578901af2ee933dc5a413d464e25f23b2834d (diff)
Add function for attaching RTC drivers, to reduce direct use
of todr_handle. OK kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/clock_subr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/clock_subr.h b/sys/dev/clock_subr.h
index fb473b581b1..3d4c4544b44 100644
--- a/sys/dev/clock_subr.h
+++ b/sys/dev/clock_subr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock_subr.h,v 1.5 2008/06/26 05:42:14 ray Exp $ */
+/* $OpenBSD: clock_subr.h,v 1.6 2020/05/17 13:21:20 visa Exp $ */
/* $NetBSD: clock_subr.h,v 1.2 1997/03/15 18:11:17 is Exp $ */
/*-
@@ -62,3 +62,4 @@ typedef struct todr_chip_handle *todr_chip_handle_t;
#define todr_wenable(ct, v) if ((ct)->todr_setwen) \
((*(ct)->todr_setwen)(ct, v))
+void todr_attach(struct todr_chip_handle *);