Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Bob Irwin <bobi@sis-dev.com>
Subject: Re: Sample PCI Driver for Alpha DS10 5.1
Date: Mon, 08 Jul 2002 13:01:42 -0500	[thread overview]
Message-ID: <3D29D386.3BFC762C@sis-dev.com> (raw)
In-Reply-To: IlgW8.13$Cl5.326706@news.cpqcorp.net

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


      reply	other threads:[~2002-07-08 18:01 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
2002-07-08 18:01   ` Bob Irwin [this message]
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