From: "Randy.Dunlap" <rddunlap@osdl.org>
To: gene.heskett@verizon.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: dummy help on io
Date: Sun, 12 Dec 2004 16:11:18 -0800 [thread overview]
Message-ID: <41BCDE26.9030309@osdl.org> (raw)
In-Reply-To: <200412121854.48898.gene.heskett@verizon.net>
Gene Heskett wrote:
> Greetings;
>
> I've ordered the device drivers book from O-Reilly but it will be
> a few days getting here.
Get it online:
http://lwn.net/Kernel/LDD2/
> I'm trying to mod the GPL'd archive PIO.tar.gz, so it will build a
> driver for a pci card with 3 each 82C55's on it, and I *think* I'd
> have it working with the first of the 3 chips if I could figure
> out what to do about using the call "iopl(3);" on installing
> the driver, and conversely an "iopl(0);" at rmmod time.
Where is that coming from? I don't see it in the tarball
or the web site (if I'm looking at the right place).
http://ieee.uow.edu.au/~daniel/software/robotd/
> I'm told this is required to gain access perms to addresses above
> 0x3FF. The call "ioperm" is used below that I've been told.
iopl() and ioperm() are userspace calls that call (g)libc.
The kernel doesn't call them.
> Unforch, an "insmod PIO io=0xf100" (where the card is addressed
> at currently) is spitting out an "unresolved symbol" error for the
> iopl call.
>
> Being a rank beginner at "pc" hardware, can someone give me a
> checklist of things I've probably left out please?
Can you put the iopl() call into your app instead?
or into a shell script that forks the app (since the iopl
man page says: Permissions are inherited by fork and exec.)
> Kernel is 2.4.25-adeos. With the module "rtai" inserted when emc
> is running for realtime control purposes.
>
> The card is pure hardware, no bios, only address decoding that
> can set the base address anyplace in the first 64k of address
> space in a step of 4 sequence from 0xnn00-0xnn0C for the 4
> ports of chip 1, 0xnn10-1C for chip 2, etc, where the nn is the
> dipswitch setting.
--
~Randy
next prev parent reply other threads:[~2004-12-13 0:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-12 23:54 dummy help on io Gene Heskett
2004-12-13 0:11 ` Randy.Dunlap [this message]
2004-12-13 1:50 ` Gene Heskett
2004-12-13 2:16 ` Randy.Dunlap
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=41BCDE26.9030309@osdl.org \
--to=rddunlap@osdl.org \
--cc=gene.heskett@verizon.net \
--cc=linux-kernel@vger.kernel.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.