linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Misbah khan <misbah_khan@engineer.com>
To: linuxppc-embedded@ozlabs.org
Subject: RE: mmap problem in device driver and application program.
Date: Mon, 26 May 2008 03:08:42 -0700 (PDT)	[thread overview]
Message-ID: <17469128.post@talk.nabble.com> (raw)
In-Reply-To: <BAY138-W368A781D323F0E5E4D0BF3B2CF0@phx.gbl>


Hi ...

I guess you can remap the memory region outside the kernel control and then
convert it into page and use it into your mmap implementation in the driver
else it is easy to use the same in application by opening /dev/mmap file=20

regards=20
Misbah <><


mliu wrote:
>=20
>=20
> Dear Dave,
>> If you are using memory that is not under the kernel's memory management=
>
>> you will need to use something other than remap_pfn_range.>=20
> Happenly and unfortunately we are using the memory space out of the
> control from the kernel. We have 2GB memory on the board and only 64(or
> 32) MB is reserved for the kernel. The rest large space is for the data
> buffering or LUT use. In my question, the LUT memory is located in the
> rest part rather than the kernel memory area.=20
> =20
> Any more suggestion on how to mmap this LUT area? Any idea will be
> valuable for a beginner like me. Thanks in advance.=20
> =20
> BR
> Ming
> _________________________________________________________________
> =E6=96=B0=E5=B9=B4=E6=8D=A2=E6=96=B0=E9=A2=9C=EF=BC=8C=E5=BF=AB=E6=9D=A5=
=E5=A6=86=E6=89=AE=E8=87=AA=E5=B7=B1=E7=9A=84MSN=E7=BB=99=E5=BF=83=E4=BB=AA=
=E7=9A=84TA=E4=B8=80=E4=B8=AA=E6=83=8A=E5=96=9C=EF=BC=81
> http://im.live.cn/emoticons/?ID=3D18
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20

--=20
View this message in context: http://www.nabble.com/mmap-problem-in-device-=
driver-and-application-program.-tp17130303p17469128.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

      parent reply	other threads:[~2008-05-26 10:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08 15:33 mmap problem in device driver and application program MingLiu
2008-05-08 17:01 ` Dave Cogley
2008-05-08 18:42   ` MingLiu
2008-05-09 20:55     ` Dave Cogley
2008-05-13  9:11       ` MingLiu
2008-05-13 17:51         ` Howard, Marc
2008-05-14  6:18         ` Johan Borkhuis
2008-05-26 10:08         ` Misbah khan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17469128.post@talk.nabble.com \
    --to=misbah_khan@engineer.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).