From owner-freebsd-questions Tue Aug 8 11:05:04 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id LAA07571 for questions-outgoing; Tue, 8 Aug 1995 11:05:04 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id LAA07565 for ; Tue, 8 Aug 1995 11:05:03 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA29919; Tue, 8 Aug 95 11:57:42 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9508081757.AA29919@cs.weber.edu> Subject: Re: Accessing i/o map space with freebsd 2.1.0 To: ROBIN@ptnsct.nis.za (Robin Hunt) Date: Tue, 8 Aug 95 11:57:42 MDT Cc: questions@freebsd.org In-Reply-To: <950808145946.94e1@ptnsct.nis.za> from "Robin Hunt" at Aug 8, 95 02:59:46 pm X-Mailer: ELM [version 2.4dev PL52] Sender: questions-owner@freebsd.org Precedence: bulk > > Hi there, > > 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 > 2) If not, how can I use outb / inb without creating a bus error? Open /dev/io. You need root privs to do this, for obvious reasons. A process with /dev/io open is permitted to do what you want to do. Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.