> >But I do know now. The problem is that prism2_pci.c and prism2_plx.c =
> >do not=20
> >contain any PCI_ROM macro, because the real driver file is prism2.c t=
> >hat=20
> >gets included. A possible solution would be to move the pci_id and=
> >=20
> >pci_driver structs out of prism2.c and into prism2_p*.c.
> Or maybe declare the driver as prism2.c in the family line? I don't know
> the answer because they could be two drivers with a common file (in
> which case your solution is the right one), or the same driver with two
> variations and tables should be merged. You there Michael?
Two drivers with a common file. Actually, all that prism2_*.c do is
define the interface type (_pci or _plx) and then #include prism2.c.
This is not my first choice of architecture; it's done because I wanted to
be able to use the header files from linux-wlan-ng without modifications
and this is the way that linux-wlan-ng is structured.
Moving PCI_ROM into prism2_*.c is the correct solution, at least until a
full PCMCIA subsystem gets written. ;-)
Michael
|