|
From: Emmanuel M. <emm...@re...> - 2002-02-15 15:59:34
|
Hi,
all fb implementations I find so far fill the disp
field:
fb_info.disp = &disp; /* used during initialization */
with a
static struct display disp;
and enable only one framebuffer device.
I'm writing code that allows one fb per pci device; and I
have to support multiple ones. Should I extend fb_info like this:
struct moreinfo {
struct fb_info fb;
static struct display disp;
struct pci_dev *pdev;
};
static int vfb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue,
u_int *transp, struct fb_info *info)
{
struct moreinfo *my=(struct moreinfo *)info;
...
}
and set during init:
my->fb.disp=&my->disp;
or is it enough to have one real struct display for all of them?
Seems disp has a dispsw member that has to change on a per fb basis.
Sincerely yours,
--
Emmanuel Michon
Chef de projet
REALmagic France SAS
Mobile: 0685316107 GPGkeyID: D2997E42
|