Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Dec 2000 22:31:42 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Mike Smith <msmith@FreeBSD.org>
Cc:        David Malone <dwmalone@maths.tcd.ie>, David Malone <dwmalone@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/isa labpc.c 
Message-ID:  <27861.975965502@critter>
In-Reply-To: Your message of "Mon, 04 Dec 2000 13:34:20 PST." <200012042134.eB4LYKF01258@mass.osd.bsdi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.

<DETOUR>
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.
</DETOUR>

--
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27861.975965502>