From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 18 Jun 2001 17:57:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 18 Jun 2001 17:57:24 -0400 Received: from www.transvirtual.com ([206.14.214.140]:2066 "EHLO www.transvirtual.com") by vger.kernel.org with ESMTP id ; Mon, 18 Jun 2001 17:57:10 -0400 Date: Mon, 18 Jun 2001 14:56:47 -0700 (PDT) From: James Simmons To: Modular Forms Boy cc: Linux Kernel Mailing List , FrameBuffer List Subject: Re: New Linux Drivers - Configure question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > 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.