From owner-freebsd-questions Tue Mar 26 23:24:03 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA02691 for questions-outgoing; Tue, 26 Mar 1996 23:24:03 -0800 (PST) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA02511 for ; Tue, 26 Mar 1996 23:20:14 -0800 (PST) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.6.12/8.6.9) id JAA25315; Wed, 27 Mar 1996 09:18:33 +0200 From: John Hay Message-Id: <199603270718.JAA25315@zibbi.mikom.csir.co.za> Subject: Re: read/write to hardware ports from user code To: zeek@primenet.com (John Reynolds) Date: Wed, 27 Mar 1996 09:18:33 +0200 (SAT) Cc: questions@freebsd.org In-Reply-To: <199603270612.XAA01998@localhost.primenet.com> from "John Reynolds" at Mar 26, 96 11:12:47 pm X-Mailer: ELM [version 2.4 PL24 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > > Subject says it all. I have a program that works with a "homemade" PC > I/O card and would like to get it to run under FreeBSD as well. I've gotten > it to run under MS-DOG, OS/2, and Linux thus far and I know this kind of > thing had to have already been done by somebody in FreeBSD land. > > I'm looking for the equivalent of the "ioperm" system call (under Linux) > which gives programs permission to write to a range of address and the > routines "inb" and "outb" which read and write a byte to a given hardware > port. All the searches under the FreeBSD Web page, man pages, and include > files have come up with nil. :( > Just open "/dev/io" in read/write mode. (You have to have the right permissions for that.) John -- John Hay -- John.Hay@csir.co.za