From mboxrd@z Thu Jan 1 00:00:00 1970 From: hollis@austin.ibm.com Date: Wed, 23 Jan 2002 13:20:10 -0600 To: linuxppc-dev@lists.linuxppc.org Cc: sdi@remote.org Subject: RFC: vesafb Message-ID: <20020123192010.GP510@austin.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="NqSa+Xr3J/G6Hhls" Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: --NqSa+Xr3J/G6Hhls Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The attached patch allows vesafb to work on PPC. vesafb does surprisingly little with the BIOS (which I thought was the whole point of VESA). With some ifdef's I'm able to use it as sort of a VGA offb -- the firmware initializes the card, and the driver just uses it and never mucks with it. This patch allows me to get an 800x600x8 console on the Thinkpad 850, and 640x480x8 on the Carolina machines. More interestingly it allows X to work on the Thinkpad, which currently doesn't work and has never worked in >16 colors. It should also work on the 7020 (Sven?), which uses the Weitek 9100 card and currently is driverless. This patch is only for PReP, which is probably the only place it's really useful (since CHRP and PMac have offb), but would be easy enough to add to. Comments? -Hollis --NqSa+Xr3J/G6Hhls Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="vesafb-ppc.diff" ===== drivers/video/Config.in 1.12 vs edited ===== --- 1.12/drivers/video/Config.in Thu Dec 6 11:36:15 2001 +++ edited/drivers/video/Config.in Tue Jan 22 11:16:00 2002 @@ -73,6 +73,7 @@ bool ' Chips 65550 display support' CONFIG_FB_CT65550 bool ' IMS Twin Turbo display support' CONFIG_FB_IMSTT dep_bool ' S3 Trio display support' CONFIG_FB_S3TRIO $CONFIG_ALL_PPC + bool ' VESA VGA graphics console' CONFIG_FB_VESA tristate ' VGA 16-color graphics console' CONFIG_FB_VGA16 if [ "$CONFIG_8xx" = "y" ]; then dep_tristate ' RPX LCD display support' CONFIG_FB_RPX $CONFIG_RPXLITE ===== drivers/video/vesafb.c 1.6 vs edited ===== --- 1.6/drivers/video/vesafb.c Fri Nov 16 14:45:58 2001 +++ edited/drivers/video/vesafb.c Tue Jan 22 15:14:35 2002 @@ -23,7 +23,9 @@ #include #include -#include +#ifdef __i386__ +# include +#endif /* __i386__ */ #include