From owner-freebsd-questions Thu Jun 1 6: 7:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ngo.org.uk (ngo.org.uk [193.62.43.28]) by hub.freebsd.org (Postfix) with ESMTP id B1BA137B9DA for ; Thu, 1 Jun 2000 06:07:48 -0700 (PDT) (envelope-from mac@ngo.org.uk) Received: (from mac@localhost) by ngo.org.uk (8.9.3/8.9.3) id OAA21036; Thu, 1 Jun 2000 14:07:55 +0100 (BST) From: Mac Message-Id: <200006011307.OAA21036@ngo.org.uk> Subject: Re: Writing a value to an IO (mem mapped) port In-Reply-To: <20000601134414.U99925@strontium.scientia.demon.co.uk> from Ben Smithurst at "Jun 1, 0 01:44:14 pm" To: ben@scientia.demon.co.uk (Ben Smithurst) Date: Thu, 1 Jun 2000 14:07:50 +0100 (BST) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I think another way is to open /dev/io before doing your outb. As long > as you have /dev/io open (you don't need to read or write anything > to it) your process is allowed direct IO access, AFAIK. I think > i386_set_ioperm is the newer method though, so hopefully someone who has > used it can explain how it's done. This works! open("/dev/io",O_RDONLY) and then you don't need the i386_set_ioperm() at all. The outb() just works! Thanks. Mac To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message