Date: Tue, 30 Nov 1999 00:03:46 -0600 From: Dan Nelson <dnelson@emsphone.com> To: Cliff Addy <fbsdlist@federation.addy.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Reading an IO address Message-ID: <19991130000346.A47191@dan.emsphone.com> In-Reply-To: <Pine.BSF.3.95q.991129210443.5736A-100000@federation.addy.com>; from "Cliff Addy" on Mon Nov 29 21:09:41 GMT 1999 References: <Pine.BSF.3.95q.991129210443.5736A-100000@federation.addy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991130000346.A47191>