Messages in this thread | | | Date | Tue, 16 Dec 2003 00:06:30 +0100 | From | Andi Kleen <> | Subject | Re: PCI Express support for 2.4 kernel |
| |
On Tue, Dec 16, 2003 at 12:48:49AM +0200, Vladimir Kondratiev wrote:
> My fist intention was exactly same as yours, but if all access were done > through pci_dev... > Unfortunately, you can't store ioremap()'ed address for 4k within > pci_dev and then simply use it. > In all places around, config accessed through (bus,dev,fn) indexes.
Just use a small binary tree or hash table to look up the pci_dev given (bus,dev,fn). That will be much faster than playing with mappings and flushing TLBs.
-Andi - 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/
| |