1 /* 2 * Copyright 2006-2015, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 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 11 12 13 #include "intel_extreme.h" 14 15 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; 24 }; 25 26 struct pll_limits { 27 pll_divisors min; 28 pll_divisors max; 29 uint32 dot_limit; 30 uint32 min_vco; 31 uint32 max_vco; 32 }; 33 34 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); 38 39 void refclk_activate_ilk(bool hasPanel); 40 41 42 #endif /* INTEL_EXTREME_PLL_H */ 43