Skip to content

Commit

Permalink
fbdev: visfxfb: HP Visualize-FX framebufffer driver
Browse files Browse the repository at this point in the history
A framebuffer driver for HP's Visualize-FX series of cards. The aim is
to support all FX2 - FX10 types but currently only FX5 is tested.

This driver is an updated version of the one which Sven Schnelle
originally posted here:
https://lore.kernel.org/all/20211031195347.13754-1-svens@stackframe.org/

Additional changes:
- added support for 32bpp
- added copyarea to bitblt from screen to screen
- allows screen sizes of up to 1920x1600 pixel
- lots of minor fixes (and probably new bugs)

This driver is still under development, nevertheless it would be great if
people could test.
This driver will not work on FX-10 cards yet.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
hdeller authored and intel-lab-lkp committed Apr 23, 2023
1 parent 9520b7f commit 96fac55
Show file tree
Hide file tree
Showing 5 changed files with 1,982 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/parisc/include/asm/fb.h
Expand Up @@ -12,7 +12,7 @@ static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE;
}

#if defined(CONFIG_FB_STI)
#if defined(CONFIG_FB_STI) || defined(FB_VISUALIZEFX)
int fb_is_primary_device(struct fb_info *info);
#else
static inline int fb_is_primary_device(struct fb_info *info)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/console/sticore.c
Expand Up @@ -1148,7 +1148,7 @@ int sti_call(const struct sti_struct *sti, unsigned long func,
return ret;
}

#if defined(CONFIG_FB_STI)
#if defined(CONFIG_FB_STI) || defined(FB_VISUALIZEFX)
/* check if given fb_info is the primary device */
int fb_is_primary_device(struct fb_info *info)
{
Expand Down
12 changes: 12 additions & 0 deletions drivers/video/fbdev/Kconfig
Expand Up @@ -568,6 +568,18 @@ config FB_STI

It is safe to enable this option, so you should probably say "Y".

config FB_VISUALIZEFX
tristate "HP Visualize FX support"
depends on FB && PCI && PARISC
select RATIONAL
select FB_CFB_IMAGEBLIT
help
Frame buffer driver for the HP Visualize FX cards. These cards are
commonly found in PA-RISC workstations. Currently only FX5 has been
tested.

Say Y if you have such a card.

config FB_MAC
bool "Generic Macintosh display support"
depends on (FB = y) && MAC
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/Makefile
Expand Up @@ -129,6 +129,6 @@ obj-$(CONFIG_FB_MX3) += mx3fb.o
obj-$(CONFIG_FB_DA8XX) += da8xx-fb.o
obj-$(CONFIG_FB_SSD1307) += ssd1307fb.o
obj-$(CONFIG_FB_SIMPLE) += simplefb.o

obj-$(CONFIG_FB_VISUALIZEFX) += visfxfb.o
# the test framebuffer is last
obj-$(CONFIG_FB_VIRTUAL) += vfb.o

0 comments on commit 96fac55

Please sign in to comment.