From owner-freebsd-firewire@FreeBSD.ORG Wed Jun 30 13:49:07 2004 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F24FB16A4CE for ; Wed, 30 Jun 2004 13:49:07 +0000 (GMT) Received: from tora.nunu.org (YahooBB219003182029.bbtec.net [219.3.182.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9769543D1F for ; Wed, 30 Jun 2004 13:49:06 +0000 (GMT) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from tora.nunu.org (unknown [192.168.1.2]) by tora.nunu.org (Postfix) with ESMTP id 6A5EF4E219; Wed, 30 Jun 2004 22:48:46 +0900 (JST) Date: Wed, 30 Jun 2004 22:48:46 +0900 Message-ID: <87wu1p17i9.wl@tora.nunu.org> From: Hidetoshi Shimokawa To: Buzz Slye In-Reply-To: References: User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 MULE XEmacs/21.4 (patch 14) (Reasonable Discussion) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII cc: freebsd-firewire@freebsd.org Subject: Re: userland fix X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 13:49:08 -0000 Sorry for my late response. At Thu, 24 Jun 2004 10:09:09 -0700 (PDT), Buzz Slye wrote: > > The following code may be substituted for the broken code in fwdev.c, line 325 > (in the routine fw_read) to allow downloading of digital camera images. Do you mean not Digital Video but Digital Camera protocol? > #if 1 /* XXX fixed ? */ > /* per packet mode or FWACT_CH bind?*/ > s = splfw(); > ir->queued --; > STAILQ_REMOVE_HEAD(&ir->q, link); > splx(s); > fp = &xfer->recv.hdr; > if (sc->fc->irx_post != NULL) > sc->fc->irx_post(sc->fc, fp->mode.ld); > err = uiomove((caddr_t)fp, sizeof(struct fw_isohdr), uio); > err = uiomove((caddr_t)xfer->recv.payload, xfer->recv.pay_len, uio); > #endif I cannot remember in which case these code are executed. What kind of userland program do you use? I think that bulkxfer is used for DV receive. Are you going to implement Digital Camera specification? > Changing the receive channel, however, results in the message: > > fwohci0: IR DMA no free chunk This indicates that there is no receive buffer available. > Is changing channels not supported? After the above message, the code > returns 0. So maybe this message is not really an error. I think it's not supported and you may need to close/reopen the device. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html