Received: by mail.netbsd.org (Postfix, from userid 605) id 2852B14A19F; Thu, 8 Dec 2011 02:51:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4094B14A19E for ; Thu, 8 Dec 2011 02:51:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id OauFj25VQMwh for ; Thu, 8 Dec 2011 02:51:09 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 2C44F14A18B for ; Thu, 8 Dec 2011 02:51:09 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 17578175DD; Thu, 8 Dec 2011 02:51:09 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Thu, 8 Dec 2011 02:51:09 +0000 From: "matthew green" Subject: CVS commit: [jmcneill-usbmp] src/sys/dev/usb To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20111208025109.17578175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "matthew green" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: mrg Date: Thu Dec 8 02:51:08 UTC 2011 Modified Files: src/sys/dev/usb [jmcneill-usbmp]: ehci.c ohci.c uhci.c usb.c usb_subr.c usbdi.c usbdivar.h Log Message: - convert usbd_bus_methods{} and usbd_pipe_methods{} to use c99 struct initialisers - move the locks from the pipe to the bus, since we'll need access to them from bus-level ops - remove dead-for-years SPLUSBCHECK and replaced it with asserts that the thread lock is held - begin to document the locking scheme - convert usbd_*lock_pipe() into real function-like macros To generate a diff of this commit: cvs rdiff -u -r1.181.6.3 -r1.181.6.4 src/sys/dev/usb/ehci.c cvs rdiff -u -r1.218.6.5 -r1.218.6.6 src/sys/dev/usb/ohci.c cvs rdiff -u -r1.240.6.4 -r1.240.6.5 src/sys/dev/usb/uhci.c cvs rdiff -u -r1.125.6.3 -r1.125.6.4 src/sys/dev/usb/usb.c cvs rdiff -u -r1.180.6.1 -r1.180.6.2 src/sys/dev/usb/usb_subr.c cvs rdiff -u -r1.134.2.1 -r1.134.2.2 src/sys/dev/usb/usbdi.c cvs rdiff -u -r1.93.8.1 -r1.93.8.2 src/sys/dev/usb/usbdivar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.