[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080521085033.GA29607@digi.com>
Date: Wed, 21 May 2008 10:50:33 +0200
From: Uwe Kleine-König <Uwe.Kleine-Koenig@...i.com>
To: Magnus Damm <magnus.damm@...il.com>
CC: Paul Mundt <lethal@...ux-sh.org>,
"Hans J. Koch" <hjk@...utronix.de>, <linux-kernel@...r.kernel.org>,
<gregkh@...e.de>, <linux-sh@...r.kernel.org>,
Katsuya MATSUBARA <matsu@...l.co.jp>
Subject: Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver
Hello,
Magnus Damm wrote:
> On Wed, May 21, 2008 at 5:05 PM, Uwe Kleine-König
> <Uwe.Kleine-Koenig@...i.com> wrote:
> > @Magnus: Maybe you can provide the userspace part of the driver?
> > How is that mapping used there?
>
> [Added Matsubara-san as CC]
>
> Sure, here is a little test program. Have a look at "uio_mem". The
> "address" member contains the physical address that can be used for
> bus mastering DMA. Compare that to "iomem" which is the pointer to the
> virtual memory area in user space.
>
> Hope this helps!
Yes it does. I thought the physical address is stored in internal_addr
and the virtual in addr, but it's the other way round. Thanks.
Best regards
Uwe
--
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists