From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Antonino A. Daplas" Subject: [PATCH 2/2]][RESEND] vesafb: Add blanking support Date: Wed, 27 Jul 2005 08:43:58 +0800 Message-ID: <42E6D8CE.5080007@gmail.com> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1Dxa2h-0002UN-NR for linux-fbdev-devel@lists.sourceforge.net; Tue, 26 Jul 2005 17:45:03 -0700 Received: from wproxy.gmail.com ([64.233.184.195]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1Dxa2h-0004WX-Hz for linux-fbdev-devel@lists.sourceforge.net; Tue, 26 Jul 2005 17:45:03 -0700 Received: by wproxy.gmail.com with SMTP id i3so66847wra for ; Tue, 26 Jul 2005 17:44:53 -0700 (PDT) Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Andrew Morton Cc: Linux Fbdev development list Previous patch is corrupt, please disregard. Add rudimentary support by manipulating the VGA registers. However, not all vesa modes are VGA compatible, so VGA compatiblity is checked first. Only 2 levels are supported, powerup and powerdown. From: Antonino Daplas Signed-off-by: Antonino Daplas --- arch/i386/boot/video.S | 9 +++++++-- drivers/video/vesafb.c | 38 ++++++++++++++++++++++++++++++++++++++ include/linux/tty.h | 3 ++- 3 files changed, 47 insertions(+), 3 deletions(-) Index: arch/i386/boot/video.S =================================================================== --- b0d937f67545c922e19f4f0680d1d02d6fbc035f/arch/i386/boot/video.S (mode:100644) +++ 86b5df80031a3c68459cc684c4ee9e00e9e38873/arch/i386/boot/video.S (mode:100644) @@ -97,7 +97,8 @@ #define PARAM_VESAPM_OFF 0x30 #define PARAM_LFB_PAGES 0x32 #define PARAM_VESA_ATTRIB 0x34 - +#define PARAM_CAPABILITIES 0x36 + /* Define DO_STORE according to CONFIG_VIDEO_RETAIN */ #ifdef CONFIG_VIDEO_RETAIN #define DO_STORE call store_screen @@ -224,7 +225,7 @@ movl %eax, %fs:(PARAM_LFB_COLORS+4) movw 0(%di), %ax movw %ax, %fs:(PARAM_VESA_ATTRIB) - + # get video mem size leaw modelist+1024, %di movw $0x4f00, %ax @@ -233,6 +234,10 @@ movw 18(%di), %ax movl %eax, %fs:(PARAM_LFB_SIZE) +# store mode capabilities + movl 10(%di), %eax + movl %eax, %fs:(PARAM_CAPABILITIES) + # switching the DAC to 8-bit is for <= 8 bpp only movw %fs:(PARAM_LFB_DEPTH), %ax cmpw $8, %ax Index: drivers/video/vesafb.c =================================================================== --- b0d937f67545c922e19f4f0680d1d02d6fbc035f/drivers/video/vesafb.c (mode:100644) +++ 86b5df80031a3c68459cc684c4ee9e00e9e38873/drivers/video/vesafb.c (mode:100644) @@ -19,6 +19,7 @@ #include #include #include +#include