From: duane@hunch.zk3.dec.com (Andrew Duane USG)
Subject: Re: Sample PCI Driver for Alpha DS10 5.1
Date: Mon, 08 Jul 2002 13:21:44 GMT [thread overview]
Message-ID: <IlgW8.13$Cl5.326706@news.cpqcorp.net> (raw)
In-Reply-To: UrGV8.41062$eF5.1450941@twister.austin.rr.com
In article <UrGV8.41062$eF5.1450941@twister.austin.rr.com> "bob houston" <houst0n@yahoo.com> writes:
>3. If so, how can I give user processes random access of my PCI card's
>onboard memory space? (read/write/ioctl, shudder)? Don't want the overhead
>since most accesses are from random locations. The user code expects to
>access the memory via pointers.
I don't know what the web "driver development" tool produces, I've
never used it, but PCI drivers do support user access to PCI card space,
I am currently working with a driver that does just that.
I will warn you to be VERY careful about mmap'ing PCI register space
into user space for general manipulations. The security implications,
danger level, and potential for misuse are very high. The first thing
I am doing with the driver I inherited is remove this facility to make
all accesses through regulated IOCTL commands.
--
Andrew L. Duane (JOT-7) duane@zk3.dec.com
HP/Compaq Corporation Andrew.Duane@compaq.com
110 Spit Brook Road Andrew.Duane@hp.com
M/S ZKO3-3/U14
Nashua, NH 03062-2698 (603)-884-1294
next prev parent reply other threads:[~2002-07-08 13:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-06 18:14 Sample PCI Driver for Alpha DS10 5.1 bob houston
2002-07-08 13:21 ` Andrew Duane USG [this message]
2002-07-08 18:01 ` Bob Irwin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox