Al Viro
0fe6e2d292
intelfb delousing
...
ring_head is offset in card memory, not iomem pointer. Fixed, removed
fuckloads of amazingly bogus casts somebody had sprinkled all over the
place.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-06-24 17:22:17 +10:00
Dave Airlie
2abac1db35
intelfb: fixup clock calculation debugging.
...
The debugging code for pll clocks was wrong and causing div by 0.
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-06-18 16:12:27 +10:00
Dennis Munsie
72109368de
Removed hard coded EDID buffer size.
...
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com >
Acked-by: Antonino Daplas <adaplas@pol.net >
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-06-07 18:53:38 +10:00
Dennis Munsie
7a532c69c3
intelfb: use regular modedb table instead of VESA
...
intelfb driver -- use the regular modedb table instead of the VESA modedb
table. Ideally, the 9xx stride patch should be applied first, since there
are modes in the VESA table that won't work without that patch.
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com >
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-05-29 18:58:09 +10:00
Antonino A. Daplas
56e004e543
intelfb: use firmware EDID for mode database
...
Use firmware EDID for the driver's private mode database.
Signed-off-by: Antonino Daplas <adaplas@pol.net >
Cc: Sylvain Meyer <sylvain.meyer@worldonline.fr >
Signed-off-by: Andrew Morton <akpm@osdl.org >
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-05-29 18:49:08 +10:00
Dave Airlie
080a416802
Revert "intelfb driver -- use the regular modedb table instead of the VESA"
...
This reverts 2c47430a03 commit.
This conflicts with a patch in -mm from Antonino reapply later.
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-05-29 18:45:19 +10:00
Eric Hustvedt
65eb2f97db
intelfb: int option fix
...
Fix integer option parsing in the intelfb driver. The macro wasn't
accounting for the equal sign past the option name. As a result,
the vram option always returned 0.
Signed-off-by: Eric Hustvedt <ehustvedt@cecropia.com >
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-05-29 18:38:55 +10:00
Dave Airlie
f728377f67
sync modesetting code with X.org
...
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-05-27 18:56:02 +10:00
Dave Airlie
c9daa873c3
intelfb: align with changes from my X driver.
...
This just realigns the PLL calculation routines with the ones from my X.org
driver.
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-05-27 18:44:02 +10:00
Dennis Munsie
2c47430a03
intelfb driver -- use the regular modedb table instead of the VESA
...
modedb table. Ideally, the 9xx stride patch should be applied first, since
there are modes in the VESA table that won't work without that patch.
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com >
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-05-27 18:33:35 +10:00
Eric Hustvedt
1aecb39309
Adds support for 256MB aperture on 945 chipsets to the intelfb driver
...
and corrects calculation of stolen memory overhead.
Signed-off-by: Eric Hustvedt <ehustvedt@cecropia.com >
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com >
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-05-27 18:30:00 +10:00
Dennis Munsie
df7df8ab7b
intelfb -- uses stride alignment of 64 on the 9xx chipsets.
...
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com >
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-05-27 18:17:52 +10:00
Dave Airlie
51d797474f
intelfb: some cleanups for intelfbhw
...
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 16:19:26 +10:00
Dave Airlie
3587c50991
intelfb: fixup pitch calculation like X does
...
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 14:46:55 +10:00
Dave Airlie
3aff13cfb8
intelfb: fixup p calculation
...
This fixes up the p calculation of p1 and p2 for the i9xx chipsets.
This seems to work a lot better for lower pixel clocks..
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:29 +10:00
Dave Airlie
46f60b8e67
This patch makes a needlessly global struct static.
...
Signed-off-by: Adrian Bunk <bunk@stusta.de >
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:29 +10:00
Dave Airlie
9a90603f65
intelfb: add i945GM support
...
Untested i945GM support just add the framework.
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:28 +10:00
Dave Airlie
8b91b0b4f2
intelfb: fixup whitespace..
...
repeat after me, I must not take code from X without reformatting...
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:28 +10:00
Dave Airlie
8bb91f6a2d
intelfb: add hw cursor support for i9xx
...
This adds hw cursor support for the i9xx chipsets.
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:28 +10:00
Dave Airlie
7679f4d692
intelfb: make i915 modeset
...
This takes the modeset and pll code from my X driver.
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:28 +10:00
Dave Airlie
9639d5ec07
intelfb: add support for i945G
...
This just adds the defines and structure for i945G
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:28 +10:00
Dave Airlie
16109b3f4c
intelfb: add p divisor increments for i9xx.
...
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:28 +10:00
Dave Airlie
8492f081e5
intelfb: change splitm to be brute force
...
The old splitm didn't always work use a brute force.
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:27 +10:00
Dave Airlie
d024960cff
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
2006-04-03 11:43:27 +10:00
Dave Airlie
7258b11d2e
intelfb: prepare for i9xx support.
...
This code just moves the PLL min/max calculations variables into
a structure, it doesn't change or add any new functionality.
Signed-off-by: Dave Airlie <airlied@linux.ie >
2006-04-03 11:43:27 +10:00