lkml.org 
[lkml]   [2000]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: A simple question about readw, readw and the like
Abramo Bagnara wrote:
> Alan Cox wrote:
> > > Does this means that there is no way to mmap the PCI IO space on any
> > > platform other than ia32?

> > PCI mmap to user space can be done (obvious coherency and other issues left
> > to the user mode sufferer) but that isnt done by ioremap

> I suppose you mean I need to use remap_page_range with the address
> obtained from ioremap, don't you?

io_remap_page_range not remap_page_range. grep for it in the 2.4.x tree
to see example usage.


> But, that apart, is a device driver that give available a part of the
> PCI IO space of controlled card via mmap portable to all platforms that
> have PCI?

Assuming you have PCI shared memory space (MMIO) and not real PCI IO
space (PIO), and assuming you use io_remap_page_range, yes.


> And if this is true, the user application that use this mmaped area may
> be written in a platform independant way?

Your userland application must still get byteswapping and such correct.

Jeff



--
Jeff Garzik |
Building 1024 | Yossarian lives.
MandrakeSoft, Inc. |

-
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:57    [W:0.047 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site