From: Oliver Korpilla <okorpil@fh-landshut.de>
To: "Heater, Daniel (GE Infrastructure)" <Daniel.Heater@gefanuc.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: VME driver change suggestion
Date: Tue, 08 Jun 2004 11:59:13 +0200 [thread overview]
Message-ID: <40C58DF1.6030809@fh-landshut.de> (raw)
In-Reply-To: <40C48A1C.30602@fh-landshut.de>
Hello!
To make the driver truly portable, it could be changed as follows:
1.) Add devices for the windows, similarly to the VMELinux.org driver:
Master windows:
* /dev/m0 c 221 0
* /dev/m1 c 221 1
* /dev/m2 c 221 2
* /dev/m3 c 221 3
* /dev/m4 c 221 4
* /dev/m5 c 221 5
* /dev/m6 c 221 6
* /dev/m7 c 221 7
Control window:
* /dev/ctl c 221 8
Slave window:
* /dev/s0 c 221 9
* /dev/s1 c 221 10
* /dev/s2 c 221 11
* /dev/s3 c 221 12
* /dev/s4 c 221 13
* /dev/s5 c 221 14
* /dev/s6 c 221 15
* /dev/s7 c 221 16
(You've already partially matched that scheme with your ctl device)
2.) Implement read(), write() and llseek() for master and slave windows to
read/write values from/to the VME bus. Each would determine the master/slave
window read/written by determining the minor device number.
3.) Add ability to request specific windows back into ioctl, so mapping could be
associated with the proper devices.
4.) Include boundary checking in the read/write/llseek implementations
corresponding to their window values to avoid bad accesses "out of window".
read() and write () would use the vmemcpy() function I introduced earlier when
doing accesses to master windows.
Any ideas and suggestions towards this?
With kind regards,
Oliver Korpilla
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2004-06-08 9:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-18 15:25 [Fwd: Memory layout question] Heater, Daniel (GE Infrastructure)
2004-05-19 6:51 ` Differing PCI layouts trigger porting driver problem [Was: " Oliver Korpilla
2004-05-25 13:56 ` [Fwd: " Oliver Korpilla
2004-05-26 8:37 ` Oliver Korpilla
2004-05-26 11:56 ` Oliver Korpilla
2004-06-02 7:42 ` Successful master window access Oliver Korpilla
2004-06-07 15:30 ` VME driver patch for PowerPC Oliver Korpilla
2004-06-08 9:05 ` VME driver patch for PowerPC [Continued] Oliver Korpilla
2004-06-08 9:59 ` Oliver Korpilla [this message]
2004-06-09 11:25 ` VME driver patch for PowerPC Oliver Korpilla
2004-06-09 12:59 ` Oliver Korpilla
2004-06-09 13:14 ` Complete " Oliver Korpilla
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=40C58DF1.6030809@fh-landshut.de \
--to=okorpil@fh-landshut.de \
--cc=Daniel.Heater@gefanuc.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).