vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / accelerants / intel_extreme / pll.h
blobd30edd2c46bf3817465e32bf7f749cff5957fdc3
1 /*
2 * Copyright 2006-2015, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Axel Dörfler, axeld@pinc-software.de
7 * Alexander von Gluck IV, kallisti5@unixzen.com
8 */
9 #ifndef INTEL_EXTREME_PLL_H
10 #define INTEL_EXTREME_PLL_H
13 #include "intel_extreme.h"
16 struct pll_divisors {
17 uint32 p;
18 uint32 p1;
19 uint32 p2;
20 uint32 n;
21 uint32 m;
22 uint32 m1;
23 uint32 m2;
26 struct pll_limits {
27 pll_divisors min;
28 pll_divisors max;
29 uint32 dot_limit;
30 uint32 min_vco;
31 uint32 max_vco;
35 bool valid_pll_divisors(pll_divisors* divisors, pll_limits* limits);
36 void compute_pll_divisors(display_mode* current, pll_divisors* divisors,
37 bool isLVDS);
39 void refclk_activate_ilk(bool hasPanel);
42 #endif /* INTEL_EXTREME_PLL_H */