From f9d7da1c38b182ac7e605898b4d5a7f76a0ab09a Mon Sep 17 00:00:00 2001 From: James Simmons Date: Tue, 20 Aug 2002 08:15:23 -0700 Subject: Further api porting. Almost done. Here we eliminate get[set]_cmap from struct fb_ops. Also set_disp has ben moved into fbcon.c instead of the drivers. --- include/linux/fb.h | 54 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 16 deletions(-) (limited to 'include/linux/fb.h') diff --git a/include/linux/fb.h b/include/linux/fb.h index 0fd013774ac7..79816ef35026 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -3,6 +3,7 @@ #include #include +#include /* Definitions of frame buffers */ @@ -319,12 +320,6 @@ struct fb_ops { /* set settable parameters */ int (*fb_set_var)(struct fb_var_screeninfo *var, int con, struct fb_info *info); - /* get colormap */ - int (*fb_get_cmap)(struct fb_cmap *cmap, int kspc, int con, - struct fb_info *info); - /* set colormap */ - int (*fb_set_cmap)(struct fb_cmap *cmap, int kspc, int con, - struct fb_info *info); /* checks var and creates a par based on it */ int (*fb_check_var)(struct fb_var_screeninfo *var, struct fb_info *info); /* set the video mode according to par */ @@ -365,15 +360,11 @@ struct fb_info { struct fb_cmap cmap; /* Current cmap */ struct fb_ops *fbops; char *screen_base; /* Virtual address */ - struct display *disp; /* initial display variable */ struct vc_data *display_fg; /* Console visible on this display */ int currcon; /* Current VC. */ char fontname[40]; /* default font name */ devfs_handle_t devfs_handle; /* Devfs handle for new name */ devfs_handle_t devfs_lhandle; /* Devfs handle for compat. symlink */ - int (*changevar)(int); /* tell console var has changed */ - int (*switch_con)(int, struct fb_info*); - /* tell fb to switch consoles */ int (*updatevar)(int, struct fb_info*); /* tell fb to update the vars */ void *pseudo_palette; /* Fake palette of 16 colors and @@ -387,6 +378,42 @@ struct fb_info { #define FBINFO_FLAG_DEFAULT FBINFO_FLAG_MODULE #else #define FBINFO_FLAG_DEFAULT 0 +#endif + +#if defined(__sparc__) + +/* We map all of our framebuffers such that big-endian accesses + * are what we want, so the following is sufficient. + */ + +#define fb_readb sbus_readb +#define fb_readw sbus_readw +#define fb_readl sbus_readl +#define fb_writeb sbus_writeb +#define fb_writew sbus_writew +#define fb_writel sbus_writel +#define fb_memset sbus_memset_io + +#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) + +#define fb_readb __raw_readb +#define fb_readw __raw_readw +#define fb_readl __raw_readl +#define fb_writeb __raw_writeb +#define fb_writew __raw_writew +#define fb_writel __raw_writel +#define fb_memset memset_io + +#else + +#define fb_readb(addr) (*(volatile u8 *) (addr)) +#define fb_readw(addr) (*(volatile u16 *) (addr)) +#define fb_readl(addr) (*(volatile u32 *) (addr)) +#define fb_writeb(b,addr) (*(volatile u8 *) (addr) = (b)) +#define fb_writew(b,addr) (*(volatile u16 *) (addr) = (b)) +#define fb_writel(b,addr) (*(volatile u32 *) (addr) = (b)) +#define fb_memset memset + #endif /* @@ -395,14 +422,10 @@ struct fb_info { extern int gen_set_var(struct fb_var_screeninfo *var, int con, struct fb_info *info); -extern int gen_get_cmap(struct fb_cmap *cmap, int kspc, int con, - struct fb_info *info); -extern int gen_set_cmap(struct fb_cmap *cmap, int kspc, int con, - struct fb_info *info); extern int fb_pan_display(struct fb_var_screeninfo *var, int con, struct fb_info *info); extern void cfb_fillrect(struct fb_info *info, struct fb_fillrect *rect); -extern void cfb_copyarea(struct fb_info *info, struct fb_copyarea *region); +extern void cfb_copyarea(struct fb_info *info, struct fb_copyarea *area); extern void cfb_imageblit(struct fb_info *info, struct fb_image *image); /* @@ -411,7 +434,6 @@ extern void cfb_imageblit(struct fb_info *info, struct fb_image *image); extern int gen_update_var(int con, struct fb_info *info); extern int fb_blank(int blank, struct fb_info *info); -extern int gen_switch(int con, struct fb_info *info); extern void gen_set_disp(int con, struct fb_info *info); /* drivers/video/fbmem.c */ -- cgit v1.2.3 From 73b3c69e9cde48479839569b9688698171ee36e8 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Mon, 26 Aug 2002 22:14:59 -0700 Subject: More fbdev api cleanups. Removed modename from struct fb_info. Incorporated Paul's fixes. The cfb stuff is finally going away. --- CREDITS | 13 ++ MAINTAINERS | 7 + drivers/video/Config.help | 26 --- drivers/video/Config.in | 21 ++- drivers/video/Makefile | 4 +- drivers/video/anakinfb.c | 1 - drivers/video/aty/atyfb_base.c | 52 ++---- drivers/video/cfbcopyarea.c | 4 +- drivers/video/dnfb.c | 1 - drivers/video/fbcon-cfb16.c | 319 ------------------------------------- drivers/video/fbcon-cfb2.c | 225 -------------------------- drivers/video/fbcon-cfb24.c | 333 --------------------------------------- drivers/video/fbcon-cfb32.c | 305 ----------------------------------- drivers/video/fbcon-cfb4.c | 229 --------------------------- drivers/video/fbcon-cfb8.c | 294 ---------------------------------- drivers/video/fbcon-mfb.c | 217 ------------------------- drivers/video/fm2fb.c | 2 - drivers/video/g364fb.c | 1 - drivers/video/hitfb.c | 1 - drivers/video/hpfb.c | 1 - drivers/video/macfb.c | 1 - drivers/video/maxinefb.c | 3 - drivers/video/neofb.c | 2 - drivers/video/offb.c | 1 - drivers/video/pmag-ba-fb.c | 1 - drivers/video/pmagb-b-fb.c | 1 - drivers/video/q40fb.c | 1 - drivers/video/sgivwfb.c | 1 - drivers/video/skeletonfb.c | 3 - drivers/video/tx3912fb.c | 1 - drivers/video/vesafb.c | 1 - drivers/video/vfb.c | 3 - drivers/video/vgacon.c | 7 + include/linux/fb.h | 9 +- include/video/fbcon-cfb16.h | 34 ---- include/video/fbcon-cfb2.h | 32 ---- include/video/fbcon-cfb24.h | 34 ---- include/video/fbcon-cfb32.h | 34 ---- include/video/fbcon-cfb4.h | 32 ---- include/video/fbcon-cfb8.h | 34 ---- include/video/fbcon-vga-planes.h | 1 + 41 files changed, 60 insertions(+), 2232 deletions(-) delete mode 100644 drivers/video/fbcon-cfb16.c delete mode 100644 drivers/video/fbcon-cfb2.c delete mode 100644 drivers/video/fbcon-cfb24.c delete mode 100644 drivers/video/fbcon-cfb32.c delete mode 100644 drivers/video/fbcon-cfb4.c delete mode 100644 drivers/video/fbcon-cfb8.c delete mode 100644 drivers/video/fbcon-mfb.c delete mode 100644 include/video/fbcon-cfb16.h delete mode 100644 include/video/fbcon-cfb2.h delete mode 100644 include/video/fbcon-cfb24.h delete mode 100644 include/video/fbcon-cfb32.h delete mode 100644 include/video/fbcon-cfb4.h delete mode 100644 include/video/fbcon-cfb8.h (limited to 'include/linux/fb.h') diff --git a/CREDITS b/CREDITS index 8bd9e0916b2e..d8fa5ac4deea 100644 --- a/CREDITS +++ b/CREDITS @@ -2773,6 +2773,19 @@ S: Klosterweg 28 / i309 S: 76131 Karlsruhe S: Germany +N: James Simmons +E: jsimmons@users.sf.net +D: Frame buffer device maintainer +D: input layer developement +D: tty/console layer +D: various mipsel devices +S: 115 Carmel Avenue +S: El Cerrito CA 94530 +S: USA + +N: Chris Vance +E: cvance@tislabs.com + N: Jaspreet Singh E: jaspreet@sangoma.com W: www.sangoma.com diff --git a/MAINTAINERS b/MAINTAINERS index d201818b39bf..916b888739e2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -574,6 +574,13 @@ M: kevin.curtis@farsite.co.uk W: http://www.farsite.co.uk/ S: Supported +FRAMEBUFFER LAYER +P: James Simmons, Geert Uytterhoeven +M: jsimmons@users.sf.net, geert@linux-m68k.org +L: linux-fbdev-devel@lists.sourceforge.net +W: http://www.linux-fbdev.org +S: Supported + FILE LOCKING (flock() and fcntl()/lockf()) P: Matthew Wilcox M: matthew@wil.cx diff --git a/drivers/video/Config.help b/drivers/video/Config.help index 7a079fff6d58..ee952117f677 100644 --- a/drivers/video/Config.help +++ b/drivers/video/Config.help @@ -672,32 +672,6 @@ CONFIG_FBCON_MFB This is the low level frame buffer console driver for monochrome (2 colors) packed pixels. -CONFIG_FBCON_CFB2 - This is the low level frame buffer console driver for 2 bits per - pixel (4 colors) packed pixels. - -CONFIG_FBCON_CFB4 - This is the low level frame buffer console driver for 4 bits per - pixel (16 colors) packed pixels. - -CONFIG_FBCON_CFB8 - This is the low level frame buffer console driver for 8 bits per - pixel (256 colors) packed pixels. - -CONFIG_FBCON_CFB16 - This is the low level frame buffer console driver for 15 or 16 bits - per pixel (32K or 64K colors, also known as `hicolor') packed - pixels. - -CONFIG_FBCON_CFB24 - This is the low level frame buffer console driver for 24 bits per - pixel (16M colors, also known as `truecolor') packed pixels. It is - NOT for `sparse' 32 bits per pixel mode. - -CONFIG_FBCON_CFB32 - This is the low level frame buffer console driver for 32 bits per - pixel (16M colors, also known as `truecolor') sparse packed pixels. - CONFIG_FBCON_AFB This is the low level frame buffer console driver for 1 to 8 bitplanes (2 to 256 colors) on Amiga. diff --git a/drivers/video/Config.in b/drivers/video/Config.in index b36afc2f81dd..a75f165da599 100644 --- a/drivers/video/Config.in +++ b/drivers/video/Config.in @@ -254,7 +254,7 @@ if [ "$CONFIG_FB" = "y" ]; then define_tristate CONFIG_FBCON_CFB2 y define_tristate CONFIG_FBCON_CFB4 y else - if [ "$CONFIG_FB_ACORN" = "m" -o "$CONFIG_FB_SA1100" = "m"]; then + if [ "$CONFIG_FB_ACORN" = "m" -o "$CONFIG_FB_SA1100" = "m" ]; then define_tristate CONFIG_FBCON_CFB2 m define_tristate CONFIG_FBCON_CFB4 m fi @@ -283,7 +283,7 @@ if [ "$CONFIG_FB" = "y" ]; then "$CONFIG_FB_VIRGE" = "m" -o "$CONFIG_FB_CYBER" = "m" -o \ "$CONFIG_FB_VALKYRIE" = "m" -o "$CONFIG_FB_PLATINUM" = "m" -o \ "$CONFIG_FB_IGA" = "m" -o "$CONFIG_FB_MATROX" = "m" -o \ - "$CONFIG_FB_CT65550" = "m" -o "$CONFIG_FB_PM2" = "m"-o \ + "$CONFIG_FB_CT65550" = "m" -o "$CONFIG_FB_PM2" = "m" -o \ "$CONFIG_FB_SA1100" = "m" ]; then define_tristate CONFIG_FBCON_CFB8 m fi @@ -313,20 +313,16 @@ if [ "$CONFIG_FB" = "y" ]; then define_tristate CONFIG_FBCON_CFB16 m fi fi - if [ "$CONFIG_FB_ATY" = "y" -o "$CONFIG_FB_VIRTUAL" = "y" -o \ - "$CONFIG_FB_CLGEN" = "y" -o "$CONFIG_FB_VESA" = "y" -o \ + if [ "$CONFIG_FB_CYBER2000" = "y" -o "$CONFIG_FB_VOODOO1" = "y" -o \ + "$CONFIG_FB_CLGEN" = "y" -o "$CONFIG_FB_PVR2" = "y" -o \ "$CONFIG_FB_MATROX" = "y" -o "$CONFIG_FB_PM2" = "y" -o \ - "$CONFIG_FB_ATY128" = "y" -o "$CONFIG_FB_RADEON" = "y" -o \ - "$CONFIG_FB_CYBER2000" = "y" -o "$CONFIG_FB_PVR2" = "y" -o \ - "$CONFIG_FB_VOODOO1" = "y" -o "$CONFIG_FB_NEOMAGIC" = "y" ]; then + "$CONFIG_FB_ATY128" = "y" -o "$CONFIG_FB_RADEON" = "y" ]; then define_tristate CONFIG_FBCON_CFB24 y else - if [ "$CONFIG_FB_ATY" = "m" -o "$CONFIG_FB_VIRTUAL" = "m" -o \ - "$CONFIG_FB_CLGEN" = "m" -o "$CONFIG_FB_VESA" = "m" -o \ + if [ "$CONFIG_FB_CLGEN" = "m" -o "$CONFIG_FB_VOODOO1" = "m" -o \ "$CONFIG_FB_MATROX" = "m" -o "$CONFIG_FB_PM2" = "m" -o \ "$CONFIG_FB_ATY128" = "m" -o "$CONFIG_FB_RADEON" = "m" -o \ - "$CONFIG_FB_CYBER2000" = "m" -o "$CONFIG_FB_PVR2" = "m" -o \ - "$CONFIG_FB_VOODOO1" = "m" -o "$CONFIG_FB_NEOMAGIC" = "y" ]; then + "$CONFIG_FB_CYBER2000" = "m" -o "$CONFIG_FB_PVR2" = "m" ]; then define_tristate CONFIG_FBCON_CFB24 m fi fi @@ -365,7 +361,8 @@ if [ "$CONFIG_FB" = "y" ]; then if [ "$CONFIG_FB_NEOMAGIC" = "m" -o "$CONFIG_FB_HIT" = "m" -o \ "$CONFIG_FB_G364" = "m" -o "$CONFIG_FB_VIRTUAL" = "m" -o \ "$CONFIG_FB_CLPS711X" = "m" -o "$CONFIG_FB_3DFX" = "m" -o \ - "$CONFIG_FB_RIVA" = "m" -o "$CONFIG_FB_SGIVW" = "m" ]; then + "$CONFIG_FB_RIVA" = "m" -o "$CONFIG_FB_SGIVW" = "m" -o \ + "$CONFIG_FB_ATY" = "m" ]; then define_tristate CONFIG_FBCON_ACCEL m fi fi diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 4b837615ca42..12bbe9caabab 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -8,7 +8,7 @@ export-objs := fbmem.o fbcmap.o fbcon.o fbmon.o modedb.o \ fbcon-afb.o fbcon-ilbm.o fbcon-accel.o \ fbcon-vga.o fbcon-iplan2p2.o fbcon-iplan2p4.o \ - fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-cfb16.o \ + fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-vga8-planes.o fbcon-cfb16.o \ fbcon-cfb2.o fbcon-cfb24.o fbcon-cfb32.o fbcon-cfb4.o \ fbcon-cfb8.o fbcon-mfb.o fbcon-hga.o \ cyber2000fb.o sa1100fb.o fbgen.o @@ -68,7 +68,7 @@ obj-$(CONFIG_FB_TRIDENT) += tridentfb.o obj-$(CONFIG_FB_S3TRIO) += S3triofb.o obj-$(CONFIG_FB_TGA) += tgafb.o obj-$(CONFIG_FB_VESA) += vesafb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o -obj-$(CONFIG_FB_VGA16) += vga16fb.o fbcon-vga-planes.o +obj-$(CONFIG_FB_VGA16) += vga16fb.o fbcon-vga-planes.o fbcon-vga8-planes.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 diff --git a/drivers/video/anakinfb.c b/drivers/video/anakinfb.c index b00362587e1a..3cecff3a71fe 100644 --- a/drivers/video/anakinfb.c +++ b/drivers/video/anakinfb.c @@ -74,7 +74,6 @@ anakinfb_init(void) { memset(&fb_info, 0, sizeof(struct fb_info)); - strcpy(fb_info.modename, anakinfb_fix.id); fb_info.node = NODEV; fb_info.currcon = -1; fb_info.flags = FBINFO_FLAG_DEFAULT; diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index d0664a2d57b3..438fcf03cb75 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c @@ -689,6 +689,13 @@ static int aty_crtc_to_var(const struct crtc *crtc, (v_sync_pol ? 0 : FB_SYNC_VERT_HIGH_ACT) | (c_sync ? FB_SYNC_COMP_HIGH_ACT : 0); + var->red.msb_right = 0; + var->green.msb_right = 0; + var->blue.offset = 0; + var->blue.msb_right = 0; + var->transp.offset = 0; + var->transp.length = 0; + var->transp.msb_right = 0; switch (pix_width) { #if 0 case CRTC_PIX_WIDTH_4BPP: @@ -697,10 +704,7 @@ static int aty_crtc_to_var(const struct crtc *crtc, var->red.length = 8; var->green.offset = 0; var->green.length = 8; - var->blue.offset = 0; var->blue.length = 8; - var->transp.offset = 0; - var->transp.length = 0; break; #endif case CRTC_PIX_WIDTH_8BPP: @@ -709,10 +713,7 @@ static int aty_crtc_to_var(const struct crtc *crtc, var->red.length = 8; var->green.offset = 0; var->green.length = 8; - var->blue.offset = 0; var->blue.length = 8; - var->transp.offset = 0; - var->transp.length = 0; break; case CRTC_PIX_WIDTH_15BPP: /* RGB 555 */ bpp = 16; @@ -720,10 +721,7 @@ static int aty_crtc_to_var(const struct crtc *crtc, var->red.length = 5; var->green.offset = 5; var->green.length = 5; - var->blue.offset = 0; var->blue.length = 5; - var->transp.offset = 0; - var->transp.length = 0; break; #if 0 case CRTC_PIX_WIDTH_16BPP: /* RGB 565 */ @@ -732,10 +730,7 @@ static int aty_crtc_to_var(const struct crtc *crtc, var->red.length = 5; var->green.offset = 5; var->green.length = 6; - var->blue.offset = 0; var->blue.length = 5; - var->transp.offset = 0; - var->transp.length = 0; break; #endif case CRTC_PIX_WIDTH_24BPP: /* RGB 888 */ @@ -744,10 +739,7 @@ static int aty_crtc_to_var(const struct crtc *crtc, var->red.length = 8; var->green.offset = 8; var->green.length = 8; - var->blue.offset = 0; var->blue.length = 8; - var->transp.offset = 0; - var->transp.length = 0; break; case CRTC_PIX_WIDTH_32BPP: /* ARGB 8888 */ bpp = 32; @@ -755,7 +747,6 @@ static int aty_crtc_to_var(const struct crtc *crtc, var->red.length = 8; var->green.offset = 8; var->green.length = 8; - var->blue.offset = 0; var->blue.length = 8; var->transp.offset = 24; var->transp.length = 8; @@ -865,8 +856,7 @@ static int atyfb_set_par(struct fb_info *info) #ifdef CONFIG_BOOTX_TEXT btext_update_display(info->fix.smem_start, - (((par->crtc.h_tot_disp >> 16) & 0xff) + - 1) * 8, + (((par->crtc.h_tot_disp >> 16) & 0xff) + 1) * 8, ((par->crtc.v_tot_disp >> 16) & 0x7ff) + 1, info->var.bits_per_pixel, par->crtc.vxres * info->var.bits_per_pixel / 8); @@ -900,14 +890,13 @@ static int atyfb_encode_var(struct fb_var_screeninfo *var, { int err; - memset(var, 0, sizeof(struct fb_var_screeninfo)); - if ((err = aty_crtc_to_var(&par->crtc, var))) return err; var->pixclock = par->pll_ops->pll_to_var(info, &par->pll); var->height = -1; var->width = -1; + var->nonstd = 0; return 0; } @@ -1437,15 +1426,15 @@ static int aty_power_mgmt(int sleep, struct atyfb_par *par) static int aty_sleep_notify(struct pmu_sleep_notifier *self, int when) { struct fb_info *info; - struct atyfb_par *par = (struct atyfb_par *) info->fb.par; + struct atyfb_par *par; int result; result = PBOOK_SLEEP_OK; for (info = first_display; info != NULL; info = par->next) { - struct fb_fix_screeninfo fix; int nb; + par = (struct atyfb_par *) info->par; nb = fb_display[fg_console].var.yres * info->fix.line_length; switch (when) { @@ -1464,7 +1453,7 @@ static int aty_sleep_notify(struct pmu_sleep_notifier *self, int when) if (par->blitter_may_be_busy) wait_for_idle(par); /* Stop accel engine (stop bus mastering) */ - if (par->accel_flags & FB_ACCELF_TEXT) + if (info->var.accel_flags & FB_ACCELF_TEXT) aty_reset_engine(par); /* Backup fb content */ @@ -1557,7 +1546,6 @@ static int __init aty_init(struct fb_info *info, const char *name) const char *chipname = NULL, *ramname = NULL, *xtal; int j, pll, mclk, gtb_memsize; struct fb_var_screeninfo var; - struct display *disp; u32 chip_id, i; u16 type; u8 rev; @@ -1838,7 +1826,6 @@ static int __init aty_init(struct fb_info *info, const char *name) fb_memset((void *) info->screen_base, 0, info->fix.smem_len); - strcpy(info->modename, info->fix.id); info->node = NODEV; info->fbops = &atyfb_ops; info->pseudo_palette = pseudo_palette; @@ -1969,6 +1956,7 @@ static int __init aty_init(struct fb_info *info, const char *name) fb_alloc_cmap(&info->cmap, 256, 0); + var.activate = FB_ACTIVATE_NOW; gen_set_var(&var, -1, info); if (register_framebuffer(info) < 0) @@ -2030,15 +2018,6 @@ int __init atyfb_init(void) default_par = (struct atyfb_par *) (info + 1); - if (!default_par) { - printk - ("atyfb_init: can't alloc atyfb_par\n"); - kfree(info); - return -ENXIO; - } - memset(default_par, 0, sizeof(struct atyfb_par)); - - info->disp = (struct display *) (info + 1); info->fix = atyfb_fix; info->par = default_par; @@ -2372,7 +2351,6 @@ int __init atyfb_init(void) if (first_display == NULL) pmu_register_sleep_notifier (&aty_sleep_notifier); - /* FIXME info->next = first_display; */ default_par->next = first_display; #endif } @@ -2399,7 +2377,7 @@ int __init atyfb_init(void) return -ENOMEM; } memset(info, 0, sizeof(struct fb_info)); - info->fix = atyfb_fix; + info->fix = atyfb_fix; /* * Map the video memory (physical address given) to somewhere in the @@ -2410,7 +2388,7 @@ int __init atyfb_init(void) info->fix.smem_start = info->screen_base; /* Fake! */ default_par->ati_regbase = (unsigned long)ioremap(phys_guiregbase[m64_num], 0x10000) + 0xFC00ul; - info->fix.mmio_start = par->ati_regbase; /* Fake! */ + info->fix.mmio_start = default_par->ati_regbase; /* Fake! */ aty_st_le32(CLOCK_CNTL, 0x12345678, default_par); clock_r = aty_ld_le32(CLOCK_CNTL, default_par); diff --git a/drivers/video/cfbcopyarea.c b/drivers/video/cfbcopyarea.c index a57643eb7b32..07b47422410b 100644 --- a/drivers/video/cfbcopyarea.c +++ b/drivers/video/cfbcopyarea.c @@ -40,10 +40,10 @@ void cfb_copyarea(struct fb_info *p, struct fb_copyarea *area) { int x2, y2, lineincr, shift, shift_right, shift_left, old_dx, old_dy; int j, linesize = p->fix.line_length, bpl = sizeof(unsigned long); - unsigned long start_index, end_index, start_mask, end_mask, last; + unsigned long start_index, end_index, start_mask, end_mask, last, tmp; unsigned long *dst = NULL, *src = NULL; char *src1, *dst1; - int tmp, height; + int height; /* clip the destination */ old_dx = area->dx; diff --git a/drivers/video/dnfb.c b/drivers/video/dnfb.c index 77fcb395780d..1241ee972111 100644 --- a/drivers/video/dnfb.c +++ b/drivers/video/dnfb.c @@ -234,7 +234,6 @@ unsigned long __init dnfb_init(unsigned long mem_start) { int err; - strcpy(fb_info.modename, dnfb_fix.id); fb_info.fontname[0] = 0; fb_info.updatevar = gen_update_var; fb_info.node = NODEV; diff --git a/drivers/video/fbcon-cfb16.c b/drivers/video/fbcon-cfb16.c deleted file mode 100644 index 254e559fb591..000000000000 --- a/drivers/video/fbcon-cfb16.c +++ /dev/null @@ -1,319 +0,0 @@ -/* - * linux/drivers/video/cfb16.c -- Low level frame buffer operations for 16 bpp - * truecolor packed pixels - * - * Created 5 Apr 1997 by Geert Uytterhoeven - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file COPYING in the main directory of this archive for - * more details. - */ - -#include -#include -#include -#include -#include -#include - -#include