Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2018 02:31:15 +0000 (UTC)
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r331974 - stable/11/sys/dev/extres/clk
Message-ID:  <201804040231.w342VFZX065513@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmel
Date: Wed Apr  4 02:31:14 2018
New Revision: 331974
URL: https://svnweb.freebsd.org/changeset/base/331974

Log:
  MFC r330074:
  
    Define meaning of remaining clock rounding flags combinations.

Modified:
  stable/11/sys/dev/extres/clk/clk.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/extres/clk/clk.h
==============================================================================
--- stable/11/sys/dev/extres/clk/clk.h	Wed Apr  4 02:30:00 2018	(r331973)
+++ stable/11/sys/dev/extres/clk/clk.h	Wed Apr  4 02:31:14 2018	(r331974)
@@ -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?201804040231.w342VFZX065513>