Re: New Linux Drivers - Configure question

James Simmons (jsimmons@transvirtual.com)
Mon, 18 Jun 2001 14:56:47 -0700 (PDT)


> I am working on a new framebuffer driver for an LCD controller that's
> custom to the PowerPC embedded world. As such, it's architecture
> dependent. Where should I place the driver in the tree, and how should I
> set up the proper Configure options? Where do I put checks for #ifdef
> CONFIGURE_blah_blah_blah?

Hi!

You would place it in drivers/video. If you look at the Config.in
file in the linux/drivers/video directory you will see

if [ "$CONFIG_PPC" = "y" ]; then
bool ' Open Firmware frame buffer device support' CONFIG_FB_OF
...
fi

Just add you driver in that section. Also you have to alter fbmem.c. You
need to add something like

extern int xxxmydriverfb_init(void);
extern int xxxmydriverfb_setup(char*);

and further down in the file.

#ifdef CONFIG_FB_MYDRIVER
{ "myfbdriver", xxxmydriverfb_init, xxxmydriverfb_setup },
#endif

When you look at this file you will see what I mean. If you have any
further questions just go to http://www.linux-fbdev.org. In this email you
will see the address for our mailing list. On our web site it gives you
info about joining the mailing list.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/