From owner-freebsd-firewire@FreeBSD.ORG Tue Feb 5 04:43:25 2008 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAEA616A417 for ; Tue, 5 Feb 2008 04:43:25 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by mx1.freebsd.org (Postfix) with ESMTP id 9EEA613C455 for ; Tue, 5 Feb 2008 04:43:25 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: by an-out-0708.google.com with SMTP id c14so657219anc.13 for ; Mon, 04 Feb 2008 20:43:24 -0800 (PST) Received: by 10.100.128.20 with SMTP id a20mr16823170and.109.1202186604678; Mon, 04 Feb 2008 20:43:24 -0800 (PST) Received: by 10.100.247.18 with HTTP; Mon, 4 Feb 2008 20:43:24 -0800 (PST) Message-ID: <626eb4530802042043t3e0ce8d1l83f64b2d3ea48b1c@mail.gmail.com> Date: Tue, 5 Feb 2008 13:43:24 +0900 From: "Hidetoshi Shimokawa" Sender: freebsd@gm.nunu.org To: "Sean Bruno" In-Reply-To: <47A7E550.7060500@miralink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47A79E13.5040706@miralink.com> <626eb4530802042020n78001c00kddbdedb907902691@mail.gmail.com> <47A7E550.7060500@miralink.com> X-Google-Sender-Auth: acfbde129225cfcd Cc: freebsd-firewire@freebsd.org Subject: Re: Implementation of the AGENT_STATE Register X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 04:43:25 -0000 O.K. I checked the specification. AGENT_STATE is a register. So you have to respond with a read response packet rather than a write request packet. A response packet should be sent via fw_asyreq() with a tcode FWTCODE_RRES*. On Feb 5, 2008 1:25 PM, Sean Bruno wrote: > Hidetoshi Shimokawa wrote: > > I think you can send async. packets using fwmem_write_* functions. > > > > On Feb 5, 2008 8:21 AM, Sean Bruno wrote: > > > >> Hidetoshi: > >> > >> I'm attempting to implement the AGENT_STATE register in sbp_targ. > >> Somehow, I can't understand how to sent the agent state back to the > >> initiator. > >> > >> I am processing the request, but I am really unsure how to return the > >> state(what function calls?). > >> > >> Sean > >> > >> > >> > > > > > > > > > I think I am confused by the specification. Where does the AGENT_STATE > need to be written to? > > Sean > > -- /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.ORG