Skip to contentSkip to conversation

fbdev: Intel 830M/845G/852GM/855GM/865G framebuffer driver port

PATCH In review Antonino A. Daplas 1 participant 1 message Oct 22, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 fbdev: Intel 830M/845G/852GM/855GM/865G framebuffer driver port

Linux framebuffer driver for Intel(R) 830M/845G/852GM/855GM/865G integrated graphics chips.
Port from kernel 2.4 + some modifications and cleanup :
- Fix HW accel on 845G
- Use of agpgart for fb memory reservation
- Add mtrr support

---
 drivers/Makefile                     |    3
 drivers/video/Kconfig                |   21
 drivers/video/Makefile               |    3
 drivers/video/intelfb/Makefile       |    8
 drivers/video/intelfb/builtinmodes.c |  222 ++++
 drivers/video/intelfb/intelfb.h      |  294 +++++
 drivers/video/intelfb/intelfbdrv.c   | 1625 ++++++++++++++++++++++++++++++++
 drivers/video/intelfb/intelfbdrv.h   |   77 +
 drivers/video/intelfb/intelfbhw.c    | 1749 +++++++++++++++++++++++++++++++++++
 drivers/video/intelfb/intelfbhw.h    |  565 +++++++++++
 include/linux/fb.h                   |    1
 11 files changed, 4567 insertions(+), 1 deletion(-)
drivers/Makefile +2 -1
diff -Nru a/drivers/Makefile b/drivers/Makefile
@@ -17,8 +17,9 @@
 # default.
 obj-y				+= char/
 
-# i810fb depends on char/agp/
+# i810fb and intelfb depend on char/agp/
 obj-$(CONFIG_FB_I810)           += video/i810/
+obj-$(CONFIG_FB_INTEL)          += video/intelfb/
 
 # we also need input/serio early so serio bus is initialized by the time
 # serial drivers start registering their serio ports
drivers/video/Kconfig +21 -0
diff -Nru a/drivers/video/Kconfig b/drivers/video/Kconfig
@@ -517,6 +517,27 @@
   
           If unsure, say N.
 
+config FB_INTEL
+	tristate "Intel 830M/845G/852GM/855GM/865G support (EXPERIMENTAL)"
+	depends on FB && EXPERIMENTAL && PCI
+	select AGP
+	select AGP_INTEL
+	help
+	  This driver supports the on-board graphics built in to the Intel
+          830M/845G/852GM/855GM/865G chipsets.
+          Say Y if you have and plan to use such a board.
+
+          To compile this driver as a module, choose M here: the
+	  module will be called intelfb.
+
+config FB_INTEL_DEBUG
+        bool "Intel driver Debug Messages"
+	depends on FB_INTEL
+	---help---
+	  Say Y here if you want the Intel driver to output all sorts
+	  of debugging informations to provide to the maintainer when
+	  something goes wrong.
+
 config FB_MATROX
 	tristate "Matrox acceleration"
 	depends on FB && PCI
drivers/video/Makefile +3 -0
diff -Nru a/drivers/video/Makefile b/drivers/video/Makefile
@@ -32,6 +32,9 @@
 
 obj-$(CONFIG_FB_I810)             += cfbcopyarea.o cfbfillrect.o cfbimgblt.o \
 				     vgastate.o
+obj-$(CONFIG_FB_INTEL)            += cfbfillrect.o cfbcopyarea.o \
+	                             cfbimgblt.o
+
 obj-$(CONFIG_FB_RADEON_OLD)	  += radeonfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
 obj-$(CONFIG_FB_NEOMAGIC)         += neofb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o vgastate.o
 obj-$(CONFIG_FB_VIRGE)            += virgefb.o
drivers/video/intelfb/Makefile new file +8 -0
diff -Nru a/drivers/video/intelfb/Makefile b/drivers/video/intelfb/Makefile
@@ -0,0 +1,8 @@
+obj-$(CONFIG_FB_INTEL) += intelfb.o
+
+intelfb-objs := intelfbdrv.o intelfbhw.o
+
+ifdef CONFIG_FB_INTEL_DEBUG
+#EXTRA_CFLAGS += -DDEBUG -DVERBOSE -DREGDUMP
+EXTRA_CFLAGS += -DDEBUG -DREGDUMP
+endif
drivers/video/intelfb/builtinmodes.c new file +222 -0

222 lines not on this page · raw message

drivers/video/intelfb/intelfb.h new file +294 -0

294 lines not on this page · raw message

drivers/video/intelfb/intelfbdrv.c new file +1625 -0

1,625 lines not on this page · raw message

drivers/video/intelfb/intelfbdrv.h new file +77 -0

77 lines not on this page · raw message

drivers/video/intelfb/intelfbhw.c new file +1749 -0

728 lines not on this page · raw message

drivers/video/intelfb/intelfbhw.h new file +565 -0

565 lines not on this page · raw message

include/linux/fb.h +1 -0
diff -Nru a/include/linux/fb.h b/include/linux/fb.h

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

Part of the diff is not shown here. View the raw message.