From owner-cvs-all Mon Dec 4 13:31:56 2000 From owner-cvs-all@FreeBSD.ORG Mon Dec 4 13:31:49 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id 0543037B400; Mon, 4 Dec 2000 13:31:44 -0800 (PST) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id eB4LVgL27863; Mon, 4 Dec 2000 22:31:42 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Mike Smith Cc: David Malone , David Malone , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/isa labpc.c In-Reply-To: Your message of "Mon, 04 Dec 2000 13:34:20 PST." <200012042134.eB4LYKF01258@mass.osd.bsdi.com> Date: Mon, 04 Dec 2000 22:31:42 +0100 Message-ID: <27861.975965502@critter> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200012042134.eB4LYKF01258@mass.osd.bsdi.com>, Mike Smith writes: >> On Sun, Dec 03, 2000 at 05:18:49AM -0800, David Malone wrote: >> > dwmalone 2000/12/03 05:18:49 PST >> > >> > Modified files: >> > sys/i386/isa labpc.c >> > Log: >> > Check return value of malloc correctly and use M_ZERO. >> > >> >> As noted by Poul-Hennig, this driver can't have worked in ages. >> Is there anyone with one of these cards who can test it now? >> >> (If someone has one they don't want and feels like posting it to >> me, then I'll take it. They sound like they might be fun to play >> with). > >Code talking to the labpc card should just use the i386_get|set_ioperm >and manipulate it from userspace. This driver should probably be diked. I have to agree. I've been using various cards with good luck that way, even something as complex as a 7210 based HP-IB card. In general I think that industrial I/O is a very slim market, where almost every single application has unique needs, and any attempt at generalizing a driver for these kinds of cards and applications is a waste of time. Let me add that a 8-port relay card makes a very nice remote-reset gadget. I have a small 486 machine with 8 sio ports and an 8 port relay card connected to my machines here in my lab. The relays are connected to the RESET pins on the computers. Real nice. All done from userland. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message