Path: utzoo!attcan!uunet!convex!killer!ames!mailrus!cornell!batcomputer!sun.soe!sun.soe.clarkson.edu!nelson From: nelson@sun.soe.clarkson.edu (Russ Nelson) Newsgroups: comp.unix.microport Subject: Re: Pity the poor 286 folk Message-ID: Date: 1 Oct 88 04:15:42 GMT References: <9695@ico.ISC.COM> <10770001@hpcupt1.HP.COM> <1988Sep29.153539.17169@intacc.uucp> Sender: root@sun.soe Reply-To: nelson@clutx.clarkson.edu Organization: Clarkson University Lines: 45 In-reply-to: mann@intacc.uucp's message of 29 Sep 88 19:35:39 GMT In article <1988Sep29.153539.17169@intacc.uucp> mann@intacc.uucp (Jeff Mann) writes: In article <10770001@hpcupt1.HP.COM> vandys@hpcupt1.HP.COM (Andrew Valencia(Seattle)) writes in part: > I received an offer from uPort just a bit ago for a TCP/IP package. >I'm not saying it worked, but I am saying I saw one for sale. For that >matter, I believe KA9Q's TCP/IP package works fine over 802.3, so there ^^^^^ But there are no drivers available for this, as far as I know... are there? I'm working on a driver for the 3c501 (ack, but that's what I've got). Having never written a Unix device driver, it's taking a little while. I really, really like the way that device drivers get linked into the kernel, and the fact that devices are accessed through file names that are otherwise ordinary names. I'd like comments on this plan: ecinit() { initialize the device } ecopen() { reserves the device for the first opener. } ecclose() { free the device } ecwrite() { send a packet. } ecread() { return a packet from a buffer. ( not sure if I should malloc or use system buffers.) Do not block -- return zero if no packet available. } ecintr() { if transmit, restart transmit. If receive, stuff packet into buffer. } ecioctl() { ECGETA: get the ethernet address. ECSETA: set the ethernet address. ECSTAT: return error statistics. ECZERO: zero statistics. } -- --russ (nelson@clutx [.bitnet | .clarkson.edu]) To surrender is to remain in the hands of barbarians for the rest of my life. To fight is to leave my bones exposed in the desert waste.