From: "Bob White" <bwhite@perigee.com>
To: linuxppc-embedded@lists.linuxppc.org
Subject: DPRAM driver on 440gp
Date: Thu, 06 May 2004 11:35:31 -0400 [thread overview]
Message-ID: <409A2303.2640.2967B3DD@localhost> (raw)
I've got a basic read/write driver working (thanks to O'reilly ldd2) on
the dpram on the peripheral bus.
I remap the physical addresses using "io_base = ioremap64(...)" in the
driver open call and then the user read and write functions can access
the dpram just fine.
I'd like the user to be able to access the dpram using a pointer, but I
am having trouble figuring out the mmap examples.
Given that the physical address has already been mapped, via
ioremap64(), do I need remap_page_range()? Does anyone have any ideas
on what the mmap file_op for this driver would look like? Do I even
need mmap() or should I just use an ioctl to return the pointer I've
already got to the user?
Bob
--
Robert B. White Perigee, A Division of Sensis Corp
Software Design Engr 316 Commerce Blvd.
TEL: 315.453.7842x29 Liverpool, NY 13088
FAX: 315.453.7917 www.Perigee.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2004-05-06 15:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-06 15:35 Bob White [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-05-11 9:15 DPRAM driver on 440gp Fillod Stephane
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=409A2303.2640.2967B3DD@localhost \
--to=bwhite@perigee.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.