From owner-freebsd-questions Mon Nov 29 18:10:13 1999 Delivered-To: freebsd-questions@freebsd.org Received: from federation.addy.com (federation.addy.com [208.11.142.20]) by hub.freebsd.org (Postfix) with ESMTP id 75A1C156BE for ; Mon, 29 Nov 1999 18:09:41 -0800 (PST) (envelope-from fbsdlist@federation.addy.com) Received: from localhost (fbsdlist@localhost) by federation.addy.com (8.8.5/8.6.12) with SMTP id VAA06023 for ; Mon, 29 Nov 1999 21:09:41 -0500 (EST) Date: Mon, 29 Nov 1999 21:09:41 -0500 (EST) From: Cliff Addy To: freebsd-questions@FreeBSD.ORG Subject: Reading an IO address Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. *all* I need to do is read the IO address. The value returned is irrelavent, I'm just resetting a watchdog card. According to the vendor, the program I've got *should* work. I understand that I really should be using a device driver, but I have no idea how to create one and can't find any help on it. Can anyone help me here or point out a source for help writing such a simple-minded device driver? Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message