From owner-freebsd-questions Tue Aug 8 06:44:55 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id GAA28922 for questions-outgoing; Tue, 8 Aug 1995 06:44:55 -0700 Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id GAA28915 for ; Tue, 8 Aug 1995 06:44:53 -0700 Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.9/8.6.9) id XAA25745; Tue, 8 Aug 1995 23:40:49 +0930 From: Michael Smith Message-Id: <199508081410.XAA25745@genesis.atrad.adelaide.edu.au> Subject: Re: Accessing i/o map space with freebsd 2.1.0 To: ROBIN@ptnsct.nis.za (Robin Hunt) Date: Tue, 8 Aug 1995 23:40:48 +0930 (CST) Cc: questions@freebsd.org In-Reply-To: <950808145946.94e1@ptnsct.nis.za> from "Robin Hunt" at Aug 8, 95 02:59:46 pm Content-Type: text Content-Length: 853 Sender: questions-owner@freebsd.org Precedence: bulk Robin Hunt stands accused of saying: > I need to write either a driver or a piece of code with which I can access > a device in the cpu's io map. > > 1) Is it required that I write I driver No. > 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. > 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 [[