diff options
author | Dave Airlie <airlied@linux.ie> | 2006-03-20 04:26:45 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-04-02 21:43:27 -0400 |
commit | d024960cff5173bef6e83c01cf9cd2763c2c0ab0 (patch) | |
tree | a63dfaf6de88b82b2aaf892e741881e4e602befb /drivers/video/intelfb/intelfbhw.h | |
parent | 7258b11d2e9a47d2b01620622579f22906960e1a (diff) |
intelfb: add pll index to the intelfb structure
Add the pll index into the information structure, change get_chipset to
take only the info structure, use plls in correct places
Diffstat (limited to 'drivers/video/intelfb/intelfbhw.h')
-rw-r--r-- | drivers/video/intelfb/intelfbhw.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/video/intelfb/intelfbhw.h b/drivers/video/intelfb/intelfbhw.h index e3c305c66d5c..a3ec8f92eb64 100644 --- a/drivers/video/intelfb/intelfbhw.h +++ b/drivers/video/intelfb/intelfbhw.h | |||
@@ -158,12 +158,6 @@ | |||
158 | #define MIN_CLOCK 25000 | 158 | #define MIN_CLOCK 25000 |
159 | #define MAX_CLOCK 350000 | 159 | #define MAX_CLOCK 350000 |
160 | 160 | ||
161 | #define CALC_VCLOCK(m1, m2, n, p1, p2) \ | ||
162 | ((PLL_REFCLK * (5 * ((m1) + 2) + ((m2) + 2)) / ((n) + 2)) / \ | ||
163 | (((p1) + 2) * (1 << (p2 + 1)))) | ||
164 | |||
165 | #define CALC_VCLOCK3(m, n, p) ((PLL_REFCLK * (m) / (n)) / (p)) | ||
166 | |||
167 | /* Two pipes */ | 161 | /* Two pipes */ |
168 | #define PIPE_A 0 | 162 | #define PIPE_A 0 |
169 | #define PIPE_B 1 | 163 | #define PIPE_B 1 |
@@ -507,8 +501,7 @@ | |||
507 | 501 | ||
508 | 502 | ||
509 | /* function protoypes */ | 503 | /* function protoypes */ |
510 | extern int intelfbhw_get_chipset(struct pci_dev *pdev, const char **name, | 504 | extern int intelfbhw_get_chipset(struct pci_dev *pdev, struct intelfb_info *dinfo); |
511 | int *chipset, int *mobile); | ||
512 | extern int intelfbhw_get_memory(struct pci_dev *pdev, int *aperture_size, | 505 | extern int intelfbhw_get_memory(struct pci_dev *pdev, int *aperture_size, |
513 | int *stolen_size); | 506 | int *stolen_size); |
514 | extern int intelfbhw_check_non_crt(struct intelfb_info *dinfo); | 507 | extern int intelfbhw_check_non_crt(struct intelfb_info *dinfo); |