From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8bc41c24c4c1f8272092a0c3cfd19926@collyer.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] netgear 622T From: Geoff Collyer MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 20 Nov 2002 23:32:23 -0800 Topicbox-Message-UUID: 25a64138-eacb-11e9-9e20-41e7f4b1d025 In addition to today's updates, you'll need this file, /sys/src/9/pc/compat.h (which is quite different from /sys/src/fs/pc/compat.h): --- /* * compatibility hacks to permit drivers from the cpu/terminal kernel * to be moved to the fs kernel (and eventually 9load) */ #define ETHERIQ etheriq #define SETWPCNT(bp, cnt) (bp)->wp = (bp)->rp + (cnt) #define BLKRESET(bp) (bp)->wp = (bp)->rp = (bp)->lim - Rbsz #define INCRPTR(bp, incr) (bp)->wp += (incr) #define etheroq(edev) qget((edev)->oq) --- I have run gigabit Ethernet directly between a file server and cpu server using this driver (/sys/src/fs/pc/etherdp83820.c and, in my cpu kernel, an identical copy named /sys/src/9/pc/etherdp83820.c), a D-link DGE500-T card in each, and a straight-through `category 6' cable (the cards are smart enough to figure out if the cable is straight-through or twisted and compensate). Performance is only slightly better than full-duplex 100Mb/s connections through a switch, with this version of the driver. /sys/src/fs/pc/ether83815.c should now also compile in both kernels. It's Charles Forsyth's driver, dirtied up by me in a half-finished attempt to add support for the SiS 900. It still works on the FA311 at least. /sys/src/fs/pc/ether8139.c may compile in both kernels. I made a start at converting it, but don't have any 8139s to test with.