From owner-freebsd-hackers Sun May 7 22:46:33 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA19556 for hackers-outgoing; Sun, 7 May 1995 22:46:33 -0700 Received: from mail.barrnet.net (mail.BARRNET.NET [131.119.246.7]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id WAA19544 for ; Sun, 7 May 1995 22:46:29 -0700 Received: from nova.cs.flinders.edu.au (nova.cs.flinders.edu.au [129.96.41.2]) by mail.barrnet.net (8.6.10/MAIL-RELAY-LEN) with SMTP id UAA03561 for ; Sun, 7 May 1995 20:58:16 -0700 Received: by nova.cs.flinders.edu.au id AA09032 (5.65c/IDA-1.4.4 for freebsd-hackers@freebsd.org); Mon, 8 May 1995 13:29:56 +0930 Message-Id: <199505080359.AA09032@nova.cs.flinders.edu.au> To: freebsd-hackers@FreeBSD.org Subject: how about an IO filesystem Date: Mon, 08 May 1995 13:29:55 +0930 From: "Paul M. Gardner-Stephen" Sender: hackers-owner@FreeBSD.org Precedence: bulk Hello Peoples! Two things... 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. 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. This special file would then also be tied to the activities of some of the other /dev/'s so that for example, locking the IDE or SCSI ports would be impossible, and things like locking the /dev/lp0 ports would work,. and would block the port when the actual io addresses were locked etc... am i making sence? Incidently, i need a direct port access facility for communicating to various hard-ware on printer ports and other weird addresses (including Commodore 64's). Paul Gardner-Stephen +-------------------------------------------------------------------------+ |Paul Gardner-Stephen USENET: gardners@ist.flinders.edu.au | | BBS: Fishbowl +61 8 2771361 v.42, 14k4 | | 64NET Author Voice: +61 8 2777479 +9:30 GMT | | C64 Coder Snail: 1 Hurst St,Morphettville SA 5043 | | Highlander/FairLight Australia. | | IRC-Nick: Highlandr | +-------------------------------------------------------------------------+ Compiler error: Windoze=efficiency (Incompatible assignment of 'efficiency' to type MicroSoft.Product)