From owner-freebsd-hackers Sun May 7 23:24:22 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA20130 for hackers-outgoing; Sun, 7 May 1995 23:24:22 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id XAA20124 for ; Sun, 7 May 1995 23:24:11 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id QAA05537; Mon, 8 May 1995 16:21:48 +1000 Date: Mon, 8 May 1995 16:21:48 +1000 From: Bruce Evans Message-Id: <199505080621.QAA05537@godzilla.zeta.org.au> To: freebsd-hackers@FreeBSD.org, gardners@ist.flinders.edu.au Subject: Re: how about an IO filesystem Sender: hackers-owner@FreeBSD.org Precedence: bulk >1) Is there a nice interface for FreeBSD that will let me do direct >chip-bashing to selected CPU io ports.. ie, i say to the system 'i want to >have direct access to ports 0x378,0x379' and if the ports are not in use, >then the system blocks all other processes from activities which would effect >these ports, and releases port protection on those addresses. There are only device drivers and direct unprotected access (i.e. security holes) for things like the X server. >If there isnt a way, how about the following: >a 1 KB /dev/ports or similar file , which maps to the 1KB of ISA port space. >It is generically read-write, except for ports in use etc.. If a process would >like exclusive use of a port it uses normal file locking methods to lock the >region of the file it wants. Locking stuff isn't quite right even for devices drivers. Bruce