From owner-freebsd-drivers@freebsd.org Thu Mar 26 00:59:08 2020 Return-Path: Delivered-To: freebsd-drivers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5231C26A077 for ; Thu, 26 Mar 2020 00:59:08 +0000 (UTC) (envelope-from stephen.wall@redcom.com) Received: from smtp1.redcom.com (smtp1.redcom.com [192.86.3.143]) by mx1.freebsd.org (Postfix) with ESMTP id 48nmp53YkMz3KtF for ; Thu, 26 Mar 2020 00:58:52 +0000 (UTC) (envelope-from stephen.wall@redcom.com) Received: from localhost (localhost [127.0.0.1]) by smtp1.redcom.com (Postfix) with ESMTP id C2117A1B5; Wed, 25 Mar 2020 20:58:44 -0400 (EDT) X-Virus-Scanned: amavisd-new at redcom.com Received: from smtp1.redcom.com ([127.0.0.1]) by localhost (smtp1.redcom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A4C+tHRyFiNc; Wed, 25 Mar 2020 20:58:42 -0400 (EDT) Received: from pie.redcom.com (pie [192.168.33.15]) by smtp1.redcom.com (Postfix) with ESMTP id 532FFA11E; Wed, 25 Mar 2020 20:58:42 -0400 (EDT) Received: from exch-03.redcom.com (exch-03.redcom.com [192.168.32.32]) by pie.redcom.com (8.11.7p1+Sun/8.10.2) with ESMTP id 02Q0wfl00109; Wed, 25 Mar 2020 20:58:41 -0400 (EDT) Received: from exch-03.redcom.com (fd00::8549:68c0:3d5f:ee62) by exch-03.redcom.com (fd00::8549:68c0:3d5f:ee62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.330.5; Wed, 25 Mar 2020 20:58:41 -0400 Received: from exch-03.redcom.com ([fe80::a442:ce34:c9c8:268f]) by exch-03.redcom.com ([fe80::a442:ce34:c9c8:268f%3]) with mapi id 15.02.0330.010; Wed, 25 Mar 2020 20:58:41 -0400 From: "Wall, Stephen" To: John-Mark Gurney CC: "freebsd-drivers@freebsd.org" Subject: RE: Sending data packets to USB bulk endpoint Thread-Topic: Sending data packets to USB bulk endpoint Thread-Index: AdYCR/iL46k17/e8QeqVMbLCCQEh4QA3lnYAAAeDR0A= Date: Thu, 26 Mar 2020 00:58:41 +0000 Message-ID: References: <14d06ca2f98e42eca84e9b0d0df8b39e@redcom.com> <20200326002338.GS4213@funkthat.com> In-Reply-To: <20200326002338.GS4213@funkthat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.84.20] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Rspamd-Queue-Id: 48nmp53YkMz3KtF X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of stephen.wall@redcom.com designates 192.86.3.143 as permitted sender) smtp.mailfrom=stephen.wall@redcom.com X-Spamd-Result: default: False [-3.25 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:192.86.3.143/32]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[redcom.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[143.3.86.192.list.dnswl.org : 127.0.10.0]; IP_SCORE(-1.05)[ip: (-2.75), ipnet: 192.86.3.0/24(-1.38), asn: 46679(-1.10), country: US(-0.05)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:46679, ipnet:192.86.3.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_SEVEN(0.00)[7] X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2020 00:59:08 -0000 > From: John-Mark Gurney > > Is there a specific reason you want a native kernel driver instead of > using something like libusb + cuse4bsd? Don't know what cuse4bsd is, I'll look into it. Is that going to be as str= aightforward as ioctl() calls for the GPIOs, and is it going to handle the = audio streams (to/from) well? > Also, have you looked at usbdi(9)? It looks like it contains the > information on how to setup a transfer w/ the buffer, and use that. >=20 > https://www.freebsd.org/cgi/man.cgi?query=3Dusbdi&manpath=3DFreeBSD+12.1- > RELEASE+and+Ports Thanks, I'll look at that. -spw