From owner-freebsd-current@FreeBSD.ORG Wed Aug 17 19:49:46 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0E4E16A41F for ; Wed, 17 Aug 2005 19:49:46 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EFC843D46 for ; Wed, 17 Aug 2005 19:49:45 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.40.201] (Not Verified[10.50.40.201]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Wed, 17 Aug 2005 16:04:45 -0400 From: John Baldwin To: current@FreeBSD.org Date: Wed, 17 Aug 2005 15:50:24 -0400 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508171550.25422.jhb@FreeBSD.org> Cc: Subject: Convert de(4) to use bus-dma X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2005 19:49:46 -0000 The de(4) driver had some #ifdef'd code in it to use NetBSD's version of bus_dma. I mostly rewrote that and restructured the driver to store metadata about descriptors differently. There's still an #ifdef for bus_dma so it can run both with and without bus_dma for now. It's been running happily on my ds20 for a couple of days both ways now, so I'd appreciate it if other folks could test the patches. By default, the patches leave bus_dma disabled, and I'd prefer that people test the driver both with and without bus_dma. To enable bus_dma, simply edit the line in if_de.c that has '//#define TULIP_BUS_DMA' and removing the leading '//' from the line. Thanks. Patch is at http://www.FreeBSD.org/~jhb/patches/de_busdma.patch -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org