Messages in this thread | | | Date | Sat, 18 Dec 1999 15:50:19 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: [patch] read[bwl] and ioremap problem |
| |
On Sat, 18 Dec 1999, Alan Cox wrote: > > Mac68K use nubus or various other slot cards. All of them pretend to be nubus > so there are no problems. The only problem boxes I know of right now are > HP PA-Risc. PCI and GSC. Two busses can hold similar chips, they are different > endians....
THAT case is certainly a rather strong argument for using something like "gsc_read[bwl]()" on HP-PA.
If the gsc bus is similar enough to PCI that you might end up sharing some drivers, that can probably be accomplished by double-compiling them, once with "-Dwritel=gsc_writel" kinds of tricks. But trying to make the same driver handle both cases dynamically sounds like madness.
(Considering that the init and finding functions are likely to be completely different anyway, you probably don't want to share drivers other than possibly in the "8390" sense.. Who knows..)
Linus
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |