Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2004 22:48:46 +0900
From:      Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
To:        Buzz Slye <buzz@gaia.arc.nasa.gov>
Cc:        freebsd-firewire@freebsd.org
Subject:   Re: userland fix
Message-ID:  <87wu1p17i9.wl@tora.nunu.org>
In-Reply-To: <Pine.GSO.4.58.0406241006550.7558@erast1.arc.nasa.gov>
References:  <Pine.GSO.4.58.0406241006550.7558@erast1.arc.nasa.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87wu1p17i9.wl>