From owner-freebsd-hardware Thu Apr 17 08:35:26 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA12384 for hardware-outgoing; Thu, 17 Apr 1997 08:35:26 -0700 (PDT) Received: from lariat.lariat.org ([129.72.251.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA12372 for ; Thu, 17 Apr 1997 08:35:17 -0700 (PDT) Received: from solo.lariat.org ([129.72.251.10]) by lariat.lariat.org (8.8.5/8.8.5) with SMTP id JAA15839; Thu, 17 Apr 1997 09:33:59 -0600 (MDT) Message-Id: <3.0.1.32.19970417092103.0070f97c@lariat.org> X-Sender: brett@lariat.org X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Thu, 17 Apr 1997 09:21:03 -0600 To: dk+@ua.net From: Brett Glass Subject: Re: talk to I/O Devices. Cc: freebsd-hardware@freebsd.org In-Reply-To: <199704170654.XAA10996@dog.farm.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-hardware@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 11:54 PM 4/16/97 -0700, Dmitry Kohmanyuk wrote: >> Fascinating. What does opening this "file" actually do? (I can't find it >> in the source.) > >look at /sys/i386/i386/mem.c:mmopen() and others in that file. Just looked at it, and it appears that this file opens the I/O space as a random-access device. But accessing ports this way would slow code down so dramatically that it could be useless for many control applications! Also, the sample code in previous messages in this thread seems to indicate that one can read and write directly. How is this done? --Brett