From owner-freebsd-questions Tue Aug 8 08:19:01 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id IAA02148 for questions-outgoing; Tue, 8 Aug 1995 08:19:01 -0700 Received: from tserv.lodgenet.com (dial1.iw.net [204.157.148.50]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id IAA02087 for ; Tue, 8 Aug 1995 08:17:30 -0700 Received: from jake.lodgenet.com (jake.lodgenet.com [204.124.120.30]) by tserv.lodgenet.com (8.6.12/8.6.12) with ESMTP id KAA07131; Tue, 8 Aug 1995 10:17:18 -0500 Received: from localhost (localhost [127.0.0.1]) by jake.lodgenet.com (8.6.11/8.6.9) with SMTP id KAA24583; Tue, 8 Aug 1995 10:16:34 -0500 Message-Id: <199508081516.KAA24583@jake.lodgenet.com> X-Authentication-Warning: jake.lodgenet.com: Host localhost didn't use HELO protocol X-Mailer: exmh version 1.6 4/21/95 To: Michael Smith cc: ROBIN@ptnsct.nis.za (Robin Hunt), questions@freebsd.org Subject: Re: Accessing i/o map space with freebsd 2.1.0 In-reply-to: Your message of "Tue, 08 Aug 1995 23:40:48 +0930." <199508081410.XAA25745@genesis.atrad.adelaide.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 08 Aug 1995 10:16:32 -0500 From: "Eric L. Hernes" Sender: questions-owner@freebsd.org Precedence: bulk > Robin Hunt stands accused of saying: > > > 2) If not, how can I use outb / inb without creating a bus error? > > Your program must be run as root; before performing any I/O operations, > open the file /dev/io. This action grants the process priveledges to > read and write directly to the hardware. > Does this really work? in /usr/src/sys/i386/i386/mem.c, it looks like it is #ifdef'ed out. at or about line 174: #ifdef notyet /* 386 I/O address space (/dev/ioport[bwl]) is a read/write access to seperate i/o device address bus, different than memory bus. Semantics here are very different than ordinary read/write, as if iov_len is a multiple an implied string move from a single port will be done. Note that lseek must be used to set the port number reliably. */ > > robin@ptnsct.nis.za > > -- > ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ > ]] Genesis Software genesis@atrad.adelaide.edu.au [[ > ]] High-speed data acquisition and [[ > ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ > ]] My car has "demand start" - Terry Lambert [[ > eric. -- erich@lodgenet.com erich@rrnet.com