* Sample PCI Driver for Alpha DS10 5.1
@ 2002-07-06 18:14 bob houston
2002-07-08 13:21 ` Andrew Duane USG
0 siblings, 1 reply; 3+ messages in thread
From: bob houston @ 2002-07-06 18:14 UTC (permalink / raw)
Running tru64 5.1 on a Compaq Alpha DS10.
I used the web'driver builder' tool to generate a sample character driver for a
new PCI card which is to be 'mmap'ed by user processes. the build and install had
no errors and the /dev entry was added. when I open the device I get what appears
to be a system config error. Machine is not before me so cannot give exact error.
1. Does this web driver generator give usable code for PCI and 5.1?
2. In the generated source code, there was a comment near the xxxx_mmap
entry point that said Alpha processors do not support mmap. Is this true?
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.
4. Any pointers to source for a simple character PCI card driver that allows random access
of pci card memory (and interrupts)? (5.1)
Thank you,
Bob
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sample PCI Driver for Alpha DS10 5.1
2002-07-06 18:14 Sample PCI Driver for Alpha DS10 5.1 bob houston
@ 2002-07-08 13:21 ` Andrew Duane USG
2002-07-08 18:01 ` Bob Irwin
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Duane USG @ 2002-07-08 13:21 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sample PCI Driver for Alpha DS10 5.1
2002-07-08 13:21 ` Andrew Duane USG
@ 2002-07-08 18:01 ` Bob Irwin
0 siblings, 0 replies; 3+ messages in thread
From: Bob Irwin @ 2002-07-08 18:01 UTC (permalink / raw)
Andrew Duane USG wrote:
>
> 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, thanks for a response. I would never allow user access of
the PCI bridge regs and such. Only access to a lump of r/w memory
on the board that allows the user to communicate with the outside
world via a 1553 avionics bus. In essence this bit of memory
Belongs to the user, not to the System.
What would be most useful for me is a simple character pci driver
that works for Alpha DS10, tru64 5.1
Thanks
bob
--
Bob Irwin <bobi@sis-dev.com> SIS Development 281-484-6661 Houston, TX
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-07-08 18:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-06 18:14 Sample PCI Driver for Alpha DS10 5.1 bob houston
2002-07-08 13:21 ` Andrew Duane USG
2002-07-08 18:01 ` Bob Irwin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox