From owner-freebsd-usb@freebsd.org Thu Jun 27 19:08:28 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0160715CA80F for ; Thu, 27 Jun 2019 19:08:28 +0000 (UTC) (envelope-from stephane.dalu@gmail.com) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8DF7E6BC6B for ; Thu, 27 Jun 2019 19:08:26 +0000 (UTC) (envelope-from stephane.dalu@gmail.com) Received: by mail-wr1-x431.google.com with SMTP id n4so3710119wrw.13 for ; Thu, 27 Jun 2019 12:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=uuasnpi4awkQ/5vAOyM1u1XQaW4Nbf1hLnNY16Z6fnA=; b=sCWOt382qlP6T6/PNdQ0fzEUhIFZyAlgm7MukHx8rbIr1xh/YshVbAEHmAg5/urskR 6TegZMjy0I73W569JnQq6L3NXMPjrhtwAQaTXGr/Zy6QsX7ypNJA3a3AEXxBleVg4GQz WIs76Vb4NaVuNM8SPU+c5WBagUbeS8wGK+ChcaoDRz+4o3U5vTzcjViOHjDAJYt8mpWn OVN0OtUxcpqujnpAhXFeJkX3/hbZo1FABybBDEVSq2I+Zr8oNfzmMRbFc/8UE1U8mxrb kEQwP29wK9SFJNXQ6XzTQ7V72hpzOoJL+HS0eTRTpQANhMt4gy3oBFaWkvOQRnuYkdds 6wLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uuasnpi4awkQ/5vAOyM1u1XQaW4Nbf1hLnNY16Z6fnA=; b=QAnt+v4risQvSl9zc9kFq+3M7N/Gpuc2Sl+gFZ4aUe3Cw+2V1vUwY6m6VUcAH60mZ9 eVEi6SgKx4Kwhc1gS5X70gcQ9LHfyrKmzL9uEgcI64zBl4oEGYAFR6fMM61NDTL6QpC1 g99EQcnJgXoPP7YaALr+iCFTwEJ3J+ZOyhHQQoT+d0lCyYoi9C5qwkAjKnI7Q0/+hhD9 y/8sBbsTtqFpvUQgV9u5b1SckW//alwizQ3H/HzBIYxqH9RZzqUELoB1UOsj7gunSOzB 7xd9Vwqnlr3L/DTEAzynPaFzsWi4DMQ67+wt7MsZg6gaQI1LunOltXpMzw/VUt0R80/3 Avrg== X-Gm-Message-State: APjAAAV5mDfQFm6QmpZvPYxPTLVtKH20QqQ1LTBCCfP3OgRAJe/XtCmj y2dBU/XWiIRcUc8imxT8YvV7o468 X-Google-Smtp-Source: APXvYqwcaeDiNK/Jw9iiMQ7SKBb3AsEAFg2Fj24Q+lQZ6JpLCeQkQMr8XmROLbD0Oq3ighEE6lsoUw== X-Received: by 2002:a5d:508a:: with SMTP id a10mr4553851wrt.59.1561662505154; Thu, 27 Jun 2019 12:08:25 -0700 (PDT) Received: from hyperion.home.sdalu.com ([2a01:e35:2e8d:a850:e0d6:cc71:49cb:63ba]) by smtp.gmail.com with ESMTPSA id w14sm1233wrk.44.2019.06.27.12.08.23 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 12:08:24 -0700 (PDT) From: "Stephane D'Alu" X-Google-Original-From: Stephane D'Alu Subject: Re: Implemeting xbox one controller on uhid To: Hans Petter Selasky , freebsd-usb@freebsd.org References: <342406ee-c51e-0691-5560-4f49de90c83f@selasky.org> Message-ID: <928ffe72-93d7-3518-5e65-1940f2e07398@gmail.com> Date: Thu, 27 Jun 2019 21:08:20 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 8DF7E6BC6B X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=sCWOt382; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of stephanedalu@gmail.com designates 2a00:1450:4864:20::431 as permitted sender) smtp.mailfrom=stephanedalu@gmail.com X-Spamd-Result: default: False [-6.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.99)[-0.990,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-2.90)[ip: (-9.52), ipnet: 2a00:1450::/32(-2.59), asn: 15169(-2.33), country: US(-0.06)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2019 19:08:28 -0000 On 6/27/19 4:26 PM, Hans Petter Selasky wrote: > On 2019-06-27 15:44, Stephane D'Alu wrote: >> On 6/27/19 3:20 PM, Hans Petter Selasky wrote: >>> On 2019-06-27 15:16, Stephane D'Alu wrote: >>> [...] >>> Hi, >>> >>> For sending a interrupt endpoint message you need to allocate an own >>> USB transfer. The usbd_req_set_report() only works on the control >>> endpoint. >>> >> >> Do you mean? >> - usbd_transfer_setup + usbd_transer_start ? >> > > Yes, that is correct. > Got it working, thanks, still a few questions Is it allowed to: - create/use several usb_xfer for the same type/endpoint/direction - in the callback (usb_config) to write several packets (multiple call to usbd_transfer_submit), with the same page_cache? -- Stephane D'Alu