From owner-freebsd-usb@FreeBSD.ORG Mon Feb 16 20:24:48 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D80F1065763; Mon, 16 Feb 2009 20:24:48 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.tele2.se [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id E66DD8FC1B; Mon, 16 Feb 2009 20:24:46 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=bl9BoFr_XwQA:10 a=lzAowTwBfswA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=4z9mzZ3Dy6i9oV2BUmkA:9 a=oRXjFsu3gZEvBskTRR8A:7 a=Fo7xndM2nOJ7YcnMo7hsgYRZRFUA:4 a=50e4U0PicR4A:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 453696051; Mon, 16 Feb 2009 21:24:45 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 16 Feb 2009 21:27:09 +0100 User-Agent: KMail/1.9.7 References: <20090216153519.GB4723@citylink.fud.org.nz> <200902161755.07491.hselasky@freebsd.org> In-Reply-To: <200902161755.07491.hselasky@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902162127.12209.hselasky@c2i.net> Cc: usb@freebsd.org, Robert Watson , weongyo@freebsd.org, Andrew Thompson Subject: Re: USB support in NDIS -- IFF_NEEDSGIANT? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2009 20:24:48 -0000 Hi, As long as there are locking mechanisms like this: void KeAcquireSpinLockAtDpcLevel(kspin_lock *lock) { while (atomic_cmpset_acq_int((volatile u_int *)lock, 0, 1) == 0) /* sit and spin */; return; } inside if_ndis, the whole of NDIS needs to run under one lock. What is the name of the "NDIS Giant Lock" after that "Giant" is removed from NDIS? --HPS On Monday 16 February 2009, Hans Petter Selasky wrote: > On Monday 16 February 2009, Andrew Thompson wrote: > > On Mon, Feb 16, 2009 at 11:33:18AM +0000, Robert Watson wrote: > > > Dear all: > > > > I had promised Weongyo that I would convert ndis to USB2 but have been a > > bit busy. Anyone else welcome to pick this up in the mean time. > > I can take care of it. Will be back in some hours or tomorrow with patches. > > How can I test the if_ndis is working USB-wise? > > I assume the latest files are in -current. > > --HPS