Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2018 16:08:08 +0000 (UTC)
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330074 - head/sys/dev/extres/clk
Message-ID:  <201802271608.w1RG88ue057607@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802271608.w1RG88ue057607>