diff options
author | Michal Meloun <mmel@FreeBSD.org> | 2018-02-27 16:08:08 +0000 |
---|---|---|
committer | Michal Meloun <mmel@FreeBSD.org> | 2018-02-27 16:08:08 +0000 |
commit | 4a744c0e9d69f6f316298c0d1c9502cbaea8b074 (patch) | |
tree | ef56e0d5fa7ad8afb64392cb7a63ccc9e1621356 /sys/dev/extres | |
parent | fad101b3f27e7fde7fa63da5817eecfa6354adf0 (diff) | |
download | src-4a744c0e9d69f6f316298c0d1c9502cbaea8b074.tar.gz src-4a744c0e9d69f6f316298c0d1c9502cbaea8b074.zip |
Define meaning of remaining clock rounding flags combinations.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=330074
Diffstat (limited to 'sys/dev/extres')
-rw-r--r-- | sys/dev/extres/clk/clk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/extres/clk/clk.h b/sys/dev/extres/clk/clk.h index 9bd259997977..4be9d3f12396 100644 --- a/sys/dev/extres/clk/clk.h +++ b/sys/dev/extres/clk/clk.h @@ -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 |