From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,ad993a4e549c3dcb X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-07-08 11:04:18 PST Message-ID: <3D29D386.3BFC762C@sis-dev.com> Date: Mon, 08 Jul 2002 13:01:42 -0500 From: Bob Irwin Organization: X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Sample PCI Driver for Alpha DS10 5.1 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 216.201.148.173 X-Trace: 8 Jul 2002 13:12:08 -0600, 216.201.148.173 Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.algx.net!dfw3-feed1.news.algx.net!allegiance!news.logixcom.net!216.201.148.173 Xref: archiver1.google.com comp.unix.tru64:8098 Andrew Duane USG wrote: > > In article "bob houston" 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 SIS Development 281-484-6661 Houston, TX