Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 1995 23:40:48 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        ROBIN@ptnsct.nis.za (Robin Hunt)
Cc:        questions@freebsd.org
Subject:   Re: Accessing i/o map space with freebsd 2.1.0
Message-ID:  <199508081410.XAA25745@genesis.atrad.adelaide.edu.au>
In-Reply-To: <950808145946.94e1@ptnsct.nis.za> from "Robin Hunt" at Aug 8, 95 02:59:46 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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                            [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508081410.XAA25745>