Re: PCI question

From: Matthew Wilcox <willy_at_debian.org>
Date: 2004-02-04 09:56:55
On Tue, Feb 03, 2004 at 04:35:26PM -0600, Pat Gefre wrote:
> 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 *:

It's up to the architecture how it's used.  ia64 has decided that it
shall be a struct pci_controller *.

> 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 ??

Urgh, don't do that.  What do you need to do that can't be added to the
pci_controller?

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Feb 3 18:01:02 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:22 EST