svn commit: r330074 - head/sys/dev/extres/clk
Michal Meloun
mmel at FreeBSD.org
Tue Feb 27 16:08:09 UTC 2018
Author: mmel
Date: Tue Feb 27 16:08:08 2018
New Revision: 330074
URL: https://svnweb.freebsd.org/changeset/base/330074
Log:
Define meaning of remaining clock rounding flags combinations.
MFC after: 2 weeks
Modified:
head/sys/dev/extres/clk/clk.h
Modified: head/sys/dev/extres/clk/clk.h
==============================================================================
--- head/sys/dev/extres/clk/clk.h Tue Feb 27 15:35:11 2018 (r330073)
+++ head/sys/dev/extres/clk/clk.h Tue Feb 27 16:08:08 2018 (r330074)
@@ -44,8 +44,12 @@
#define CLK_NODE_CANNOT_STOP 0x00000004 /* Clock cannot be disabled */
/* Flags passed to clk_set_freq() and clknode_set_freq(). */
+#define CLK_SET_ROUND(x) ((x) & (CLK_SET_ROUND_UP | CLK_SET_ROUND_DOWN))
+#define CLK_SET_ROUND_EXACT 0
#define CLK_SET_ROUND_UP 0x00000001
#define CLK_SET_ROUND_DOWN 0x00000002
+#define CLK_SET_ROUND_ANY (CLK_SET_ROUND_UP | CLK_SET_ROUND_DOWN)
+
#define CLK_SET_USER_MASK 0x0000FFFF
#define CLK_SET_DRYRUN 0x00010000
More information about the svn-src-all
mailing list