From owner-freebsd-questions Wed Jun 3 07:42:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA22417 for freebsd-questions-outgoing; Wed, 3 Jun 1998 07:42:41 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA22400 for ; Wed, 3 Jun 1998 07:42:35 -0700 (PDT) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id JAA16034; Wed, 3 Jun 1998 09:22:06 -0500 (CDT) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id JAA20323; Wed, 3 Jun 1998 09:21:35 -0500 Message-ID: <19980603092134.56348@right.PCS> Date: Wed, 3 Jun 1998 09:21:34 -0500 From: Jonathan Lemon To: chief@dp.energy.gov.ua Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to access to low-level I/O hardware port from user program using "in" & "out" functions ? References: <35752636.1E910B1E@dp.energy.gov.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <35752636.1E910B1E@dp.energy.gov.ua>; from Slava Tarasjuk on Jun 06, 1998 at 01:32:22PM +0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Jun 06, 1998 at 01:32:22PM +0300, Slava Tarasjuk wrote: > How to access to low-level I/O hardware port (for example, to ount > register of lan card) > from user program using "in" & "out" functions ? In BSDI present > "ioport" program, with > which i cah enable or disable user level access to I/O ports. Open the "/dev/io" file. As long as your program holds a descriptor to this file, it will be permitted I/O access. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message