public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* PCI question
@ 2004-02-03 22:35 Pat Gefre
  2004-02-03 22:56 ` Matthew Wilcox
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Pat Gefre @ 2004-02-03 22:35 UTC (permalink / raw)
  To: linux-ia64



The usage of pci_dev.sysdata is a bit confusing to me. I had initially
thought that this was available for any system specific use,  but then
in pcibios_fixup_device_resources() it is specifically cast as a struct
pci_controller *:

#define PCI_CONTROLLER(busdev) ((struct pci_controller *) busdev->sysdata)

void __init
pcibios_fixup_device_resources (struct pci_dev *dev, struct pci_bus *bus)
{
   struct pci_controller *controller = PCI_CONTROLLER(dev);

In this funtion  the pci_controller elements 'window[]' and 'windows'
are also used.  This implies to me that these fields must be maintained
in any system specific structure ? i.e.

struct my_sysdata_struct {
   struct pci_controller dummy;
   /* my stuff would go here */
   struct my_real_sysdata_stuff;
};

Yet I don't see where anyone else is doing the above. Am I missing
something obvious ??

Thanks,
-- Pat


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-02-05 17:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 22:35 PCI question Pat Gefre
2004-02-03 22:56 ` Matthew Wilcox
2004-02-03 23:15 ` Patrick Gefre
2004-02-03 23:29 ` Jesse Barnes
2004-02-03 23:36 ` Patrick Gefre
2004-02-04  3:28 ` Jesse Barnes
2004-02-04 17:04 ` Patrick Gefre
2004-02-04 17:48 ` Grant Grundler
2004-02-04 19:10 ` Patrick Gefre
2004-02-04 19:50 ` Bjorn Helgaas
2004-02-05 17:11 ` Patrick Gefre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox