lkml.org 
[lkml]   [2003]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: C99 Initialisers
From
On 226, 08 14, 2003 at 12:05:28PM +0200, Geert Uytterhoeven wrote:
> On Wed, 13 Aug 2003, Jeff Garzik wrote:
> > > On Wed, Aug 13, 2003 at 03:44:44PM -0400, Jeff Garzik wrote:
> > >>enums are easy putting direct references would be annoying, but I also
> > >>argue it's potentially broken and wrong to store and export that
> > >>information publicly anyway. The use of enums instead of pointers is
> > >>practically required because there is a many-to-one relationship of ids
> > >>to board information structs.
> > >
> > > The hard part is that it's actually many-to-many. The same card can have
> > > multiple drivers. one driver can support many cards.
> >
> > pci_device_tables are (and must be) at per-driver granularity. Sure the
> > same card can have multiple drivers, but that doesn't really matter in
> > this context, simply because I/we cannot break that per-driver
> > granularity. Any solution must maintain per-driver granularity.
>
> Aren't there any `hidden multi-function in single-function' PCI devices out
> there? E.g. cards with a serial and a parallel port?

Look at drivers/parport/parport-serial.c, it contains whole zoo of such beasts :)

--
Andrey Panin | Linux and UNIX system administrator
pazke@donpac.ru | PGP key: wwwkeys.pgp.net
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.092 / U:0.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site