From owner-freebsd-questions Wed Mar 7 9:27: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nwlynx.network-lynx.net (nwlynx.network-lynx.net [63.122.185.99]) by hub.freebsd.org (Postfix) with ESMTP id E388637B718 for ; Wed, 7 Mar 2001 09:26:58 -0800 (PST) (envelope-from Don@Silver-Lynx.com) Received: from Silver-Lynx.com (doze-1.network-lynx.net [63.122.185.106]) by nwlynx.network-lynx.net (8.11.1/8.9.3/Who.Cares) with ESMTP id f27HR7H96927 for ; Wed, 7 Mar 2001 10:27:07 -0700 (MST) (envelope-from Don@Silver-Lynx.com) Message-ID: <3AA66F5E.961A15E1@Silver-Lynx.com> Date: Wed, 07 Mar 2001 10:26:54 -0700 From: Don Wilde X-Mailer: Mozilla 4.72 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: simple hardware interface Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, folks - I'm looking to do some simple hardware IO on a picobsd system, and I came across an old hardware interface protocol as per 'man 4 io'. Is this a valid approach? It seems too easy, after all the driver source I've been reading! fh = open("/dev/io", O_RDONLY); outb(port,value); close(fh); I just want to attach some bi-color LEDs to the settable lines (RTS, DTR, TXD, etc.) in my second serial port and poke them a few dozen times a second, and I'd rather not go to the trouble of sorting out a full device driver. Please reply directly, if you have experience with this. Thanks in advance! -- Don Wilde Don@Silver-Lynx.com Silver Lynx Embedded Microsystems Architects 2218 Southern Bl. Ste. 12 Rio Rancho, NM 87124 505-891-4175 FAX 891-4185 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message