linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Sylvain Munaut <tnt@246tnt.com>
To: "linuxppc-embedded@lists.linuxppc.org"
	<linuxppc-embedded@lists.linuxppc.org>
Subject: Making a "paged" sram aread appear as linear.
Date: Sat, 29 May 2004 22:13:03 +0200	[thread overview]
Message-ID: <40B8EECF.7050503@246tNt.com> (raw)



Hi,

Let's say I have a device on the SRAM bus that an internal RAM of
8Mbyte. It's connected to the MCU on it's SRAM bus. But on the SRAM
bus, It only has two window of 64k. One is all the control registers
and the other can be mapped to any 64k segment of the device internal RAM.

Now, I'd like that a user space process can mmap / open / read / write
this aread as if it was linear. So what I thinked of was to allocate a
contiguous area of 8Mb, then only really map the current active 64k
area and then set a "handler" to catch access to the others area so it
can set the active page. The problem is that I have no idea if that's
possible, or how to do it.

Any advice, pointers ?


Sylvain Munaut


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

             reply	other threads:[~2004-05-29 20:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-29 20:13 Sylvain Munaut [this message]
2004-05-29 22:00 ` Making a "paged" sram aread appear as linear Sylvain Munaut

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=40B8EECF.7050503@246tNt.com \
    --to=tnt@246tnt.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).