From owner-p4-projects@FreeBSD.ORG Sat Sep 22 09:37:49 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6B98116A46E; Sat, 22 Sep 2007 09:37:49 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FFB316A469 for ; Sat, 22 Sep 2007 09:37:49 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F2B4413C459 for ; Sat, 22 Sep 2007 09:37:48 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l8M9bm3v073016 for ; Sat, 22 Sep 2007 09:37:48 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8M9bm5d073013 for perforce@freebsd.org; Sat, 22 Sep 2007 09:37:48 GMT (envelope-from hselasky@FreeBSD.org) Date: Sat, 22 Sep 2007 09:37:48 GMT Message-Id: <200709220937.l8M9bm5d073013@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 126687 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2007 09:37:49 -0000 http://perforce.freebsd.org/chv.cgi?CH=126687 Change 126687 by hselasky@hselasky_laptop001 on 2007/09/22 09:36:58 Pre-commit overview (dummy commit) ================================== This is the first of a series of patches for the USB P4 project by me. Be aware that the USB P4 project will not be compilable until I am finished due to USB API / structure changes. Functional changes ================== - multi sub-frame USB transfers (currently only the EHCI + WHCI has hardware support for this) - USB device side support (no real drivers yet, though the framework has been hammered out) - stricter "wMaxPacketSize" filtering - the ucom and usb_cdev layer now supports transferring data directly to/from USB DMA buffers. - factored out MS_TO_TICKS into USBD_MS_TO_TICKS which has 1024 milliseconds per second instead of 1000 to save redundant division. Technical changes ================= - convert kernel USB flags into a bitmap (scripted) - "usbd_transfer_done()" is now part of "usbd_transfer_dequeue()" - remove internal data bounching framework - using DMA'able buffers is now a requirement for all USB drivers - factored out USB root control transfers into "usbd_std_root_transfer()" - passing a mutex to "usbd_do_request_flags()" and all "usbreq_xxx()" functions is now mandatory. - stack usage reduction in general - factored out ADD_BYTES() into USBD_ADD_BYTES() - refactor function parameter passing - use structs instead of passing actual values - pass pointers first then elements decreasing by size, to optimize stack on embedded systems, when possible - cache some string descriptors in "struct usbd_device" - use a common USB control transfer to proxy all USB control transactions per "struct usbd_device". This speeds up USB control transactions alot, hence there is no need to allocate/setup anything when executing a USB control transaction. Style changes (in separate patches) =================================== - subsitute all "u_intXXX" into "uintXXX" - stylish "s/if\(/if \(/g", "s/for\(/for \(/g", "s/while\(/while \(/g", "s/do\(/do \(/g" - tab after "#define" Patches for all of the above and more will follow in pieces with detailed comments. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/README#16 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/README#16 (text+ko) ==== @@ -1,3 +1,10 @@ +Hi, + +The USB P4 project does currently not compile due to ongoing work, +which is expected to be complete by the end of Sunday the 23rd 2007. + +--HPS + DESCRIPTION OF THE NEW USB API The new USB 2.0 API consists of 4 functions. All transfer types are managed