From mboxrd@z Thu Jan 1 00:00:00 1970 From: Otto Solares Subject: Re: Changing modes with fbset Date: Mon, 5 Jan 2004 20:06:53 -0600 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <20040106020653.GE442@guug.org> References: <3FDBB97F.4070207@undead.cc> <20040106002822.GB442@guug.org> <1073349349.780.181.camel@gaston> <20040106010852.GC442@guug.org> <1073351384.781.202.camel@gaston> <20040106014414.GD442@guug.org> <1073353478.9499.204.camel@gaston> Mime-Version: 1.0 Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.24) id 1Adgdg-0006I1-LC for linux-fbdev-devel@lists.sourceforge.net; Mon, 05 Jan 2004 18:08:12 -0800 Received: from [168.234.203.30] (helo=guug.galileo.edu) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.30) id 1Adgdg-0004Lm-Ag for linux-fbdev-devel@lists.sourceforge.net; Mon, 05 Jan 2004 18:08:12 -0800 Content-Disposition: inline In-Reply-To: <1073353478.9499.204.camel@gaston> Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Benjamin Herrenschmidt Cc: James Simmons , Linux Fbdev development list On Tue, Jan 06, 2004 at 12:44:39PM +1100, Benjamin Herrenschmidt wrote: > > > Ben, you that know the internals of fbdev's, it would be difficult to > > implement the busid stuff? Maybe that info is already known by the > > drivers somewhere... It could even work for sparcs with sbus or others > > archs with differents buses, as the busid nomenclature is very standarized > > i think. > > Fairly easy, though it would be even better to do it based on the > sysfs stuff rather than an ioctl. Agree. Problem is that sysfs stuff is very invasive i think and it will be hard to push even on development trees like -mm ones. An ioctl could be something simple as passing a pointer to a buffer of fixed length, the best imho would be extend fb_fix_screeninfo struct to accomodate a 'char busid[16];' but that could break binary compatibility. If 2.6 break from 2.4 we could put it there as anyway apps need to recompile. Shame that there are not sufficient 'reserved' bits. -solca ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click