+ gxfb-get-the-frambuffer-size-from-the-bios.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     gxfb: Get the frambuffer size from the BIOS

has been added to the -mm tree.  Its filename is

     gxfb-get-the-frambuffer-size-from-the-bios.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: gxfb: Get the frambuffer size from the BIOS
From: Jordan Crouse <jordan.crouse@xxxxxxx>


Use the Geode GX BIOS virtual registers to get the actual size of the
framebuffer.

Signed-off-by: Jordan Crouse <jordan.crouse@xxxxxxx>
Signed-off-by: David Vrabel <dvrabel@xxxxxxxxx>
Signed-off-by: Antonino Daplas <adaplas@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/video/geode/display_gx.c |   15 ++++++++++++---
 drivers/video/geode/display_gx.h |    2 +-
 2 files changed, 13 insertions(+), 4 deletions(-)

diff -puN drivers/video/geode/display_gx.c~gxfb-get-the-frambuffer-size-from-the-bios drivers/video/geode/display_gx.c
--- devel/drivers/video/geode/display_gx.c~gxfb-get-the-frambuffer-size-from-the-bios	2006-06-04 23:27:34.000000000 -0700
+++ devel-akpm/drivers/video/geode/display_gx.c	2006-06-04 23:27:34.000000000 -0700
@@ -21,10 +21,19 @@
 #include "geodefb.h"
 #include "display_gx.h"
 
-int gx_frame_buffer_size(void)
+unsigned int gx_frame_buffer_size(void)
 {
-	/* Assuming 16 MiB. */
-	return 16*1024*1024;
+	unsigned int val;
+
+	/* FB size is reported by a virtual register */
+	/* Virtual register class = 0x02 */
+	/* VG_MEM_SIZE(512Kb units) = 0x00 */
+
+	outw(0XFC53, 0xAC1C);
+	outw(0x0200, 0xAC1C);
+
+	val = (unsigned int)(inw(0xAC1E)) & 0xFFl;
+	return (val << 19);
 }
 
 int gx_line_delta(int xres, int bpp)
diff -puN drivers/video/geode/display_gx.h~gxfb-get-the-frambuffer-size-from-the-bios drivers/video/geode/display_gx.h
--- devel/drivers/video/geode/display_gx.h~gxfb-get-the-frambuffer-size-from-the-bios	2006-06-04 23:27:34.000000000 -0700
+++ devel-akpm/drivers/video/geode/display_gx.h	2006-06-04 23:27:34.000000000 -0700
@@ -11,7 +11,7 @@
 #ifndef __DISPLAY_GX_H__
 #define __DISPLAY_GX_H__
 
-int gx_frame_buffer_size(void);
+unsigned int gx_frame_buffer_size(void);
 int gx_line_delta(int xres, int bpp);
 
 extern struct geode_dc_ops gx_dc_ops;
_

Patches currently in -mm which might be from jordan.crouse@xxxxxxx are

origin.patch
scx200_acb-use-pci-i-o-resource-when-appropriate.patch
vt-delay-the-update-of-the-visible-console.patch
gxfb-get-the-frambuffer-size-from-the-bios.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux