Messages in this thread | | | Date | Fri, 26 Jun 2009 10:13:10 +0100 | From | Alan Cox <> | Subject | Re: [PATCH 3/9] x86/moorestown: add moorestown platform flags |
| |
> Why dont we have some clean and robust PCI config space based > enumeration instead of this boot ID based thing?
That strikes me as a rather dumb question given that
- Embedded x86 like devices are going to regularly occur without any PCI - You need to know the platform in order to know how to access any PCI bus that may or may not hypothetically exist.
Take a look at how ARM and PPC address this. They do it via platform features and descriptors for good reason.
One thing PPC does nice is to encapsulate pretty much all of it into a struct of function pointers for each platform to keep the if conditionals down. The ARM file layout of arch/foo/platform/bar might also be a good idea before mrst and olpc and other stuff like this starts to make the main x86 directory hard to read ?
Alan
| |