From owner-freebsd-questions Mon Nov 29 22: 4:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 66BB415770 for ; Mon, 29 Nov 1999 22:03:55 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id AAA47413; Tue, 30 Nov 1999 00:03:47 -0600 (CST) (envelope-from dan) Date: Tue, 30 Nov 1999 00:03:46 -0600 From: Dan Nelson To: Cliff Addy Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Reading an IO address Message-ID: <19991130000346.A47191@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from "Cliff Addy" on Mon Nov 29 21:09:41 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Nov 29), Cliff Addy said: > I have a device which I need to use by reading an IO address. However, > when I use > > val=inb(0x180) > > the program coredumps with a "Bus error" message. Interestingly enough, I > get the same message whether the card is in the slot or not. I/O access is restricted to root. In addition, you either need to open /dev/io (to get unrestricted access to all IO ports), or call i386_set_ioperm() with the port range you want to fiddle with. "man io" or "man i386_set_ioperm" for more info. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message