From owner-freebsd-questions Tue Mar 26 22:14:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA26918 for questions-outgoing; Tue, 26 Mar 1996 22:14:02 -0800 (PST) Received: from localhost.primenet.com (ip004.phx.primenet.com [198.68.46.4]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA26904 for ; Tue, 26 Mar 1996 22:13:57 -0800 (PST) Received: (from zeek@localhost) by localhost.primenet.com (8.6.12/8.6.12) id XAA01998; Tue, 26 Mar 1996 23:12:47 -0700 Date: Tue, 26 Mar 1996 23:12:47 -0700 Message-Id: <199603270612.XAA01998@localhost.primenet.com> From: John Reynolds To: questions@freebsd.org Subject: read/write to hardware ports from user code X-OS: FreeBSD X-URL: http://www.primenet.com/~zeek X-Mailer: Emacs (VM-Mode 5.95 beta) X-Techie: disgruntled 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. :( Help! I know this has *got* to be possible (and probably easy) under FreeBSD as well. Thanks in advance, -Jr -- John Reynolds | Four Guys' Plumbing, Inc. Computing Enhancement Division, Intel | "Up The Voltage!" jreynold@sedona.intel.com | zeek@primenet.com | #include =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=