From owner-freebsd-hackers Wed May 5 1: 9:22 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id E73BD1559E for ; Wed, 5 May 1999 01:09:19 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA00429; Wed, 5 May 1999 09:09:06 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Wed, 5 May 1999 09:09:06 +0100 (BST) From: Doug Rabson To: fygrave@tigerteam.net Cc: freebsd-hackers@freebsd.org, tech@openbsd.org Subject: Re: io ports reading/writing In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 5 May 1999, CyberPsychotic wrote: > Hello people, > I am abit stuck with io ports access using BSD kernel routines. I > searched the sources three for the apropriate examples but didn't find > much. On linux I used ioperm/inb/outb routines, but they don't seem to be > implemented in BSD world (while inb/outb isn't a problem, since two asm > instructions would represent that, ioperm is). I would appreciate if > anyone could point me to apropriate examples or drop a sample code. I think you just open /dev/io and use inb/outb. Be warned that this will only work on i386 - the alpha uses a library, libio, to emulate inb/outb in user programs. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message