removing PCI dependency from xserver

Vignatti Tiago (Nokia-MS/Helsinki) tiago.vignatti at nokia.com
Mon Sep 6 09:28:42 PDT 2010


On Thu, Sep 02, 2010 at 05:05:06PM +0200, Vignatti Tiago (Nokia-MS/Helsinki) wrote:
> Hi Mark,
> 
> On Thu, Sep 02, 2010 at 12:19:34AM +0200, ext Mark Kettenis wrote:
> > > 
> > > My last attempt to get rid of PCI in fbdevhw [0] was only commented
> > > by Mark Kettenis. He mainly pointed the existence of fbdevhw. For
> > > instance, if it should go to Linux specific directory (which for me
> > > is off topic, but totally valid argument) or if the relation PCI <->
> > > fbdevhw should be kept (which is not true; I had already an OMAP
> > > based device without PCI using fbdevhw interface). What you thing?
> > 
> > Look, you'll have to introduce some sort of #ifdef-able #define to
> > compile the core xserver code without support for PCI.  Why don't you
> > just leave all the code in fbdevhw.c and use the same #define to
> > conditionally compile fbdev_open_pci().  You can add a dummy version
> > that causes a fatal error if you compile without PCI support, and
> > everything else can stay as it is now.
> 
> Nope, I won't need any #ifdef juggling: 
> 
> http://cgit.freedesktop.org/~vignatti/xserver/tree/hw/xfree86/fbdevhw/fbdevhw.c?h=bus-cleanup-take3
> 
> and that's the main exercise of doing xserver's modularization: to be succinct
> without spoil with the rest of the code. Now, look the code above and tell me
> what do you think is better: a code with ifdef or the one I pointed there.
> 
> Note that I'm not refusing your opinion, I'm just trying to make the code more
> clear for everyone.

any comments here Mark?

             Tiago


More information about the xorg-devel mailing list