From owner-cvs-all@FreeBSD.ORG Wed Apr 16 20:38:04 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B75F37B401; Wed, 16 Apr 2003 20:38:04 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E20C43F85; Wed, 16 Apr 2003 20:38:03 -0700 (PDT) (envelope-from simokawa@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3H3c30U047991; Wed, 16 Apr 2003 20:38:03 -0700 (PDT) (envelope-from simokawa@repoman.freebsd.org) Received: (from simokawa@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3H3c3xP047990; Wed, 16 Apr 2003 20:38:03 -0700 (PDT) Message-Id: <200304170338.h3H3c3xP047990@repoman.freebsd.org> From: Hidetoshi Shimokawa Date: Wed, 16 Apr 2003 20:38:03 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/firewire firewire.c firewire.h firewire_phy.h firewirereg.h fwcrom.c fwdev.c fwdma.c fwdma.h fwmem.c fwmem.h fwohci.c fwohci_pci.c fwohcireg.h fwohcivar.h iec13213.h iec68113.h if_fwe.c if_fwevar.h sbp.c ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2003 03:38:04 -0000 simokawa 2003/04/16 20:38:03 PDT FreeBSD src repository Modified files: sys/dev/firewire firewire.c firewire.h firewire_phy.h firewirereg.h fwcrom.c fwdev.c fwmem.c fwmem.h fwohci.c fwohci_pci.c fwohcireg.h fwohcivar.h iec13213.h iec68113.h if_fwe.c if_fwevar.h sbp.c sys/modules/firewire Makefile.inc sys/modules/firewire/firewire Makefile sys/modules/firewire/fwe Makefile usr.sbin/fwcontrol fwcontrol.c fwcrom.c fwdv.c Added files: sys/dev/firewire fwdma.c fwdma.h Log: MFp4(simokawa_firewire): Many internal structure changes for the FireWire driver. - Compute CRC in CROM parsing. - Add support for configuration ROM build. - Simplify dummy buffer handling. - busdma conversion - Use swi_taskqueue_giant for -current. Mark the interrupt routine as MPSAFE. - AR buffer handling. Don't reallocate AR buffer but just recycle it. Don't malloc and copy per packet in fwohci_arcv(). Pass packet to fw_rcv() using iovec. Application must prepare receiving buffer in advance. - Change fw_bind API so that application should pre-allocate xfer structure. - Add fw_xfer_unload() for recycling struct fw_xfer. - Add post_busreset hook - Remove unused 'sub' and 'act_type' in struct fw_xfer. - Remove npacket from struct fw_bulkxfer. - Don't call back handlers in fwochi_arcv() if the packet has not drained in AT queue - Make firewire works on big endian platform. - Use native endian for packet header and remove unnecessary ntohX/htonX. - Remove FWXFERQ_PACKET mode. We don't use it anymore. - Remove unnecessary restriction of FWSTMAXCHUNK. - Don't set root node for phy config packet if the root node is not cycle master capable but set myself for root node. We should be the root node after next bus reset. Spotted by: Yoshihiro Tabira - Improve self id handling Tested on: i386, sparc64 and i386 with forced bounce buffer Revision Changes Path 1.46 +232 -235 src/sys/dev/firewire/firewire.c 1.12 +84 -179 src/sys/dev/firewire/firewire.h 1.2 +0 -2 src/sys/dev/firewire/firewire_phy.h 1.23 +23 -71 src/sys/dev/firewire/firewirereg.h 1.3 +258 -7 src/sys/dev/firewire/fwcrom.c 1.26 +83 -294 src/sys/dev/firewire/fwdev.c 1.1 +208 -0 src/sys/dev/firewire/fwdma.c (new) 1.1 +116 -0 src/sys/dev/firewire/fwdma.h (new) 1.18 +30 -42 src/sys/dev/firewire/fwmem.c 1.5 +1 -1 src/sys/dev/firewire/fwmem.h 1.47 +783 -786 src/sys/dev/firewire/fwohci.c 1.21 +53 -26 src/sys/dev/firewire/fwohci_pci.c 1.9 +97 -58 src/sys/dev/firewire/fwohcireg.h 1.8 +26 -13 src/sys/dev/firewire/fwohcivar.h 1.3 +95 -39 src/sys/dev/firewire/iec13213.h 1.6 +46 -7 src/sys/dev/firewire/iec68113.h 1.14 +31 -66 src/sys/dev/firewire/if_fwe.c 1.3 +1 -1 src/sys/dev/firewire/if_fwevar.h 1.42 +315 -317 src/sys/dev/firewire/sbp.c 1.2 +1 -0 src/sys/modules/firewire/Makefile.inc 1.7 +1 -1 src/sys/modules/firewire/firewire/Makefile 1.3 +1 -0 src/sys/modules/firewire/fwe/Makefile 1.10 +19 -7 src/usr.sbin/fwcontrol/fwcontrol.c 1.3 +253 -6 src/usr.sbin/fwcontrol/fwcrom.c 1.5 +3 -3 src/usr.sbin/fwcontrol/fwdv.c