linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@netx4.com>
To: "Dayton, Dean" <dean@aiinet.com>
Cc: "'linuxppc-embedded@lists.linuxppc.org'"
	<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: device memory mapping
Date: Fri, 14 Apr 2000 17:26:59 -0400	[thread overview]
Message-ID: <38F78D23.CAFA1BFC@embeddededge.com> (raw)
In-Reply-To: 7283DE19D141D111AD0E00A0C95B195502D968E1@mail2.aiinet.com


"Dayton, Dean" wrote:

> How do I map this address in Linux.

Very carefully....seriously.  You will need to do ioremap() of the
address, and it will return a virtual address to you.  The very
carefully part comes from you having to do this after the kernel
virtual memory allocator has been initialized.  Don't do this ioremap()
in the mm/init.c function, but rather in the device driver initialization
(or open, or whatever seems appropriate).  It should return a virtual
address something like 0xc4xxxxxx.  Then, have at it!


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-04-14 21:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-14 20:45 device memory mapping Dayton, Dean
2000-04-14 21:26 ` Dan Malek [this message]
2000-04-17  3:03 ` Graham Stoney

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=38F78D23.CAFA1BFC@embeddededge.com \
    --to=dan@netx4.com \
    --cc=dean@aiinet.com \
    --cc=linuxppc-embedded@lists.linuxppc.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).