From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Antonino A. Daplas" Subject: [PATCH 1/9] fbdev: Resurrect hooks to get EDID from firmware Date: Sat, 20 Aug 2005 00:32:31 +0800 Message-ID: <4306099F.80500@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 1E6HGv-0002Im-Od for linux-fbdev-devel@lists.sourceforge.net; Fri, 19 Aug 2005 17:31:41 -0700 Received: from wproxy.gmail.com ([64.233.184.203]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1E6HGv-0000bN-BM for linux-fbdev-devel@lists.sourceforge.net; Fri, 19 Aug 2005 17:31:41 -0700 Received: by wproxy.gmail.com with SMTP id i3so655742wra for ; Fri, 19 Aug 2005 17:31:34 -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 For the i386, code is already present in video.S that gets the EDID from the video BIOS. Make this visible so drivers can also use this data as fallback when i2c does not work. To ensure that the EDID block is returned for the primary graphics adapter only, by check if the IORESOURCE_ROM_SHADOW flag is set. From: Antonino Daplas Signed-off-by: Antonino Daplas --- arch/i386/boot/video.S | 2 +- drivers/video/fbmon.c | 35 ++++++++++++++++++++++++++++++++++- include/linux/fb.h | 4 +++- 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/arch/i386/boot/video.S b/arch/i386/boot/video.S --- a/arch/i386/boot/video.S +++ b/arch/i386/boot/video.S @@ -1949,7 +1949,7 @@ store_edid: movw $0x4f15, %ax # do VBE/DDC movw $0x01, %bx movw $0x00, %cx - movw $0x01, %dx + movw $0x00, %dx movw $0x140, %di int $0x10 diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c --- a/drivers/video/fbmon.c +++ b/drivers/video/fbmon.c @@ -29,6 +29,7 @@ #include #include #include +#include