Re: pci segments/domains

Jeff Garzik (jgarzik@mandrakesoft.com)
Fri, 17 May 2002 10:24:39 -0400


Ivan Kokshaysky wrote:

>On Thu, May 16, 2002 at 03:33:34PM -0400, Jeff Garzik wrote:
>
>>I wouldn't mind making the PCI domain support a bit more explicit,
>>though. I think it's fair to be able to obtain a pointer to "struct
>>pci_domain", which would most likely be defined in asm/pci.h for each arch.
>>
>
>We already have it - void *sysdata. Host-to-PCI (domain) controllers might
>be totally different even inside any given architecture, so trying to
>make this more generic would be pointless - you will end up with a pointer
>to arch/device specific data anyway.
>
I know -- that's what I mean by being more explicit. sysdata would
become a pointer to struct pci_domain.

>
>I can think of the only case where domain info might be interesting - if
>some device wants to know whether it can talk to another device directly.
>We have pci_controller_num(pdev) for this.
>

Like gets mentioned later in the thread, you don't want to start
addressing based on number...

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/