From owner-freebsd-mobile@FreeBSD.ORG Thu Aug 28 01:28:40 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6434116A4BF; Thu, 28 Aug 2003 01:28:40 -0700 (PDT) Received: from purge.bash.sh (purge.bash.sh [193.178.223.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4A2843F3F; Thu, 28 Aug 2003 01:28:38 -0700 (PDT) (envelope-from stu@ipng.org.uk) Received: from acbf6b8e.ipt.aol.com ([172.191.107.142] helo=stu.ipng.org.uk) by purge.bash.sh with asmtp (Exim 4.20 #2 ) id 19sI8y-0007JZ-E6; Thu, 28 Aug 2003 09:28:37 +0100 Received: from baal.stu ([192.168.2.2] helo=icecold.stu) by stu.ipng.org.uk with esmtp (Exim 4.10) id 19sIAU-000GP3-00; Thu, 28 Aug 2003 09:30:10 +0100 Received: from icecold.stu (localhost [127.0.0.1]) by icecold.stu (8.12.7/8.12.7) with ESMTP id h7S8SQif005696; Thu, 28 Aug 2003 09:28:26 +0100 (BST) (envelope-from stu@ipng.org.uk) Received: (from stu@localhost) by icecold.stu (8.12.7/8.12.7/Submit) id h7S8S8S4005695; Thu, 28 Aug 2003 09:28:08 +0100 (BST) X-Authentication-Warning: icecold.stu: stu set sender to stu@ipng.org.uk using -f Date: Thu, 28 Aug 2003 09:28:08 +0100 From: Stuart Walsh To: Duncan Barclay Message-ID: <20030828082808.GA5669@icecold.stu> References: <20030827131039.GA17250@panzer.kdm.org> <20030828033038.GA24315@panzer.kdm.org> <003e01c36d35$94683f20$4bc8a8c0@orac> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <003e01c36d35$94683f20$4bc8a8c0@orac> User-Agent: Mutt/1.5.4i X-SA-Exim-Mail-From: stu@ipng.org.uk Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, hits=0.3 required=7.5 tests=EMAIL_ATTRIBUTION,FORGED_RCVD_TRAIL,QUOTED_EMAIL_TEXT version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-SA-Exim-Version: 3.0 (built Tue Jul 1 14:25:23 BST 2003) X-SA-Exim-Scanned: Yes cc: freebsd-hackers@freebsd.org cc: James Nobis cc: "Kenneth D. Merry" cc: freebsd-mobile@freebsd.org cc: dcswest@gmx.net Subject: Re: bcm4400 driver and Dell 8500 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 08:28:40 -0000 (apologies for the large cc list, im only subbed to -mobile so not sure who is where) On Thu Aug 28, 08:21P +0100, Duncan Barclay wrote: > From: "Kenneth D. Merry" > > > > This is a little loop that waits for the card to finish DMAing a packet. > There > > > should be a DELAY(1) in there. But it may be commented out. > > > > That's bad...in general the chip should DMA the packet and then update the > > consumer index and generate an interrupt. I don't know how this > particular > > chip works, though. The DELAY is commented out. > > Unfortunately I don't know how the chips works wither. This method comes > from the drivers I used as a reference. I have recoded the loop a little so > it doesn't DELAY and I've never had a timeout from it. > That is how this chip works. It rxes a packet, prepends an rxheader to it, DMAs it and then updates the index and generates an interrupt. If it reaches the last descriptor(marked by an end of table flag) it resets it 0. The chip does have a 'lazy rx' mode which can be set to interrupt after a certain amount of frames or a certain amount of data. These problems may or may not mystically disappear when I finish merging Duncan and I's drivers, but I wouldn't hold your breath. :) Regards, Stuart