lkml.org 
[lkml]   [1999]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectMMIO space (was Re: New kernel/resource.c)
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);

That seems incredibly cumbersome.

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

It might be nice to add flags to ioremap for bus-specific logic. Right
now magic like the following has to occur on some platforms:
virt = ioremap (phys + ISA_BASE, size)

it would be much cleaner if that changed to
virt = ioremap (phys, size, BUS_PCI)




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

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.050 / U:2.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site