From 250883f3e18f888c4356c8ff37e7604f73be65e7 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 26 Feb 2003 12:20:25 -0800 Subject: [PATCH] [FRAMEBUFFER]: Convert creatorfb to new APIs. --- drivers/video/Kconfig | 8 +- drivers/video/Makefile | 20 +- drivers/video/creatorfb.c | 928 ----------------------------- drivers/video/fbmem.c | 14 +- drivers/video/ffb.c | 1046 +++++++++++++++++++++++++++++++++ drivers/video/sbusfb.c | 1165 ------------------------------------- drivers/video/sbuslib.c | 85 +++ drivers/video/sbuslib.h | 21 + include/video/sbusfb.h | 147 ----- 9 files changed, 1173 insertions(+), 2261 deletions(-) delete mode 100644 drivers/video/creatorfb.c create mode 100644 drivers/video/ffb.c delete mode 100644 drivers/video/sbusfb.c create mode 100644 drivers/video/sbuslib.c create mode 100644 drivers/video/sbuslib.h delete mode 100644 include/video/sbusfb.h diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 4e875ace621b0..39edc0c2b2e40 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -809,12 +809,12 @@ config FB_SBUS help Say Y if you want support for SBUS or UPA based frame buffer device. -config FB_CREATOR - bool "Creator/Creator3D support" +config FB_FFB + bool "Creator/Creator3D/Elite3D support" depends on FB_SBUS && SPARC64 help - This is the frame buffer device driver for the Creator and Creator3D - graphics boards. + This is the frame buffer device driver for the Creator, Creator3D, + and Elite3D graphics boards. config FB_TCX bool "TCX (SS4/SS5 only) support" diff --git a/drivers/video/Makefile b/drivers/video/Makefile index c7a80836286c3..b5fb29910e69d 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -48,14 +48,6 @@ obj-$(CONFIG_FB_VGA16) += vga16fb.o cfbfillrect.o cfbcopyarea.o \ obj-$(CONFIG_FB_VIRGE) += virgefb.o obj-$(CONFIG_FB_G364) += g364fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_FM2) += fm2fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o -obj-$(CONFIG_FB_CREATOR) += creatorfb.o sbusfb.o -obj-$(CONFIG_FB_CGSIX) += cgsixfb.o sbusfb.o -obj-$(CONFIG_FB_BWTWO) += bwtwofb.o sbusfb.o -obj-$(CONFIG_FB_CGTHREE) += cgthreefb.o sbusfb.o -obj-$(CONFIG_FB_TCX) += tcxfb.o sbusfb.o -obj-$(CONFIG_FB_CGFOURTEEN) += cgfourteenfb.o sbusfb.o -obj-$(CONFIG_FB_P9100) += p9100fb.o sbusfb.o -obj-$(CONFIG_FB_LEO) += leofb.o sbusfb.o obj-$(CONFIG_FB_STI) += stifb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_PMAG_BA) += pmag-ba-fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_PMAGB_B) += pmagb-b-fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o @@ -78,6 +70,18 @@ obj-$(CONFIG_FB_E1355) += epson1355fb.o obj-$(CONFIG_FB_PVR2) += pvr2fb.o obj-$(CONFIG_FB_VOODOO1) += sstfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o +# One by one these are being converted over to the new APIs +#obj-$(CONFIG_FB_CREATOR) += creatorfb.o sbusfb.o +#obj-$(CONFIG_FB_CGSIX) += cgsixfb.o sbusfb.o +#obj-$(CONFIG_FB_BWTWO) += bwtwofb.o sbusfb.o +#obj-$(CONFIG_FB_CGTHREE) += cgthreefb.o sbusfb.o +#obj-$(CONFIG_FB_TCX) += tcxfb.o sbusfb.o +#obj-$(CONFIG_FB_CGFOURTEEN) += cgfourteenfb.o sbusfb.o +#obj-$(CONFIG_FB_P9100) += p9100fb.o sbusfb.o +#obj-$(CONFIG_FB_LEO) += leofb.o sbusfb.o + +obj-$(CONFIG_FB_FFB) += ffb.o sbuslib.o cfbimgblt.o cfbcopyarea.o + # Files generated that shall be removed upon make clean clean-files := promcon_tbl.c diff --git a/drivers/video/creatorfb.c b/drivers/video/creatorfb.c deleted file mode 100644 index 7a723971dec38..0000000000000 --- a/drivers/video/creatorfb.c +++ /dev/null @@ -1,928 +0,0 @@ -/* $Id: creatorfb.c,v 1.37 2001/10/16 05:44:44 davem Exp $ - * creatorfb.c: Creator/Creator3D frame buffer driver - * - * Copyright (C) 1997,1998,1999 Jakub Jelinek (jj@ultra.linux.cz) - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include