Re: MMIO space (was Re: New kernel/resource.c)

Jes Sorensen (Jes.Sorensen@cern.ch)
03 Aug 1999 22:22:11 +0200


>>>>> "Jeff" == Jeff Garzik <garzik@pobox.com> writes:

Jeff> On Tue, 3 Aug 1999, Roger Gammans wrote:
>> The way round it I keep thinking of is to have generic scheme like
>>
>> {read,write}{b,w,l}_resource(resource * res.int offset,
>> {byte,word,long} *data);

Jeff> That seems incredibly cumbersome.

Jeff> All of those physical bus addresses are remapped using ioremap,
Jeff> so the arch writel() should do the right thing, given the right
Jeff> address...

Except that writel is not defined for things like SBUS memory, thus if
you want to support cards that exist in both SBUS and PCI versions you
have a problem.

Jes

-
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/