From owner-freebsd-firewire@FreeBSD.ORG Fri May 21 08:17:04 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 941D916A4CE for ; Fri, 21 May 2004 08:17:04 -0700 (PDT) Received: from tora.nunu.org (YahooBB219003182029.bbtec.net [219.3.182.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F00243D3F for ; Fri, 21 May 2004 08:17:04 -0700 (PDT) (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 103764ACB7; Sat, 22 May 2004 00:16:40 +0900 (JST) Date: Sat, 22 May 2004 00:16:39 +0900 Message-ID: <87vfiphktk.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: async bug 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: Fri, 21 May 2004 15:17:04 -0000 At Tue, 18 May 2004 14:33:57 -0700 (PDT), Buzz Slye wrote: > > > The code for the version of 2004/03/28 does not appear to work correctly > for an asyncronus request of a single register. > > (i.e., try: fwcontrol -b 0) > > R. E. Slye > NASA/Ames The ioctl(2) interface of /dev/fw0.0 is not well-tested and may have many bugs. If you need only quad/block read/write request (without LOCK transaction), /dev/fwmem interface should be easier to use and well-tested. The souce code of dconschat(8) is an example of using /dev/fwmem. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html