* Peter Stuge stuge-linuxbios@cdy.org [070607 19:55]:
On Thu, Jun 07, 2007 at 10:45:30AM -0700, ron minnich wrote:
I will try to sum it up but ... there is no way to unify it, short form. I contains very chip-dependent stuff, ranging from the simple array of longs up to a very complex multi-channel, mult-i devfn, multi-address, etc. etc. mess.
There's no good way to do it that I can see.
How does everyone feel abot unions?
Bad. I dont think we need them. (Well if we did, it would be an idea)
People have been copying auto.c from K8 and modifying it. And if their mem controller was simple, the complicated parts were not always removed. So we ended up with something complex, and in addition it might be different on all platforms.
I think what we want is a generic MC structure. BUT we also want a platform specific sysinfo structure.
And sysinfo is what we want to pass there, not MC. I think the object model is wrong at the moment.
Also, can there be more than one MC on a northbridge?
In theory. But the meminit code would know that. No need to define it every time.
Stefan