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 06:15:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Newsgroups: comp.unix.tru64 Subject: Re: Sample PCI Driver for Alpha DS10 5.1 References: From: duane@hunch.zk3.dec.com (Andrew Duane USG) Message-ID: Date: Mon, 08 Jul 2002 13:21:44 GMT NNTP-Posting-Host: 16.141.0.43 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1026134504 16.141.0.43 (Mon, 08 Jul 2002 06:21:44 PDT) NNTP-Posting-Date: Mon, 08 Jul 2002 06:21:44 PDT Organization: Compaq, part of the new hp Xref: archiver1.google.com comp.unix.tru64:8093 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 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